limbo-component 1.0.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +61 -29
  3. package/dist/limbo.cjs.js +5 -5
  4. package/dist/limbo.cjs.map +1 -1
  5. package/dist/limbo.css +1 -1
  6. package/dist/limbo.es.js +2501 -788
  7. package/dist/limbo.es.map +1 -1
  8. package/dist/limbo.min.js +6 -6
  9. package/dist/limbo.min.js.map +1 -1
  10. package/dist/limbo.umd.js +8 -8
  11. package/dist/limbo.umd.js.map +1 -1
  12. package/dist/types/App.d.ts +2 -1
  13. package/dist/types/App.d.ts.map +1 -1
  14. package/dist/types/components/CropperView.d.ts +2 -3
  15. package/dist/types/components/CropperView.d.ts.map +1 -1
  16. package/dist/types/components/Gallery.d.ts +1 -0
  17. package/dist/types/components/Gallery.d.ts.map +1 -1
  18. package/dist/types/components/ImageCard.d.ts +1 -0
  19. package/dist/types/components/ImageCard.d.ts.map +1 -1
  20. package/dist/types/components/ImageVariantsModal.d.ts +17 -0
  21. package/dist/types/components/ImageVariantsModal.d.ts.map +1 -0
  22. package/dist/types/components/Pagination.d.ts +7 -0
  23. package/dist/types/components/Pagination.d.ts.map +1 -0
  24. package/dist/types/components/TabAI.d.ts +2 -2
  25. package/dist/types/components/TabAI.d.ts.map +1 -1
  26. package/dist/types/components/TabPortals.d.ts +2 -2
  27. package/dist/types/components/TabPortals.d.ts.map +1 -1
  28. package/dist/types/components/TabStock.d.ts +1 -2
  29. package/dist/types/components/TabStock.d.ts.map +1 -1
  30. package/dist/types/components/TokenExpiredModal.d.ts +9 -0
  31. package/dist/types/components/TokenExpiredModal.d.ts.map +1 -0
  32. package/dist/types/components/UploadForm.d.ts.map +1 -1
  33. package/dist/types/core/LimboCore.d.ts +4 -0
  34. package/dist/types/core/LimboCore.d.ts.map +1 -1
  35. package/dist/types/hooks/useAiServices.d.ts +1 -1
  36. package/dist/types/hooks/useAiServices.d.ts.map +1 -1
  37. package/dist/types/hooks/useCreateVariant.d.ts +13 -0
  38. package/dist/types/hooks/useCreateVariant.d.ts.map +1 -0
  39. package/dist/types/hooks/useExternalImages.d.ts +9 -1
  40. package/dist/types/hooks/useExternalImages.d.ts.map +1 -1
  41. package/dist/types/hooks/useImageParams.d.ts +1 -1
  42. package/dist/types/hooks/useImageParams.d.ts.map +1 -1
  43. package/dist/types/hooks/useImageVariants.d.ts +20 -0
  44. package/dist/types/hooks/useImageVariants.d.ts.map +1 -0
  45. package/dist/types/hooks/useImages.d.ts +1 -0
  46. package/dist/types/hooks/useImages.d.ts.map +1 -1
  47. package/dist/types/hooks/usePortalSources.d.ts +1 -1
  48. package/dist/types/hooks/usePortalSources.d.ts.map +1 -1
  49. package/dist/types/hooks/useStockServices.d.ts +1 -1
  50. package/dist/types/hooks/useStockServices.d.ts.map +1 -1
  51. package/dist/types/hooks/useTokenExpiration.d.ts +10 -0
  52. package/dist/types/hooks/useTokenExpiration.d.ts.map +1 -0
  53. package/dist/types/services/aiApi.d.ts +4 -2
  54. package/dist/types/services/aiApi.d.ts.map +1 -1
  55. package/dist/types/services/apiClient.d.ts +22 -12
  56. package/dist/types/services/apiClient.d.ts.map +1 -1
  57. package/dist/types/services/assetsApi.d.ts +13 -6
  58. package/dist/types/services/assetsApi.d.ts.map +1 -1
  59. package/dist/types/services/imageParamsApi.d.ts +1 -1
  60. package/dist/types/services/imageParamsApi.d.ts.map +1 -1
  61. package/dist/types/services/portalsApi.d.ts +2 -2
  62. package/dist/types/services/portalsApi.d.ts.map +1 -1
  63. package/dist/types/services/responseAdapters.d.ts +6 -6
  64. package/dist/types/services/responseAdapters.d.ts.map +1 -1
  65. package/dist/types/services/stockApi.d.ts +3 -3
  66. package/dist/types/services/stockApi.d.ts.map +1 -1
  67. package/package.json +1 -1
  68. package/dist/types/services/authService.d.ts +0 -65
  69. package/dist/types/services/authService.d.ts.map +0 -1
package/dist/limbo.min.js CHANGED
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */function u(){return i||(i=1,e=s,t=s.exports,"production"!==process.env.NODE_ENV&&function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}function r(e,t){var n=(e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass")+"."+t;W[n]||(console.error("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.",t,e),W[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=q,this.updater=n||B}function o(){}function i(e,t,n){this.props=e,this.context=t,this.refs=q,this.updater=n||B}function l(e){return""+e}function s(e){try{l(e);var t=!1}catch(e){t=!0}if(t){var n=(t=console).error,r="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),l(e)}}function u(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Z?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case z:return"Fragment";case A:return"Profiler";case O:return"StrictMode";case M:return"Suspense";case j:return"SuspenseList";case U:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case R:return"Portal";case I:return(e.displayName||"Context")+".Provider";case L:return(e._context.displayName||"Context")+".Consumer";case D:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $:return null!==(t=e.displayName||null)?t:u(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return u(e(t))}catch(e){}}return null}function c(e){if(e===z)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===F)return"<...>";try{var t=u(e);return t?"<"+t+">":"<...>"}catch(e){return"<...>"}}function d(){var e=J.A;return null===e?null:e.getOwner()}function f(){return Error("react-stack-top-frame")}function p(e){if(ee.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function h(){var e=u(this.type);return ne[e]||(ne[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function m(e,t,n,r,a,o,i,l){return n=o.ref,e={$$typeof:N,type:e,key:t,props:o,_owner:a},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:h}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function g(e){return"object"==typeof e&&null!==e&&e.$$typeof===N}function b(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(s(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function y(){}function v(e,t,n,r,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i,l,u,c=!1;if(null===e)c=!0;else switch(o){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case N:case R:c=!0;break;case F:return v((c=e._init)(e._payload),t,n,r,a)}}if(c){a=a(c=e);var d=""===r?"."+b(c,0):r;return X(a)?(n="",null!=d&&(n=d.replace(ie,"$&/")+"/"),v(a,t,n,"",function(e){return e})):null!=a&&(g(a)&&(null!=a.key&&(c&&c.key===a.key||s(a.key)),i=a,l=n+(null==a.key||c&&c.key===a.key?"":(""+a.key).replace(ie,"$&/")+"/")+d,l=m(i.type,l,void 0,0,i._owner,i.props,i._debugStack,i._debugTask),i._store&&(l._store.validated=i._store.validated),n=l,""!==r&&null!=c&&g(c)&&null==c.key&&c._store&&!c._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(c=0,d=""===r?".":r+":",X(e))for(var f=0;f<e.length;f++)c+=v(r=e[f],t,n,o=d+b(r,f),a);else if("function"==typeof(f=null===(u=e)||"object"!=typeof u?null:"function"==typeof(u=H&&u[H]||u["@@iterator"])?u:null))for(f===e.entries&&(oe||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oe=!0),e=f.call(e),f=0;!(r=e.next()).done;)c+=v(r=r.value,t,n,o=d+b(r,f++),a);else if("object"===o){if("function"==typeof e.then)return v(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(y,y):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,n,r,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function w(e,t,n){if(null==e)return e;var r=[],a=0;return v(e,r,"","",function(e){return t.call(n,e,a++)}),r}function k(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return void 0===(t=e._result)&&console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",t),"default"in t||console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t),t.default;throw e._result}function S(){var e=J.H;return null===e&&console.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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}function x(){}function C(t){if(null===ue)try{var n=("require"+Math.random()).slice(0,7);ue=(e&&e[n]).call(e,"timers").setImmediate}catch(e){ue=function(e){!1===se&&(se=!0,"undefined"==typeof MessageChannel&&console.error("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 t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return ue(t)}function E(e){return 1<e.length&&"function"==typeof AggregateError?new AggregateError(e):e[0]}function _(e,t){t!==ce-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ce=t}function T(e,t,n){var r=J.actQueue;if(null!==r)if(0!==r.length)try{return P(r),void C(function(){return T(e,t,n)})}catch(e){J.thrownErrors.push(e)}else J.actQueue=null;0<J.thrownErrors.length?(r=E(J.thrownErrors),J.thrownErrors.length=0,n(r)):t(e)}function P(e){if(!fe){fe=!0;var t=0;try{for(;t<e.length;t++)for(var n=e[t];;){J.didUsePromise=!1;var r=n(!1);if(null===r)break;if(J.didUsePromise)return e[t]=n,void e.splice(0,t);n=r}e.length=0}catch(n){e.splice(0,t+1),J.thrownErrors.push(n)}finally{fe=!1}}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var N=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),I=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),H=Symbol.iterator,W={},B={isMounted:function(){return!1},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e){r(e,"replaceState")},enqueueSetState:function(e){r(e,"setState")}},V=Object.assign,q={};Object.freeze(q),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var K,Q={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)."]};for(K in Q)Q.hasOwnProperty(K)&&n(K,Q[K]);o.prototype=a.prototype,(Q=i.prototype=new o).constructor=i,V(Q,a.prototype),Q.isPureReactComponent=!0;var Y,G,X=Array.isArray,Z=Symbol.for("react.client.reference"),J={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ee=Object.prototype.hasOwnProperty,te=console.createTask?console.createTask:function(){return null},ne={},re=(Q={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(Q,f)(),ae=te(c(f)),oe=!1,ie=/\/+/g,le="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},se=!1,ue=null,ce=0,de=!1,fe=!1,pe="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:C;Q=Object.freeze({__proto__:null,c:function(e){return S().useMemoCache(e)}}),t.Children={map:w,forEach:function(e,t,n){w(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return w(e,function(){t++}),t},toArray:function(e){return w(e,function(e){return e})||[]},only:function(e){if(!g(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=a,t.Fragment=z,t.Profiler=A,t.PureComponent=i,t.StrictMode=O,t.Suspense=M,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,t.__COMPILER_RUNTIME=Q,t.act=function(e){var t=J.actQueue,n=ce;ce++;var r=J.actQueue=null!==t?t:[],a=!1;try{var o=e()}catch(e){J.thrownErrors.push(e)}if(0<J.thrownErrors.length)throw _(0,n),e=E(J.thrownErrors),J.thrownErrors.length=0,e;if(null!==o&&"object"==typeof o&&"function"==typeof o.then){var i=o;return pe(function(){a||de||(de=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(e,t){a=!0,i.then(function(a){if(_(0,n),0===n){try{P(r),C(function(){return T(a,e,t)})}catch(e){J.thrownErrors.push(e)}if(0<J.thrownErrors.length){var o=E(J.thrownErrors);J.thrownErrors.length=0,t(o)}}else e(a)},function(e){_(0,n),0<J.thrownErrors.length?(e=E(J.thrownErrors),J.thrownErrors.length=0,t(e)):t(e)})}}}var l=o;if(_(0,n),0===n&&(P(r),0!==r.length&&pe(function(){a||de||(de=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),J.actQueue=null),0<J.thrownErrors.length)throw e=E(J.thrownErrors),J.thrownErrors.length=0,e;return{then:function(e,t){a=!0,0===n?(J.actQueue=r,C(function(){return T(l,e,t)})):e(l)}}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.captureOwnerStack=function(){var e=J.getCurrentStack;return null===e?null:e()},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r,a=V({},e.props),o=e.key,i=e._owner;if(null!=t)for(l in(r=!(ee.call(t,"ref")&&(r=Object.getOwnPropertyDescriptor(t,"ref").get)&&r.isReactWarning)&&void 0!==t.ref)&&(i=d()),p(t)&&(s(t.key),o=""+t.key),t)!ee.call(t,l)||"key"===l||"__self"===l||"__source"===l||"ref"===l&&void 0===t.ref||(a[l]=t[l]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){r=Array(l);for(var u=0;u<l;u++)r[u]=arguments[u+2];a.children=r}for(a=m(e.type,o,void 0,0,i,a,e._debugStack,e._debugTask),o=2;o<arguments.length;o++)g(i=arguments[o])&&i._store&&(i._store.validated=1);return a},t.createContext=function(e){return(e={$$typeof:I,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:L,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},t.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++){var a=arguments[r];g(a)&&a._store&&(a._store.validated=1)}if(r={},a=null,null!=t)for(u in G||!("__self"in t)||"key"in t||(G=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),p(t)&&(s(t.key),a=""+t.key),t)ee.call(t,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&(r[u]=t[u]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var i=Array(o),l=0;l<o;l++)i[l]=arguments[l+2];Object.freeze&&Object.freeze(i),r.children=i}if(e&&e.defaultProps)for(u in o=e.defaultProps)void 0===r[u]&&(r[u]=o[u]);a&&function(e,t){function n(){Y||(Y=!0,console.error("%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://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(r,"function"==typeof e?e.displayName||e.name||"Unknown":e);var u=1e4>J.recentlyCreatedOwnerStacks++;return m(e,a,void 0,0,d(),r,u?Error("react-stack-top-frame"):re,u?te(c(e)):ae)},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===$?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?console.error("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&null!=e.defaultProps&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var t,n={$$typeof:D,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(Object.defineProperty(e,"name",{value:n}),e.displayName=n)}}),n},t.isValidElement=g,t.lazy=function(e){return{$$typeof:F,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){var n;return null==e&&console.error("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),t={$$typeof:$,type:e,compare:void 0===t?null:t},Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},t.startTransition=function(e){var t=J.T,n={};J.T=n,n._updatedFibers=new Set;try{var r=e(),a=J.S;null!==a&&a(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(x,le)}catch(e){le(e)}finally{null===t&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn("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.T=t}},t.unstable_useCacheRefresh=function(){return S().useCacheRefresh()},t.use=function(e){return S().use(e)},t.useActionState=function(e,t,n){return S().useActionState(e,t,n)},t.useCallback=function(e,t){return S().useCallback(e,t)},t.useContext=function(e){var t=S();return e.$$typeof===L&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),t.useContext(e)},t.useDebugValue=function(e,t){return S().useDebugValue(e,t)},t.useDeferredValue=function(e,t){return S().useDeferredValue(e,t)},t.useEffect=function(e,t,n){null==e&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var r=S();if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},t.useId=function(){return S().useId()},t.useImperativeHandle=function(e,t,n){return S().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return null==e&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),S().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return null==e&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),S().useLayoutEffect(e,t)},t.useMemo=function(e,t){return S().useMemo(e,t)},t.useOptimistic=function(e,t){return S().useOptimistic(e,t)},t.useReducer=function(e,t,n){return S().useReducer(e,t,n)},t.useRef=function(e){return S().useRef(e)},t.useState=function(e){return S().useState(e)},t.useSyncExternalStore=function(e,t,n){return S().useSyncExternalStore(e,t,n)},t.useTransition=function(){return S().useTransition()},t.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),s.exports;var e,t}function c(){return l||(l=1,"production"===process.env.NODE_ENV?a.exports=function(){if(r)return o;r=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var w=v.prototype=new y;w.constructor=v,m(w,b.prototype),w.isPureReactComponent=!0;var k=Array.isArray,S={H:null,A:null,T:null,S:null,V:null},x=Object.prototype.hasOwnProperty;function C(t,n,r,a,o,i){return r=i.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:i}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var _=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function P(){}function N(n,r,a,o,i){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s,u,c=!1;if(null===n)c=!0;else switch(l){case"bigint":case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case e:case t:c=!0;break;case f:return N((c=n._init)(n._payload),r,a,o,i)}}if(c)return i=i(n),c=""===o?"."+T(n,0):o,k(i)?(a="",null!=c&&(a=c.replace(_,"$&/")+"/"),N(i,r,a,"",function(e){return e})):null!=i&&(E(i)&&(s=i,u=a+(null==i.key||n&&n.key===i.key?"":(""+i.key).replace(_,"$&/")+"/")+c,i=C(s.type,u,void 0,0,0,s.props)),r.push(i)),1;c=0;var d,h=""===o?".":o+":";if(k(n))for(var m=0;m<n.length;m++)c+=N(o=n[m],r,a,l=h+T(o,m),i);else if("function"==typeof(m=null===(d=n)||"object"!=typeof d?null:"function"==typeof(d=p&&d[p]||d["@@iterator"])?d:null))for(n=m.call(n),m=0;!(o=n.next()).done;)c+=N(o=o.value,r,a,l=h+T(o,m++),i);else if("object"===l){if("function"==typeof n.then)return N(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(P,P):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,a,o,i);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return c}function R(e,t,n){if(null==e)return e;var r=[],a=0;return N(e,r,"","",function(e){return t.call(n,e,a++)}),r}function z(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function A(){}return o.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},o.Component=b,o.Fragment=n,o.Profiler=i,o.PureComponent=v,o.StrictMode=a,o.Suspense=c,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,o.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},o.cache=function(e){return function(){return e.apply(null,arguments)}},o.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),a=e.key;if(null!=t)for(o in t.ref,void 0!==t.key&&(a=""+t.key),t)!x.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var i=Array(o),l=0;l<o;l++)i[l]=arguments[l+2];r.children=i}return C(e.type,a,void 0,0,0,r)},o.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:l,_context:e},e},o.createElement=function(e,t,n){var r,a={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+2];a.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return C(e,o,void 0,0,0,a)},o.createRef=function(){return{current:null}},o.forwardRef=function(e){return{$$typeof:u,render:e}},o.isValidElement=E,o.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:z}},o.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},o.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),a=S.S;null!==a&&a(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(A,O)}catch(e){O(e)}finally{S.T=t}},o.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},o.use=function(e){return S.H.use(e)},o.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},o.useCallback=function(e,t){return S.H.useCallback(e,t)},o.useContext=function(e){return S.H.useContext(e)},o.useDebugValue=function(){},o.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},o.useEffect=function(e,t,n){var r=S.H;if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},o.useId=function(){return S.H.useId()},o.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},o.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},o.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},o.useMemo=function(e,t){return S.H.useMemo(e,t)},o.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},o.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},o.useRef=function(e){return S.H.useRef(e)},o.useState=function(e){return S.H.useState(e)},o.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},o.useTransition=function(){return S.H.useTransition()},o.version="19.1.1",o}():a.exports=u()),a.exports}var d=c();const f=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(d);var p,h,m,g={exports:{}},b={},y={exports:{}},v={},w={};
10
+ */function c(){return i||(i=1,e=s,t=s.exports,"production"!==process.env.NODE_ENV&&function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}function r(e,t){var n=(e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass")+"."+t;W[n]||(console.error("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.",t,e),W[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=q,this.updater=n||B}function o(){}function i(e,t,n){this.props=e,this.context=t,this.refs=q,this.updater=n||B}function l(e){return""+e}function s(e){try{l(e);var t=!1}catch(e){t=!0}if(t){var n=(t=console).error,r="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),l(e)}}function c(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===J?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case z:return"Fragment";case O:return"Profiler";case j:return"StrictMode";case D:return"Suspense";case M:return"SuspenseList";case U:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case R:return"Portal";case L:return(e.displayName||"Context")+".Provider";case A:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $:return null!==(t=e.displayName||null)?t:c(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return c(e(t))}catch(e){}}return null}function u(e){if(e===z)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===F)return"<...>";try{var t=c(e);return t?"<"+t+">":"<...>"}catch(e){return"<...>"}}function d(){var e=Z.A;return null===e?null:e.getOwner()}function f(){return Error("react-stack-top-frame")}function p(e){if(ee.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function h(){var e=c(this.type);return ne[e]||(ne[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function m(e,t,n,r,a,o,i,l){return n=o.ref,e={$$typeof:P,type:e,key:t,props:o,_owner:a},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:h}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function g(e){return"object"==typeof e&&null!==e&&e.$$typeof===P}function b(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(s(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function y(){}function v(e,t,n,r,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i,l,c,u=!1;if(null===e)u=!0;else switch(o){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case P:case R:u=!0;break;case F:return v((u=e._init)(e._payload),t,n,r,a)}}if(u){a=a(u=e);var d=""===r?"."+b(u,0):r;return X(a)?(n="",null!=d&&(n=d.replace(ie,"$&/")+"/"),v(a,t,n,"",function(e){return e})):null!=a&&(g(a)&&(null!=a.key&&(u&&u.key===a.key||s(a.key)),i=a,l=n+(null==a.key||u&&u.key===a.key?"":(""+a.key).replace(ie,"$&/")+"/")+d,l=m(i.type,l,void 0,0,i._owner,i.props,i._debugStack,i._debugTask),i._store&&(l._store.validated=i._store.validated),n=l,""!==r&&null!=u&&g(u)&&null==u.key&&u._store&&!u._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(u=0,d=""===r?".":r+":",X(e))for(var f=0;f<e.length;f++)u+=v(r=e[f],t,n,o=d+b(r,f),a);else if("function"==typeof(f=null===(c=e)||"object"!=typeof c?null:"function"==typeof(c=H&&c[H]||c["@@iterator"])?c:null))for(f===e.entries&&(oe||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oe=!0),e=f.call(e),f=0;!(r=e.next()).done;)u+=v(r=r.value,t,n,o=d+b(r,f++),a);else if("object"===o){if("function"==typeof e.then)return v(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(y,y):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,n,r,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function w(e,t,n){if(null==e)return e;var r=[],a=0;return v(e,r,"","",function(e){return t.call(n,e,a++)}),r}function k(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return void 0===(t=e._result)&&console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",t),"default"in t||console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t),t.default;throw e._result}function x(){var e=Z.H;return null===e&&console.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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}function S(){}function C(t){if(null===ce)try{var n=("require"+Math.random()).slice(0,7);ce=(e&&e[n]).call(e,"timers").setImmediate}catch(e){ce=function(e){!1===se&&(se=!0,"undefined"==typeof MessageChannel&&console.error("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 t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return ce(t)}function E(e){return 1<e.length&&"function"==typeof AggregateError?new AggregateError(e):e[0]}function _(e,t){t!==ue-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ue=t}function T(e,t,n){var r=Z.actQueue;if(null!==r)if(0!==r.length)try{return N(r),void C(function(){return T(e,t,n)})}catch(e){Z.thrownErrors.push(e)}else Z.actQueue=null;0<Z.thrownErrors.length?(r=E(Z.thrownErrors),Z.thrownErrors.length=0,n(r)):t(e)}function N(e){if(!fe){fe=!0;var t=0;try{for(;t<e.length;t++)for(var n=e[t];;){Z.didUsePromise=!1;var r=n(!1);if(null===r)break;if(Z.didUsePromise)return e[t]=n,void e.splice(0,t);n=r}e.length=0}catch(n){e.splice(0,t+1),Z.thrownErrors.push(n)}finally{fe=!1}}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var P=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),L=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),H=Symbol.iterator,W={},B={isMounted:function(){return!1},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e){r(e,"replaceState")},enqueueSetState:function(e){r(e,"setState")}},V=Object.assign,q={};Object.freeze(q),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var K,Q={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)."]};for(K in Q)Q.hasOwnProperty(K)&&n(K,Q[K]);o.prototype=a.prototype,(Q=i.prototype=new o).constructor=i,V(Q,a.prototype),Q.isPureReactComponent=!0;var Y,G,X=Array.isArray,J=Symbol.for("react.client.reference"),Z={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ee=Object.prototype.hasOwnProperty,te=console.createTask?console.createTask:function(){return null},ne={},re=(Q={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(Q,f)(),ae=te(u(f)),oe=!1,ie=/\/+/g,le="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},se=!1,ce=null,ue=0,de=!1,fe=!1,pe="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:C;Q=Object.freeze({__proto__:null,c:function(e){return x().useMemoCache(e)}}),t.Children={map:w,forEach:function(e,t,n){w(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return w(e,function(){t++}),t},toArray:function(e){return w(e,function(e){return e})||[]},only:function(e){if(!g(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=a,t.Fragment=z,t.Profiler=O,t.PureComponent=i,t.StrictMode=j,t.Suspense=D,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,t.__COMPILER_RUNTIME=Q,t.act=function(e){var t=Z.actQueue,n=ue;ue++;var r=Z.actQueue=null!==t?t:[],a=!1;try{var o=e()}catch(e){Z.thrownErrors.push(e)}if(0<Z.thrownErrors.length)throw _(0,n),e=E(Z.thrownErrors),Z.thrownErrors.length=0,e;if(null!==o&&"object"==typeof o&&"function"==typeof o.then){var i=o;return pe(function(){a||de||(de=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(e,t){a=!0,i.then(function(a){if(_(0,n),0===n){try{N(r),C(function(){return T(a,e,t)})}catch(e){Z.thrownErrors.push(e)}if(0<Z.thrownErrors.length){var o=E(Z.thrownErrors);Z.thrownErrors.length=0,t(o)}}else e(a)},function(e){_(0,n),0<Z.thrownErrors.length?(e=E(Z.thrownErrors),Z.thrownErrors.length=0,t(e)):t(e)})}}}var l=o;if(_(0,n),0===n&&(N(r),0!==r.length&&pe(function(){a||de||(de=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Z.actQueue=null),0<Z.thrownErrors.length)throw e=E(Z.thrownErrors),Z.thrownErrors.length=0,e;return{then:function(e,t){a=!0,0===n?(Z.actQueue=r,C(function(){return T(l,e,t)})):e(l)}}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.captureOwnerStack=function(){var e=Z.getCurrentStack;return null===e?null:e()},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r,a=V({},e.props),o=e.key,i=e._owner;if(null!=t)for(l in(r=!(ee.call(t,"ref")&&(r=Object.getOwnPropertyDescriptor(t,"ref").get)&&r.isReactWarning)&&void 0!==t.ref)&&(i=d()),p(t)&&(s(t.key),o=""+t.key),t)!ee.call(t,l)||"key"===l||"__self"===l||"__source"===l||"ref"===l&&void 0===t.ref||(a[l]=t[l]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){r=Array(l);for(var c=0;c<l;c++)r[c]=arguments[c+2];a.children=r}for(a=m(e.type,o,void 0,0,i,a,e._debugStack,e._debugTask),o=2;o<arguments.length;o++)g(i=arguments[o])&&i._store&&(i._store.validated=1);return a},t.createContext=function(e){return(e={$$typeof:L,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:A,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},t.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++){var a=arguments[r];g(a)&&a._store&&(a._store.validated=1)}if(r={},a=null,null!=t)for(c in G||!("__self"in t)||"key"in t||(G=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),p(t)&&(s(t.key),a=""+t.key),t)ee.call(t,c)&&"key"!==c&&"__self"!==c&&"__source"!==c&&(r[c]=t[c]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var i=Array(o),l=0;l<o;l++)i[l]=arguments[l+2];Object.freeze&&Object.freeze(i),r.children=i}if(e&&e.defaultProps)for(c in o=e.defaultProps)void 0===r[c]&&(r[c]=o[c]);a&&function(e,t){function n(){Y||(Y=!0,console.error("%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://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(r,"function"==typeof e?e.displayName||e.name||"Unknown":e);var c=1e4>Z.recentlyCreatedOwnerStacks++;return m(e,a,void 0,0,d(),r,c?Error("react-stack-top-frame"):re,c?te(u(e)):ae)},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===$?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?console.error("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&null!=e.defaultProps&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var t,n={$$typeof:I,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(Object.defineProperty(e,"name",{value:n}),e.displayName=n)}}),n},t.isValidElement=g,t.lazy=function(e){return{$$typeof:F,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){var n;return null==e&&console.error("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),t={$$typeof:$,type:e,compare:void 0===t?null:t},Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},t.startTransition=function(e){var t=Z.T,n={};Z.T=n,n._updatedFibers=new Set;try{var r=e(),a=Z.S;null!==a&&a(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(S,le)}catch(e){le(e)}finally{null===t&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn("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.")),Z.T=t}},t.unstable_useCacheRefresh=function(){return x().useCacheRefresh()},t.use=function(e){return x().use(e)},t.useActionState=function(e,t,n){return x().useActionState(e,t,n)},t.useCallback=function(e,t){return x().useCallback(e,t)},t.useContext=function(e){var t=x();return e.$$typeof===A&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),t.useContext(e)},t.useDebugValue=function(e,t){return x().useDebugValue(e,t)},t.useDeferredValue=function(e,t){return x().useDeferredValue(e,t)},t.useEffect=function(e,t,n){null==e&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var r=x();if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},t.useId=function(){return x().useId()},t.useImperativeHandle=function(e,t,n){return x().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return null==e&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return null==e&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useLayoutEffect(e,t)},t.useMemo=function(e,t){return x().useMemo(e,t)},t.useOptimistic=function(e,t){return x().useOptimistic(e,t)},t.useReducer=function(e,t,n){return x().useReducer(e,t,n)},t.useRef=function(e){return x().useRef(e)},t.useState=function(e){return x().useState(e)},t.useSyncExternalStore=function(e,t,n){return x().useSyncExternalStore(e,t,n)},t.useTransition=function(){return x().useTransition()},t.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),s.exports;var e,t}function u(){return l||(l=1,"production"===process.env.NODE_ENV?a.exports=function(){if(r)return o;r=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var w=v.prototype=new y;w.constructor=v,m(w,b.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},S=Object.prototype.hasOwnProperty;function C(t,n,r,a,o,i){return r=i.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:i}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var _=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function N(){}function P(n,r,a,o,i){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s,c,u=!1;if(null===n)u=!0;else switch(l){case"bigint":case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0;break;case f:return P((u=n._init)(n._payload),r,a,o,i)}}if(u)return i=i(n),u=""===o?"."+T(n,0):o,k(i)?(a="",null!=u&&(a=u.replace(_,"$&/")+"/"),P(i,r,a,"",function(e){return e})):null!=i&&(E(i)&&(s=i,c=a+(null==i.key||n&&n.key===i.key?"":(""+i.key).replace(_,"$&/")+"/")+u,i=C(s.type,c,void 0,0,0,s.props)),r.push(i)),1;u=0;var d,h=""===o?".":o+":";if(k(n))for(var m=0;m<n.length;m++)u+=P(o=n[m],r,a,l=h+T(o,m),i);else if("function"==typeof(m=null===(d=n)||"object"!=typeof d?null:"function"==typeof(d=p&&d[p]||d["@@iterator"])?d:null))for(n=m.call(n),m=0;!(o=n.next()).done;)u+=P(o=o.value,r,a,l=h+T(o,m++),i);else if("object"===l){if("function"==typeof n.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(N,N):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,a,o,i);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return u}function R(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",function(e){return t.call(n,e,a++)}),r}function z(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function O(){}return o.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},o.Component=b,o.Fragment=n,o.Profiler=i,o.PureComponent=v,o.StrictMode=a,o.Suspense=u,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,o.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}},o.cache=function(e){return function(){return e.apply(null,arguments)}},o.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),a=e.key;if(null!=t)for(o in t.ref,void 0!==t.key&&(a=""+t.key),t)!S.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var i=Array(o),l=0;l<o;l++)i[l]=arguments[l+2];r.children=i}return C(e.type,a,void 0,0,0,r)},o.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:l,_context:e},e},o.createElement=function(e,t,n){var r,a={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)S.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+2];a.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return C(e,o,void 0,0,0,a)},o.createRef=function(){return{current:null}},o.forwardRef=function(e){return{$$typeof:c,render:e}},o.isValidElement=E,o.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:z}},o.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},o.startTransition=function(e){var t=x.T,n={};x.T=n;try{var r=e(),a=x.S;null!==a&&a(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(O,j)}catch(e){j(e)}finally{x.T=t}},o.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},o.use=function(e){return x.H.use(e)},o.useActionState=function(e,t,n){return x.H.useActionState(e,t,n)},o.useCallback=function(e,t){return x.H.useCallback(e,t)},o.useContext=function(e){return x.H.useContext(e)},o.useDebugValue=function(){},o.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},o.useEffect=function(e,t,n){var r=x.H;if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},o.useId=function(){return x.H.useId()},o.useImperativeHandle=function(e,t,n){return x.H.useImperativeHandle(e,t,n)},o.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},o.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},o.useMemo=function(e,t){return x.H.useMemo(e,t)},o.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},o.useReducer=function(e,t,n){return x.H.useReducer(e,t,n)},o.useRef=function(e){return x.H.useRef(e)},o.useState=function(e){return x.H.useState(e)},o.useSyncExternalStore=function(e,t,n){return x.H.useSyncExternalStore(e,t,n)},o.useTransition=function(){return x.H.useTransition()},o.version="19.1.1",o}():a.exports=c()),a.exports}var d=u();const f=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(d);var p,h,m,g={exports:{}},b={},y={exports:{}},v={},w={};
11
11
  /**
12
12
  * @license React
13
13
  * scheduler.development.js
@@ -17,7 +17,7 @@
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */
20
- function k(){return m||(m=1,"production"===process.env.NODE_ENV?y.exports=(p||(p=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>a(s,n))u<o&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var a=n(u);null!==a;){if(null===a.callback)r(u);else{if(!(a.startTime<=e))break;r(u),a.sortIndex=a.expirationTime,t(s,a)}a=n(u)}}function k(e){if(m=!1,w(e),!h)if(null!==n(s))h=!0,x||(x=!0,S());else{var t=n(u);null!==t&&z(k,t.startTime-e)}}var S,x=!1,C=-1,E=5,_=-1;function T(){return!(!g&&e.unstable_now()-_<E)}function P(){if(g=!1,x){var t=e.unstable_now();_=t;var a=!0;try{e:{h=!1,m&&(m=!1,y(C),C=-1),p=!0;var o=f;try{t:{for(w(t),d=n(s);null!==d&&!(d.expirationTime>t&&T());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var l=i(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof l){d.callback=l,w(t),a=!0;break t}d===n(s)&&r(s),w(t)}else r(s);d=n(s)}if(null!==d)a=!0;else{var c=n(u);null!==c&&z(k,c.startTime-t),a=!1}}break e}finally{d=null,f=o,p=!1}a=void 0}}finally{a?S():x=!1}}}if("function"==typeof v)S=function(){v(P)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,R=N.port2;N.port1.onmessage=P,S=function(){R.postMessage(null)}}else S=function(){b(P,0)};function z(t,n){C=b(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,a,o){var i=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?i+o:i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:a,priorityLevel:r,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>i?(r.sortIndex=o,t(u,r),null===n(s)&&r===n(u)&&(m?(y(C),C=-1):m=!0,z(k,o-i))):(r.sortIndex=l,t(s,r),h||p||(h=!0,x||(x=!0,S()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(v)),v):y.exports=(h||(h=1,e=w,"production"!==process.env.NODE_ENV&&function(){function t(){if(k=!1,E){var t=e.unstable_now();P=t;var n=!0;try{e:{v=!1,w&&(w=!1,x(_),_=-1),y=!0;var o=b;try{t:{for(i(t),g=r(p);null!==g&&!(g.expirationTime>t&&s());){var c=g.callback;if("function"==typeof c){g.callback=null,b=g.priorityLevel;var d=c(g.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof d){g.callback=d,i(t),n=!0;break t}g===r(p)&&a(p),i(t)}else a(p);g=r(p)}if(null!==g)n=!0;else{var f=r(h);null!==f&&u(l,f.startTime-t),n=!1}}break e}finally{g=null,b=o,y=!1}n=void 0}}finally{n?N():E=!1}}}function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<a&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<a&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function i(e){for(var t=r(h);null!==t;){if(null===t.callback)a(h);else{if(!(t.startTime<=e))break;a(h),t.sortIndex=t.expirationTime,n(p,t)}t=r(h)}}function l(e){if(w=!1,i(e),!v)if(null!==r(p))v=!0,E||(E=!0,N());else{var t=r(h);null!==t&&u(l,t.startTime-e)}}function s(){return!(!k&&e.unstable_now()-P<T)}function u(t,n){_=S(function(){t(e.unstable_now())},n)}if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],h=[],m=1,g=null,b=3,y=!1,v=!1,w=!1,k=!1,S="function"==typeof setTimeout?setTimeout:null,x="function"==typeof clearTimeout?clearTimeout:null,C="undefined"!=typeof setImmediate?setImmediate:null,E=!1,_=-1,T=5,P=-1;if("function"==typeof C)var N=function(){C(t)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,z=R.port2;R.port1.onmessage=t,N=function(){z.postMessage(null)}}else N=function(){S(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(e){switch(b){case 1:case 2:case 3:var t=3;break;default:t=b}var n=b;b=t;try{return e()}finally{b=n}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=b;b=e;try{return t()}finally{b=n}},e.unstable_scheduleCallback=function(t,a,o){var i=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?i+o:i,t){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return t={id:m++,callback:a,priorityLevel:t,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(t.sortIndex=o,n(h,t),null===r(p)&&t===r(h)&&(w?(x(_),_=-1):w=!0,u(l,o-i))):(t.sortIndex=s,n(p,t),v||y||(v=!0,E||(E=!0,N()))),t},e.unstable_shouldYield=s,e.unstable_wrapCallback=function(e){var t=b;return function(){var n=b;b=t;try{return e.apply(this,arguments)}finally{b=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),w)),y.exports;var e}var S,x={exports:{}},C={};var E,_,T,P={};
20
+ function k(){return m||(m=1,"production"===process.env.NODE_ENV?y.exports=(p||(p=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>a(s,n))c<o&&0>a(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],u=1,d=null,f=3,p=!1,h=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var a=n(c);null!==a;){if(null===a.callback)r(c);else{if(!(a.startTime<=e))break;r(c),a.sortIndex=a.expirationTime,t(s,a)}a=n(c)}}function k(e){if(m=!1,w(e),!h)if(null!==n(s))h=!0,S||(S=!0,x());else{var t=n(c);null!==t&&z(k,t.startTime-e)}}var x,S=!1,C=-1,E=5,_=-1;function T(){return!(!g&&e.unstable_now()-_<E)}function N(){if(g=!1,S){var t=e.unstable_now();_=t;var a=!0;try{e:{h=!1,m&&(m=!1,y(C),C=-1),p=!0;var o=f;try{t:{for(w(t),d=n(s);null!==d&&!(d.expirationTime>t&&T());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var l=i(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof l){d.callback=l,w(t),a=!0;break t}d===n(s)&&r(s),w(t)}else r(s);d=n(s)}if(null!==d)a=!0;else{var u=n(c);null!==u&&z(k,u.startTime-t),a=!1}}break e}finally{d=null,f=o,p=!1}a=void 0}}finally{a?x():S=!1}}}if("function"==typeof v)x=function(){v(N)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=N,x=function(){R.postMessage(null)}}else x=function(){b(N,0)};function z(t,n){C=b(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,a,o){var i=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?i+o:i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:a,priorityLevel:r,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>i?(r.sortIndex=o,t(c,r),null===n(s)&&r===n(c)&&(m?(y(C),C=-1):m=!0,z(k,o-i))):(r.sortIndex=l,t(s,r),h||p||(h=!0,S||(S=!0,x()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(v)),v):y.exports=(h||(h=1,e=w,"production"!==process.env.NODE_ENV&&function(){function t(){if(k=!1,E){var t=e.unstable_now();N=t;var n=!0;try{e:{v=!1,w&&(w=!1,S(_),_=-1),y=!0;var o=b;try{t:{for(i(t),g=r(p);null!==g&&!(g.expirationTime>t&&s());){var u=g.callback;if("function"==typeof u){g.callback=null,b=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof d){g.callback=d,i(t),n=!0;break t}g===r(p)&&a(p),i(t)}else a(p);g=r(p)}if(null!==g)n=!0;else{var f=r(h);null!==f&&c(l,f.startTime-t),n=!1}}break e}finally{g=null,b=o,y=!1}n=void 0}}finally{n?P():E=!1}}}function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<a&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function i(e){for(var t=r(h);null!==t;){if(null===t.callback)a(h);else{if(!(t.startTime<=e))break;a(h),t.sortIndex=t.expirationTime,n(p,t)}t=r(h)}}function l(e){if(w=!1,i(e),!v)if(null!==r(p))v=!0,E||(E=!0,P());else{var t=r(h);null!==t&&c(l,t.startTime-e)}}function s(){return!(!k&&e.unstable_now()-N<T)}function c(t,n){_=x(function(){t(e.unstable_now())},n)}if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],h=[],m=1,g=null,b=3,y=!1,v=!1,w=!1,k=!1,x="function"==typeof setTimeout?setTimeout:null,S="function"==typeof clearTimeout?clearTimeout:null,C="undefined"!=typeof setImmediate?setImmediate:null,E=!1,_=-1,T=5,N=-1;if("function"==typeof C)var P=function(){C(t)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,z=R.port2;R.port1.onmessage=t,P=function(){z.postMessage(null)}}else P=function(){x(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(e){switch(b){case 1:case 2:case 3:var t=3;break;default:t=b}var n=b;b=t;try{return e()}finally{b=n}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=b;b=e;try{return t()}finally{b=n}},e.unstable_scheduleCallback=function(t,a,o){var i=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?i+o:i,t){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return t={id:m++,callback:a,priorityLevel:t,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(t.sortIndex=o,n(h,t),null===r(p)&&t===r(h)&&(w?(S(_),_=-1):w=!0,c(l,o-i))):(t.sortIndex=s,n(p,t),v||y||(v=!0,E||(E=!0,P()))),t},e.unstable_shouldYield=s,e.unstable_wrapCallback=function(e){var t=b;return function(){var n=b;b=t;try{return e.apply(this,arguments)}finally{b=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),w)),y.exports;var e}var x,S={exports:{}},C={};var E,_,T,N={};
21
21
  /**
22
22
  * @license React
23
23
  * react-dom.development.js
@@ -26,7 +26,7 @@ function k(){return m||(m=1,"production"===process.env.NODE_ENV?y.exports=(p||(p
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */function N(){return _||(_=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),x.exports=function(){if(S)return C;S=1;var e=c();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal"),o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return C.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,C.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},C.flushSync=function(e){var t=o.T,n=r.p;try{if(o.T=null,r.p=2,e)return e()}finally{o.T=t,r.p=n,r.d.f()}},C.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,r.d.C(e,t))},C.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},C.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,a=i(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:a,integrity:o,fetchPriority:l}):"script"===n&&r.d.X(e,{crossOrigin:a,integrity:o,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},C.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=i(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},C.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,a=i(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:a,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},C.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=i(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},C.requestFormReset=function(e){r.d.r(e)},C.unstable_batchedUpdates=function(e,t){return e(t)},C.useFormState=function(e,t,n){return o.H.useFormState(e,t,n)},C.useFormStatus=function(){return o.H.useHostTransitionStatus()},C.version="19.1.1",C}()):x.exports=(E||(E=1,"production"!==process.env.NODE_ENV&&function(){function e(){}function t(e){return""+e}function n(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}function r(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":'something with type "'+typeof e+'"'}function a(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":"string"==typeof e?JSON.stringify(e):"number"==typeof e?"`"+e+"`":'something with type "'+typeof e+'"'}function o(){var e=u.H;return null===e&&console.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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c(),l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},s=Symbol.for("react.portal"),u=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),P.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,P.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error("Target container is not a DOM element.");return function(e,n,r){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;try{t(a);var o=!1}catch(e){o=!0}return o&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"),t(a)),{$$typeof:s,key:null==a?null:""+a,children:e,containerInfo:n,implementation:r}}(e,n,null,r)},P.flushSync=function(e){var t=u.T,n=l.p;try{if(u.T=null,l.p=2,e)return e()}finally{u.T=t,l.p=n,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},P.preconnect=function(e,t){"string"==typeof e&&e?null!=t&&"object"!=typeof t?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(t)):null!=t&&"string"!=typeof t.crossOrigin&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",r(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(e)),"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,l.d.C(e,t))},P.prefetchDNS=function(e){if("string"==typeof e&&e){if(1<arguments.length){var t=arguments[1];"object"==typeof t&&t.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(t))}}else console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(e));"string"==typeof e&&l.d.D(e)},P.preinit=function(e,t){if("string"==typeof e&&e?null==t||"object"!=typeof t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(t)):"style"!==t.as&&"script"!==t.as&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(e)),"string"==typeof e&&t&&"string"==typeof t.as){var o=t.as,i=n(o,t.crossOrigin),s="string"==typeof t.integrity?t.integrity:void 0,u="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===o?l.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:s,fetchPriority:u}):"script"===o&&l.d.X(e,{crossOrigin:i,integrity:s,fetchPriority:u,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},P.preinitModule=function(e,t){var o="";"string"==typeof e&&e||(o+=" The `href` argument encountered was "+r(e)+"."),void 0!==t&&"object"!=typeof t?o+=" The `options` argument encountered was "+r(t)+".":t&&"as"in t&&"script"!==t.as&&(o+=" The `as` option encountered was "+a(t.as)+"."),o?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",o):"script"===(o=t&&"string"==typeof t.as?t.as:"script")||(o=a(o),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',o,e)),"string"==typeof e&&("object"==typeof t&&null!==t?null!=t.as&&"script"!==t.as||(o=n(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})):null==t&&l.d.M(e))},P.preload=function(e,t){var a="";if("string"==typeof e&&e||(a+=" The `href` argument encountered was "+r(e)+"."),null==t||"object"!=typeof t?a+=" The `options` argument encountered was "+r(t)+".":"string"==typeof t.as&&t.as||(a+=" The `as` option encountered was "+r(t.as)+"."),a&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',a),"string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var o=n(a=t.as,t.crossOrigin);l.d.L(e,a,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},P.preloadModule=function(e,t){var a="";"string"==typeof e&&e||(a+=" The `href` argument encountered was "+r(e)+"."),void 0!==t&&"object"!=typeof t?a+=" The `options` argument encountered was "+r(t)+".":t&&"as"in t&&"string"!=typeof t.as&&(a+=" The `as` option encountered was "+r(t.as)+"."),a&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',a),"string"==typeof e&&(t?(a=n(t.as,t.crossOrigin),l.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:a,integrity:"string"==typeof t.integrity?t.integrity:void 0})):l.d.m(e))},P.requestFormReset=function(e){l.d.r(e)},P.unstable_batchedUpdates=function(e,t){return e(t)},P.useFormState=function(e,t,n){return o().useFormState(e,t,n)},P.useFormStatus=function(){return o().useHostTransitionStatus()},P.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),P)),x.exports}
29
+ */function P(){return _||(_=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),S.exports=function(){if(x)return C;x=1;var e=u();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal"),o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return C.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,C.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},C.flushSync=function(e){var t=o.T,n=r.p;try{if(o.T=null,r.p=2,e)return e()}finally{o.T=t,r.p=n,r.d.f()}},C.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,r.d.C(e,t))},C.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},C.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,a=i(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:a,integrity:o,fetchPriority:l}):"script"===n&&r.d.X(e,{crossOrigin:a,integrity:o,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},C.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=i(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},C.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,a=i(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:a,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},C.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=i(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},C.requestFormReset=function(e){r.d.r(e)},C.unstable_batchedUpdates=function(e,t){return e(t)},C.useFormState=function(e,t,n){return o.H.useFormState(e,t,n)},C.useFormStatus=function(){return o.H.useHostTransitionStatus()},C.version="19.1.1",C}()):S.exports=(E||(E=1,"production"!==process.env.NODE_ENV&&function(){function e(){}function t(e){return""+e}function n(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}function r(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":'something with type "'+typeof e+'"'}function a(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":"string"==typeof e?JSON.stringify(e):"number"==typeof e?"`"+e+"`":'something with type "'+typeof e+'"'}function o(){var e=c.H;return null===e&&console.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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u(),l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},s=Symbol.for("react.portal"),c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),N.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,N.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error("Target container is not a DOM element.");return function(e,n,r){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;try{t(a);var o=!1}catch(e){o=!0}return o&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"),t(a)),{$$typeof:s,key:null==a?null:""+a,children:e,containerInfo:n,implementation:r}}(e,n,null,r)},N.flushSync=function(e){var t=c.T,n=l.p;try{if(c.T=null,l.p=2,e)return e()}finally{c.T=t,l.p=n,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},N.preconnect=function(e,t){"string"==typeof e&&e?null!=t&&"object"!=typeof t?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(t)):null!=t&&"string"!=typeof t.crossOrigin&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",r(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(e)),"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,l.d.C(e,t))},N.prefetchDNS=function(e){if("string"==typeof e&&e){if(1<arguments.length){var t=arguments[1];"object"==typeof t&&t.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(t))}}else console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(e));"string"==typeof e&&l.d.D(e)},N.preinit=function(e,t){if("string"==typeof e&&e?null==t||"object"!=typeof t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(t)):"style"!==t.as&&"script"!==t.as&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(e)),"string"==typeof e&&t&&"string"==typeof t.as){var o=t.as,i=n(o,t.crossOrigin),s="string"==typeof t.integrity?t.integrity:void 0,c="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===o?l.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:s,fetchPriority:c}):"script"===o&&l.d.X(e,{crossOrigin:i,integrity:s,fetchPriority:c,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},N.preinitModule=function(e,t){var o="";"string"==typeof e&&e||(o+=" The `href` argument encountered was "+r(e)+"."),void 0!==t&&"object"!=typeof t?o+=" The `options` argument encountered was "+r(t)+".":t&&"as"in t&&"script"!==t.as&&(o+=" The `as` option encountered was "+a(t.as)+"."),o?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",o):"script"===(o=t&&"string"==typeof t.as?t.as:"script")||(o=a(o),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',o,e)),"string"==typeof e&&("object"==typeof t&&null!==t?null!=t.as&&"script"!==t.as||(o=n(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})):null==t&&l.d.M(e))},N.preload=function(e,t){var a="";if("string"==typeof e&&e||(a+=" The `href` argument encountered was "+r(e)+"."),null==t||"object"!=typeof t?a+=" The `options` argument encountered was "+r(t)+".":"string"==typeof t.as&&t.as||(a+=" The `as` option encountered was "+r(t.as)+"."),a&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',a),"string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var o=n(a=t.as,t.crossOrigin);l.d.L(e,a,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},N.preloadModule=function(e,t){var a="";"string"==typeof e&&e||(a+=" The `href` argument encountered was "+r(e)+"."),void 0!==t&&"object"!=typeof t?a+=" The `options` argument encountered was "+r(t)+".":t&&"as"in t&&"string"!=typeof t.as&&(a+=" The `as` option encountered was "+r(t.as)+"."),a&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',a),"string"==typeof e&&(t?(a=n(t.as,t.crossOrigin),l.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:a,integrity:"string"==typeof t.integrity?t.integrity:void 0})):l.d.m(e))},N.requestFormReset=function(e){l.d.r(e)},N.unstable_batchedUpdates=function(e,t){return e(t)},N.useFormState=function(e,t,n){return o().useFormState(e,t,n)},N.useFormStatus=function(){return o().useHostTransitionStatus()},N.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),N)),S.exports}
30
30
  /**
31
31
  * @license React
32
32
  * react-dom-client.production.js
@@ -35,7 +35,7 @@ function k(){return m||(m=1,"production"===process.env.NODE_ENV?y.exports=(p||(p
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var R,z,O={};
38
+ */var R,z,j={};
39
39
  /**
40
40
  * @license React
41
41
  * react-dom-client.development.js
@@ -44,6 +44,6 @@ function k(){return m||(m=1,"production"===process.env.NODE_ENV?y.exports=(p||(p
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var A,L,I,D=(z||(z=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),g.exports=function(){if(T)return b;T=1;var e=k(),t=c(),n=N();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function i(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(r(188))}function s(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=s(e)))return t;e=e.sibling}return null}var u=Object.assign,d=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),w=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var A=Symbol.for("react.client.reference");function L(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===A?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case g:return"Profiler";case m:return"StrictMode";case x:return"Suspense";case C:return"SuspenseList";case P:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case p:return"Portal";case w:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:L(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return L(e(t))}catch(e){}}return null}var I=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},$=[],F=-1;function U(e){return{current:e}}function H(e){0>F||(e.current=$[F],$[F]=null,F--)}function W(e,t){F++,$[F]=e.current,e.current=t}var B=U(null),V=U(null),q=U(null),K=U(null);function Q(e,t){switch(W(q,t),W(V,e),W(B,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=ld(t=id(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(B),W(B,e)}function Y(){H(B),H(V),H(q)}function G(e){null!==e.memoizedState&&W(K,e);var t=B.current,n=ld(t,e.type);t!==n&&(W(V,e),W(B,n))}function X(e){V.current===e&&(H(B),H(V)),K.current===e&&(H(K),Gd._currentValue=j)}var Z=Object.prototype.hasOwnProperty,J=e.unstable_scheduleCallback,ee=e.unstable_cancelCallback,te=e.unstable_shouldYield,ne=e.unstable_requestPaint,re=e.unstable_now,ae=e.unstable_getCurrentPriorityLevel,oe=e.unstable_ImmediatePriority,ie=e.unstable_UserBlockingPriority,le=e.unstable_NormalPriority,se=e.unstable_LowPriority,ue=e.unstable_IdlePriority,ce=e.log,de=e.unstable_setDisableYieldValue,fe=null,pe=null;function he(e){if("function"==typeof ce&&de(e),pe&&"function"==typeof pe.setStrictMode)try{pe.setStrictMode(fe,e)}catch(e){}}var me=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ge(e)/be|0)|0},ge=Math.log,be=Math.LN2,ye=256,ve=4194304;function we(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ke(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~o)?a=we(r):0!==(i&=l)?a=we(i):n||0!==(n=l&~e)&&(a=we(n)):0!==(l=r&~o)?a=we(l):0!==i?a=we(i):n||0!==(n=r&~e)&&(a=we(n)),0===a?0:0!==t&&t!==a&&0===(t&o)&&((o=a&-a)>=(n=t&-t)||32===o&&4194048&n)?t:a}function Se(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function xe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ce(){var e=ye;return!(4194048&(ye<<=1))&&(ye=256),e}function Ee(){var e=ve;return!(62914560&(ve<<=1))&&(ve=4194304),e}function _e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Te(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Pe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-me(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Ne(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-me(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function Re(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ze(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Oe(){var e=M.p;return 0!==e?e:void 0===(e=window.event)?32:ff(e.type)}var Ae=Math.random().toString(36).slice(2),Le="__reactFiber$"+Ae,Ie="__reactProps$"+Ae,De="__reactContainer$"+Ae,Me="__reactEvents$"+Ae,je="__reactListeners$"+Ae,$e="__reactHandles$"+Ae,Fe="__reactResources$"+Ae,Ue="__reactMarker$"+Ae;function He(e){delete e[Le],delete e[Ie],delete e[Me],delete e[je],delete e[$e]}function We(e){var t=e[Le];if(t)return t;for(var n=e.parentNode;n;){if(t=n[De]||n[Le]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kd(e);null!==e;){if(n=e[Le])return n;e=kd(e)}return t}n=(e=n).parentNode}return null}function Be(e){if(e=e[Le]||e[De]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Ve(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function qe(e){var t=e[Fe];return t||(t=e[Fe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[Ue]=!0}var Qe=new Set,Ye={};function Ge(e,t){Xe(e,t),Xe(e+"Capture",t)}function Xe(e,t){for(Ye[e]=t,e=0;e<t.length;e++)Qe.add(t[e])}var Ze,Je,et=RegExp("^[: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][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),tt={},nt={};function rt(e,t,n){if(a=t,Z.call(nt,a)||!Z.call(tt,a)&&(et.test(a)?nt[a]=!0:(tt[a]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var a}function at(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ot(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function it(e){if(void 0===Ze)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ze=t&&t[1]||"",Je=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ze+e+Je}var lt=!1;function st(e,t){if(!e||lt)return"";lt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],l=o[1];if(i&&l){var s=i.split("\n"),u=l.split("\n");for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===u.length)for(r=s.length-1,a=u.length-1;1<=r&&0<=a&&s[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==u[a]){if(1!==r||1!==a)do{if(r--,0>--a||s[r]!==u[a]){var c="\n"+s[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=a);break}}}finally{lt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?it(n):""}function ut(e){switch(e.tag){case 26:case 27:case 5:return it(e.type);case 16:return it("Lazy");case 13:return it("Suspense");case 19:return it("SuspenseList");case 0:case 15:return st(e.type,!1);case 11:return st(e.type.render,!1);case 1:return st(e.type,!0);case 31:return it("Activity");default:return""}}function ct(e){try{var t="";do{t+=ut(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){e._valueTracker||(e._valueTracker=function(e){var t=ft(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function bt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,r,a,o,i,l){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?wt(e,i,dt(t)):null!=n?wt(e,i,dt(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+dt(l):e.removeAttribute("name")}function vt(e,t,n,r,a,o,i,l){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i)}function wt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function xt(e,t,n,a){if(null==t){if(null!=a){if(null!=n)throw Error(r(92));if(I(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(a=e.textContent)===n&&""!==a&&null!==a&&(e.value=a)}function Ct(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _t(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Tt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var a in n)!n.hasOwnProperty(a)||null!=t&&t.hasOwnProperty(a)||(0===a.indexOf("--")?e.setProperty(a,""):"float"===a?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&_t(e,o,a)}else for(var i in t)t.hasOwnProperty(i)&&_t(e,i,t[i])}function Pt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Rt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function zt(e){return Rt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ot=null;function At(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Lt=null,It=null;function Dt(e){var t=Be(e);if(t&&(e=t.stateNode)){var n=e[Ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[Ie]||null;if(!o)throw Error(r(90));yt(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(a=n[t]).form===e.form&&ht(a)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var Mt=!1;function jt(e,t,n){if(Mt)return e(t,n);Mt=!0;try{return e(t)}finally{if(Mt=!1,(null!==Lt||null!==It)&&(Wu(),Lt&&(t=Lt,e=It,It=Lt=null,Dt(t),e)))for(t=0;t<e.length;t++)Dt(e[t])}}function $t(e,t){var n=e.stateNode;if(null===n)return null;var a=n[Ie]||null;if(null===a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Ft=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ut=!1;if(Ft)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Ut=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(e){Ut=!1}var Wt=null,Bt=null,Vt=null;function qt(){if(Vt)return Vt;var e,t,n=Bt,r=n.length,a="value"in Wt?Wt.value:Wt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Vt=a.slice(e,1<t?1-t:void 0)}function Kt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Qt(){return!0}function Yt(){return!1}function Gt(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Qt:Yt,this.isPropagationStopped=Yt,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Qt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Qt)},persist:function(){},isPersistent:Qt}),t}var Xt,Zt,Jt,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Gt(en),nn=u({},en,{view:0,detail:0}),rn=Gt(nn),an=u({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jt&&(Jt&&"mousemove"===e.type?(Xt=e.screenX-Jt.screenX,Zt=e.screenY-Jt.screenY):Zt=Xt=0,Jt=e),Xt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),on=Gt(an),ln=Gt(u({},an,{dataTransfer:0})),sn=Gt(u({},nn,{relatedTarget:0})),un=Gt(u({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),cn=Gt(u({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),dn=Gt(u({},en,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function gn(){return mn}var bn=Gt(u({},nn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Kt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Kt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Kt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yn=Gt(u({},an,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vn=Gt(u({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),wn=Gt(u({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Gt(u({},an,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Sn=Gt(u({},en,{newState:0,oldState:0})),xn=[9,13,27,32],Cn=Ft&&"CompositionEvent"in window,En=null;Ft&&"documentMode"in document&&(En=document.documentMode);var _n=Ft&&"TextEvent"in window&&!En,Tn=Ft&&(!Cn||En&&8<En&&11>=En),Pn=String.fromCharCode(32),Nn=!1;function Rn(e,t){switch(e){case"keyup":return-1!==xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var On=!1,An={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ln(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!An[e.type]:"textarea"===t}function In(e,t,n,r){Lt?It?It.push(r):It=[r]:Lt=r,0<(t=qc(t,"onChange")).length&&(n=new tn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dn=null,Mn=null;function jn(e){jc(e,0)}function $n(e){if(ht(Ve(e)))return e}function Fn(e,t){if("change"===e)return t}var Un=!1;if(Ft){var Hn;if(Ft){var Wn="oninput"in document;if(!Wn){var Bn=document.createElement("div");Bn.setAttribute("oninput","return;"),Wn="function"==typeof Bn.oninput}Hn=Wn}else Hn=!1;Un=Hn&&(!document.documentMode||9<document.documentMode)}function Vn(){Dn&&(Dn.detachEvent("onpropertychange",qn),Mn=Dn=null)}function qn(e){if("value"===e.propertyName&&$n(Mn)){var t=[];In(t,Mn,e,At(e)),jt(jn,t)}}function Kn(e,t,n){"focusin"===e?(Vn(),Mn=n,(Dn=t).attachEvent("onpropertychange",qn)):"focusout"===e&&Vn()}function Qn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Mn)}function Yn(e,t){if("click"===e)return $n(t)}function Gn(e,t){if("input"===e||"change"===e)return $n(t)}var Xn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Xn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!Z.call(t,a)||!Xn(e[a],t[a]))return!1}return!0}function Jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var n,r=Jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Jn(r)}}function tr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ar=Ft&&"documentMode"in document&&11>=document.documentMode,or=null,ir=null,lr=null,sr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==or||or!==mt(r)||(r="selectionStart"in(r=or)&&rr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Zn(lr,r)||(lr=r,0<(r=qc(ir,"onSelect")).length&&(t=new tn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=or)))}function cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:cr("Animation","AnimationEnd"),animationiteration:cr("Animation","AnimationIteration"),animationstart:cr("Animation","AnimationStart"),transitionrun:cr("Transition","TransitionRun"),transitionstart:cr("Transition","TransitionStart"),transitioncancel:cr("Transition","TransitionCancel"),transitionend:cr("Transition","TransitionEnd")},fr={},pr={};function hr(e){if(fr[e])return fr[e];if(!dr[e])return e;var t,n=dr[e];for(t in n)if(n.hasOwnProperty(t)&&t in pr)return fr[e]=n[t];return e}Ft&&(pr=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);var mr=hr("animationend"),gr=hr("animationiteration"),br=hr("animationstart"),yr=hr("transitionrun"),vr=hr("transitionstart"),wr=hr("transitioncancel"),kr=hr("transitionend"),Sr=new Map,xr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(e,t){Sr.set(e,t),Ge(t,[e])}xr.push("scrollEnd");var Er=new WeakMap;function _r(e,t){if("object"==typeof e&&null!==e){var n=Er.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ct(t)},Er.set(e,t),t)}return{value:e,source:t,stack:ct(t)}}var Tr=[],Pr=0,Nr=0;function Rr(){for(var e=Pr,t=Nr=Pr=0;t<e;){var n=Tr[t];Tr[t++]=null;var r=Tr[t];Tr[t++]=null;var a=Tr[t];Tr[t++]=null;var o=Tr[t];if(Tr[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==o&&Lr(n,a,o)}}function zr(e,t,n,r){Tr[Pr++]=e,Tr[Pr++]=t,Tr[Pr++]=n,Tr[Pr++]=r,Nr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Or(e,t,n,r){return zr(e,t,n,r),Ir(e)}function Ar(e,t){return zr(e,null,null,t),Ir(e)}function Lr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(a=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,a&&null!==t&&(a=31-me(n),null===(r=(e=o.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),o):null}function Ir(e){if(50<Lu)throw Lu=0,Iu=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Mr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jr(e,t,n,r){return new Mr(e,t,n,r)}function $r(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=jr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ur(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,n,a,o,i){var l=0;if(a=e,"function"==typeof e)$r(e)&&(l=1);else if("string"==typeof e)l=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,B.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case P:return(e=jr(31,n,t,o)).elementType=P,e.lanes=i,e;case h:return Wr(n.children,o,i,t);case m:l=8,o|=24;break;case g:return(e=jr(12,n,t,2|o)).elementType=g,e.lanes=i,e;case x:return(e=jr(13,n,t,o)).elementType=x,e.lanes=i,e;case C:return(e=jr(19,n,t,o)).elementType=C,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case y:case w:l=10;break e;case v:l=9;break e;case S:l=11;break e;case E:l=14;break e;case _:l=16,a=null;break e}l=29,n=Error(r(130,null===e?"null":typeof e,"")),a=null}return(t=jr(l,n,t,o)).elementType=e,t.type=a,t.lanes=i,t}function Wr(e,t,n,r){return(e=jr(7,e,r,t)).lanes=n,e}function Br(e,t,n){return(e=jr(6,e,null,t)).lanes=n,e}function Vr(e,t,n){return(t=jr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qr=[],Kr=0,Qr=null,Yr=0,Gr=[],Xr=0,Zr=null,Jr=1,ea="";function ta(e,t){qr[Kr++]=Yr,qr[Kr++]=Qr,Qr=e,Yr=t}function na(e,t,n){Gr[Xr++]=Jr,Gr[Xr++]=ea,Gr[Xr++]=Zr,Zr=e;var r=Jr;e=ea;var a=32-me(r)-1;r&=~(1<<a),n+=1;var o=32-me(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Jr=1<<32-me(t)+a|n<<a|r,ea=o+e}else Jr=1<<o|n<<a|r,ea=e}function ra(e){null!==e.return&&(ta(e,1),na(e,1,0))}function aa(e){for(;e===Qr;)Qr=qr[--Kr],qr[Kr]=null,Yr=qr[--Kr],qr[Kr]=null;for(;e===Zr;)Zr=Gr[--Xr],Gr[Xr]=null,ea=Gr[--Xr],Gr[Xr]=null,Jr=Gr[--Xr],Gr[Xr]=null}var oa=null,ia=null,la=!1,sa=null,ua=!1,ca=Error(r(519));function da(e){throw ba(_r(Error(r(418,"")),e)),ca}function fa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Le]=e,t[Ie]=r,n){case"dialog":$c("cancel",t),$c("close",t);break;case"iframe":case"object":case"embed":$c("load",t);break;case"video":case"audio":for(n=0;n<Dc.length;n++)$c(Dc[n],t);break;case"source":$c("error",t);break;case"img":case"image":case"link":$c("error",t),$c("load",t);break;case"details":$c("toggle",t);break;case"input":$c("invalid",t),vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),pt(t);break;case"select":$c("invalid",t);break;case"textarea":$c("invalid",t),xt(t,r.value,r.defaultValue,r.children),pt(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Zc(t.textContent,n)?(null!=r.popover&&($c("beforetoggle",t),$c("toggle",t)),null!=r.onScroll&&$c("scroll",t),null!=r.onScrollEnd&&$c("scrollend",t),null!=r.onClick&&(t.onclick=Jc),t=!0):t=!1,t||da(e)}function pa(e){for(oa=e.return;oa;)switch(oa.tag){case 5:case 13:return void(ua=!1);case 27:case 3:return void(ua=!0);default:oa=oa.return}}function ha(e){if(e!==oa)return!1;if(!la)return pa(e),la=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||sd(e.type,e.memoizedProps)),t=!t),t&&ia&&da(e),pa(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){ia=vd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}ia=null}}else 27===n?(n=ia,md(e.type)?(e=wd,wd=null,ia=e):ia=n):ia=oa?vd(e.stateNode.nextSibling):null;return!0}function ma(){ia=oa=null,la=!1}function ga(){var e=sa;return null!==e&&(null===ku?ku=e:ku.push.apply(ku,e),sa=null),e}function ba(e){null===sa?sa=[e]:sa.push(e)}var ya=U(null),va=null,wa=null;function ka(e,t,n){W(ya,t._currentValue),t._currentValue=n}function Sa(e){e._currentValue=ya.current,H(ya)}function xa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t,n,a){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var l=o.child;i=i.firstContext;e:for(;null!==i;){var s=i;i=o;for(var u=0;u<t.length;u++)if(s.context===t[u]){i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),xa(i.return,n,e),a||(l=null);break e}i=s.next}}else if(18===o.tag){if(null===(l=o.return))throw Error(r(341));l.lanes|=n,null!==(i=l.alternate)&&(i.lanes|=n),xa(l,n,e),l=null}else l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===e){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}}function Ea(e,t,n,a){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(524288&o.flags)i=!0;else if(262144&o.flags)break;if(10===o.tag){var l=o.alternate;if(null===l)throw Error(r(387));if(null!==(l=l.memoizedProps)){var s=o.type;Xn(o.pendingProps.value,l.value)||(null!==e?e.push(s):e=[s])}}else if(o===K.current){if(null===(l=o.alternate))throw Error(r(387));l.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(Gd):e=[Gd])}o=o.return}null!==e&&Ca(t,e,n,a),t.flags|=262144}function _a(e){for(e=e.firstContext;null!==e;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){va=e,wa=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Pa(e){return Ra(va,e)}function Na(e,t){return null===va&&Ta(e),Ra(e,t)}function Ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===wa){if(null===e)throw Error(r(308));wa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wa=wa.next=t;return n}var za="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Oa=e.unstable_scheduleCallback,Aa=e.unstable_NormalPriority,La={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ia(){return{controller:new za,data:new Map,refCount:0}}function Da(e){e.refCount--,0===e.refCount&&Oa(Aa,function(){e.controller.abort()})}var Ma=null,ja=0,$a=0,Fa=null;function Ua(){if(0===--ja&&null!==Ma){null!==Fa&&(Fa.status="fulfilled");var e=Ma;Ma=null,$a=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ha=D.S;D.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Ma){var n=Ma=[];ja=0,$a=zc(),Fa={status:"pending",value:void 0,then:function(e){n.push(e)}}}ja++,t.then(Ua,Ua)}(0,t),null!==Ha&&Ha(e,t)};var Wa=U(null);function Ba(){var e=Wa.current;return null!==e?e:ou.pooledCache}function Va(e,t){W(Wa,null===t?Wa.current:t.pool)}function qa(){var e=Ba();return null===e?null:{parent:La._currentValue,pool:e}}var Ka=Error(r(460)),Qa=Error(r(474)),Ya=Error(r(542)),Ga={then:function(){}};function Xa(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Za(){}function Ja(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Za,Za),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw no(e=t.reason),e;default:if("string"==typeof t.status)t.then(Za,Za);else{if(null!==(e=ou)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw no(e=t.reason),e}throw eo=t,Ka}}var eo=null;function to(){if(null===eo)throw Error(r(459));var e=eo;return eo=null,e}function no(e){if(e===Ka||e===Ya)throw Error(r(483))}var ro=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function io(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function lo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&au){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Ir(e),Lr(e,null,n),t}return zr(e,r,t,n),Ir(e)}function so(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}function uo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var co=!1;function fo(){if(co&&null!==Fa)throw Fa}function po(e,t,n,r){co=!1;var a=e.updateQueue;ro=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?o=c:i.next=c,i=s;var d=e.alternate;null!==d&&(l=(d=d.updateQueue).lastBaseUpdate)!==i&&(null===l?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s)}if(null!==o){var f=a.baseState;for(i=0,d=c=s=null,l=o;;){var p=-536870913&l.lane,h=p!==l.lane;if(h?(lu&p)===p:(r&p)===p){0!==p&&p===$a&&(co=!0),null!==d&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,g=l;p=t;var b=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){f=m.call(b,f,p);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(b,f,p):m))break e;f=u({},f,p);break e;case 2:ro=!0}}null!==(p=l.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=a.callbacks)?a.callbacks=[p]:h.push(p))}else h={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===d?(c=d=h,s=f):d=d.next=h,i|=p;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(h=l).next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}null===d&&(s=f),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=d,null===o&&(a.shared.lanes=0),mu|=i,e.lanes=i,e.memoizedState=f}}function ho(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function mo(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)ho(n[e],t)}var go=U(null),bo=U(0);function yo(e,t){W(bo,e=pu),W(go,t),pu=e|t.baseLanes}function vo(){W(bo,pu),W(go,go.current)}function wo(){pu=bo.current,H(go),H(bo)}var ko=0,So=null,xo=null,Co=null,Eo=!1,_o=!1,To=!1,Po=0,No=0,Ro=null,zo=0;function Oo(){throw Error(r(321))}function Ao(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xn(e[n],t[n]))return!1;return!0}function Lo(e,t,n,r,a,o){return ko=o,So=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=null===e||null===e.memoizedState?Qi:Yi,To=!1,o=n(r,a),To=!1,_o&&(o=Do(t,n,r,a)),Io(e),o}function Io(e){D.H=Ki;var t=null!==xo&&null!==xo.next;if(ko=0,Co=xo=So=null,Eo=!1,No=0,Ro=null,t)throw Error(r(300));null===e||Nl||null!==(e=e.dependencies)&&_a(e)&&(Nl=!0)}function Do(e,t,n,a){So=e;var o=0;do{if(_o&&(Ro=null),No=0,_o=!1,25<=o)throw Error(r(301));if(o+=1,Co=xo=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}D.H=Gi,i=t(n,a)}while(_o);return i}function Mo(){var e=D.H,t=e.useState()[0];return t="function"==typeof t.then?Wo(t):t,e=e.useState()[0],(null!==xo?xo.memoizedState:null)!==e&&(So.flags|=1024),t}function jo(){var e=0!==Po;return Po=0,e}function $o(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fo(e){if(Eo){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Eo=!1}ko=0,Co=xo=So=null,_o=!1,No=Po=0,Ro=null}function Uo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Co?So.memoizedState=Co=e:Co=Co.next=e,Co}function Ho(){if(null===xo){var e=So.alternate;e=null!==e?e.memoizedState:null}else e=xo.next;var t=null===Co?So.memoizedState:Co.next;if(null!==t)Co=t,xo=e;else{if(null===e){if(null===So.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(xo=e).memoizedState,baseState:xo.baseState,baseQueue:xo.baseQueue,queue:xo.queue,next:null},null===Co?So.memoizedState=Co=e:Co=Co.next=e}return Co}function Wo(e){var t=No;return No+=1,null===Ro&&(Ro=[]),e=Ja(Ro,e,t),t=So,null===(null===Co?t.memoizedState:Co.next)&&(t=t.alternate,D.H=null===t||null===t.memoizedState?Qi:Yi),e}function Bo(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Wo(e);if(e.$$typeof===w)return Pa(e)}throw Error(r(438,String(e)))}function Vo(e){var t=null,n=So.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=So.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},So.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=R;return t.index++,n}function qo(e,t){return"function"==typeof t?t(e):t}function Ko(e){return Qo(Ho(),xo,e)}function Qo(e,t,n){var a=e.queue;if(null===a)throw Error(r(311));a.lastRenderedReducer=n;var o=e.baseQueue,i=a.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}t.baseQueue=o=i,a.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var s=l=null,u=null,c=t=o.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(lu&f)===f:(ko&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===$a&&(d=!0);else{if((ko&p)===p){c=c.next,p===$a&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=f,l=i):u=u.next=f,So.lanes|=p,mu|=p}f=c.action,To&&n(i,f),i=c.hasEagerState?c.eagerState:n(i,f)}else p={lane:f,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=p,l=i):u=u.next=p,So.lanes|=f,mu|=f;c=c.next}while(null!==c&&c!==t);if(null===u?l=i:u.next=s,!Xn(i,e.memoizedState)&&(Nl=!0,d&&null!==(n=Fa)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=u,a.lastRenderedState=i}return null===o&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Yo(e){var t=Ho(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);Xn(i,t.memoizedState)||(Nl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function Go(e,t,n){var a=So,o=Ho(),i=la;if(i){if(void 0===n)throw Error(r(407));n=n()}else n=t();var l=!Xn((xo||o).memoizedState,n);if(l&&(o.memoizedState=n,Nl=!0),o=o.queue,vi(2048,8,Jo.bind(null,a,o,e),[e]),o.getSnapshot!==t||l||null!==Co&&1&Co.memoizedState.tag){if(a.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Zo.bind(null,a,o,n,t),null),null===ou)throw Error(r(349));i||124&ko||Xo(a,t,n)}return n}function Xo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=So.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},So.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Zo(e,t,n,r){t.value=n,t.getSnapshot=r,ei(t)&&ti(e)}function Jo(e,t,n){return n(function(){ei(t)&&ti(e)})}function ei(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xn(e,n)}catch(e){return!0}}function ti(e){var t=Ar(e,2);null!==t&&ju(t,e,2)}function ni(e){var t=Uo();if("function"==typeof e){var n=e;if(e=n(),To){he(!0);try{n()}finally{he(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},t}function ri(e,t,n,r){return e.baseState=n,Qo(e,xo,"function"==typeof r?r:qo)}function ai(e,t,n,a,o){if(Bi(e))throw Error(r(485));if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==D.T?n(!0):i.isTransition=!1,a(i),null===(n=t.pending)?(i.next=t.pending=i,oi(t,i)):(i.next=n.next,t.pending=n.next=i)}}function oi(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=D.T,i={};D.T=i;try{var l=n(a,r),s=D.S;null!==s&&s(i,l),ii(e,t,l)}catch(n){si(e,t,n)}finally{D.T=o}}else try{ii(e,t,o=n(a,r))}catch(n){si(e,t,n)}}function ii(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){li(e,t,n)},function(n){return si(e,t,n)}):li(e,t,n)}function li(e,t,n){t.status="fulfilled",t.value=n,ui(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,oi(e,n)))}function si(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ui(t),t=t.next}while(t!==r)}e.action=null}function ui(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ci(e,t){return t}function di(e,t){if(la){var n=ou.formState;if(null!==n){e:{var r=So;if(la){if(ia){t:{for(var a=ia,o=ua;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=vd(a.nextSibling))){a=null;break t}}a="F!"===(o=a.data)||"F"===o?a:null}if(a){ia=vd(a.nextSibling),r="F!"===a.data;break e}}da(r)}r=!1}r&&(t=n[0])}}return(n=Uo()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:t},n.queue=r,n=Ui.bind(null,So,r),r.dispatch=n,r=ni(!1),o=Wi.bind(null,So,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=Uo()).queue=a,n=ai.bind(null,So,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function fi(e){return pi(Ho(),xo,e)}function pi(e,t,n){if(t=Qo(e,t,ci)[0],e=Ko(qo)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Wo(t)}catch(e){if(e===Ka)throw Ya;throw e}else r=t;var a=(t=Ho()).queue,o=a.dispatch;return n!==t.memoizedState&&(So.flags|=2048,gi(9,{destroy:void 0,resource:void 0},hi.bind(null,a,n),null)),[r,o,e]}function hi(e,t){e.action=t}function mi(e){var t=Ho(),n=xo;if(null!==n)return pi(t,n,e);Ho(),t=t.memoizedState;var r=(n=Ho()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function gi(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=So.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},So.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function bi(){return Ho().memoizedState}function yi(e,t,n,r){var a=Uo();r=void 0===r?null:r,So.flags|=e,a.memoizedState=gi(1|t,{destroy:void 0,resource:void 0},n,r)}function vi(e,t,n,r){var a=Ho();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==xo&&null!==r&&Ao(r,xo.memoizedState.deps)?a.memoizedState=gi(t,o,n,r):(So.flags|=e,a.memoizedState=gi(1|t,o,n,r))}function wi(e,t){yi(8390656,8,e,t)}function ki(e,t){vi(2048,8,e,t)}function Si(e,t){return vi(4,2,e,t)}function xi(e,t){return vi(4,4,e,t)}function Ci(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ei(e,t,n){n=null!=n?n.concat([e]):null,vi(4,4,Ci.bind(null,t,e),n)}function _i(){}function Ti(e,t){var n=Ho();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ao(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Pi(e,t){var n=Ho();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ao(t,r[1]))return r[0];if(r=e(),To){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r}function Ni(e,t,n){return void 0===n||1073741824&ko?e.memoizedState=t:(e.memoizedState=n,e=Mu(),So.lanes|=e,mu|=e,n)}function Ri(e,t,n,r){return Xn(n,t)?n:null!==go.current?(e=Ni(e,n,r),Xn(e,t)||(Nl=!0),e):42&ko?(e=Mu(),So.lanes|=e,mu|=e,t):(Nl=!0,e.memoizedState=n)}function zi(e,t,n,r,a){var o=M.p;M.p=0!==o&&8>o?o:8;var i,l,s,u=D.T,c={};D.T=c,Wi(e,!1,t,n);try{var d=a(),f=D.S;null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?Hi(e,t,(i=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){s.status="fulfilled",s.value=i;for(var e=0;e<l.length;e++)(0,l[e])(i)},function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),s),Du()):Hi(e,t,r,Du())}catch(n){Hi(e,t,{then:function(){},status:"rejected",reason:n},Du())}finally{M.p=o,D.T=u}}function Oi(){}function Ai(e,t,n,a){if(5!==e.tag)throw Error(r(476));var o=Li(e).queue;zi(e,o,t,j,null===n?Oi:function(){return Ii(e),n(a)})}function Li(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:j},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Ii(e){Hi(e,Li(e).next.queue,{},Du())}function Di(){return Pa(Gd)}function Mi(){return Ho().memoizedState}function ji(){return Ho().memoizedState}function $i(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Du(),r=lo(t,e=io(n),n);return null!==r&&(ju(r,t,n),so(r,t,n)),t={cache:Ia()},void(e.payload=t)}t=t.return}}function Fi(e,t,n){var r=Du();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Bi(e)?Vi(t,n):null!==(n=Or(e,t,n,r))&&(ju(n,e,r),qi(n,t,r))}function Ui(e,t,n){Hi(e,t,n,Du())}function Hi(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bi(e))Vi(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=o(i,n);if(a.hasEagerState=!0,a.eagerState=l,Xn(l,i))return zr(e,t,a,0),null===ou&&Rr(),!1}catch(e){}if(null!==(n=Or(e,t,a,r)))return ju(n,e,r),qi(n,t,r),!0}return!1}function Wi(e,t,n,a){if(a={lane:2,revertLane:zc(),action:a,hasEagerState:!1,eagerState:null,next:null},Bi(e)){if(t)throw Error(r(479))}else null!==(t=Or(e,n,a,2))&&ju(t,e,2)}function Bi(e){var t=e.alternate;return e===So||null!==t&&t===So}function Vi(e,t){_o=Eo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qi(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}var Ki={readContext:Pa,use:Bo,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useLayoutEffect:Oo,useInsertionEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useSyncExternalStore:Oo,useId:Oo,useHostTransitionStatus:Oo,useFormState:Oo,useActionState:Oo,useOptimistic:Oo,useMemoCache:Oo,useCacheRefresh:Oo},Qi={readContext:Pa,use:Bo,useCallback:function(e,t){return Uo().memoizedState=[e,void 0===t?null:t],e},useContext:Pa,useEffect:wi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,yi(4194308,4,Ci.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){yi(4,2,e,t)},useMemo:function(e,t){var n=Uo();t=void 0===t?null:t;var r=e();if(To){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Uo();if(void 0!==n){var a=n(t);if(To){he(!0);try{n(t)}finally{he(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=Fi.bind(null,So,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Uo().memoizedState=e},useState:function(e){var t=(e=ni(e)).queue,n=Ui.bind(null,So,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_i,useDeferredValue:function(e,t){return Ni(Uo(),e,t)},useTransition:function(){var e=ni(!1);return e=zi.bind(null,So,e.queue,!0,!1),Uo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=So,o=Uo();if(la){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===ou)throw Error(r(349));124&lu||Xo(a,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,wi(Jo.bind(null,a,i,e),[e]),a.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Zo.bind(null,a,i,n,t),null),n},useId:function(){var e=Uo(),t=ou.identifierPrefix;if(la){var n=ea;t="«"+t+"R"+(n=(Jr&~(1<<32-me(Jr)-1)).toString(32)+n),0<(n=Po++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=zo++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Di,useFormState:di,useActionState:di,useOptimistic:function(e){var t=Uo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Wi.bind(null,So,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vo,useCacheRefresh:function(){return Uo().memoizedState=$i.bind(null,So)}},Yi={readContext:Pa,use:Bo,useCallback:Ti,useContext:Pa,useEffect:ki,useImperativeHandle:Ei,useInsertionEffect:Si,useLayoutEffect:xi,useMemo:Pi,useReducer:Ko,useRef:bi,useState:function(){return Ko(qo)},useDebugValue:_i,useDeferredValue:function(e,t){return Ri(Ho(),xo.memoizedState,e,t)},useTransition:function(){var e=Ko(qo)[0],t=Ho().memoizedState;return["boolean"==typeof e?e:Wo(e),t]},useSyncExternalStore:Go,useId:Mi,useHostTransitionStatus:Di,useFormState:fi,useActionState:fi,useOptimistic:function(e,t){return ri(Ho(),0,e,t)},useMemoCache:Vo,useCacheRefresh:ji},Gi={readContext:Pa,use:Bo,useCallback:Ti,useContext:Pa,useEffect:ki,useImperativeHandle:Ei,useInsertionEffect:Si,useLayoutEffect:xi,useMemo:Pi,useReducer:Yo,useRef:bi,useState:function(){return Yo(qo)},useDebugValue:_i,useDeferredValue:function(e,t){var n=Ho();return null===xo?Ni(n,e,t):Ri(n,xo.memoizedState,e,t)},useTransition:function(){var e=Yo(qo)[0],t=Ho().memoizedState;return["boolean"==typeof e?e:Wo(e),t]},useSyncExternalStore:Go,useId:Mi,useHostTransitionStatus:Di,useFormState:mi,useActionState:mi,useOptimistic:function(e,t){var n=Ho();return null!==xo?ri(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vo,useCacheRefresh:ji},Xi=null,Zi=0;function Ji(e){var t=Zi;return Zi+=1,null===Xi&&(Xi=[]),Ja(Xi,e,t)}function el(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function tl(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nl(e){return(0,e._init)(e._payload)}function rl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Br(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===h?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===_&&nl(a)===t.type)?(el(t=o(t,n.props),n),t.return=e,t):(el(t=Hr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Wr(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function m(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Br(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return el(n=Hr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case p:return(t=Vr(t,e.mode,n)).return=e,t;case _:return m(e,t=(0,t._init)(t._payload),n)}if(I(t)||O(t))return(t=Wr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return m(e,Ji(t),n);if(t.$$typeof===w)return m(e,Na(e,t),n);tl(e,t)}return null}function g(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===a?u(e,t,n,r):null;case p:return n.key===a?c(e,t,n,r):null;case _:return g(e,t,n=(a=n._init)(n._payload),r)}if(I(n)||O(n))return null!==a?null:d(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,Ji(n),r);if(n.$$typeof===w)return g(e,t,Na(e,n),r);tl(e,n)}return null}function b(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case p:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case _:return b(e,t,n,r=(0,r._init)(r._payload),a)}if(I(r)||O(r))return d(t,e=e.get(n)||null,r,a,null);if("function"==typeof r.then)return b(e,t,n,Ji(r),a);if(r.$$typeof===w)return b(e,t,n,Na(t,r),a);tl(t,r)}return null}function y(s,u,c,d){if("object"==typeof c&&null!==c&&c.type===h&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case f:e:{for(var v=c.key;null!==u;){if(u.key===v){if((v=c.type)===h){if(7===u.tag){n(s,u.sibling),(d=o(u,c.props.children)).return=s,s=d;break e}}else if(u.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===_&&nl(v)===u.type){n(s,u.sibling),el(d=o(u,c.props),c),d.return=s,s=d;break e}n(s,u);break}t(s,u),u=u.sibling}c.type===h?((d=Wr(c.props.children,s.mode,d,c.key)).return=s,s=d):(el(d=Hr(c.type,c.key,c.props,null,s.mode,d),c),d.return=s,s=d)}return l(s);case p:e:{for(v=c.key;null!==u;){if(u.key===v){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(s,u.sibling),(d=o(u,c.children||[])).return=s,s=d;break e}n(s,u);break}t(s,u),u=u.sibling}(d=Vr(c,s.mode,d)).return=s,s=d}return l(s);case _:return y(s,u,c=(v=c._init)(c._payload),d)}if(I(c))return function(r,o,l,s){for(var u=null,c=null,d=o,f=o=0,p=null;null!==d&&f<l.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var h=g(r,d,l[f],s);if(null===h){null===d&&(d=p);break}e&&d&&null===h.alternate&&t(r,d),o=i(h,o,f),null===c?u=h:c.sibling=h,c=h,d=p}if(f===l.length)return n(r,d),la&&ta(r,f),u;if(null===d){for(;f<l.length;f++)null!==(d=m(r,l[f],s))&&(o=i(d,o,f),null===c?u=d:c.sibling=d,c=d);return la&&ta(r,f),u}for(d=a(d);f<l.length;f++)null!==(p=b(d,r,f,l[f],s))&&(e&&null!==p.alternate&&d.delete(null===p.key?f:p.key),o=i(p,o,f),null===c?u=p:c.sibling=p,c=p);return e&&d.forEach(function(e){return t(r,e)}),la&&ta(r,f),u}(s,u,c,d);if(O(c)){if("function"!=typeof(v=O(c)))throw Error(r(150));return function(o,l,s,u){if(null==s)throw Error(r(151));for(var c=null,d=null,f=l,p=l=0,h=null,y=s.next();null!==f&&!y.done;p++,y=s.next()){f.index>p?(h=f,f=null):h=f.sibling;var v=g(o,f,y.value,u);if(null===v){null===f&&(f=h);break}e&&f&&null===v.alternate&&t(o,f),l=i(v,l,p),null===d?c=v:d.sibling=v,d=v,f=h}if(y.done)return n(o,f),la&&ta(o,p),c;if(null===f){for(;!y.done;p++,y=s.next())null!==(y=m(o,y.value,u))&&(l=i(y,l,p),null===d?c=y:d.sibling=y,d=y);return la&&ta(o,p),c}for(f=a(f);!y.done;p++,y=s.next())null!==(y=b(f,o,p,y.value,u))&&(e&&null!==y.alternate&&f.delete(null===y.key?p:y.key),l=i(y,l,p),null===d?c=y:d.sibling=y,d=y);return e&&f.forEach(function(e){return t(o,e)}),la&&ta(o,p),c}(s,u,c=v.call(c),d)}if("function"==typeof c.then)return y(s,u,Ji(c),d);if(c.$$typeof===w)return y(s,u,Na(s,c),d);tl(s,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(s,u.sibling),(d=o(u,c)).return=s,s=d):(n(s,u),(d=Br(c,s.mode,d)).return=s,s=d),l(s)):n(s,u)}return function(e,t,n,r){try{Zi=0;var a=y(e,t,n,r);return Xi=null,a}catch(t){if(t===Ka||t===Ya)throw t;var o=jr(29,t,null,e.mode);return o.lanes=r,o.return=e,o}}}var al=rl(!0),ol=rl(!1),il=U(null),ll=null;function sl(e){var t=e.alternate;W(fl,1&fl.current),W(il,e),null===ll&&(null===t||null!==go.current||null!==t.memoizedState)&&(ll=e)}function ul(e){if(22===e.tag){if(W(fl,fl.current),W(il,e),null===ll){var t=e.alternate;null!==t&&null!==t.memoizedState&&(ll=e)}}else cl()}function cl(){W(fl,fl.current),W(il,il.current)}function dl(e){H(il),ll===e&&(ll=null),H(fl)}var fl=U(0);function pl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||yd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function hl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ml={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Du(),a=io(r);a.payload=t,null!=n&&(a.callback=n),null!==(t=lo(e,a,r))&&(ju(t,e,r),so(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Du(),a=io(r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=lo(e,a,r))&&(ju(t,e,r),so(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Du(),r=io(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=lo(e,r,n))&&(ju(t,e,n),so(t,e,n))}};function gl(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!(t.prototype&&t.prototype.isPureReactComponent&&Zn(n,r)&&Zn(a,o))}function bl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ml.enqueueReplaceState(t,t.state,null)}function yl(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=u({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}var vl="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function wl(e){vl(e)}function kl(e){console.error(e)}function Sl(e){vl(e)}function xl(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Cl(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function El(e,t,n){return(n=io(n)).tag=3,n.payload={element:null},n.callback=function(){xl(e,t)},n}function _l(e){return(e=io(e)).tag=3,e}function Tl(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){Cl(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){Cl(t,n,r),"function"!=typeof a&&(null===_u?_u=new Set([this]):_u.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Pl=Error(r(461)),Nl=!1;function Rl(e,t,n,r){t.child=null===e?ol(t,null,n,r):al(t,e.child,n,r)}function zl(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var i={};for(var l in r)"ref"!==l&&(i[l]=r[l])}else i=r;return Ta(t),r=Lo(e,t,n,i,o,a),l=jo(),null===e||Nl?(la&&l&&ra(t),t.flags|=1,Rl(e,t,r,a),t.child):($o(e,t,a),Xl(e,t,a))}function Ol(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||$r(o)||void 0!==o.defaultProps||null!==n.compare?((e=Hr(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Al(e,t,o,r,a))}if(o=e.child,!Zl(e,a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(i,r)&&e.ref===t.ref)return Xl(e,t,a)}return t.flags|=1,(e=Fr(o,r)).ref=t.ref,e.return=t,t.child=e}function Al(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Zn(o,r)&&e.ref===t.ref){if(Nl=!1,t.pendingProps=r=o,!Zl(e,a))return t.lanes=e.lanes,Xl(e,t,a);131072&e.flags&&(Nl=!0)}}return Ml(e,t,n,r,a)}function Ll(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==o?o.baseLanes|n:n,null!==e){for(a=t.child=e.child,o=0;null!==a;)o=o|a.lanes|a.childLanes,a=a.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Il(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Il(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Va(0,null!==o?o.cachePool:null),null!==o?yo(t,o):vo(),ul(t)}else null!==o?(Va(0,o.cachePool),yo(t,o),cl(),t.memoizedState=null):(null!==e&&Va(0,null),vo(),cl());return Rl(e,t,a,n),t.child}function Il(e,t,n,r){var a=Ba();return a=null===a?null:{parent:La._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Va(0,null),vo(),ul(t),null!==e&&Ea(e,t,r,!0),null}function Dl(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ml(e,t,n,r,a){return Ta(t),n=Lo(e,t,n,r,void 0,a),r=jo(),null===e||Nl?(la&&r&&ra(t),t.flags|=1,Rl(e,t,n,a),t.child):($o(e,t,a),Xl(e,t,a))}function jl(e,t,n,r,a,o){return Ta(t),t.updateQueue=null,n=Do(t,r,n,a),Io(e),r=jo(),null===e||Nl?(la&&r&&ra(t),t.flags|=1,Rl(e,t,n,o),t.child):($o(e,t,o),Xl(e,t,o))}function $l(e,t,n,r,a){if(Ta(t),null===t.stateNode){var o=Dr,i=n.contextType;"object"==typeof i&&null!==i&&(o=Pa(i)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=ml,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},ao(t),i=n.contextType,o.context="object"==typeof i&&null!==i?Pa(i):Dr,o.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(hl(t,n,i,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(i=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),i!==o.state&&ml.enqueueReplaceState(o,o.state,null),po(t,r,o,a),fo(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var l=t.memoizedProps,s=yl(n,l);o.props=s;var u=o.context,c=n.contextType;i=Dr,"object"==typeof c&&null!==c&&(i=Pa(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,l=t.pendingProps!==l,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l||u!==i)&&bl(t,o,r,i),ro=!1;var f=t.memoizedState;o.state=f,po(t,r,o,a),fo(),u=t.memoizedState,l||f!==u||ro?("function"==typeof d&&(hl(t,n,d,r),u=t.memoizedState),(s=ro||gl(t,n,s,r,f,u,i))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=i,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,oo(e,t),c=yl(n,i=t.memoizedProps),o.props=c,d=t.pendingProps,f=o.context,u=n.contextType,s=Dr,"object"==typeof u&&null!==u&&(s=Pa(u)),(u="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==d||f!==s)&&bl(t,o,r,s),ro=!1,f=t.memoizedState,o.state=f,po(t,r,o,a),fo();var p=t.memoizedState;i!==d||f!==p||ro||null!==e&&null!==e.dependencies&&_a(e.dependencies)?("function"==typeof l&&(hl(t,n,l,r),p=t.memoizedState),(c=ro||gl(t,n,c,r,f,p,s)||null!==e&&null!==e.dependencies&&_a(e.dependencies))?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=c):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Dl(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=al(t,e.child,null,a),t.child=al(t,null,n,a)):Rl(e,t,n,a),t.memoizedState=o.state,e=t.child):e=Xl(e,t,a),e}function Fl(e,t,n,r){return ma(),t.flags|=256,Rl(e,t,n,r),t.child}var Ul={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hl(e){return{baseLanes:e,cachePool:qa()}}function Wl(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=yu),e}function Bl(e,t,n){var a,o=t.pendingProps,i=!1,l=!!(128&t.flags);if((a=l)||(a=(null===e||null!==e.memoizedState)&&!!(2&fl.current)),a&&(i=!0,t.flags&=-129),a=!!(32&t.flags),t.flags&=-33,null===e){if(la){if(i?sl(t):cl(),la){var s,u=ia;if(s=u){e:{for(s=u,u=ua;8!==s.nodeType;){if(!u){u=null;break e}if(null===(s=vd(s.nextSibling))){u=null;break e}}u=s}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==Zr?{id:Jr,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},(s=jr(18,null,null,0)).stateNode=u,s.return=t,t.child=s,oa=t,ia=null,s=!0):s=!1}s||da(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return yd(u)?t.lanes=32:t.lanes=536870912,null;dl(t)}return u=o.children,o=o.fallback,i?(cl(),u=ql({mode:"hidden",children:u},i=t.mode),o=Wr(o,i,n,null),u.return=t,o.return=t,u.sibling=o,t.child=u,(i=t.child).memoizedState=Hl(n),i.childLanes=Wl(e,a,n),t.memoizedState=Ul,o):(sl(t),Vl(t,u))}if(null!==(s=e.memoizedState)&&null!==(u=s.dehydrated)){if(l)256&t.flags?(sl(t),t.flags&=-257,t=Kl(e,t,n)):null!==t.memoizedState?(cl(),t.child=e.child,t.flags|=128,t=null):(cl(),i=o.fallback,u=t.mode,o=ql({mode:"visible",children:o.children},u),(i=Wr(i,u,n,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,al(t,e.child,null,n),(o=t.child).memoizedState=Hl(n),o.childLanes=Wl(e,a,n),t.memoizedState=Ul,t=i);else if(sl(t),yd(u)){if(a=u.nextSibling&&u.nextSibling.dataset)var c=a.dgst;a=c,(o=Error(r(419))).stack="",o.digest=a,ba({value:o,source:null,stack:null}),t=Kl(e,t,n)}else if(Nl||Ea(e,t,n,!1),a=0!==(n&e.childLanes),Nl||a){if(null!==(a=ou)&&0!==(o=0!==((o=42&(o=n&-n)?1:Re(o))&(a.suspendedLanes|n))?0:o)&&o!==s.retryLane)throw s.retryLane=o,Ar(e,o),ju(a,e,o),Pl;"$?"===u.data||Yu(),t=Kl(e,t,n)}else"$?"===u.data?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,ia=vd(u.nextSibling),oa=t,la=!0,sa=null,ua=!1,null!==e&&(Gr[Xr++]=Jr,Gr[Xr++]=ea,Gr[Xr++]=Zr,Jr=e.id,ea=e.overflow,Zr=t),(t=Vl(t,o.children)).flags|=4096);return t}return i?(cl(),i=o.fallback,u=t.mode,c=(s=e.child).sibling,(o=Fr(s,{mode:"hidden",children:o.children})).subtreeFlags=65011712&s.subtreeFlags,null!==c?i=Fr(c,i):(i=Wr(i,u,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,null===(u=e.child.memoizedState)?u=Hl(n):(null!==(s=u.cachePool)?(c=La._currentValue,s=s.parent!==c?{parent:c,pool:c}:s):s=qa(),u={baseLanes:u.baseLanes|n,cachePool:s}),i.memoizedState=u,i.childLanes=Wl(e,a,n),t.memoizedState=Ul,o):(sl(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(a=t.deletions)?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Vl(e,t){return(t=ql({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ql(e,t){return(e=jr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Kl(e,t,n){return al(t,e.child,null,n),(e=Vl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ql(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xa(e.return,t,n)}function Yl(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Gl(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Rl(e,t,r.children,n),2&(r=fl.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ql(e,n,t);else if(19===e.tag)Ql(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(W(fl,r),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===pl(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Yl(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===pl(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Yl(t,!0,n,null,o);break;case"together":Yl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),mu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ea(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Fr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!_a(e))}function Jl(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Nl=!0;else{if(!(Zl(e,n)||128&t.flags))return Nl=!1,function(e,t,n){switch(t.tag){case 3:Q(t,t.stateNode.containerInfo),ka(0,La,e.memoizedState.cache),ma();break;case 27:case 5:G(t);break;case 4:Q(t,t.stateNode.containerInfo);break;case 10:ka(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(sl(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Bl(e,t,n):(sl(t),null!==(e=Xl(e,t,n))?e.sibling:null);sl(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ea(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return Gl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),W(fl,fl.current),r)break;return null;case 22:case 23:return t.lanes=0,Ll(e,t,n);case 24:ka(0,La,e.memoizedState.cache)}return Xl(e,t,n)}(e,t,n);Nl=!!(131072&e.flags)}else Nl=!1,la&&1048576&t.flags&&na(t,Yr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,o=a._init;if(a=o(a._payload),t.type=a,"function"!=typeof a){if(null!=a){if((o=a.$$typeof)===S){t.tag=11,t=zl(null,t,a,e,n);break e}if(o===E){t.tag=14,t=Ol(null,t,a,e,n);break e}}throw t=L(a)||a,Error(r(306,t,""))}$r(a)?(e=yl(a,e),t.tag=1,t=$l(null,t,a,e,n)):(t.tag=0,t=Ml(null,t,a,e,n))}return t;case 0:return Ml(e,t,t.type,t.pendingProps,n);case 1:return $l(e,t,a=t.type,o=yl(a,t.pendingProps),n);case 3:e:{if(Q(t,t.stateNode.containerInfo),null===e)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;o=i.element,oo(e,t),po(t,a,null,n);var l=t.memoizedState;if(a=l.cache,ka(0,La,a),a!==i.cache&&Ca(t,[La],n,!0),fo(),a=l.element,i.isDehydrated){if(i={element:a,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Fl(e,t,a,n);break e}if(a!==o){ba(o=_r(Error(r(424)),t)),t=Fl(e,t,a,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ia=vd(e.firstChild),oa=t,la=!0,sa=null,ua=!0,n=ol(t,null,a,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ma(),a===o){t=Xl(e,t,n);break e}Rl(e,t,a,n)}t=t.child}return t;case 26:return Dl(e,t),null===e?(n=Rd(t.type,null,t.pendingProps,null))?t.memoizedState=n:la||(n=t.type,e=t.pendingProps,(a=od(q.current).createElement(n))[Le]=t,a[Ie]=e,nd(a,n,e),Ke(a),t.stateNode=a):t.memoizedState=Rd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),null===e&&la&&(a=t.stateNode=Sd(t.type,t.pendingProps,q.current),oa=t,ua=!0,o=ia,md(t.type)?(wd=o,ia=vd(a.firstChild)):ia=o),Rl(e,t,t.pendingProps.children,n),Dl(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&la&&((o=a=ia)&&(null!==(a=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ue])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=vd(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,ua))?(t.stateNode=a,oa=t,ia=vd(a.firstChild),ua=!1,o=!0):o=!1),o||da(t)),G(t),o=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,a=i.children,sd(o,i)?a=null:null!==l&&sd(o,l)&&(t.flags|=32),null!==t.memoizedState&&(o=Lo(e,t,Mo,null,null,n),Gd._currentValue=o),Dl(e,t),Rl(e,t,a,n),t.child;case 6:return null===e&&la&&((e=n=ia)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=vd(e.nextSibling)))return null}return e}(n,t.pendingProps,ua))?(t.stateNode=n,oa=t,ia=null,e=!0):e=!1),e||da(t)),null;case 13:return Bl(e,t,n);case 4:return Q(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=al(t,null,a,n):Rl(e,t,a,n),t.child;case 11:return zl(e,t,t.type,t.pendingProps,n);case 7:return Rl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Rl(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,ka(0,t.type,a.value),Rl(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Ta(t),a=a(o=Pa(o)),t.flags|=1,Rl(e,t,a,n),t.child;case 14:return Ol(e,t,t.type,t.pendingProps,n);case 15:return Al(e,t,t.type,t.pendingProps,n);case 19:return Gl(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},null===e?((n=ql(a,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Fr(e.child,a)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Ll(e,t,n);case 24:return Ta(t),a=Pa(La),null===e?(null===(o=Ba())&&(o=ou,i=Ia(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:a,cache:o},ao(t),ka(0,La,o)):(0!==(e.lanes&n)&&(oo(e,t),po(t,null,null,n),fo()),o=e.memoizedState,i=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),ka(0,La,a)):(a=i.cache,ka(0,La,a),a!==o.cache&&Ca(t,[La],n,!0))),Rl(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function es(e){e.flags|=4}function ts(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Wd(t)){if(null!==(t=il.current)&&((4194048&lu)===lu?null!==ll:(62914560&lu)!==lu&&!(536870912&lu)||t!==ll))throw eo=Ga,Qa;e.flags|=8192}}function ns(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ee():536870912,e.lanes|=t,vu|=t)}function rs(e,t){if(!la)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function as(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function os(e,t,n){var a=t.pendingProps;switch(aa(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return as(t),null;case 3:return n=t.stateNode,a=null,null!==e&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Sa(La),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ha(t)?es(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ga())),as(t),null;case 26:return n=t.memoizedState,null===e?(es(t),null!==n?(as(t),ts(t,n)):(as(t),t.flags&=-16777217)):n?n!==e.memoizedState?(es(t),as(t),ts(t,n)):(as(t),t.flags&=-16777217):(e.memoizedProps!==a&&es(t),as(t),t.flags&=-16777217),null;case 27:X(t),n=q.current;var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==a&&es(t);else{if(!a){if(null===t.stateNode)throw Error(r(166));return as(t),null}e=B.current,ha(t)?fa(t):(e=Sd(o,a,n),t.stateNode=e,es(t))}return as(t),null;case 5:if(X(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&es(t);else{if(!a){if(null===t.stateNode)throw Error(r(166));return as(t),null}if(e=B.current,ha(t))fa(t);else{switch(o=od(q.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof a.is?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e="string"==typeof a.is?o.createElement(n,{is:a.is}):o.createElement(n)}}e[Le]=t,e[Ie]=a;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(nd(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&es(t)}}return as(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==a&&es(t);else{if("string"!=typeof a&&null===t.stateNode)throw Error(r(166));if(e=q.current,ha(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,null!==(o=oa))switch(o.tag){case 27:case 5:a=o.memoizedProps}e[Le]=t,(e=!!(e.nodeValue===n||null!==a&&!0===a.suppressHydrationWarning||Zc(e.nodeValue,n)))||da(t)}else(e=od(e).createTextNode(a))[Le]=t,t.stateNode=e}return as(t),null;case 13:if(a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=ha(t),null!==a&&null!==a.dehydrated){if(null===e){if(!o)throw Error(r(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(r(317));o[Le]=t}else ma(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;as(t),o=!1}else o=ga(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(dl(t),t):(dl(t),null)}if(dl(t),128&t.flags)return t.lanes=n,t;if(n=null!==a,e=null!==e&&null!==e.memoizedState,n){o=null,null!==(a=t.child).alternate&&null!==a.alternate.memoizedState&&null!==a.alternate.memoizedState.cachePool&&(o=a.alternate.memoizedState.cachePool.pool);var i=null;null!==a.memoizedState&&null!==a.memoizedState.cachePool&&(i=a.memoizedState.cachePool.pool),i!==o&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ns(t,t.updateQueue),as(t),null;case 4:return Y(),null===e&&Hc(t.stateNode.containerInfo),as(t),null;case 10:return Sa(t.type),as(t),null;case 19:if(H(fl),null===(o=t.memoizedState))return as(t),null;if(a=!!(128&t.flags),null===(i=o.rendering))if(a)rs(o,!1);else{if(0!==hu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=pl(e))){for(t.flags|=128,rs(o,!1),e=i.updateQueue,t.updateQueue=e,ns(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Ur(n,e),n=n.sibling;return W(fl,1&fl.current|2),t.child}e=e.sibling}null!==o.tail&&re()>Cu&&(t.flags|=128,a=!0,rs(o,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=pl(i))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ns(t,e),rs(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!la)return as(t),null}else 2*re()-o.renderingStartTime>Cu&&536870912!==n&&(t.flags|=128,a=!0,rs(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=o.last)?e.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=re(),t.sibling=null,e=fl.current,W(fl,a?1&e|2:1&e),t):(as(t),null);case 22:case 23:return dl(t),wo(),a=null!==t.memoizedState,null!==e?null!==e.memoizedState!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?!!(536870912&n)&&!(128&t.flags)&&(as(t),6&t.subtreeFlags&&(t.flags|=8192)):as(t),null!==(n=t.updateQueue)&&ns(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),a=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),null!==e&&H(Wa),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sa(La),as(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function is(e,t){switch(aa(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Sa(La),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 13:if(dl(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return H(fl),null;case 4:return Y(),null;case 10:return Sa(t.type),null;case 22:case 23:return dl(t),wo(),null!==e&&H(Wa),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Sa(La),null;default:return null}}function ls(e,t){switch(aa(t),t.tag){case 3:Sa(La),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 13:dl(t);break;case 19:H(fl);break;case 10:Sa(t.type);break;case 22:case 23:dl(t),wo(),null!==e&&H(Wa);break;case 24:Sa(La)}}function ss(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var o=n.create,i=n.inst;r=o(),i.destroy=r}n=n.next}while(n!==a)}}catch(e){fc(t,t.return,e)}}function us(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var i=r.inst,l=i.destroy;if(void 0!==l){i.destroy=void 0,a=t;var s=n,u=l;try{u()}catch(e){fc(a,s,e)}}}r=r.next}while(r!==o)}}catch(e){fc(t,t.return,e)}}function cs(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{mo(t,n)}catch(t){fc(e,e.return,t)}}}function ds(e,t,n){n.props=yl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){fc(e,t,n)}}function fs(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){fc(e,t,n)}}function ps(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){fc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){fc(e,t,n)}else n.current=null}function hs(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){fc(e,e.return,t)}}function ms(e,t,n){try{var a=e.stateNode;!function(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,l=null,s=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:a.hasOwnProperty(h)||ed(e,t,h,null,a,f)}}for(var p in a){var h=a[p];if(f=n[p],a.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":o=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":l=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&ed(e,t,p,h,a,f)}}return void yt(e,l,s,u,c,d,i,o);case"select":for(i in h=l=s=p=null,n)if(u=n[i],n.hasOwnProperty(i)&&null!=u)switch(i){case"value":break;case"multiple":h=u;default:a.hasOwnProperty(i)||ed(e,t,i,null,a,u)}for(o in a)if(i=a[o],u=n[o],a.hasOwnProperty(o)&&(null!=i||null!=u))switch(o){case"value":p=i;break;case"defaultValue":s=i;break;case"multiple":l=i;default:i!==u&&ed(e,t,o,i,a,u)}return t=s,n=l,a=h,void(null!=p?kt(e,!!n,p,!1):!!a!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(s in h=p=null,n)if(o=n[s],n.hasOwnProperty(s)&&null!=o&&!a.hasOwnProperty(s))switch(s){case"value":case"children":break;default:ed(e,t,s,null,a,o)}for(l in a)if(o=a[l],i=n[l],a.hasOwnProperty(l)&&(null!=o||null!=i))switch(l){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(r(91));break;default:o!==i&&ed(e,t,l,o,a,i)}return void St(e,p,h);case"option":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!a.hasOwnProperty(m)&&("selected"===m?e.selected=!1:ed(e,t,m,null,a,p));for(u in a)p=a[u],h=n[u],!a.hasOwnProperty(u)||p===h||null==p&&null==h||("selected"===u?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:ed(e,t,u,p,a,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!a.hasOwnProperty(g)&&ed(e,t,g,null,a,p);for(c in a)if(p=a[c],h=n[c],a.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:ed(e,t,c,p,a,h)}return;default:if(Pt(t)){for(var b in n)p=n[b],n.hasOwnProperty(b)&&void 0!==p&&!a.hasOwnProperty(b)&&td(e,t,b,void 0,a,p);for(d in a)p=a[d],h=n[d],!a.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||td(e,t,d,p,a,h);return}}for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!a.hasOwnProperty(y)&&ed(e,t,y,null,a,p);for(f in a)p=a[f],h=n[f],!a.hasOwnProperty(f)||p===h||null==p&&null==h||ed(e,t,f,p,a,h)}(a,e.type,n,t),a[Ie]=t}catch(t){fc(e,e.return,t)}}function gs(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&md(e.type)||4===e.tag}function bs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||gs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&md(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ys(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jc));else if(4!==r&&(27===r&&md(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function vs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&md(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function ws(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);nd(t,r,n),t[Le]=e,t[Ie]=n}catch(t){fc(e,e.return,t)}}var ks=!1,Ss=!1,xs=!1,Cs="function"==typeof WeakSet?WeakSet:Set,Es=null;function _s(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:$s(e,n),4&r&&ss(5,n);break;case 1:if($s(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){fc(n,n.return,e)}else{var a=yl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){fc(n,n.return,e)}}64&r&&cs(n),512&r&&fs(n,n.return);break;case 3:if($s(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{mo(e,t)}catch(e){fc(n,n.return,e)}}break;case 27:null===t&&4&r&&ws(n);case 26:case 5:$s(e,n),null===t&&4&r&&hs(n),512&r&&fs(n,n.return);break;case 12:$s(e,n);break;case 13:$s(e,n),4&r&&Os(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=gc.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||ks)){t=null!==t&&null!==t.memoizedState||Ss,a=ks;var o=Ss;ks=r,(Ss=t)&&!o?Us(e,n,!!(8772&n.subtreeFlags)):$s(e,n),ks=a,Ss=o}break;case 30:break;default:$s(e,n)}}function Ts(e){var t=e.alternate;null!==t&&(e.alternate=null,Ts(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&He(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ps=null,Ns=!1;function Rs(e,t,n){for(n=n.child;null!==n;)zs(e,t,n),n=n.sibling}function zs(e,t,n){if(pe&&"function"==typeof pe.onCommitFiberUnmount)try{pe.onCommitFiberUnmount(fe,n)}catch(e){}switch(n.tag){case 26:Ss||ps(n,t),Rs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ss||ps(n,t);var r=Ps,a=Ns;md(n.type)&&(Ps=n.stateNode,Ns=!1),Rs(e,t,n),xd(n.stateNode),Ps=r,Ns=a;break;case 5:Ss||ps(n,t);case 6:if(r=Ps,a=Ns,Ps=null,Rs(e,t,n),Ns=a,null!==(Ps=r))if(Ns)try{(9===Ps.nodeType?Ps.body:"HTML"===Ps.nodeName?Ps.ownerDocument.body:Ps).removeChild(n.stateNode)}catch(e){fc(n,t,e)}else try{Ps.removeChild(n.stateNode)}catch(e){fc(n,t,e)}break;case 18:null!==Ps&&(Ns?(gd(9===(e=Ps).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Rf(e)):gd(Ps,n.stateNode));break;case 4:r=Ps,a=Ns,Ps=n.stateNode.containerInfo,Ns=!0,Rs(e,t,n),Ps=r,Ns=a;break;case 0:case 11:case 14:case 15:Ss||us(2,n,t),Ss||us(4,n,t),Rs(e,t,n);break;case 1:Ss||(ps(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ds(n,t,r)),Rs(e,t,n);break;case 21:Rs(e,t,n);break;case 22:Ss=(r=Ss)||null!==n.memoizedState,Rs(e,t,n),Ss=r;break;default:Rs(e,t,n)}}function Os(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Rf(e)}catch(e){fc(t,t.return,e)}}function As(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Cs),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Cs),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){var r=bc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function Ls(e,t){var n=t.deletions;if(null!==n)for(var a=0;a<n.length;a++){var o=n[a],i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 27:if(md(s.type)){Ps=s.stateNode,Ns=!1;break e}break;case 5:Ps=s.stateNode,Ns=!1;break e;case 3:case 4:Ps=s.stateNode.containerInfo,Ns=!0;break e}s=s.return}if(null===Ps)throw Error(r(160));zs(i,l,o),Ps=null,Ns=!1,null!==(i=o.alternate)&&(i.return=null),o.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ds(t,e),t=t.sibling}var Is=null;function Ds(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ls(t,e),Ms(e),4&a&&(us(3,e,e.return),ss(3,e),us(5,e,e.return));break;case 1:Ls(t,e),Ms(e),512&a&&(Ss||null===n||ps(n,n.return)),64&a&&ks&&null!==(e=e.updateQueue)&&null!==(a=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?a:n.concat(a));break;case 26:var o=Is;if(Ls(t,e),Ms(e),512&a&&(Ss||null===n||ps(n,n.return)),4&a){var i=null!==n?n.memoizedState:null;if(a=e.memoizedState,null===n)if(null===a)if(null===e.stateNode){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":(!(i=o.getElementsByTagName("title")[0])||i[Ue]||i[Le]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(a),o.head.insertBefore(i,o.querySelector("head > title"))),nd(i,a,n),i[Le]=e,Ke(i),a=i;break e;case"link":var l=Ud("link","href",o).get(a+(n.href||""));if(l)for(var s=0;s<l.length;s++)if((i=l[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){l.splice(s,1);break t}nd(i=o.createElement(a),a,n),o.head.appendChild(i);break;case"meta":if(l=Ud("meta","content",o).get(a+(n.content||"")))for(s=0;s<l.length;s++)if((i=l[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){l.splice(s,1);break t}nd(i=o.createElement(a),a,n),o.head.appendChild(i);break;default:throw Error(r(468,a))}i[Le]=e,Ke(i),a=i}e.stateNode=a}else Hd(o,e.type,e.stateNode);else e.stateNode=Dd(o,a,e.memoizedProps);else i!==a?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===a?Hd(o,e.type,e.stateNode):Dd(o,a,e.memoizedProps)):null===a&&null!==e.stateNode&&ms(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ls(t,e),Ms(e),512&a&&(Ss||null===n||ps(n,n.return)),null!==n&&4&a&&ms(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ls(t,e),Ms(e),512&a&&(Ss||null===n||ps(n,n.return)),32&e.flags){o=e.stateNode;try{Ct(o,"")}catch(t){fc(e,e.return,t)}}4&a&&null!=e.stateNode&&ms(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&a&&(xs=!0);break;case 6:if(Ls(t,e),Ms(e),4&a){if(null===e.stateNode)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(t){fc(e,e.return,t)}}break;case 3:if(Fd=null,o=Is,Is=_d(t.containerInfo),Ls(t,e),Is=o,Ms(e),4&a&&null!==n&&n.memoizedState.isDehydrated)try{Rf(t.containerInfo)}catch(t){fc(e,e.return,t)}xs&&(xs=!1,js(e));break;case 4:a=Is,Is=_d(e.stateNode.containerInfo),Ls(t,e),Ms(e),Is=a;break;case 12:default:Ls(t,e),Ms(e);break;case 13:Ls(t,e),Ms(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(xu=re()),4&a&&null!==(a=e.updateQueue)&&(e.updateQueue=null,As(e,a));break;case 22:o=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=ks,d=Ss;if(ks=c||o,Ss=d||u,Ls(t,e),Ss=d,ks=c,Ms(e),8192&a)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||u||ks||Ss||Fs(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(i=u.stateNode,o)"function"==typeof(l=i.style).setProperty?l.setProperty("display","none","important"):l.display="none";else{s=u.stateNode;var f=u.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;s.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){fc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=o?"":u.memoizedProps}catch(e){fc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&a&&null!==(a=e.updateQueue)&&null!==(n=a.retryQueue)&&(a.retryQueue=null,As(e,n));break;case 19:Ls(t,e),Ms(e),4&a&&null!==(a=e.updateQueue)&&(e.updateQueue=null,As(e,a));case 30:case 21:}}function Ms(e){var t=e.flags;if(2&t){try{for(var n,a=e.return;null!==a;){if(gs(a)){n=a;break}a=a.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode;vs(e,bs(e),o);break;case 5:var i=n.stateNode;32&n.flags&&(Ct(i,""),n.flags&=-33),vs(e,bs(e),i);break;case 3:case 4:var l=n.stateNode.containerInfo;ys(e,bs(e),l);break;default:throw Error(r(161))}}catch(t){fc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function js(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;js(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function $s(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)_s(e,t.alternate,t),t=t.sibling}function Fs(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:us(4,t,t.return),Fs(t);break;case 1:ps(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ds(t,t.return,n),Fs(t);break;case 27:xd(t.stateNode);case 26:case 5:ps(t,t.return),Fs(t);break;case 22:null===t.memoizedState&&Fs(t);break;default:Fs(t)}e=e.sibling}}function Us(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,a=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:Us(a,o,n),ss(4,o);break;case 1:if(Us(a,o,n),"function"==typeof(a=(r=o).stateNode).componentDidMount)try{a.componentDidMount()}catch(e){fc(r,r.return,e)}if(null!==(a=(r=o).updateQueue)){var l=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(null!==s)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)ho(s[a],l)}catch(e){fc(r,r.return,e)}}n&&64&i&&cs(o),fs(o,o.return);break;case 27:ws(o);case 26:case 5:Us(a,o,n),n&&null===r&&4&i&&hs(o),fs(o,o.return);break;case 12:Us(a,o,n);break;case 13:Us(a,o,n),n&&4&i&&Os(a,o);break;case 22:null===o.memoizedState&&Us(a,o,n),fs(o,o.return);break;case 30:break;default:Us(a,o,n)}t=t.sibling}}function Hs(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Da(n))}function Ws(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Da(e))}function Bs(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Vs(e,t,n,r),t=t.sibling}function Vs(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Bs(e,t,n,r),2048&a&&ss(9,t);break;case 1:case 13:default:Bs(e,t,n,r);break;case 3:Bs(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Da(e)));break;case 12:if(2048&a){Bs(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,l=o.onPostCommit;"function"==typeof l&&l(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){fc(t,t.return,e)}}else Bs(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,null!==t.memoizedState?2&o._visibility?Bs(e,t,n,r):Ks(e,t):2&o._visibility?Bs(e,t,n,r):(o._visibility|=2,qs(e,t,n,r,!!(10256&t.subtreeFlags))),2048&a&&Hs(i,t);break;case 24:Bs(e,t,n,r),2048&a&&Ws(t.alternate,t)}}function qs(e,t,n,r,a){for(a=a&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var o=e,i=t,l=n,s=r,u=i.flags;switch(i.tag){case 0:case 11:case 15:qs(o,i,l,s,a),ss(8,i);break;case 23:break;case 22:var c=i.stateNode;null!==i.memoizedState?2&c._visibility?qs(o,i,l,s,a):Ks(o,i):(c._visibility|=2,qs(o,i,l,s,a)),a&&2048&u&&Hs(i.alternate,i);break;case 24:qs(o,i,l,s,a),a&&2048&u&&Ws(i.alternate,i);break;default:qs(o,i,l,s,a)}t=t.sibling}}function Ks(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:Ks(n,r),2048&a&&Hs(r.alternate,r);break;case 24:Ks(n,r),2048&a&&Ws(r.alternate,r);break;default:Ks(n,r)}t=t.sibling}}var Qs=8192;function Ys(e){if(e.subtreeFlags&Qs)for(e=e.child;null!==e;)Gs(e),e=e.sibling}function Gs(e){switch(e.tag){case 26:Ys(e),e.flags&Qs&&null!==e.memoizedState&&function(e,t,n){if(null===Bd)throw Error(r(475));var a=Bd;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var o=zd(n.href),i=e.querySelector(Od(o));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(a.count++,a=qd.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=i,void Ke(i);i=e.ownerDocument||e,n=Ad(n),(o=Cd.get(o))&&jd(n,o),Ke(i=i.createElement("link"));var l=i;l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),nd(i,"link",n),t.instance=i}null===a.stylesheets&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(a.count++,t=qd.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}(Is,e.memoizedState,e.memoizedProps);break;case 5:default:Ys(e);break;case 3:case 4:var t=Is;Is=_d(e.stateNode.containerInfo),Ys(e),Is=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Qs,Qs=16777216,Ys(e),Qs=t):Ys(e))}}function Xs(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Zs(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Es=r,tu(r,e)}Xs(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Js(e),e=e.sibling}function Js(e){switch(e.tag){case 0:case 11:case 15:Zs(e),2048&e.flags&&us(9,e,e.return);break;case 3:case 12:default:Zs(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,eu(e)):Zs(e)}}function eu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Es=r,tu(r,e)}Xs(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:us(8,t,t.return),eu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,eu(t));break;default:eu(t)}e=e.sibling}}function tu(e,t){for(;null!==Es;){var n=Es;switch(n.tag){case 0:case 11:case 15:us(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Da(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Es=r;else e:for(n=e;null!==Es;){var a=(r=Es).sibling,o=r.return;if(Ts(r),r===n){Es=null;break e}if(null!==a){a.return=o,Es=a;break e}Es=o}}}var nu={getCacheForType:function(e){var t=Pa(La),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},ru="function"==typeof WeakMap?WeakMap:Map,au=0,ou=null,iu=null,lu=0,su=0,uu=null,cu=!1,du=!1,fu=!1,pu=0,hu=0,mu=0,gu=0,bu=0,yu=0,vu=0,wu=null,ku=null,Su=!1,xu=0,Cu=1/0,Eu=null,_u=null,Tu=0,Pu=null,Nu=null,Ru=0,zu=0,Ou=null,Au=null,Lu=0,Iu=null;function Du(){return 2&au&&0!==lu?lu&-lu:null!==D.T?0!==$a?$a:zc():Oe()}function Mu(){0===yu&&(yu=536870912&lu&&!la?536870912:Ce());var e=il.current;return null!==e&&(e.flags|=32),yu}function ju(e,t,n){(e!==ou||2!==su&&9!==su)&&null===e.cancelPendingCommit||(Vu(e,0),Hu(e,lu,yu,!1)),Te(e,n),2&au&&e===ou||(e===ou&&(!(2&au)&&(gu|=n),4===hu&&Hu(e,lu,yu,!1)),Cc(e))}function $u(e,t,n){if(6&au)throw Error(r(327));for(var a=!n&&!(124&t)&&0===(t&e.expiredLanes)||Se(e,t),o=a?function(e,t){var n=au;au|=2;var a=Ku(),o=Qu();ou!==e||lu!==t?(Eu=null,Cu=re()+500,Vu(e,t)):du=Se(e,t);e:for(;;)try{if(0!==su&&null!==iu){t=iu;var i=uu;t:switch(su){case 1:su=0,uu=null,tc(e,t,i,1);break;case 2:case 9:if(Xa(i)){su=0,uu=null,ec(t);break}t=function(){2!==su&&9!==su||ou!==e||(su=7),Cc(e)},i.then(t,t);break e;case 3:su=7;break e;case 4:su=5;break e;case 7:Xa(i)?(su=0,uu=null,ec(t)):(su=0,uu=null,tc(e,t,i,7));break;case 5:var l=null;switch(iu.tag){case 26:l=iu.memoizedState;case 5:case 27:var s=iu;if(!l||Wd(l)){su=0,uu=null;var u=s.sibling;if(null!==u)iu=u;else{var c=s.return;null!==c?(iu=c,nc(c)):iu=null}break t}}su=0,uu=null,tc(e,t,i,5);break;case 6:su=0,uu=null,tc(e,t,i,6);break;case 8:Bu(),hu=6;break e;default:throw Error(r(462))}}Zu();break}catch(t){qu(e,t)}return wa=va=null,D.H=a,D.A=o,au=n,null!==iu?0:(ou=null,lu=0,Rr(),hu)}(e,t):Gu(e,t,!0),i=a;;){if(0===o){du&&!a&&Hu(e,t,0,!1);break}if(n=e.current.alternate,!i||Uu(n)){if(2===o){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=0!=(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){t=l;e:{var s=e;o=wu;var u=s.current.memoizedState.isDehydrated;if(u&&(Vu(s,l).flags|=256),2!==(l=Gu(s,l,!1))){if(fu&&!u){s.errorRecoveryDisabledLanes|=i,gu|=i,o=4;break e}i=ku,ku=o,null!==i&&(null===ku?ku=i:ku.push.apply(ku,i))}o=l}if(i=!1,2!==o)continue}}if(1===o){Vu(e,0),Hu(e,t,0,!0);break}e:{switch(a=e,i=o){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Hu(a,t,yu,!cu);break e;case 2:ku=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(o=xu+300-re())){if(Hu(a,t,yu,!cu),0!==ke(a,0,!0))break e;a.timeoutHandle=cd(Fu.bind(null,a,n,ku,Eu,Su,t,yu,gu,vu,cu,i,2,-0,0),o)}else Fu(a,n,ku,Eu,Su,t,yu,gu,vu,cu,i,0,-0,0)}break}o=Gu(e,t,!1),i=!1}Cc(e)}function Fu(e,t,n,a,o,i,l,s,u,c,d,f,p,h){if(e.timeoutHandle=-1,(8192&(f=t.subtreeFlags)||!(16785408&~f))&&(Bd={stylesheets:null,count:0,unsuspend:Vd},Gs(t),null!==(f=function(){if(null===Bd)throw Error(r(475));var e=Bd;return e.stylesheets&&0===e.count&&Qd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Qd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=f(ac.bind(null,e,t,i,n,a,o,l,s,u,d,1,p,h)),void Hu(e,i,l,!c);ac(e,t,i,n,a,o,l,s,u)}function Uu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Xn(o(),a))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hu(e,t,n,r){t&=~bu,t&=~gu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-me(a),i=1<<o;r[o]=-1,a&=~i}0!==n&&Pe(e,n,t)}function Wu(){return!!(6&au)||(Ec(0),!1)}function Bu(){if(null!==iu){if(0===su)var e=iu.return;else wa=va=null,Fo(e=iu),Xi=null,Zi=0,e=iu;for(;null!==e;)ls(e.alternate,e),e=e.return;iu=null}}function Vu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,dd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Bu(),ou=e,iu=n=Fr(e.current,null),lu=t,su=0,uu=null,cu=!1,du=Se(e,t),fu=!1,vu=yu=bu=gu=mu=hu=0,ku=wu=null,Su=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-me(r),o=1<<a;t|=e[a],r&=~o}return pu=t,Rr(),n}function qu(e,t){So=null,D.H=Ki,t===Ka||t===Ya?(t=to(),su=3):t===Qa?(t=to(),su=4):su=t===Pl?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,uu=t,null===iu&&(hu=1,xl(e,_r(t,e.current)))}function Ku(){var e=D.H;return D.H=Ki,null===e?Ki:e}function Qu(){var e=D.A;return D.A=nu,e}function Yu(){hu=4,cu||(4194048&lu)!==lu&&null!==il.current||(du=!0),!(134217727&mu)&&!(134217727&gu)||null===ou||Hu(ou,lu,yu,!1)}function Gu(e,t,n){var r=au;au|=2;var a=Ku(),o=Qu();ou===e&&lu===t||(Eu=null,Vu(e,t)),t=!1;var i=hu;e:for(;;)try{if(0!==su&&null!==iu){var l=iu,s=uu;switch(su){case 8:Bu(),i=6;break e;case 3:case 2:case 9:case 6:null===il.current&&(t=!0);var u=su;if(su=0,uu=null,tc(e,l,s,u),n&&du){i=0;break e}break;default:u=su,su=0,uu=null,tc(e,l,s,u)}}Xu(),i=hu;break}catch(t){qu(e,t)}return t&&e.shellSuspendCounter++,wa=va=null,au=r,D.H=a,D.A=o,null===iu&&(ou=null,lu=0,Rr()),i}function Xu(){for(;null!==iu;)Ju(iu)}function Zu(){for(;null!==iu&&!te();)Ju(iu)}function Ju(e){var t=Jl(e.alternate,e,pu);e.memoizedProps=e.pendingProps,null===t?nc(e):iu=t}function ec(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=jl(n,t,t.pendingProps,t.type,void 0,lu);break;case 11:t=jl(n,t,t.pendingProps,t.type.render,t.ref,lu);break;case 5:Fo(t);default:ls(n,t),t=Jl(n,t=iu=Ur(t,pu),pu)}e.memoizedProps=e.pendingProps,null===t?nc(e):iu=t}function tc(e,t,n,a){wa=va=null,Fo(t),Xi=null,Zi=0;var o=t.return;try{if(function(e,t,n,a,o){if(n.flags|=32768,null!==a&&"object"==typeof a&&"function"==typeof a.then){if(null!==(t=n.alternate)&&Ea(t,n,o,!0),null!==(n=il.current)){switch(n.tag){case 13:return null===ll?Yu():null===n.alternate&&0===hu&&(hu=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Ga?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([a]):t.add(a),pc(e,a,o)),!1;case 22:return n.flags|=65536,a===Ga?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([a]):n.add(a),pc(e,a,o)),!1}throw Error(r(435,n.tag))}return pc(e,a,o),Yu(),!1}if(la)return null!==(t=il.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==ca&&ba(_r(e=Error(r(422),{cause:a}),n))):(a!==ca&&ba(_r(t=Error(r(423),{cause:a}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,a=_r(a,n),uo(e,o=El(e.stateNode,a,o)),4!==hu&&(hu=2)),!1;var i=Error(r(520),{cause:a});if(i=_r(i,n),null===wu?wu=[i]:wu.push(i),4!==hu&&(hu=2),null===t)return!0;a=_r(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,uo(n,e=El(n.stateNode,a,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==_u&&_u.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,Tl(o=_l(o),e,n,a),uo(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,lu))return hu=1,xl(e,_r(n,e.current)),void(iu=null)}catch(t){if(null!==o)throw iu=o,t;return hu=1,xl(e,_r(n,e.current)),void(iu=null)}32768&t.flags?(la||1===a?e=!0:du||536870912&lu?e=!1:(cu=e=!0,(2===a||9===a||3===a||6===a)&&null!==(a=il.current)&&13===a.tag&&(a.flags|=16384)),rc(t,e)):nc(t)}function nc(e){var t=e;do{if(32768&t.flags)return void rc(t,cu);e=t.return;var n=os(t.alternate,t,pu);if(null!==n)return void(iu=n);if(null!==(t=t.sibling))return void(iu=t);iu=t=e}while(null!==t);0===hu&&(hu=5)}function rc(e,t){do{var n=is(e.alternate,e);if(null!==n)return n.flags&=32767,void(iu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(iu=e);iu=e=n}while(null!==e);hu=6,iu=null}function ac(e,t,n,a,o,i,l,s,u){e.cancelPendingCommit=null;do{uc()}while(0!==Tu);if(6&au)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,a,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var c=31-me(n),d=1<<c;l[c]=0,s[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Pe(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(i&~t))}(e,n,i|=Nr,l,s,u),e===ou&&(iu=ou=null,lu=0),Nu=t,Pu=e,Ru=n,zu=i,Ou=o,Au=a,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,J(le,function(){return cc(),null})):(e.callbackNode=null,e.callbackPriority=0),a=!!(13878&t.flags),13878&t.subtreeFlags||a){a=D.T,D.T=null,o=M.p,M.p=2,l=au,au|=4;try{!function(e,t){if(e=e.containerInfo,rd=af,rr(e=nr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(a&&0!==a.rangeCount){n=a.anchorNode;var o=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(s=l+o),f!==i||0!==a&&3!==f.nodeType||(u=l+a),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=l),p===i&&++d===a&&(u=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ad={focusedElem:e,selectionRange:n},af=!1,Es=t;null!==Es;)if(e=(t=Es).child,1024&t.subtreeFlags&&null!==e)e.return=t,Es=e;else for(;null!==Es;){switch(i=(t=Es).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,o=i.memoizedProps,i=i.memoizedState,a=n.stateNode;try{var m=yl(n.type,o,(n.elementType,n.type));e=a.getSnapshotBeforeUpdate(m,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(e){fc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))bd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Es=e;break}Es=t.return}}(e,t)}finally{au=l,M.p=o,D.T=a}}Tu=1,oc(),ic(),lc()}}function oc(){if(1===Tu){Tu=0;var e=Pu,t=Nu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=D.T,D.T=null;var r=M.p;M.p=2;var a=au;au|=4;try{Ds(t,e);var o=ad,i=nr(e.containerInfo),l=o.focusedElem,s=o.selectionRange;if(i!==l&&l&&l.ownerDocument&&tr(l.ownerDocument.documentElement,l)){if(null!==s&&rr(l)){var u=s.start,c=s.end;if(void 0===c&&(c=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(c,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=l.textContent.length,m=Math.min(s.start,h),g=void 0===s.end?m:Math.min(s.end,h);!p.extend&&m>g&&(i=g,g=m,m=i);var b=er(l,m),y=er(l,g);if(b&&y&&(1!==p.rangeCount||p.anchorNode!==b.node||p.anchorOffset!==b.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var v=d.createRange();v.setStart(b.node,b.offset),p.removeAllRanges(),m>g?(p.addRange(v),p.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),p.addRange(v))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}af=!!rd,ad=rd=null}finally{au=a,M.p=r,D.T=n}}e.current=t,Tu=2}}function ic(){if(2===Tu){Tu=0;var e=Pu,t=Nu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=D.T,D.T=null;var r=M.p;M.p=2;var a=au;au|=4;try{_s(e,t.alternate,t)}finally{au=a,M.p=r,D.T=n}}Tu=3}}function lc(){if(4===Tu||3===Tu){Tu=0,ne();var e=Pu,t=Nu,n=Ru,r=Au;10256&t.subtreeFlags||10256&t.flags?Tu=5:(Tu=0,Nu=Pu=null,sc(e,e.pendingLanes));var a=e.pendingLanes;if(0===a&&(_u=null),ze(n),t=t.stateNode,pe&&"function"==typeof pe.onCommitFiberRoot)try{pe.onCommitFiberRoot(fe,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=D.T,a=M.p,M.p=2,D.T=null;try{for(var o=e.onRecoverableError,i=0;i<r.length;i++){var l=r[i];o(l.value,{componentStack:l.stack})}}finally{D.T=t,M.p=a}}3&Ru&&uc(),Cc(e),a=e.pendingLanes,4194090&n&&42&a?e===Iu?Lu++:(Lu=0,Iu=e):Lu=0,Ec(0)}}function sc(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Da(t))}function uc(e){return oc(),ic(),lc(),cc()}function cc(){if(5!==Tu)return!1;var e=Pu,t=zu;zu=0;var n=ze(Ru),a=D.T,o=M.p;try{M.p=32>n?32:n,D.T=null,n=Ou,Ou=null;var i=Pu,l=Ru;if(Tu=0,Nu=Pu=null,Ru=0,6&au)throw Error(r(331));var s=au;if(au|=4,Js(i.current),Vs(i,i.current,l,n),au=s,Ec(0,!1),pe&&"function"==typeof pe.onPostCommitFiberRoot)try{pe.onPostCommitFiberRoot(fe,i)}catch(e){}return!0}finally{M.p=o,D.T=a,sc(e,t)}}function dc(e,t,n){t=_r(n,t),null!==(e=lo(e,t=El(e.stateNode,t,2),2))&&(Te(e,2),Cc(e))}function fc(e,t,n){if(3===e.tag)dc(e,e,n);else for(;null!==t;){if(3===t.tag){dc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===_u||!_u.has(r))){e=_r(n,e),null!==(r=lo(t,n=_l(2),2))&&(Tl(n,r,t,e),Te(r,2),Cc(r));break}}t=t.return}}function pc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ru;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(fu=!0,a.add(n),e=hc.bind(null,e,t,n),t.then(e,e))}function hc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ou===e&&(lu&n)===n&&(4===hu||3===hu&&(62914560&lu)===lu&&300>re()-xu?!(2&au)&&Vu(e,0):bu|=n,vu===lu&&(vu=0)),Cc(e)}function mc(e,t){0===t&&(t=Ee()),null!==(e=Ar(e,t))&&(Te(e,t),Cc(e))}function gc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mc(e,n)}function bc(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==a&&a.delete(t),mc(e,n)}var yc=null,vc=null,wc=!1,kc=!1,Sc=!1,xc=0;function Cc(e){e!==vc&&null===e.next&&(null===vc?yc=vc=e:vc=vc.next=e),kc=!0,wc||(wc=!0,pd(function(){6&au?J(oe,_c):Tc()}))}function Ec(e,t){if(!Sc&&kc){Sc=!0;do{for(var n=!1,r=yc;null!==r;){if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var i=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-me(42|e)+1)-1,o=201326741&(o&=a&~(i&~l))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,Rc(r,o))}else o=lu,!(3&(o=ke(r,r===ou?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Se(r,o)||(n=!0,Rc(r,o));r=r.next}}while(n);Sc=!1}}function _c(){Tc()}function Tc(){kc=wc=!1;var e=0;0!==xc&&(function(){var e=window.event;return e&&"popstate"===e.type?e!==ud&&(ud=e,!0):(ud=null,!1)}()&&(e=xc),xc=0);for(var t=re(),n=null,r=yc;null!==r;){var a=r.next,o=Pc(r,t);0===o?(r.next=null,null===n?yc=a:n.next=a,null===a&&(vc=n)):(n=r,(0!==e||3&o)&&(kc=!0)),r=a}Ec(e)}function Pc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var i=31-me(o),l=1<<i,s=a[i];-1===s?0!==(l&n)&&0===(l&r)||(a[i]=xe(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(n=lu,n=ke(e,e===(t=ou)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===su||9===su)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Se(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ee(r),ze(n)){case 2:case 8:n=ie;break;case 32:default:n=le;break;case 268435456:n=ue}return r=Nc.bind(null,e),n=J(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ee(r),e.callbackPriority=2,e.callbackNode=null,2}function Nc(e,t){if(0!==Tu&&5!==Tu)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uc()&&e.callbackNode!==n)return null;var r=lu;return 0===(r=ke(e,e===ou?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:($u(e,r,t),Pc(e,re()),null!=e.callbackNode&&e.callbackNode===n?Nc.bind(null,e):null)}function Rc(e,t){if(uc())return null;$u(e,t,!0)}function zc(){return 0===xc&&(xc=Ce()),xc}function Oc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:zt(""+e)}function Ac(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Lc=0;Lc<xr.length;Lc++){var Ic=xr[Lc];Cr(Ic.toLowerCase(),"on"+(Ic[0].toUpperCase()+Ic.slice(1)))}Cr(mr,"onAnimationEnd"),Cr(gr,"onAnimationIteration"),Cr(br,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(yr,"onTransitionRun"),Cr(vr,"onTransitionStart"),Cr(wr,"onTransitionCancel"),Cr(kr,"onTransitionEnd"),Xe("onMouseEnter",["mouseout","mouseover"]),Xe("onMouseLeave",["mouseout","mouseover"]),Xe("onPointerEnter",["pointerout","pointerover"]),Xe("onPointerLeave",["pointerout","pointerover"]),Ge("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ge("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ge("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ge("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dc));function jc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&a.isPropagationStopped())break e;o=l,a.currentTarget=u;try{o(a)}catch(e){vl(e)}a.currentTarget=null,o=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==o&&a.isPropagationStopped())break e;o=l,a.currentTarget=u;try{o(a)}catch(e){vl(e)}a.currentTarget=null,o=s}}}}function $c(e,t){var n=t[Me];void 0===n&&(n=t[Me]=new Set);var r=e+"__bubble";n.has(r)||(Wc(t,e,2,!1),n.add(r))}function Fc(e,t,n){var r=0;t&&(r|=4),Wc(n,e,r,t)}var Uc="_reactListening"+Math.random().toString(36).slice(2);function Hc(e){if(!e[Uc]){e[Uc]=!0,Qe.forEach(function(t){"selectionchange"!==t&&(Mc.has(t)||Fc(t,!1,e),Fc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Uc]||(t[Uc]=!0,Fc("selectionchange",!1,t))}}function Wc(e,t,n,r){switch(ff(t)){case 2:var a=of;break;case 8:a=lf;break;default:a=sf}n=a.bind(null,t,n,e),a=void 0,!Ut||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Bc(e,t,n,r,a){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var s=r.stateNode.containerInfo;if(s===a)break;if(4===l)for(l=r.return;null!==l;){var u=l.tag;if((3===u||4===u)&&l.stateNode.containerInfo===a)return;l=l.return}for(;null!==s;){if(null===(l=We(s)))return;if(5===(u=l.tag)||6===u||26===u||27===u){r=i=l;continue e}s=s.parentNode}}r=r.return}jt(function(){var r=i,a=At(n),l=[];e:{var s=Sr.get(e);if(void 0!==s){var u=tn,c=e;switch(e){case"keypress":if(0===Kt(n))break e;case"keydown":case"keyup":u=bn;break;case"focusin":c="focus",u=sn;break;case"focusout":c="blur",u=sn;break;case"beforeblur":case"afterblur":u=sn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=on;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=vn;break;case mr:case gr:case br:u=un;break;case kr:u=wn;break;case"scroll":case"scrollend":u=rn;break;case"wheel":u=kn;break;case"copy":case"cut":case"paste":u=cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=yn;break;case"toggle":case"beforetoggle":u=Sn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===p||null!=(g=$t(m,p))&&d.push(Vc(m,g,h)),f)break;m=m.return}0<d.length&&(s=new u(s,c,null,n,a),l.push({event:s,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Ot||!(c=n.relatedTarget||n.fromElement)||!We(c)&&!c[De])&&(u||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?We(c):null)&&(f=o(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=on,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=yn,g="onPointerLeave",p="onPointerEnter",m="pointer"),f=null==u?s:Ve(u),h=null==c?s:Ve(c),(s=new d(g,m+"leave",u,n,a)).target=f,s.relatedTarget=h,g=null,We(a)===r&&((d=new d(p,m+"enter",c,n,a)).target=h,d.relatedTarget=f,g=d),f=g,u&&c)e:{for(p=c,m=0,h=d=u;h;h=Kc(h))m++;for(h=0,g=p;g;g=Kc(g))h++;for(;0<m-h;)d=Kc(d),m--;for(;0<h-m;)p=Kc(p),h--;for(;m--;){if(d===p||null!==p&&d===p.alternate)break e;d=Kc(d),p=Kc(p)}d=null}else d=null;null!==u&&Qc(l,s,u,d,!1),null!==c&&null!==f&&Qc(l,f,c,d,!0)}if("select"===(u=(s=r?Ve(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var b=Fn;else if(Ln(s))if(Un)b=Gn;else{b=Qn;var y=Kn}else!(u=s.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Pt(r.elementType)&&(b=Fn):b=Yn;switch(b&&(b=b(e,r))?In(l,b,n,a):(y&&y(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&wt(s,"number",s.value)),y=r?Ve(r):window,e){case"focusin":(Ln(y)||"true"===y.contentEditable)&&(or=y,ir=r,lr=null);break;case"focusout":lr=ir=or=null;break;case"mousedown":sr=!0;break;case"contextmenu":case"mouseup":case"dragend":sr=!1,ur(l,n,a);break;case"selectionchange":if(ar)break;case"keydown":case"keyup":ur(l,n,a)}var v;if(Cn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else On?Rn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Tn&&"ko"!==n.locale&&(On||"onCompositionStart"!==w?"onCompositionEnd"===w&&On&&(v=qt()):(Bt="value"in(Wt=a)?Wt.value:Wt.textContent,On=!0)),0<(y=qc(r,w)).length&&(w=new dn(w,e,null,n,a),l.push({event:w,listeners:y}),(v||null!==(v=zn(n)))&&(w.data=v))),(v=_n?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Nn=!0,Pn);case"textInput":return(e=t.data)===Pn&&Nn?null:e;default:return null}}(e,n):function(e,t){if(On)return"compositionend"===e||!Cn&&Rn(e,t)?(e=qt(),Vt=Bt=Wt=null,On=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Tn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(w=qc(r,"onBeforeInput")).length&&(y=new dn("onBeforeInput","beforeinput",null,n,a),l.push({event:y,listeners:w}),y.data=v),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=Oc((a[Ie]||null).action),i=r.submitter;i&&null!==(t=(t=i[Ie]||null)?Oc(t.formAction):i.getAttribute("formAction"))&&(o=t,i=null);var l=new tn("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==xc){var e=i?Ac(a,i):new FormData(a);Ai(n,{pending:!0,data:e,method:a.method,action:o},null,e)}}else"function"==typeof o&&(l.preventDefault(),e=i?Ac(a,i):new FormData(a),Ai(n,{pending:!0,data:e,method:a.method,action:o},o,e))},currentTarget:a}]})}}(l,e,r,n,a)}jc(l,t)})}function Vc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qc(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=$t(e,n))&&r.unshift(Vc(e,a,o)),null!=(a=$t(e,t))&&r.push(Vc(e,a,o))),3===e.tag)return r;e=e.return}return[]}function Kc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Qc(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===u||(s=u,a?null!=(u=$t(n,o))&&i.unshift(Vc(n,u,s)):a||null!=(u=$t(n,o))&&i.push(Vc(n,u,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Yc=/\r\n?/g,Gc=/\u0000|\uFFFD/g;function Xc(e){return("string"==typeof e?e:""+e).replace(Yc,"\n").replace(Gc,"")}function Zc(e,t){return t=Xc(t),Xc(e)===t}function Jc(){}function ed(e,t,n,a,o,i){switch(n){case"children":"string"==typeof a?"body"===t||"textarea"===t&&""===a||Ct(e,a):("number"==typeof a||"bigint"==typeof a)&&"body"!==t&&Ct(e,""+a);break;case"className":at(e,"class",a);break;case"tabIndex":at(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":at(e,n,a);break;case"style":Tt(e,a,i);break;case"data":if("object"!==t){at(e,"data",a);break}case"src":case"href":if(""===a&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==a||"function"==typeof a||"symbol"==typeof a||"boolean"==typeof a){e.removeAttribute(n);break}a=zt(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if("function"==typeof a){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&ed(e,t,"name",o.name,o,null),ed(e,t,"formEncType",o.formEncType,o,null),ed(e,t,"formMethod",o.formMethod,o,null),ed(e,t,"formTarget",o.formTarget,o,null)):(ed(e,t,"encType",o.encType,o,null),ed(e,t,"method",o.method,o,null),ed(e,t,"target",o.target,o,null))),null==a||"symbol"==typeof a||"boolean"==typeof a){e.removeAttribute(n);break}a=zt(""+a),e.setAttribute(n,a);break;case"onClick":null!=a&&(e.onclick=Jc);break;case"onScroll":null!=a&&$c("scroll",e);break;case"onScrollEnd":null!=a&&$c("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!=typeof a||!("__html"in a))throw Error(r(61));if(null!=(n=a.__html)){if(null!=o.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&"function"!=typeof a&&"symbol"!=typeof a;break;case"muted":e.muted=a&&"function"!=typeof a&&"symbol"!=typeof a;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==a||"function"==typeof a||"boolean"==typeof a||"symbol"==typeof a){e.removeAttribute("xlink:href");break}n=zt(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===a?e.setAttribute(n,""):!1!==a&&null!=a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":null==a||"function"==typeof a||"symbol"==typeof a||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":$c("beforetoggle",e),$c("toggle",e),rt(e,"popover",a);break;case"xlinkActuate":ot(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ot(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ot(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ot(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ot(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ot(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ot(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ot(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ot(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":rt(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&rt(e,n=Nt.get(n)||n,a)}}function td(e,t,n,a,o,i){switch(n){case"style":Tt(e,a,i);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!=typeof a||!("__html"in a))throw Error(r(61));if(null!=(n=a.__html)){if(null!=o.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof a?Ct(e,a):("number"==typeof a||"bigint"==typeof a)&&Ct(e,""+a);break;case"onScroll":null!=a&&$c("scroll",e);break;case"onScrollEnd":null!=a&&$c("scrollend",e);break;case"onClick":null!=a&&(e.onclick=Jc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ye.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Ie]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!=typeof a)?n in e?e[n]=a:!0===a?e.setAttribute(n,""):rt(e,n,a):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o)))}}function nd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$c("error",e),$c("load",e);var a,o=!1,i=!1;for(a in n)if(n.hasOwnProperty(a)){var l=n[a];if(null!=l)switch(a){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,a,l,n,null)}}return i&&ed(e,t,"srcSet",n.srcSet,n,null),void(o&&ed(e,t,"src",n.src,n,null));case"input":$c("invalid",e);var s=a=l=i=null,u=null,c=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":i=d;break;case"type":l=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":a=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:ed(e,t,o,d,n,null)}}return vt(e,a,s,u,c,l,i,!1),void pt(e);case"select":for(i in $c("invalid",e),o=l=a=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":a=s;break;case"defaultValue":l=s;break;case"multiple":o=s;default:ed(e,t,i,s,n,null)}return t=a,n=l,e.multiple=!!o,void(null!=t?kt(e,!!o,t,!1):null!=n&&kt(e,!!o,n,!0));case"textarea":for(l in $c("invalid",e),a=i=o=null,n)if(n.hasOwnProperty(l)&&null!=(s=n[l]))switch(l){case"value":o=s;break;case"defaultValue":i=s;break;case"children":a=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(r(91));break;default:ed(e,t,l,s,n,null)}return xt(e,o,i,a),void pt(e);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(o=n[u])&&("selected"===u?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:ed(e,t,u,o,n,null));return;case"dialog":$c("beforetoggle",e),$c("toggle",e),$c("cancel",e),$c("close",e);break;case"iframe":case"object":$c("load",e);break;case"video":case"audio":for(o=0;o<Dc.length;o++)$c(Dc[o],e);break;case"image":$c("error",e),$c("load",e);break;case"details":$c("toggle",e);break;case"embed":case"source":case"link":$c("error",e),$c("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(o=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,c,o,n,null)}return;default:if(Pt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(o=n[d])&&td(e,t,d,o,n,void 0);return}}for(s in n)n.hasOwnProperty(s)&&null!=(o=n[s])&&ed(e,t,s,o,n,null)}var rd=null,ad=null;function od(e){return 9===e.nodeType?e:e.ownerDocument}function id(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ld(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function sd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ud=null,cd="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,fd="function"==typeof Promise?Promise:void 0,pd="function"==typeof queueMicrotask?queueMicrotask:void 0!==fd?function(e){return fd.resolve(null).then(e).catch(hd)}:cd;function hd(e){setTimeout(function(){throw e})}function md(e){return"head"===e}function gd(e,t){var n=t,r=0,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(1&n&&xd(i.documentElement),2&n&&xd(i.body),4&n)for(xd(n=i.head),i=n.firstChild;i;){var l=i.nextSibling,s=i.nodeName;i[Ue]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=l}}if(0===a)return e.removeChild(o),void Rf(t);a--}else"$"===n||"$?"===n||"$!"===n?a++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);Rf(t)}function bd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":bd(n),He(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function yd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function vd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var wd=null;function kd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function Sd(e,t,n){switch(t=od(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function xd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);He(e)}var Cd=new Map,Ed=new Set;function _d(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Td=M.d;M.d={f:function(){var e=Td.f(),t=Wu();return e||t},r:function(e){var t=Be(e);null!==t&&5===t.tag&&"form"===t.type?Ii(t):Td.r(e)},D:function(e){Td.D(e),Nd("dns-prefetch",e,null)},C:function(e,t){Td.C(e,t),Nd("preconnect",e,t)},L:function(e,t,n){Td.L(e,t,n);var r=Pd;if(r&&e&&t){var a='link[rel="preload"][as="'+bt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+bt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+bt(n.imageSizes)+'"]')):a+='[href="'+bt(e)+'"]';var o=a;switch(t){case"style":o=zd(e);break;case"script":o=Ld(e)}Cd.has(o)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Cd.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(Od(o))||"script"===t&&r.querySelector(Id(o))||(nd(t=r.createElement("link"),"link",e),Ke(t),r.head.appendChild(t)))}},m:function(e,t){Td.m(e,t);var n=Pd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+bt(r)+'"][href="'+bt(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Ld(e)}if(!Cd.has(o)&&(e=u({rel:"modulepreload",href:e},t),Cd.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Id(o)))return}nd(r=n.createElement("link"),"link",e),Ke(r),n.head.appendChild(r)}}},X:function(e,t){Td.X(e,t);var n=Pd;if(n&&e){var r=qe(n).hoistableScripts,a=Ld(e),o=r.get(a);o||((o=n.querySelector(Id(a)))||(e=u({src:e,async:!0},t),(t=Cd.get(a))&&$d(e,t),Ke(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){Td.S(e,t,n);var r=Pd;if(r&&e){var a=qe(r).hoistableStyles,o=zd(e);t=t||"default";var i=a.get(o);if(!i){var l={loading:0,preload:null};if(i=r.querySelector(Od(o)))l.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Cd.get(o))&&jd(e,n);var s=i=r.createElement("link");Ke(s),nd(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Md(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:l},a.set(o,i)}}},M:function(e,t){Td.M(e,t);var n=Pd;if(n&&e){var r=qe(n).hoistableScripts,a=Ld(e),o=r.get(a);o||((o=n.querySelector(Id(a)))||(e=u({src:e,async:!0,type:"module"},t),(t=Cd.get(a))&&$d(e,t),Ke(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var Pd="undefined"==typeof document?null:document;function Nd(e,t,n){var r=Pd;if(r&&"string"==typeof t&&t){var a=bt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),Ed.has(a)||(Ed.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(nd(t=r.createElement("link"),"link",e),Ke(t),r.head.appendChild(t)))}}function Rd(e,t,n,a){var o,i,l,s,u=(u=q.current)?_d(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=zd(n.href),(a=(n=qe(u).hoistableStyles).get(t))||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=zd(n.href);var c=qe(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Od(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Cd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cd.set(e,n),c||(o=u,i=e,l=n,s=d.state,o.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=o.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),nd(i,"link",l),Ke(i),o.head.appendChild(i))))),t&&null===a)throw Error(r(528,""));return d}if(t&&null!==a)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Ld(n),(a=(n=qe(u).hoistableScripts).get(t))||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function zd(e){return'href="'+bt(e)+'"'}function Od(e){return'link[rel="stylesheet"]['+e+"]"}function Ad(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function Ld(e){return'[src="'+bt(e)+'"]'}function Id(e){return"script[async]"+e}function Dd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+bt(n.href)+'"]');if(a)return t.instance=a,Ke(a),a;var o=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ke(a=(e.ownerDocument||e).createElement("style")),nd(a,"style",o),Md(a,n.precedence,e),t.instance=a;case"stylesheet":o=zd(n.href);var i=e.querySelector(Od(o));if(i)return t.state.loading|=4,t.instance=i,Ke(i),i;a=Ad(n),(o=Cd.get(o))&&jd(a,o),Ke(i=(e.ownerDocument||e).createElement("link"));var l=i;return l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),nd(i,"link",a),t.state.loading|=4,Md(i,n.precedence,e),t.instance=i;case"script":return i=Ld(n.src),(o=e.querySelector(Id(i)))?(t.instance=o,Ke(o),o):(a=n,(o=Cd.get(i))&&$d(a=u({},n),o),Ke(o=(e=e.ownerDocument||e).createElement("script")),nd(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(a=t.instance,t.state.loading|=4,Md(a,n.precedence,e));return t.instance}function Md(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,i=0;i<r.length;i++){var l=r[i];if(l.dataset.precedence===t)o=l;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function jd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function $d(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Fd=null;function Ud(e,t,n){if(null===Fd){var r=new Map,a=Fd=new Map;a.set(n,r)}else(r=(a=Fd).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Ue]||o[Le]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var i=o.getAttribute(t)||"";i=e+i;var l=r.get(i);l?l.push(o):r.set(i,[o])}}return r}function Hd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Wd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Bd=null;function Vd(){}function qd(){if(this.count--,0===this.count)if(this.stylesheets)Qd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Kd=null;function Qd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Kd=new Map,t.forEach(Yd,e),Kd=null,qd.call(e))}function Yd(e,t){if(!(4&t.state.loading)){var n=Kd.get(e);if(n)var r=n.get(null);else{n=new Map,Kd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var i=a[o];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(a=t.instance).getAttribute("data-precedence"),(o=n.get(i)||r)===r&&n.set(null,a),n.set(i,a),this.count++,r=qd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var Gd={$$typeof:w,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function Xd(e,t,n,r,a,o,i,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_e(0),this.hiddenUpdates=_e(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function Zd(e,t,n,r,a,o,i,l,s,u,c,d){return e=new Xd(e,t,n,i,l,s,u,d),t=1,!0===o&&(t|=24),o=jr(3,null,null,t),e.current=o,o.stateNode=e,(t=Ia()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},ao(o),e}function Jd(e){return e?e=Dr:Dr}function ef(e,t,n,r,a,o){a=Jd(a),null===r.context?r.context=a:r.pendingContext=a,(r=io(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=lo(e,r,t))&&(ju(n,0,t),so(n,e,t))}function tf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nf(e,t){tf(e,t),(e=e.alternate)&&tf(e,t)}function rf(e){if(13===e.tag){var t=Ar(e,67108864);null!==t&&ju(t,0,67108864),nf(e,67108864)}}var af=!0;function of(e,t,n,r){var a=D.T;D.T=null;var o=M.p;try{M.p=2,sf(e,t,n,r)}finally{M.p=o,D.T=a}}function lf(e,t,n,r){var a=D.T;D.T=null;var o=M.p;try{M.p=8,sf(e,t,n,r)}finally{M.p=o,D.T=a}}function sf(e,t,n,r){if(af){var a=uf(r);if(null===a)Bc(e,t,r,cf,n),kf(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return hf=Sf(hf,e,t,n,r,a),!0;case"dragenter":return mf=Sf(mf,e,t,n,r,a),!0;case"mouseover":return gf=Sf(gf,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return bf.set(o,Sf(bf.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,yf.set(o,Sf(yf.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(kf(e,r),4&t&&-1<wf.indexOf(e)){for(;null!==a;){var o=Be(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var i=we(o.pendingLanes);if(0!==i){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-me(i);l.entanglements[1]|=s,i&=~s}Cc(o),!(6&au)&&(Cu=re()+500,Ec(0))}}break;case 13:null!==(l=Ar(o,2))&&ju(l,0,2),Wu(),nf(o,2)}if(null===(o=uf(r))&&Bc(e,t,r,cf,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Bc(e,t,r,null,n)}}function uf(e){return df(e=At(e))}var cf=null;function df(e){if(cf=null,null!==(e=We(e))){var t=o(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=i(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cf=e,null}function ff(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ae()){case oe:return 2;case ie:return 8;case le:case se:return 32;case ue:return 268435456;default:return 32}default:return 32}}var pf=!1,hf=null,mf=null,gf=null,bf=new Map,yf=new Map,vf=[],wf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kf(e,t){switch(e){case"focusin":case"focusout":hf=null;break;case"dragenter":case"dragleave":mf=null;break;case"mouseover":case"mouseout":gf=null;break;case"pointerover":case"pointerout":bf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yf.delete(t.pointerId)}}function Sf(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&null!==(t=Be(t))&&rf(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function xf(e){var t=We(e.target);if(null!==t){var n=o(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=i(n)))return e.blockedOn=t,void function(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}(e.priority,function(){if(13===n.tag){var e=Du();e=Re(e);var t=Ar(n,e);null!==t&&ju(t,0,e),nf(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Cf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=uf(e.nativeEvent);if(null!==n)return null!==(t=Be(n))&&rf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ot=r,n.target.dispatchEvent(r),Ot=null,t.shift()}return!0}function Ef(e,t,n){Cf(e)&&n.delete(t)}function _f(){pf=!1,null!==hf&&Cf(hf)&&(hf=null),null!==mf&&Cf(mf)&&(mf=null),null!==gf&&Cf(gf)&&(gf=null),bf.forEach(Ef),yf.forEach(Ef)}function Tf(t,n){t.blockedOn===n&&(t.blockedOn=null,pf||(pf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,_f)))}var Pf=null;function Nf(t){Pf!==t&&(Pf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Pf===t&&(Pf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],a=t[e+2];if("function"!=typeof r){if(null===df(r||n))continue;break}var o=Be(n);null!==o&&(t.splice(e,3),e-=3,Ai(o,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Rf(e){function t(t){return Tf(t,e)}null!==hf&&Tf(hf,e),null!==mf&&Tf(mf,e),null!==gf&&Tf(gf,e),bf.forEach(t),yf.forEach(t);for(var n=0;n<vf.length;n++){var r=vf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<vf.length&&null===(n=vf[0]).blockedOn;)xf(n),null===n.blockedOn&&vf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],i=a[Ie]||null;if("function"==typeof o)i||Nf(n);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(a=o,i=o[Ie]||null)l=i.formAction;else if(null!==df(a))continue}else l=i.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),Nf(n)}}}function zf(e){this._internalRoot=e}function Of(e){this._internalRoot=e}Of.prototype.render=zf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));ef(t.current,Du(),e,t,null,null)},Of.prototype.unmount=zf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ef(e.current,2,null,e,null,null),Wu(),t[De]=null}},Of.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vf.length&&0!==t&&t<vf[n].priority;n++);vf.splice(n,0,e),0===n&&xf(e)}};var Af=t.version;if("19.1.1"!==Af)throw Error(r(527,Af,"19.1.1"));M.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=o(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(a=i.return)){n=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return l(i),e;if(s===a)return l(i),t;s=s.sibling}throw Error(r(188))}if(n.return!==a.return)n=i,a=s;else{for(var u=!1,c=i.child;c;){if(c===n){u=!0,n=i,a=s;break}if(c===a){u=!0,a=i,n=s;break}c=c.sibling}if(!u){for(c=s.child;c;){if(c===n){u=!0,n=s,a=i;break}if(c===a){u=!0,a=s,n=i;break}c=c.sibling}if(!u)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?s(e):null)?null:e.stateNode};var Lf={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var If=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!If.isDisabled&&If.supportsFiber)try{fe=If.inject(Lf),pe=If}catch(e){}}return b.createRoot=function(e,t){if(!a(e))throw Error(r(299));var n=!1,o="",i=wl,l=kl,s=Sl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(l=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Zd(e,1,!1,null,0,n,o,i,l,s,0,null),e[De]=t.current,Hc(e),new zf(t)},b.hydrateRoot=function(e,t,n){if(!a(e))throw Error(r(299));var o=!1,i="",l=wl,s=kl,u=Sl,c=null;return null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(l=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(c=n.formState)),(t=Zd(e,1,!0,t,0,o,i,l,s,u,0,c)).context=Jd(null),n=t.current,(i=io(o=Re(o=Du()))).callback=null,lo(n,i,o),n=o,t.current.lanes=n,Te(t,n),Cc(t),e[De]=t.current,Hc(e),new Of(t)},b.version="19.1.1",b}()):g.exports=(R||(R=1,"production"!==process.env.NODE_ENV&&function(){function e(e,t){for(e=e.memoizedState;null!==e&&0<t;)e=e.next,t--;return e}function t(e,n,r,a){if(r>=n.length)return a;var o=n[r],i=Vc(e)?e.slice():_c({},e);return i[o]=t(e[o],n,r+1,a),i}function n(e,t,n){if(t.length===n.length){for(var a=0;a<n.length-1;a++)if(t[a]!==n[a])return void console.warn("copyWithRename() expects paths to be the same except for the deepest key");return r(e,t,n,0)}console.warn("copyWithRename() expects paths of the same length")}function r(e,t,n,a){var o=t[a],i=Vc(e)?e.slice():_c({},e);return a+1===t.length?(i[n[a]]=i[o],Vc(i)?i.splice(o,1):delete i[o]):i[o]=r(e[o],t,n,a+1),i}function a(e,t,n){var r=t[n],o=Vc(e)?e.slice():_c({},e);return n+1===t.length?(Vc(o)?o.splice(r,1):delete o[r],o):(o[r]=a(e[r],t,n+1),o)}function o(){return!1}function i(){return null}function l(){}function s(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function u(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function d(){}function f(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(", ")}function p(e,t,n,r){return new wn(e,t,n,r)}function h(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function g(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function b(e){if(m(e)!==e)throw Error("Unable to find node on an unmounted component.")}function y(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=y(e)))return t;e=e.sibling}return null}function v(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Wc&&e[Wc]||e["@@iterator"])?e:null}function w(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Bc?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Rc:return"Fragment";case Oc:return"Profiler";case zc:return"StrictMode";case Mc:return"Suspense";case jc:return"SuspenseList";case Uc:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Nc:return"Portal";case Ic:return(e.displayName||"Context")+".Provider";case Lc:return(e._context.displayName||"Context")+".Consumer";case Dc:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $c:return null!==(t=e.displayName||null)?t:w(e.type)||"Memo";case Fc:t=e._payload,e=e._init;try{return w(e(t))}catch(e){}}return null}function S(e){return"number"==typeof e.tag?x(e):"string"==typeof e.name?e.name:null}function x(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return w(t);case 8:return t===zc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;break;case 29:if(null!=(t=e._debugInfo))for(var n=t.length-1;0<=n;n--)if("string"==typeof t[n].name)return t[n].name;if(null!==e.return)return x(e.return)}return null}function C(e){return{current:e}}function E(e,t){0>Xc?console.error("Unexpected pop."):(t!==Gc[Xc]&&console.error("Unexpected Fiber popped."),e.current=Yc[Xc],Yc[Xc]=null,Gc[Xc]=null,Xc--)}function _(e,t,n){Xc++,Yc[Xc]=e.current,Gc[Xc]=n,e.current=t}function T(e){return null===e&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function P(e,t){_(ed,t,e),_(Jc,e,e),_(Zc,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=9===n?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Xs(t):Iv;break;default:if(n=t.tagName,t=t.namespaceURI)t=Zs(t=Xs(t),n);else switch(n){case"svg":t=Dv;break;case"math":t=Mv;break;default:t=Iv}}n={context:t,ancestorInfo:n=ht(null,n=n.toLowerCase())},E(Zc,e),_(Zc,n,e)}function R(e){E(Zc,e),E(Jc,e),E(ed,e)}function z(){return T(Zc.current)}function A(e){null!==e.memoizedState&&_(td,e,e);var t=T(Zc.current),n=e.type,r=Zs(t.context,n);t!==(r={context:r,ancestorInfo:n=ht(t.ancestorInfo,n)})&&(_(Jc,e,e),_(Zc,r,e))}function L(e){Jc.current===e&&(E(Zc,e),E(Jc,e)),td.current===e&&(E(td,e),bw._currentValue=gw)}function I(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function D(e){try{return M(e),!1}catch(e){return!0}}function M(e){return""+e}function j(e,t){if(D(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,I(e)),M(e)}function $(e,t){if(D(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,I(e)),M(e)}function F(e){if(D(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",I(e)),M(e)}function U(e){if("function"==typeof hd&&md(e),bd&&"function"==typeof bd.setStrictMode)try{bd.setStrictMode(gd,e)}catch(e){vd||(vd=!0,console.error("React instrumentation encountered an error: %s",e))}}function H(){null!==yd&&"function"==typeof yd.markCommitStopped&&yd.markCommitStopped()}function W(e){null!==yd&&"function"==typeof yd.markComponentRenderStarted&&yd.markComponentRenderStarted(e)}function B(){null!==yd&&"function"==typeof yd.markComponentRenderStopped&&yd.markComponentRenderStopped()}function V(e){null!==yd&&"function"==typeof yd.markRenderStarted&&yd.markRenderStarted(e)}function q(){null!==yd&&"function"==typeof yd.markRenderStopped&&yd.markRenderStopped()}function K(e,t){null!==yd&&"function"==typeof yd.markStateUpdateScheduled&&yd.markStateUpdateScheduled(e,t)}function Q(e){return 1&e?"SyncHydrationLane":2&e?"Sync":4&e?"InputContinuousHydration":8&e?"InputContinuous":16&e?"DefaultHydration":32&e?"Default":128&e?"TransitionHydration":4194048&e?"Transition":62914560&e?"Retry":67108864&e?"SelectiveHydration":134217728&e?"IdleHydration":268435456&e?"Idle":536870912&e?"Offscreen":1073741824&e?"Deferred":void 0}function Y(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function G(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~o)?a=Y(r):0!==(i&=l)?a=Y(i):n||0!==(n=l&~e)&&(a=Y(n)):0!==(l=r&~o)?a=Y(l):0!==i?a=Y(i):n||0!==(n=r&~e)&&(a=Y(n)),0===a?0:0!==t&&t!==a&&0===(t&o)&&((o=a&-a)>=(n=t&-t)||32===o&&4194048&n)?t:a}function X(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Z(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function J(){var e=Cd;return!(4194048&(Cd<<=1))&&(Cd=256),e}function ee(){var e=Ed;return!(62914560&(Ed<<=1))&&(Ed=4194304),e}function te(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ne(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function re(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-kd(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function ae(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kd(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function oe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ie(e,t,n){if(wd)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-kd(n),a=1<<r;e[r].add(t),n&=~a}}function le(e,t){if(wd)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var a=31-kd(t);e=1<<a,0<(a=n[a]).size&&(a.forEach(function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)}),a.clear()),t&=~e}}function se(e){return _d<(e&=-e)?Td<e?134217727&e?Pd:Nd:Td:_d}function ue(){var e=Kc.p;return 0!==e?e:void 0===(e=window.event)?Pd:rc(e.type)}function ce(e){delete e[zd],delete e[Od],delete e[Ld],delete e[Id],delete e[Dd]}function de(e){var t=e[zd];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ad]||n[zd]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=vu(e);null!==e;){if(n=e[zd])return n;e=vu(e)}return t}n=(e=n).parentNode}return null}function fe(e){if(e=e[zd]||e[Ad]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function pe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function he(e){var t=e[Md];return t||(t=e[Md]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function me(e){e[jd]=!0}function ge(e,t){be(e,t),be(e+"Capture",t)}function be(e,t){Fd[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Fd[e]=t;var n=e.toLowerCase();for(Ud[n]=e,"onDoubleClick"===e&&(Ud.ondblclick=e),e=0;e<t.length;e++)$d.add(t[e])}function ye(e,t){Hd[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||("select"===e?console.error("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 `onChange`."):console.error("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||null==t.checked||console.error("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 ve(e){return!!nd.call(Vd,e)||!nd.call(Bd,e)&&(Wd.test(e)?Vd[e]=!0:(Bd[e]=!0,console.error("Invalid attribute name: `%s`",e),!1))}function we(e,t,n){if(ve(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":case"function":return n;case"boolean":if(!1===n)return n}return void 0===n?void 0:null}return""===(e=e.getAttribute(t))&&!0===n||(j(n,t),e===""+n?n:e)}}function ke(e,t,n){if(ve(t))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}j(n,t),e.setAttribute(t,""+n)}}function Se(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}j(n,t),e.setAttribute(t,""+n)}}function xe(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}j(r,n),e.setAttributeNS(t,n,""+r)}}function Ce(){}function Ee(e){if(void 0===Kd)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Kd=t&&t[1]||"",Qd=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Kd+e+Qd}function _e(e,t){if(!e||Yd)return"";var n,r=Gd.get(e);if(void 0!==r)return r;Yd=!0,r=Error.prepareStackTrace,Error.prepareStackTrace=void 0,n=qc.H,qc.H=null,function(){if(0===qd){gc=console.log,bc=console.info,yc=console.warn,vc=console.error,wc=console.group,kc=console.groupCollapsed,Sc=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}qd++}();try{var a={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),l=i[0],s=i[1];if(l&&s){var u=l.split("\n"),c=s.split("\n");for(i=o=0;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(o===u.length||i===c.length)for(o=u.length-1,i=c.length-1;1<=o&&0<=i&&u[o]!==c[i];)i--;for(;1<=o&&0<=i;o--,i--)if(u[o]!==c[i]){if(1!==o||1!==i)do{if(o--,0>--i||u[o]!==c[i]){var d="\n"+u[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Gd.set(e,d),d}}while(1<=o&&0<=i);break}}}finally{Yd=!1,qc.H=n,function(){if(0===--qd){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_c({},e,{value:gc}),info:_c({},e,{value:bc}),warn:_c({},e,{value:yc}),error:_c({},e,{value:vc}),group:_c({},e,{value:wc}),groupCollapsed:_c({},e,{value:kc}),groupEnd:_c({},e,{value:Sc})})}0>qd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=r}return u=(u=e?e.displayName||e.name:"")?Ee(u):"","function"==typeof e&&Gd.set(e,u),u}function Te(e){var t=Error.prepareStackTrace;return Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith("Error: react-stack-top-frame\n")&&(e=e.slice(29)),-1!==(t=e.indexOf("\n"))&&(e=e.slice(t+1)),-1!==(t=e.indexOf("react_stack_bottom_frame"))&&(t=e.lastIndexOf("\n",t)),-1===t?"":e=e.slice(0,t)}function Pe(e){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee("Lazy");case 13:return Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return Ee("Activity");default:return""}}function Ne(e){try{var t="";do{t+=Pe(e);var n=e._debugInfo;if(n)for(var r=n.length-1;0<=r;r--){var a=n[r];if("string"==typeof a.name){var o=t,i=a.env;t=o+Ee(a.name+(i?" ["+i+"]":""))}}e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function Re(e){return(e=e?e.displayName||e.name:"")?Ee(e):""}function ze(){if(null===Xd)return null;var e=Xd._debugOwner;return null!=e?S(e):null}function Oe(){if(null===Xd)return"";var e=Xd;try{var t="";switch(6===e.tag&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Ee(e.type);break;case 13:t+=Ee("Suspense");break;case 19:t+=Ee("SuspenseList");break;case 31:t+=Ee("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||""!==t||(t+=Re(e.type));break;case 11:e._debugOwner||""!==t||(t+=Re(e.type.render))}for(;e;)if("number"==typeof e.tag){var n=e;e=n._debugOwner;var r=n._debugStack;e&&r&&("string"!=typeof r&&(n._debugStack=r=Te(r)),""!==r&&(t+="\n"+r))}else{if(null==e.debugStack)break;var a=e.debugStack;(e=e.owner)&&a&&(t+="\n"+Te(a))}var o=t}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return o}function Ae(e,t,n,r,a,o,i){var l=Xd;Le(e);try{return null!==e&&e._debugTask?e._debugTask.run(t.bind(null,n,r,a,o,i)):t(n,r,a,o,i)}finally{Le(l)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Le(e){qc.getCurrentStack=null===e?null:Oe,Zd=!1,Xd=e}function Ie(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return F(e),e;default:return""}}function De(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Me(e){e._valueTracker||(e._valueTracker=function(e){var t=De(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);F(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){F(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){F(e),r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function je(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=De(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $e(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Fe(e){return e.replace(Jd,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ue(e,t){void 0===t.checked||void 0===t.defaultChecked||tf||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ze()||"A component",t.type),tf=!0),void 0===t.value||void 0===t.defaultValue||ef||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ze()||"A component",t.type),ef=!0)}function He(e,t,n,r,a,o,i,l){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?(j(i,"type"),e.type=i):e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+Ie(t)):e.value!==""+Ie(t)&&(e.value=""+Ie(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?Be(e,i,Ie(t)):null!=n?Be(e,i,Ie(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?(j(l,"name"),e.name=""+Ie(l)):e.removeAttribute("name")}function We(e,t,n,r,a,o,i,l){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(j(o,"type"),e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+Ie(n):"",t=null!=t?""+Ie(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(j(i,"name"),e.name=i)}function Be(e,t,n){"number"===t&&$e(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ve(e,t){null==t.value&&("object"==typeof t.children&&null!==t.children?Cc.Children.forEach(t.children,function(e){null==e||"string"==typeof e||"number"==typeof e||"bigint"==typeof e||rf||(rf=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):null==t.dangerouslySetInnerHTML||af||(af=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),null==t.selected||nf||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),nf=!0)}function qe(){var e=ze();return e?"\n\nCheck the render method of `"+e+"`.":""}function Ke(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ie(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Qe(e,t){for(e=0;e<lf.length;e++){var n=lf[e];if(null!=t[n]){var r=Vc(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,qe()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,qe())}}void 0===t.value||void 0===t.defaultValue||of||(console.error("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://react.dev/link/controlled-components"),of=!0)}function Ye(e,t){void 0===t.value||void 0===t.defaultValue||sf||(console.error("%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://react.dev/link/controlled-components",ze()||"A component"),sf=!0),null!=t.children&&null==t.value&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Ge(e,t,n){null==t||((t=""+Ie(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+Ie(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Xe(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Vc(r)){if(1<r.length)throw Error("<textarea> can only have at most one child.");r=r[0]}n=r}null==n&&(n=""),t=n}n=Ie(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function Ze(e,t){return void 0===e.serverProps&&0===e.serverTail.length&&1===e.children.length&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ze(e.children[0],t):e}function Je(e){return" "+" ".repeat(e)}function et(e){return"+ "+" ".repeat(e)}function tt(e){return"- "+" ".repeat(e)}function nt(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:case 1:return(e=e.type).displayName||e.name||null;case 11:return(e=e.type.render).displayName||e.name||null;default:return null}}function rt(e,t){return uf.test(e)?(e=JSON.stringify(e)).length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}":e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function at(e,t,n){var r=120-2*n;if(null===t)return et(n)+rt(e,r)+"\n";if("string"==typeof t){for(var a=0;a<t.length&&a<e.length&&t.charCodeAt(a)===e.charCodeAt(a);a++);return a>r-8&&10<a&&(e="..."+e.slice(a-8),t="..."+t.slice(a-8)),et(n)+rt(e,r)+"\n"+tt(n)+rt(t,r)+"\n"}return Je(n)+rt(e,r)+"\n"}function ot(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function it(e,t){switch(typeof e){case"string":return(e=JSON.stringify(e)).length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(null===e)return"null";if(Vc(e))return"[...]";if(e.$$typeof===Pc)return(t=w(e.type))?"<"+t+">":"<...>";var n=ot(e);if("Object"===n){for(var r in n="",t-=2,e)if(e.hasOwnProperty(r)){var a=JSON.stringify(r);if(a!=='"'+r+'"'&&(r=a),t-=r.length-2,0>(t-=(a=it(e[r],15>t?t:15)).length)){n+=""===n?"...":", ...";break}n+=(""===n?"":",")+r+":"+a}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function lt(e,t){return"string"!=typeof e||uf.test(e)?"{"+it(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function st(e,t,n){var r,a=120-n.length-e.length,o=[];for(r in t)if(t.hasOwnProperty(r)&&"children"!==r){var i=lt(t[r],120-n.length-r.length-1);a-=r.length+i.length+2,o.push(r+"="+i)}return 0===o.length?n+"<"+e+">\n":0<a?n+"<"+e+" "+o.join(" ")+">\n":n+"<"+e+"\n"+n+" "+o.join("\n"+n+" ")+"\n"+n+">\n"}function ut(e,t,n){var r,a="",o=_c({},t);for(r in e)if(e.hasOwnProperty(r)){delete o[r];var i=120-2*n-r.length-2,l=it(e[r],i);t.hasOwnProperty(r)?(i=it(t[r],i),a+=et(n)+r+": "+l+"\n",a+=tt(n)+r+": "+i+"\n"):a+=et(n)+r+": "+l+"\n"}for(var s in o)o.hasOwnProperty(s)&&(e=it(o[s],120-2*n-s.length-2),a+=tt(n)+s+": "+e+"\n");return a}function ct(e,t){var n=nt(e);if(null===n){for(n="",e=e.child;e;)n+=ct(e,t),e=e.sibling;return n}return Je(t)+"<"+n+">\n"}function dt(e,t){var n=Ze(e,t);if(n!==e&&(1!==e.children.length||e.children[0]!==n))return Je(t)+"...\n"+dt(n,t+1);n="";var r=e.fiber._debugInfo;if(r)for(var a=0;a<r.length;a++){var o=r[a].name;"string"==typeof o&&(n+=Je(t)+"<"+o+">\n",t++)}if(r="",a=e.fiber.pendingProps,6===e.fiber.tag)r=at(a,e.serverProps,t),t++;else if(null!==(o=nt(e.fiber)))if(void 0===e.serverProps){var i=120-2*(r=t)-o.length-2,l="";for(u in a)if(a.hasOwnProperty(u)&&"children"!==u){var s=lt(a[u],15);if(0>(i-=u.length+s.length+2)){l+=" ...";break}l+=" "+u+"="+s}r=Je(r)+"<"+o+l+">\n",t++}else null===e.serverProps?(r=st(o,a,et(t)),t++):"string"==typeof e.serverProps?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(r=function(e,t,n,r){var a="",o=new Map;for(u in n)n.hasOwnProperty(u)&&o.set(u.toLowerCase(),u);if(1===o.size&&o.has("children"))a+=st(e,t,Je(r));else{for(var i in t)if(t.hasOwnProperty(i)&&"children"!==i){var l=120-2*(r+1)-i.length-1,s=o.get(i.toLowerCase());if(void 0!==s){o.delete(i.toLowerCase());var u=t[i];s=n[s];var c=lt(u,l);l=lt(s,l),"object"==typeof u&&null!==u&&"object"==typeof s&&null!==s&&"Object"===ot(u)&&"Object"===ot(s)&&(2<Object.keys(u).length||2<Object.keys(s).length||-1<c.indexOf("...")||-1<l.indexOf("..."))?a+=Je(r+1)+i+"={{\n"+ut(u,s,r+2)+Je(r+1)+"}}\n":(a+=et(r+1)+i+"="+c+"\n",a+=tt(r+1)+i+"="+l+"\n")}else a+=Je(r+1)+i+"="+lt(t[i],l)+"\n"}o.forEach(function(e){if("children"!==e){var t=120-2*(r+1)-e.length-1;a+=tt(r+1)+e+"="+lt(n[e],t)+"\n"}}),a=""===a?Je(r)+"<"+e+">\n":Je(r)+"<"+e+"\n"+a+Je(r)+">\n"}return e=n.children,t=t.children,"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(o="","string"!=typeof t&&"number"!=typeof t&&"bigint"!=typeof t||(o=""+t),a+=at(o,""+e,r+1)):"string"!=typeof t&&"number"!=typeof t&&"bigint"!=typeof t||(a=null==e?a+at(""+t,null,r+1):a+at(""+t,void 0,r+1)),a}(o,a,e.serverProps,t),t++);var u="";for(a=e.fiber.child,o=0;a&&o<e.children.length;)(i=e.children[o]).fiber===a?(u+=dt(i,t),o++):u+=ct(a,t),a=a.sibling;for(a&&0<e.children.length&&(u+=Je(t)+"...\n"),a=e.serverTail,null===e.serverProps&&t--,e=0;e<a.length;e++)u="string"==typeof(o=a[e])?u+(tt(t)+rt(o,120-2*t)+"\n"):u+st(o.type,o.props,tt(t));return n+r+u}function ft(e){try{return"\n\n"+dt(e,0)}catch(e){return""}}function pt(e,t,n){for(var r=t,a=null,o=0;r;)r===e&&(o=0),a={fiber:r,children:null!==a?[a]:[],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:o},o++,r=r.return;return null!==a?ft(a).replaceAll(/^[+-]/gm,">"):""}function ht(e,t){var n=_c({},e||hf),r={tag:t};return-1!==df.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==ff.indexOf(t)&&(n.pTagInButtonScope=null),-1!==cf.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),"#document"===t||"html"===t?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=r),null!==e||"#document"!==t&&"html"!==t&&"body"!==t?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function mt(e,t,n){switch(t){case"select":return"hr"===e||"option"===e||"optgroup"===e||"script"===e||"template"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":if(n)break;return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":if(!n)return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===pf.indexOf(t);case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t;case"head":return n||null===t;case"html":return n&&"#document"===t||null===t;case"body":return n&&("#document"===t||"html"===t)||null===t}return!0}function gt(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function bt(e,t){var n=(t=t||hf).current;if(t=(n=mt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,t),!(t=n||t))return!0;var r=t.tag;if(t=String(!!n)+"|"+e+"|"+r,mf[t])return!1;mf[t]=!0;var a=(t=Xd)?gt(t.return,r):null,o=null!==t&&null!==a?pt(a,t,null):"",i="<"+e+">";return n?(n="","table"===r&&"tr"===e&&(n+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error("In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s",i,r,n,o)):console.error("In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s",i,r,o),t&&(e=t.return,null===a||null===e||a===e&&e._debugOwner===t._debugOwner||Ae(a,function(){console.error("<%s> cannot contain a nested %s.\nSee this log for the ancestor stack trace.",r,i)})),!1}function yt(e,t,n){if(n||mt("#text",t,!1))return!0;if(mf[n="#text|"+t])return!1;mf[n]=!0;var r=(n=Xd)?gt(n,t):null;return n=null!==n&&null!==r?pt(r,n,6!==n.tag?{children:null}:null):"",/\S/.test(e)?console.error("In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s",t,n):console.error("In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s",t,n),!1}function vt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function wt(e,t,n){var r=0===t.indexOf("--");r||(-1<t.indexOf("-")?xf.hasOwnProperty(t)&&xf[t]||(xf[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,t.replace(wf,"ms-").replace(kf,function(e,t){return t.toUpperCase()}))):vf.test(t)?xf.hasOwnProperty(t)&&xf[t]||(xf[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Sf.test(n)||Cf.hasOwnProperty(n)&&Cf[n]||(Cf[n]=!0,console.error('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',t,n.replace(Sf,""))),"number"==typeof n&&(isNaN(n)?Ef||(Ef=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||_f||(_f=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Tf.has(t)?"float"===t?e.cssFloat=n:($(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function kt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,null!=n){if(t){var r={};if(n)for(var a in n)if(n.hasOwnProperty(a)&&!t.hasOwnProperty(a))for(var o=gf[a]||[a],i=0;i<o.length;i++)r[o[i]]=a;for(var l in t)if(t.hasOwnProperty(l)&&(!n||n[l]!==t[l]))for(a=gf[l]||[l],o=0;o<a.length;o++)r[a[o]]=l;for(var s in l={},t)for(a=gf[s]||[s],o=0;o<a.length;o++)l[a[o]]=s;for(var u in s={},r)if(a=r[u],(o=l[u])&&a!==o&&!s[i=a+","+o]){s[i]=!0,i=console;var c=t[a];i.error.call(i,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==c||"boolean"==typeof c||""===c?"Removing":"Updating",a,o)}}for(var d in n)!n.hasOwnProperty(d)||null!=t&&t.hasOwnProperty(d)||(0===d.indexOf("--")?e.setProperty(d,""):"float"===d?e.cssFloat="":e[d]="");for(var f in t)u=t[f],t.hasOwnProperty(f)&&n[f]!==u&&wt(e,f,u)}else for(r in t)t.hasOwnProperty(r)&&wt(e,r,t[r])}function St(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xt(e){return Rf.get(e)||e}function Ct(e,t){if(nd.call(Af,t)&&Af[t])return!0;if(If.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),null==(e=Of.hasOwnProperty(e)?e:null))return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Af[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Af[t]=!0}if(Lf.test(t)){if(e=t.toLowerCase(),null==(e=Of.hasOwnProperty(e)?e:null))return Af[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Af[t]=!0)}return!0}function Et(e,t,n,r){if(nd.call(Mf,t)&&Mf[t])return!0;var a=t.toLowerCase();if("onfocusin"===a||"onfocusout"===a)return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Mf[t]=!0;if("function"==typeof n&&("form"===e&&"action"===t||"input"===e&&"formAction"===t||"button"===e&&"formAction"===t))return!0;if(null!=r){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(null!=(r=e.hasOwnProperty(a)?e[a]:null))return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Mf[t]=!0;if(jf.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Mf[t]=!0}else if(jf.test(t))return $f.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Mf[t]=!0;if(Ff.test(t)||Uf.test(t))return!0;if("innerhtml"===a)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Mf[t]=!0;if("aria"===a)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Mf[t]=!0;if("is"===a&&null!=n&&"string"!=typeof n)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Mf[t]=!0;if("number"==typeof n&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Mf[t]=!0;if(zf.hasOwnProperty(a)){if((a=zf[a])!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,a),Mf[t]=!0}else if(t!==a)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,a),Mf[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return"data-"===(a=t.toLowerCase().slice(0,5))||"aria-"===a||(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),Mf[t]=!0)}case"function":case"symbol":return Mf[t]=!0,!1;case"string":if("false"===n||"true"===n){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),Mf[t]=!0}}return!0}function _t(e){return Hf.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Tt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Pt(e){var t=fe(e);if(t&&(e=t.stateNode)){var n=e[Od]||null;e:switch(e=t.stateNode,t.type){case"input":if(He(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(j(t,"name"),n=n.querySelectorAll('input[name="'+Fe(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Od]||null;if(!a)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");He(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&je(r)}break e;case"textarea":Ge(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&Ke(e,!!n.multiple,t,!1)}}}function Nt(e,t,n){if(qf)return e(t,n);qf=!0;try{return e(t)}finally{if(qf=!1,(null!==Bf||null!==Vf)&&(_l(),Bf&&(t=Bf,e=Vf,Vf=Bf=null,Pt(t),e)))for(t=0;t<e.length;t++)Pt(e[t])}}function Rt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Od]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function zt(){if(tp)return tp;var e,t,n=ep,r=n.length,a="value"in Jf?Jf.value:Jf.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return tp=a.slice(e,1<t?1-t:void 0)}function Ot(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function At(){return!0}function Lt(){return!1}function It(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?At:Lt,this.isPropagationStopped=Lt,this}return _c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=At)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=At)},persist:function(){},isPersistent:At}),t}function Dt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=gp[e])&&!!t[e]}function Mt(){return Dt}function jt(e,t){switch(e){case"keyup":return-1!==xp.indexOf(t.keyCode);case"keydown":return t.keyCode!==Cp;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $t(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function Ft(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ap[e.type]:"textarea"===t}function Ut(e,t,n,r){Bf?Vf?Vf.push(r):Vf=[r]:Bf=r,0<(t=Ps(t,"onChange")).length&&(n=new rp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}function Ht(e){ks(e,0)}function Wt(e){if(je(pe(e)))return e}function Bt(e,t){if("change"===e)return t}function Vt(){Lp&&(Lp.detachEvent("onpropertychange",qt),Ip=Lp=null)}function qt(e){if("value"===e.propertyName&&Wt(Ip)){var t=[];Ut(t,Ip,e,Tt(e)),Nt(Ht,t)}}function Kt(e,t,n){"focusin"===e?(Vt(),Ip=n,(Lp=t).attachEvent("onpropertychange",qt)):"focusout"===e&&Vt()}function Qt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wt(Ip)}function Yt(e,t){if("click"===e)return Wt(t)}function Gt(e,t){if("input"===e||"change"===e)return Wt(t)}function Xt(e,t){if(Mp(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!nd.call(t,a)||!Mp(e[a],t[a]))return!1}return!0}function Zt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jt(e,t){var n,r=Zt(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Zt(r)}}function en(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?en(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tn(e){for(var t=$e((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=$e((e=t.contentWindow).document)}return t}function nn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function rn(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Hp||null==$p||$p!==$e(r)||(r="selectionStart"in(r=$p)&&nn(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Up&&Xt(Up,r)||(Up=r,0<(r=Ps(Fp,"onSelect")).length&&(t=new rp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$p)))}function an(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function on(e){if(Bp[e])return Bp[e];if(!Wp[e])return e;var t,n=Wp[e];for(t in n)if(n.hasOwnProperty(t)&&t in Vp)return Bp[e]=n[t];return e}function ln(e,t){Jp.set(e,t),ge(t,[e])}function sn(e,t){if("object"==typeof e&&null!==e){var n=th.get(e);return void 0!==n?n:(t={value:e,source:t,stack:Ne(t)},th.set(e,t),t)}return{value:e,source:t,stack:Ne(t)}}function un(){for(var e=oh,t=ih=oh=0;t<e;){var n=ah[t];ah[t++]=null;var r=ah[t];ah[t++]=null;var a=ah[t];ah[t++]=null;var o=ah[t];if(ah[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==o&&pn(n,a,o)}}function cn(e,t,n,r){ah[oh++]=e,ah[oh++]=t,ah[oh++]=n,ah[oh++]=r,ih|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function dn(e,t,n,r){return cn(e,t,n,r),hn(e)}function fn(e,t){return cn(e,null,null,t),hn(e)}function pn(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||e._visibility&nh||(a=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,a&&null!==t&&(a=31-kd(n),null===(r=(e=o.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),o):null}function hn(e){if(Hy>Uy)throw Ky=Hy=0,Qy=Wy=null,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.");Ky>qy&&(Ky=0,Qy=null,console.error("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.")),null===e.alternate&&4098&e.flags&&is(e);for(var t=e,n=t.return;null!==n;)null===t.alternate&&!!(4098&t.flags)&&is(e),n=(t=n).return;return 3===t.tag?t.stateNode:null}function mn(e){if(null===sh)return e;var t=sh(e);return void 0===t?e:t.current}function gn(e){if(null===sh)return e;var t=sh(e);return void 0===t?null!=e&&"function"==typeof e.render&&(t=mn(e.render),e.render!==t)?(t={$$typeof:Dc,render:t},void 0!==e.displayName&&(t.displayName=e.displayName),t):e:t.current}function bn(e,t){if(null===sh)return!1;var n=e.elementType,r=!1,a="object"==typeof(t=t.type)&&null!==t?t.$$typeof:null;switch(e.tag){case 1:"function"==typeof t&&(r=!0);break;case 0:("function"==typeof t||a===Fc)&&(r=!0);break;case 11:(a===Dc||a===Fc)&&(r=!0);break;case 14:case 15:(a===$c||a===Fc)&&(r=!0);break;default:return!1}return!(!r||(e=sh(n),void 0===e||e!==sh(t)))}function yn(e){null!==sh&&"function"==typeof WeakSet&&(null===uh&&(uh=new WeakSet),uh.add(e))}function vn(e,t,n){var r=e.alternate,a=e.child,o=e.sibling,i=e.tag,l=e.type,s=null;switch(i){case 0:case 15:case 1:s=l;break;case 11:s=l.render}if(null===sh)throw Error("Expected resolveFamily to be set during hot reload.");var u=!1;l=!1,null!==s&&void 0!==(s=sh(s))&&(n.has(s)?l=!0:t.has(s)&&(1===i?l=!0:u=!0)),null!==uh&&(uh.has(e)||null!==r&&uh.has(r))&&(l=!0),l&&(e._debugNeedsRemount=!0),(l||u)&&null!==(r=fn(e,2))&&kl(r,e,2),null===a||l||vn(a,t,n),null!==o&&vn(o,t,n)}function wn(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,gh||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}function kn(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Sn(e,t){var n=e.alternate;switch(null===n?((n=p(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:case 1:n.type=mn(e.type);break;case 11:n.type=gn(e.type)}return n}function xn(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function Cn(e,t,n,r,a,o){var i=0,l=e;if("function"==typeof e)kn(e)&&(i=1),l=mn(l);else if("string"==typeof e)i=function(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===Dv||null!=t.itemProp)return!r||null==t.itemProp||"meta"!==e&&"title"!==e&&"style"!==e&&"link"!==e&&"script"!==e||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError){if("stylesheet"===t.rel&&"string"==typeof t.precedence){e=t.href;var a=t.onError,o=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),a&&n.push("`onError`"),null!=o&&n.push("`disabled`"),a=function(e){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" and "+e[1];default:return e.slice(0,-1).join(", ")+", and "+e[e.length-1]}}(n),a+=1===n.length?" prop":" props",o=1===n.length?"an "+a:"the "+a,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,o,a)}r&&("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return"stylesheet"!==t.rel||(e=t.precedence,t=t.disabled,"string"!=typeof e&&r&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),"string"==typeof e&&null==t);case"script":if(!(e=t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async)||t.onLoad||t.onError||!t.src||"string"!=typeof t.src){r&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":r&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}(e,n,i=z())?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case Uc:return(t=p(31,n,t,a)).elementType=Uc,t.lanes=o,t;case Rc:return _n(n.children,a,o,t);case zc:i=8,a|=ph,a|=hh;break;case Oc:return r=a,"string"!=typeof(e=n).id&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),(t=p(12,e,t,r|fh)).elementType=Oc,t.lanes=o,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Mc:return(t=p(13,n,t,a)).elementType=Mc,t.lanes=o,t;case jc:return(t=p(19,n,t,a)).elementType=jc,t.lanes=o,t;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ac:case Ic:i=10;break e;case Lc:i=9;break e;case Dc:i=11,l=gn(l);break e;case $c:i=14;break e;case Fc:i=16,l=null;break e}l="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?n="null":Vc(e)?n="array":void 0!==e&&e.$$typeof===Pc?(n="<"+(w(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(i=r?S(r):null)&&(l+="\n\nCheck the render method of `"+i+"`."),i=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+n+"."+l),l=null}return(t=p(i,n,t,a)).elementType=e,t.type=l,t.lanes=o,t._debugOwner=r,t}function En(e,t,n){return(t=Cn(e.type,e.key,e.props,e._owner,t,n))._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function _n(e,t,n,r){return(e=p(7,e,r,t)).lanes=n,e}function Tn(e,t,n){return(e=p(6,e,null,t)).lanes=n,e}function Pn(e,t,n){return(t=p(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nn(e,t){An(),bh[yh++]=wh,bh[yh++]=vh,vh=e,wh=t}function Rn(e,t,n){An(),kh[Sh++]=Ch,kh[Sh++]=Eh,kh[Sh++]=xh,xh=e;var r=Ch;e=Eh;var a=32-kd(r)-1;r&=~(1<<a),n+=1;var o=32-kd(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ch=1<<32-kd(t)+a|n<<a|r,Eh=o+e}else Ch=1<<o|n<<a|r,Eh=e}function zn(e){An(),null!==e.return&&(Nn(e,1),Rn(e,1,0))}function On(e){for(;e===vh;)vh=bh[--yh],bh[yh]=null,wh=bh[--yh],bh[yh]=null;for(;e===xh;)xh=kh[--Sh],kh[Sh]=null,Eh=kh[--Sh],kh[Sh]=null,Ch=kh[--Sh],kh[Sh]=null}function An(){Ph||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Ln(e,t){if(null===e.return){if(null===Rh)Rh={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Rh.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Rh.distanceFromLeaf>t&&(Rh.distanceFromLeaf=t)}return Rh}var n=Ln(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?((n=n[n.length-1]).distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function In(e,t){Nh||((e=Ln(e,0)).serverProps=null,null!==t&&(t=gu(t),e.serverTail.push(t)))}function Dn(e){var t="",n=Rh;throw null!==n&&(Rh=null,t=ft(n)),Hn(sn(Error("Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch"+t),e)),Ah}function Mn(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[zd]=e,t[Od]=r,zs(n,r),n){case"dialog":Ss("cancel",t),Ss("close",t);break;case"iframe":case"object":case"embed":Ss("load",t);break;case"video":case"audio":for(n=0;n<lv.length;n++)Ss(lv[n],t);break;case"source":Ss("error",t);break;case"img":case"image":case"link":Ss("error",t),Ss("load",t);break;case"details":Ss("toggle",t);break;case"input":ye("input",r),Ss("invalid",t),Ue(0,r),We(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),Me(t);break;case"option":Ve(0,r);break;case"select":ye("select",r),Ss("invalid",t),Qe(t,r);break;case"textarea":ye("textarea",r),Ss("invalid",t),Ye(0,r),Xe(t,r.value,r.defaultValue,r.children),Me(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Ds(t.textContent,n)?(null!=r.popover&&(Ss("beforetoggle",t),Ss("toggle",t)),null!=r.onScroll&&Ss("scroll",t),null!=r.onScrollEnd&&Ss("scrollend",t),null!=r.onClick&&(t.onclick=Ms),t=!0):t=!1,t||Dn(e)}function jn(e){for(_h=e.return;_h;)switch(_h.tag){case 5:case 13:return void(Oh=!1);case 27:case 3:return void(Oh=!0);default:_h=_h.return}}function $n(e){if(e!==_h)return!1;if(!Ph)return jn(e),Ph=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Js(e.type,e.memoizedProps)),t=!t),t&&Th){for(t=Th;t;){var r=Ln(e,0),a=gu(t);r.serverTail.push(a),t="Suspense"===a.type?yu(t):mu(t.nextSibling)}Dn(e)}if(jn(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Th=yu(e)}else 27===n?(n=Th,ou(e.type)?(e=Kv,Kv=null,Th=e):Th=n):Th=_h?mu(e.stateNode.nextSibling):null;return!0}function Fn(){Th=_h=null,Nh=Ph=!1}function Un(){var e=zh;return null!==e&&(null===by?by=e:by.push.apply(by,e),zh=null),e}function Hn(e){null===zh?zh=[e]:zh.push(e)}function Wn(){var e=Rh;if(null!==e){Rh=null;for(var t=ft(e);0<e.children.length;)e=e.children[0];Ae(e.fiber,function(){console.error("A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s","https://react.dev/link/hydration-mismatch",t)})}}function Bn(){Hh=Uh=null,Wh=!1}function Vn(e,t,n){_(jh,t._currentValue,e),t._currentValue=n,_($h,t._currentRenderer,e),void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==Fh&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Fh}function qn(e,t){e._currentValue=jh.current;var n=$h.current;E($h,t),e._currentRenderer=n,E(jh,t)}function Kn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}e!==n&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Qn(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var o=a.dependencies;if(null!==o){var i=a.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=a;for(var s=0;s<t.length;s++)if(l.context===t[s]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Kn(o.return,n,e),r||(i=null);break e}o=l.next}}else if(18===a.tag){if(null===(i=a.return))throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");i.lanes|=n,null!==(o=i.alternate)&&(o.lanes|=n),Kn(i,n,e),i=null}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===e){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}}function Yn(e,t,n,r){e=null;for(var a=t,o=!1;null!==a;){if(!o)if(524288&a.flags)o=!0;else if(262144&a.flags)break;if(10===a.tag){var i=a.alternate;if(null===i)throw Error("Should have a current fiber. This is a bug in React.");if(null!==(i=i.memoizedProps)){var l=a.type;Mp(a.pendingProps.value,i.value)||(null!==e?e.push(l):e=[l])}}else if(a===td.current){if(null===(i=a.alternate))throw Error("Should have a current fiber. This is a bug in React.");i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(bw):e=[bw])}a=a.return}null!==e&&Qn(t,e,n,r),t.flags|=262144}function Gn(e){for(e=e.firstContext;null!==e;){if(!Mp(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xn(e){Uh=e,Hh=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Zn(e){return Wh&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),er(Uh,e)}function Jn(e,t){return null===Uh&&Xn(e),er(e,t)}function er(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Hh){if(null===e)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Hh=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Hh=Hh.next=t;return n}function tr(){return{controller:new Bh,data:new Map,refCount:0}}function nr(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function rr(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),0===e.refCount&&Vh(qh,function(){e.controller.abort()})}function ar(){var e=Zh;return Zh=0,e}function or(e){var t=Zh;return Zh=e,t}function ir(e){var t=Zh;return Zh+=e,t}function lr(e){Xh=Qh(),0>e.actualStartTime&&(e.actualStartTime=Xh)}function sr(e){if(0<=Xh){var t=Qh()-Xh;e.actualDuration+=t,e.selfBaseDuration=t,Xh=-1}}function ur(e){if(0<=Xh){var t=Qh()-Xh;e.actualDuration+=t,Xh=-1}}function cr(){if(0<=Xh){var e=Qh()-Xh;Xh=-1,Zh+=e}}function dr(){Xh=Qh()}function fr(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function pr(){if(0===--nm&&null!==tm){null!==am&&(am.status="fulfilled");var e=tm;tm=null,rm=0,am=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hr(){var e=im.current;return null!==e?e:Vb.pooledCache}function mr(e,t){_(im,null===t?im.current:t.pool,e)}function gr(){var e=hr();return null===e?null:{parent:Kh._currentValue,pool:e}}function br(e){return"fulfilled"===(e=e.status)||"rejected"===e}function yr(){}function vr(e,t,n){null!==qc.actQueue&&(qc.didUsePromise=!0);var r=e.thenables;switch(void 0===(n=r[n])?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(yr,yr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw kr(e=t.reason),e;default:if("string"==typeof t.status)t.then(yr,yr);else{if(null!==(e=Vb)&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw kr(e=t.reason),e}throw Sm=t,xm=!0,ym}}function wr(){if(null===Sm)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Sm;return Sm=null,xm=!1,e}function kr(e){if(e===ym||e===wm)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Sr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Cr(e){return{lane:e,tag:Nm,payload:null,callback:null,next:null}}function Er(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,Im===r&&!Lm){var a=x(e);console.error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s",a),Lm=!0}return(Bb&Ib)!==Lb?(null===(a=r.pending)?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=hn(e),pn(e,null,n),t):(cn(e,r,t,n),hn(e))}function _r(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ae(e,n)}}function Tr(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Pr(){if(Dm&&null!==am)throw am}function Nr(e,t,n,r){Dm=!1;var a=e.updateQueue;Am=!1,Im=a.shared;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?o=u:i.next=u,i=s;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s)}if(null!==o){var d=a.baseState;for(i=0,c=u=s=null,l=o;;){var f=-536870913&l.lane,p=f!==l.lane;if(p?(Kb&f)===f:(r&f)===f){0!==f&&f===rm&&(Dm=!0),null!==c&&(c=c.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{f=e;var h=l,m=t,g=n;switch(h.tag){case Rm:if("function"==typeof(h=h.payload)){Wh=!0;var b=h.call(g,d,m);if(f.mode&ph){U(!0);try{h.call(g,d,m)}finally{U(!1)}}Wh=!1,d=b;break e}d=h;break e;case Om:f.flags=-65537&f.flags|128;case Nm:if("function"==typeof(b=h.payload)){if(Wh=!0,h=b.call(g,d,m),f.mode&ph){U(!0);try{b.call(g,d,m)}finally{U(!1)}}Wh=!1}else h=b;if(null==h)break e;d=_c({},d,h);break e;case zm:Am=!0}}null!==(f=l.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=a.callbacks)?a.callbacks=[f]:p.push(f))}else p={lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,i|=f;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(p=l).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}null===c&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null===o&&(a.shared.lanes=0),dy|=i,e.lanes=i,e.memoizedState=d}Im=null}function Rr(e,t){if("function"!=typeof e)throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function zr(e,t){var n=e.shared.hiddenCallbacks;if(null!==n)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Rr(n[e],t)}function Or(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Rr(n[e],t)}function Ar(e,t){var n=uy;_(jm,n,e),_(Mm,t,e),uy=n|t.baseLanes}function Lr(e){_(jm,uy,e),_(Mm,Mm.current,e)}function Ir(e){uy=jm.current,E(Mm,e),E(jm,e)}function Dr(){var e=tg;null===ng?ng=[e]:ng.push(e)}function Mr(){var e=tg;if(null!==ng&&(rg++,ng[rg]!==e)){var t=x(Bm);if(!$m.has(t)&&($m.add(t),null!==ng)){for(var n="",r=0;r<=rg;r++){var a=ng[r],o=r===rg?e:a;for(a=r+1+". "+a;30>a.length;)a+=" ";n+=a+=o+"\n"}console.error("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://react.dev/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}}function jr(e){null==e||Vc(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",tg,typeof e)}function $r(){var e=x(Bm);Hm.has(e)||(Hm.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Fr(){throw 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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.")}function Ur(e,t){if(ag)return!1;if(null===t)return console.error("%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.",tg),!1;e.length!==t.length&&console.error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",tg,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Mp(e[n],t[n]))return!1;return!0}function Hr(e,t,n,r,a,o){Wm=o,Bm=t,ng=null!==e?e._debugHookTypes:null,rg=-1,ag=null!==e&&e.type!==t.type,"[object AsyncFunction]"!==Object.prototype.toString.call(n)&&"[object AsyncGeneratorFunction]"!==Object.prototype.toString.call(n)||(o=x(Bm),Um.has(o)||(Um.add(o),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",null===o?"An unknown Component":"<"+o+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,qc.H=null!==e&&null!==e.memoizedState?sg:null!==ng?lg:ig,Ym=o=(t.mode&ph)!==ch;var i=mg(n,r,a);if(Ym=!1,Qm&&(i=Br(t,n,r,a)),o){U(!0);try{i=Br(t,n,r,a)}finally{U(!1)}}return Wr(e,t),i}function Wr(e,t){t._debugHookTypes=ng,null===t.dependencies?null!==Zm&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Zm}):t.dependencies._debugThenableState=Zm,qc.H=og;var n=null!==Vm&&null!==Vm.next;if(Wm=0,ng=tg=qm=Vm=Bm=null,rg=-1,null!==e&&(65011712&e.flags)!=(65011712&t.flags)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Km=!1,Xm=0,Zm=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");null===e||sb||null!==(e=e.dependencies)&&Gn(e)&&(sb=!0),xm?(xm=!1,e=!0):e=!1,e&&(t=x(t)||"Unknown",Fm.has(t)||Um.has(t)||(Fm.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Br(e,t,n,r){Bm=e;var a=0;do{if(Qm&&(Zm=null),Xm=0,Qm=!1,a>=eg)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a+=1,ag=!1,qm=Vm=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}rg=-1,qc.H=ug,o=mg(t,n,r)}while(Qm);return o}function Vr(){var e=qc.H,t=e.useState()[0];return t="function"==typeof t.then?Xr(t):t,e=e.useState()[0],(null!==Vm?Vm.memoizedState:null)!==e&&(Bm.flags|=1024),t}function qr(){var e=0!==Gm;return Gm=0,e}function Kr(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&hh)!==ch?-402655237&t.flags:-2053&t.flags,e.lanes&=~n}function Qr(e){if(Km){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Km=!1}Wm=0,ng=qm=Vm=Bm=null,rg=-1,tg=null,Qm=!1,Xm=Gm=0,Zm=null}function Yr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qm?Bm.memoizedState=qm=e:qm=qm.next=e,qm}function Gr(){if(null===Vm){var e=Bm.alternate;e=null!==e?e.memoizedState:null}else e=Vm.next;var t=null===qm?Bm.memoizedState:qm.next;if(null!==t)qm=t,Vm=e;else{if(null===e){if(null===Bm.alternate)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}e={memoizedState:(Vm=e).memoizedState,baseState:Vm.baseState,baseQueue:Vm.baseQueue,queue:Vm.queue,next:null},null===qm?Bm.memoizedState=qm=e:qm=qm.next=e}return qm}function Xr(e){var t=Xm;return Xm+=1,null===Zm&&(Zm={didWarnAboutUncachedPromise:!1,thenables:[]}),e=vr(Zm,e,t),t=Bm,null===(null===qm?t.memoizedState:qm.next)&&(t=t.alternate,qc.H=null!==t&&null!==t.memoizedState?sg:ig),e}function Zr(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Xr(e);if(e.$$typeof===Ic)return Zn(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Jr(e){var t=null,n=Bm.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Bm.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Bm.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index])||ag)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Hc;else n.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",n.length,e);return t.index++,n}function ea(e,t){return"function"==typeof t?t(e):t}function ta(e,t,n){var r=Yr();if(void 0!==n){var a=n(t);if(Ym){U(!0);try{n(t)}finally{U(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=oo.bind(null,Bm,e),[r.memoizedState,e]}function na(e){return ra(Gr(),Vm,e)}function ra(e,t,n){var r=e.queue;if(null===r)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(null!==o){if(null!==a){var i=a.next;a.next=o.next,o.next=i}t.baseQueue!==a&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=a=o,r.pending=null}if(o=e.baseState,null===a)e.memoizedState=o;else{var l=i=null,s=null,u=t=a.next,c=!1;do{var d=-536870913&u.lane;if(d!==u.lane?(Kb&d)===d:(Wm&d)===d){var f=u.revertLane;if(0===f)null!==s&&(s=s.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===rm&&(c=!0);else{if((Wm&f)===f){u=u.next,f===rm&&(c=!0);continue}d={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===s?(l=s=d,i=o):s=s.next=d,Bm.lanes|=f,dy|=f}d=u.action,Ym&&n(o,d),o=u.hasEagerState?u.eagerState:n(o,d)}else f={lane:d,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===s?(l=s=f,i=o):s=s.next=f,Bm.lanes|=d,dy|=d;u=u.next}while(null!==u&&u!==t);if(null===s?i=o:s.next=l,!Mp(o,e.memoizedState)&&(sb=!0,c&&null!==(n=am)))throw n;e.memoizedState=o,e.baseState=i,e.baseQueue=s,r.lastRenderedState=o}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function aa(e){var t=Gr(),n=t.queue;if(null===n)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{o=e(o,i.action),i=i.next}while(i!==a);Mp(o,t.memoizedState)||(sb=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function oa(e,t,n){var r=Bm,a=Yr();if(Ph){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var o=n();bm||o===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),bm=!0)}else{if(o=t(),bm||(n=t(),Mp(o,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),bm=!0)),null===Vb)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");124&Kb||la(r,t,o)}return a.memoizedState=o,n={value:o,getSnapshot:t},a.queue=n,La(ua.bind(null,r,n,e),[e]),r.flags|=2048,Ra(Em|Pm,{destroy:void 0,resource:void 0},sa.bind(null,r,n,o,t),null),o}function ia(e,t,n){var r=Bm,a=Gr(),o=Ph;if(o){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!bm){var i=t();Mp(n,i)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),bm=!0)}(i=!Mp((Vm||a).memoizedState,n))&&(a.memoizedState=n,sb=!0),a=a.queue;var l=ua.bind(null,r,a,e);if(Aa(2048,Pm,l,[e]),a.getSnapshot!==t||i||null!==qm&&qm.memoizedState.tag&Em){if(r.flags|=2048,Ra(Em|Pm,{destroy:void 0,resource:void 0},sa.bind(null,r,a,n,t),null),null===Vb)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");o||124&Wm||la(r,t,n)}return n}function la(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Bm.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Bm.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function sa(e,t,n,r){t.value=n,t.getSnapshot=r,ca(t)&&da(e)}function ua(e,t,n){return n(function(){ca(t)&&da(e)})}function ca(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mp(e,n)}catch(e){return!0}}function da(e){var t=fn(e,2);null!==t&&kl(t,e,2)}function fa(e){var t=Yr();if("function"==typeof e){var n=e;if(e=n(),Ym){U(!0);try{n()}finally{U(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:e},t}function pa(e){var t=(e=fa(e)).queue,n=io.bind(null,Bm,t);return t.dispatch=n,[e.memoizedState,n]}function ha(e){var t=Yr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=so.bind(null,Bm,!0,n),n.dispatch=t,[e,t]}function ma(e,t){return ga(Gr(),0,e,t)}function ga(e,t,n,r){return e.baseState=n,ra(e,Vm,"function"==typeof r?r:ea)}function ba(e,t){var n=Gr();return null!==Vm?ga(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])}function ya(e,t,n,r,a){if(uo(e))throw Error("Cannot update form state while rendering.");if(null!==(e=t.action)){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==qc.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,va(t,o)):(o.next=n.next,t.pending=n.next=o)}}function va(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=qc.T,i={};qc.T=i,qc.T._updatedFibers=new Set;try{var l=n(a,r),s=qc.S;null!==s&&s(i,l),wa(e,t,l)}catch(n){Sa(e,t,n)}finally{qc.T=o,null===o&&i._updatedFibers&&(e=i._updatedFibers.size,i._updatedFibers.clear(),10<e&&console.warn("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."))}}else try{wa(e,t,i=n(a,r))}catch(n){Sa(e,t,n)}}function wa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?(n.then(function(n){ka(e,t,n)},function(n){return Sa(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):ka(e,t,n)}function ka(e,t,n){t.status="fulfilled",t.value=n,xa(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,va(e,n)))}function Sa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,xa(t),t=t.next}while(t!==r)}e.action=null}function xa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ca(e,t){return t}function Ea(e,t){if(Ph){var n=Vb.formState;if(null!==n){e:{var r=Bm;if(Ph){if(Th){t:{for(var a=Th,o=Oh;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=mu(a.nextSibling))){a=null;break t}}a=(o=a.data)===zv||o===Ov?a:null}if(a){Th=mu(a.nextSibling),r=a.data===zv;break e}}Dn(r)}r=!1}r&&(t=n[0])}}return(n=Yr()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:t},n.queue=r,n=io.bind(null,Bm,r),r.dispatch=n,r=fa(!1),o=so.bind(null,Bm,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=Yr()).queue=a,n=ya.bind(null,Bm,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function _a(e){return Ta(Gr(),Vm,e)}function Ta(e,t,n){if(t=ra(e,t,Ca)[0],e=na(ea)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Xr(t)}catch(e){if(e===ym)throw wm;throw e}else r=t;var a=(t=Gr()).queue,o=a.dispatch;return n!==t.memoizedState&&(Bm.flags|=2048,Ra(Em|Pm,{destroy:void 0,resource:void 0},Pa.bind(null,a,n),null)),[r,o,e]}function Pa(e,t){e.action=t}function Na(e){var t=Gr(),n=Vm;if(null!==n)return Ta(t,n,e);Gr(),t=t.memoizedState;var r=(n=Gr()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ra(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Bm.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Bm.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(e){return e={current:e},Yr().memoizedState=e}function Oa(e,t,n,r){var a=Yr();r=void 0===r?null:r,Bm.flags|=e,a.memoizedState=Ra(Em|t,{destroy:void 0,resource:void 0},n,r)}function Aa(e,t,n,r){var a=Gr();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==Vm&&null!==r&&Ur(r,Vm.memoizedState.deps)?a.memoizedState=Ra(t,o,n,r):(Bm.flags|=e,a.memoizedState=Ra(Em|t,o,n,r))}function La(e,t){(Bm.mode&hh)!==ch&&(Bm.mode&mh)===ch?Oa(276826112,Pm,e,t):Oa(8390656,Pm,e,t)}function Ia(e,t){var n=4194308;return(Bm.mode&hh)!==ch&&(n|=134217728),Oa(n,Tm,e,t)}function Da(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Ma(e,t,n){"function"!=typeof t&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null"),n=null!=n?n.concat([e]):null;var r=4194308;(Bm.mode&hh)!==ch&&(r|=134217728),Oa(r,Tm,Da.bind(null,t,e),n)}function ja(e,t,n){"function"!=typeof t&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null"),n=null!=n?n.concat([e]):null,Aa(4,Tm,Da.bind(null,t,e),n)}function $a(e,t){return Yr().memoizedState=[e,void 0===t?null:t],e}function Fa(e,t){var n=Gr();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ur(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ua(e,t){var n=Yr();t=void 0===t?null:t;var r=e();if(Ym){U(!0);try{e()}finally{U(!1)}}return n.memoizedState=[r,t],r}function Ha(e,t){var n=Gr();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ur(t,r[1]))return r[0];if(r=e(),Ym){U(!0);try{e()}finally{U(!1)}}return n.memoizedState=[r,t],r}function Wa(e,t){return qa(Yr(),e,t)}function Ba(e,t){return Ka(Gr(),Vm.memoizedState,e,t)}function Va(e,t){var n=Gr();return null===Vm?qa(n,e,t):Ka(n,Vm.memoizedState,e,t)}function qa(e,t,n){return void 0===n||1073741824&Wm?e.memoizedState=t:(e.memoizedState=n,e=wl(),Bm.lanes|=e,dy|=e,n)}function Ka(e,t,n,r){return Mp(n,t)?n:null!==Mm.current?(e=qa(e,n,r),Mp(e,t)||(sb=!0),e):42&Wm?(e=wl(),Bm.lanes|=e,dy|=e,t):(sb=!0,e.memoizedState=n)}function Qa(e,t,n,r,a){var o=Kc.p;Kc.p=0!==o&&o<Td?o:Td;var i,l,s,u=qc.T,c={};qc.T=c,so(e,!1,t,n),c._updatedFibers=new Set;try{var d=a(),f=qc.S;null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?lo(e,t,(i=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){s.status="fulfilled",s.value=i;for(var e=0;e<l.length;e++)(0,l[e])(i)},function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),s),vl(e)):lo(e,t,r,vl(e))}catch(n){lo(e,t,{then:function(){},status:"rejected",reason:n},vl(e))}finally{Kc.p=o,qc.T=u,null===u&&c._updatedFibers&&(e=c._updatedFibers.size,c._updatedFibers.clear(),10<e&&console.warn("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."))}}function Ya(e,t,n,r){if(5!==e.tag)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var a=Ga(e).queue;Qa(e,a,t,gw,null===n?d:function(){return Xa(e),n(r)})}function Ga(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:gw,baseState:gw,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:gw},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Xa(e){null===qc.T&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition."),lo(e,Ga(e).next.queue,{},vl(e))}function Za(){var e=fa(!1);return e=Qa.bind(null,Bm,e.queue,!0,!1),Yr().memoizedState=e,[!1,e]}function Ja(){var e=na(ea)[0],t=Gr().memoizedState;return["boolean"==typeof e?e:Xr(e),t]}function eo(){var e=aa(ea)[0],t=Gr().memoizedState;return["boolean"==typeof e?e:Xr(e),t]}function to(){return Zn(bw)}function no(){var e=Yr(),t=Vb.identifierPrefix;if(Ph){var n=Eh;t="«"+t+"R"+(n=(Ch&~(1<<32-kd(Ch)-1)).toString(32)+n),0<(n=Gm++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Jm++).toString(32)+"»";return e.memoizedState=t}function ro(){return Yr().memoizedState=ao.bind(null,Bm)}function ao(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 24:case 3:var r=vl(n),a=Er(n,e=Cr(r),r);return null!==a&&(kl(a,n,r),_r(a,n,r)),n=tr(),null!=t&&null!==a&&console.error("The seed argument is not enabled outside experimental channels."),void(e.payload={cache:n})}n=n.return}}function oo(e,t,n){var r=arguments;"function"==typeof r[3]&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a={lane:r=vl(e),revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};uo(e)?co(t,a):null!==(a=dn(e,t,a,r))&&(kl(a,e,r),fo(a,t,r)),K(e,r)}function io(e,t,n){var r=arguments;"function"==typeof r[3]&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),lo(e,t,n,r=vl(e)),K(e,r)}function lo(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(uo(e))co(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer)){var i=qc.H;qc.H=dg;try{var l=t.lastRenderedState,s=o(l,n);if(a.hasEagerState=!0,a.eagerState=s,Mp(s,l))return cn(e,t,a,0),null===Vb&&un(),!1}catch(e){}finally{qc.H=i}}if(null!==(n=dn(e,t,a,r)))return kl(n,e,r),fo(n,t,r),!0}return!1}function so(e,t,n,r){if(null===qc.T&&0===rm&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),r={lane:2,revertLane:bs(),action:r,hasEagerState:!1,eagerState:null,next:null},uo(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else null!==(t=dn(e,n,r,2))&&kl(t,e,2);K(e,2)}function uo(e){var t=e.alternate;return e===Bm||null!==t&&t===Bm}function co(e,t){Qm=Km=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fo(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ae(e,n)}}function po(e){var t=Lg;return null!=e&&(Lg=null===t?e:t.concat(e)),t}function ho(e,t,n){for(var r=Object.keys(e.props),a=0;a<r.length;a++){var o=r[a];if("children"!==o&&"key"!==o){null===t&&((t=En(e,n.mode,0))._debugInfo=Lg,t.return=n),Ae(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},o);break}}}function mo(e){var t=Ag;return Ag+=1,null===Og&&(Og={didWarnAboutUncachedPromise:!1,thenables:[]}),vr(Og,e,t)}function go(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function bo(e,t){if(t.$$typeof===Tc)throw Error('A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the "react" package is used.\n- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n- A compiler tries to "inline" JSX instead of using the runtime.');throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function yo(e,t){var n=x(e)||"Component";Mg[n]||(Mg[n]=!0,t=t.displayName||t.name||"Component",3===e.tag?console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n root.render(%s)",t,t,t):console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n <%s>{%s}</%s>",t,t,n,t,n))}function vo(e,t){var n=x(e)||"Component";jg[n]||(jg[n]=!0,t=String(t),3===e.tag?console.error("Symbols are not valid as a React child.\n root.render(%s)",t):console.error("Symbols are not valid as a React child.\n <%s>%s</%s>",n,t,n))}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Sn(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Tn(n,e.mode,r)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Lg,t):((t=a(t,n)).return=e,t._debugInfo=Lg,t)}function u(e,t,n,r){var o=n.type;return o===Rc?(ho(n,t=d(e,t,n.props.children,r,n.key),e),t):null!==t&&(t.elementType===o||bn(t,n)||"object"==typeof o&&null!==o&&o.$$typeof===Fc&&zg(o)===t.type)?(go(t=a(t,n.props),n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Lg,t):(go(t=En(n,e.mode,r),n),t.return=e,t._debugInfo=Lg,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Pn(n,e.mode,r)).return=e,t._debugInfo=Lg,t):((t=a(t,n.children||[])).return=e,t._debugInfo=Lg,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=_n(n,e.mode,r,o)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Lg,t):((t=a(t,n)).return=e,t._debugInfo=Lg,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Tn(""+t,e.mode,n)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Lg,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Pc:return go(n=En(t,e.mode,n),t),n.return=e,e=po(t._debugInfo),n._debugInfo=Lg,Lg=e,n;case Nc:return(t=Pn(t,e.mode,n)).return=e,t._debugInfo=Lg,t;case Fc:var r=po(t._debugInfo);return e=f(e,t=zg(t),n),Lg=r,e}if(Vc(t)||v(t))return(n=_n(t,e.mode,n,null)).return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=po(t._debugInfo),n._debugInfo=Lg,Lg=e,n;if("function"==typeof t.then)return r=po(t._debugInfo),e=f(e,mo(t),n),Lg=r,e;if(t.$$typeof===Ic)return f(e,Jn(e,t),n);bo(e,t)}return"function"==typeof t&&yo(e,t),"symbol"==typeof t&&vo(e,t),null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Pc:return n.key===a?(a=po(n._debugInfo),e=u(e,t,n,r),Lg=a,e):null;case Nc:return n.key===a?c(e,t,n,r):null;case Fc:return a=po(n._debugInfo),e=h(e,t,n=zg(n),r),Lg=a,e}if(Vc(n)||v(n))return null!==a?null:(a=po(n._debugInfo),e=d(e,t,n,r,null),Lg=a,e);if("function"==typeof n.then)return a=po(n._debugInfo),e=h(e,t,mo(n),r),Lg=a,e;if(n.$$typeof===Ic)return h(e,t,Jn(e,n),r);bo(e,n)}return"function"==typeof n&&yo(e,n),"symbol"==typeof n&&vo(e,n),null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Pc:return n=e.get(null===r.key?n:r.key)||null,e=po(r._debugInfo),t=u(t,n,r,a),Lg=e,t;case Nc:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case Fc:var o=po(r._debugInfo);return t=m(e,t,n,r=zg(r),a),Lg=o,t}if(Vc(r)||v(r))return n=e.get(n)||null,e=po(r._debugInfo),t=d(t,n,r,a,null),Lg=e,t;if("function"==typeof r.then)return o=po(r._debugInfo),t=m(e,t,n,mo(r),a),Lg=o,t;if(r.$$typeof===Ic)return m(e,t,n,Jn(t,r),a);bo(t,r)}return"function"==typeof r&&yo(t,r),"symbol"==typeof r&&vo(t,r),null}function g(e,t,n,r){if("object"!=typeof n||null===n)return r;switch(n.$$typeof){case Pc:case Nc:l(e,t,n);var a=n.key;if("string"!=typeof a)break;if(null===r){(r=new Set).add(a);break}if(!r.has(a)){r.add(a);break}Ae(t,function(){console.error("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.",a)});break;case Fc:g(e,t,n=zg(n),r)}return r}function b(l,s,u,c){if("object"==typeof u&&null!==u&&u.type===Rc&&null===u.key&&(ho(u,null,l),u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case Pc:var d=po(u._debugInfo);e:{for(var p=u.key;null!==s;){if(s.key===p){if((p=u.type)===Rc){if(7===s.tag){n(l,s.sibling),(c=a(s,u.props.children)).return=l,c._debugOwner=u._owner,c._debugInfo=Lg,ho(u,c,l),l=c;break e}}else if(s.elementType===p||bn(s,u)||"object"==typeof p&&null!==p&&p.$$typeof===Fc&&zg(p)===s.type){n(l,s.sibling),go(c=a(s,u.props),u),c.return=l,c._debugOwner=u._owner,c._debugInfo=Lg,l=c;break e}n(l,s);break}t(l,s),s=s.sibling}u.type===Rc?((c=_n(u.props.children,l.mode,c,u.key)).return=l,c._debugOwner=l,c._debugTask=l._debugTask,c._debugInfo=Lg,ho(u,c,l),l=c):(go(c=En(u,l.mode,c),u),c.return=l,c._debugInfo=Lg,l=c)}return l=i(l),Lg=d,l;case Nc:e:{for(u=(d=u).key;null!==s;){if(s.key===u){if(4===s.tag&&s.stateNode.containerInfo===d.containerInfo&&s.stateNode.implementation===d.implementation){n(l,s.sibling),(c=a(s,d.children||[])).return=l,l=c;break e}n(l,s);break}t(l,s),s=s.sibling}(c=Pn(d,l.mode,c)).return=l,l=c}return i(l);case Fc:return d=po(u._debugInfo),l=b(l,s,u=zg(u),c),Lg=d,l}if(Vc(u))return d=po(u._debugInfo),l=function(a,i,l,s){for(var u=null,c=null,d=null,p=i,b=i=0,y=null;null!==p&&b<l.length;b++){p.index>b?(y=p,p=null):y=p.sibling;var v=h(a,p,l[b],s);if(null===v){null===p&&(p=y);break}u=g(a,v,l[b],u),e&&p&&null===v.alternate&&t(a,p),i=o(v,i,b),null===d?c=v:d.sibling=v,d=v,p=y}if(b===l.length)return n(a,p),Ph&&Nn(a,b),c;if(null===p){for(;b<l.length;b++)null!==(p=f(a,l[b],s))&&(u=g(a,p,l[b],u),i=o(p,i,b),null===d?c=p:d.sibling=p,d=p);return Ph&&Nn(a,b),c}for(p=r(p);b<l.length;b++)null!==(y=m(p,a,b,l[b],s))&&(u=g(a,y,l[b],u),e&&null!==y.alternate&&p.delete(null===y.key?b:y.key),i=o(y,i,b),null===d?c=y:d.sibling=y,d=y);return e&&p.forEach(function(e){return t(a,e)}),Ph&&Nn(a,b),c}(l,s,u,c),Lg=d,l;if(v(u)){if(d=po(u._debugInfo),"function"!=typeof(p=v(u)))throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var y=p.call(u);return y===u?0===l.tag&&"[object GeneratorFunction]"===Object.prototype.toString.call(l.type)&&"[object Generator]"===Object.prototype.toString.call(y)||(Ig||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Ig=!0):u.entries!==p||pg||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pg=!0),l=function(a,i,l,s){if(null==l)throw Error("An iterable object provided no iterator.");for(var u=null,c=null,d=i,p=i=0,b=null,y=null,v=l.next();null!==d&&!v.done;p++,v=l.next()){d.index>p?(b=d,d=null):b=d.sibling;var w=h(a,d,v.value,s);if(null===w){null===d&&(d=b);break}y=g(a,w,v.value,y),e&&d&&null===w.alternate&&t(a,d),i=o(w,i,p),null===c?u=w:c.sibling=w,c=w,d=b}if(v.done)return n(a,d),Ph&&Nn(a,p),u;if(null===d){for(;!v.done;p++,v=l.next())null!==(d=f(a,v.value,s))&&(y=g(a,d,v.value,y),i=o(d,i,p),null===c?u=d:c.sibling=d,c=d);return Ph&&Nn(a,p),u}for(d=r(d);!v.done;p++,v=l.next())null!==(b=m(d,a,p,v.value,s))&&(y=g(a,b,v.value,y),e&&null!==b.alternate&&d.delete(null===b.key?p:b.key),i=o(b,i,p),null===c?u=b:c.sibling=b,c=b);return e&&d.forEach(function(e){return t(a,e)}),Ph&&Nn(a,p),u}(l,s,y,c),Lg=d,l}if("function"==typeof u.then)return d=po(u._debugInfo),l=b(l,s,mo(u),c),Lg=d,l;if(u.$$typeof===Ic)return b(l,s,Jn(l,u),c);bo(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(d=""+u,null!==s&&6===s.tag?(n(l,s.sibling),(c=a(s,d)).return=l,l=c):(n(l,s),(c=Tn(d,l.mode,c)).return=l,c._debugOwner=l,c._debugTask=l._debugTask,c._debugInfo=Lg,l=c),i(l)):("function"==typeof u&&yo(l,u),"symbol"==typeof u&&vo(l,u),n(l,s))}return function(e,t,n,r){var a=Lg;Lg=null;try{Ag=0;var o=b(e,t,n,r);return Og=null,o}catch(t){if(t===ym||t===wm)throw t;var i=p(29,t,null,e.mode);i.lanes=r,i.return=e;var l=i._debugInfo=Lg;if(i._debugOwner=e._debugOwner,i._debugTask=e._debugTask,null!=l)for(var s=l.length-1;0<=s;s--)if("string"==typeof l[s].stack){i._debugOwner=l[s],i._debugTask=l[s].debugTask;break}return i}finally{Lg=a}}}function ko(e){var t=e.alternate;_(Vg,Vg.current&Wg,e),_(Ug,e,e),null===Hg&&(null===t||null!==Mm.current||null!==t.memoizedState)&&(Hg=e)}function So(e){if(22===e.tag){if(_(Vg,Vg.current,e),_(Ug,e,e),null===Hg){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Hg=e)}}else xo(e)}function xo(e){_(Vg,Vg.current,e),_(Ug,Ug.current,e)}function Co(e){E(Ug,e),Hg===e&&(Hg=null),E(Vg,e)}function Eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===_v||hu(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function _o(e){if(null!==e&&"function"!=typeof e){var t=String(e);nb.has(t)||(nb.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function To(e,t,n,r){var a=e.memoizedState,o=n(r,a);if(e.mode&ph){U(!0);try{o=n(r,a)}finally{U(!1)}}void 0===o&&(t=w(t)||"Component",Zg.has(t)||(Zg.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),a=null==o?a:_c({},a,o),e.memoizedState=a,0===e.lanes&&(e.updateQueue.baseState=a)}function Po(e,t,n,r,a,o,i){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){if(n=l.shouldComponentUpdate(r,o,i),e.mode&ph){U(!0);try{n=l.shouldComponentUpdate(r,o,i)}finally{U(!1)}}return void 0===n&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",w(t)||"Component"),n}return!(t.prototype&&t.prototype.isPureReactComponent&&Xt(n,r)&&Xt(a,o))}function No(e,t,n,r){var a=t.state;"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==a&&(e=x(e)||"Component",Kg.has(e)||(Kg.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),rb.enqueueReplaceState(t,t.state,null))}function Ro(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=_c({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}function zo(e){ab(e),console.warn("%s\n\n%s\n",ob?"An error occurred in the <"+ob+"> component.":"An error occurred in one of your React components.","Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.")}function Oo(e){var t=ob?"The above error occurred in the <"+ob+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+(ib||"Anonymous")+".";if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var r=e.environmentName;"string"==typeof(e=["%o\n\n%s\n\n%s\n",e,t,n].slice(0))[0]?e.splice(0,1,yw+e[0],vw,kw+r+kw,ww):e.splice(0,0,yw,vw,kw+r+kw,ww),e.unshift(console),(r=Sw.apply(console.error,e))()}else console.error("%o\n\n%s\n\n%s\n",e,t,n)}function Ao(e){ab(e)}function Lo(e,t){try{ob=t.source?x(t.source):null,ib=null;var n=t.value;null!==qc.actQueue?qc.thrownErrors.push(n):(0,e.onUncaughtError)(n,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Io(e,t,n){try{ob=n.source?x(n.source):null,ib=x(t),(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Do(e,t,n){return(n=Cr(n)).tag=Om,n.payload={element:null},n.callback=function(){Ae(t.source,Lo,e,t)},n}function Mo(e){return(e=Cr(e)).tag=Om,e}function jo(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){yn(n),Ae(r.source,Io,t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){yn(n),Ae(r.source,Io,t,n,r),"function"!=typeof a&&(null===Cy?Cy=new Set([this]):Cy.add(this)),xg(this,r),"function"==typeof a||!(2&n.lanes)&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",x(n)||"Unknown")})}function $o(e,t,n,r){t.child=null===e?Fg(t,null,n,r):$g(t,e.child,n,r)}function Fo(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var i={};for(var l in r)"ref"!==l&&(i[l]=r[l])}else i=r;return Xn(t),W(t),r=Hr(e,t,n,i,o,a),l=qr(),B(),null===e||sb?(Ph&&l&&zn(t),t.flags|=1,$o(e,t,r,a),t.child):(Kr(e,t,a),li(e,t,a))}function Uo(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||kn(o)||void 0!==o.defaultProps||null!==n.compare?((e=Cn(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(n=mn(o),t.tag=15,t.type=n,Go(t,o),Ho(e,t,n,r,a))}if(o=e.child,!si(e,a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:Xt)(i,r)&&e.ref===t.ref)return li(e,t,a)}return t.flags|=1,(e=Sn(o,r)).ref=t.ref,e.return=t,t.child=e}function Ho(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Xt(o,r)&&e.ref===t.ref&&t.type===e.type){if(sb=!1,t.pendingProps=r=o,!si(e,a))return t.lanes=e.lanes,li(e,t,a);131072&e.flags&&(sb=!0)}}return qo(e,t,n,r,a)}function Wo(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==o?o.baseLanes|n:n,null!==e){for(a=t.child=e.child,o=0;null!==a;)o=o|a.lanes|a.childLanes,a=a.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Bo(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Bo(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&mr(t,null!==o?o.cachePool:null),null!==o?Ar(t,o):Lr(t),So(t)}else null!==o?(mr(t,o.cachePool),Ar(t,o),xo(t),t.memoizedState=null):(null!==e&&mr(t,null),Lr(t),xo(t));return $o(e,t,a,n),t.child}function Bo(e,t,n,r){var a=hr();return a=null===a?null:{parent:Kh._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&mr(t,null),Lr(t),So(t),null!==e&&Yn(e,t,r,!0),null}function Vo(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");null!==e&&e.ref===n||(t.flags|=4194816)}}function qo(e,t,n,r,a){if(n.prototype&&"function"==typeof n.prototype.render){var o=w(n)||"Unknown";ub[o]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",o,o),ub[o]=!0)}return t.mode&ph&&lm.recordLegacyContextWarning(t,null),null===e&&(Go(t,t.type),n.contextTypes&&(o=w(n)||"Unknown",db[o]||(db[o]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",o)))),Xn(t),W(t),n=Hr(e,t,n,r,void 0,a),r=qr(),B(),null===e||sb?(Ph&&r&&zn(t),t.flags|=1,$o(e,t,n,a),t.child):(Kr(e,t,a),li(e,t,a))}function Ko(e,t,n,r,a,o){return Xn(t),W(t),rg=-1,ag=null!==e&&e.type!==t.type,t.updateQueue=null,n=Br(t,r,n,a),Wr(e,t),r=qr(),B(),null===e||sb?(Ph&&r&&zn(t),t.flags|=1,$o(e,t,n,o),t.child):(Kr(e,t,o),li(e,t,o))}function Qo(e,t,n,r,a){switch(i(t)){case!1:var o=t.stateNode,l=new t.type(t.memoizedProps,o.context).state;o.updater.enqueueSetState(o,l,null);break;case!0:t.flags|=128,t.flags|=65536,o=Error("Simulated error coming from DevTools");var s=a&-a;if(t.lanes|=s,null===(l=Vb))throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");jo(s=Mo(s),l,t,sn(o,t)),Tr(t,s)}if(Xn(t),null===t.stateNode){if(l=lh,o=n.contextType,"contextType"in n&&null!==o&&(void 0===o||o.$$typeof!==Ic)&&!tb.has(n)&&(tb.add(n),s=void 0===o?" 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.":"object"!=typeof o?" However, it is set to a "+typeof o+".":o.$$typeof===Lc?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",w(n)||"Component",s)),"object"==typeof o&&null!==o&&(l=Zn(o)),o=new n(r,l),t.mode&ph){U(!0);try{o=new n(r,l)}finally{U(!1)}}if(l=t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=rb,t.stateNode=o,o._reactInternals=t,o._reactInternalInstance=qg,"function"==typeof n.getDerivedStateFromProps&&null===l&&(l=w(n)||"Component",Qg.has(l)||(Qg.add(l),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",l,null===o.state?"null":"undefined",l))),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate){var u=s=l=null;if("function"==typeof o.componentWillMount&&!0!==o.componentWillMount.__suppressDeprecationWarning?l="componentWillMount":"function"==typeof o.UNSAFE_componentWillMount&&(l="UNSAFE_componentWillMount"),"function"==typeof o.componentWillReceiveProps&&!0!==o.componentWillReceiveProps.__suppressDeprecationWarning?s="componentWillReceiveProps":"function"==typeof o.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof o.componentWillUpdate&&!0!==o.componentWillUpdate.__suppressDeprecationWarning?u="componentWillUpdate":"function"==typeof o.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==l||null!==s||null!==u){o=w(n)||"Component";var c="function"==typeof n.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Gg.has(o)||(Gg.add(o),console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles",o,c,null!==l?"\n "+l:"",null!==s?"\n "+s:"",null!==u?"\n "+u:""))}}o=t.stateNode,l=w(n)||"Component",o.render||(n.prototype&&"function"==typeof n.prototype.render?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",l):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",l)),!o.getInitialState||o.getInitialState.isReactClassApproved||o.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",l),o.getDefaultProps&&!o.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",l),o.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",l),n.childContextTypes&&!eb.has(n)&&(eb.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",l)),n.contextTypes&&!Jg.has(n)&&(Jg.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",l)),"function"==typeof o.componentShouldUpdate&&console.error("%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.",l),n.prototype&&n.prototype.isPureReactComponent&&void 0!==o.shouldComponentUpdate&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",w(n)||"A pure component"),"function"==typeof o.componentDidUnmount&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",l),"function"==typeof o.componentDidReceiveProps&&console.error("%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().",l),"function"==typeof o.componentWillRecieveProps&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",l),"function"==typeof o.UNSAFE_componentWillRecieveProps&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",l),s=o.props!==r,void 0!==o.props&&s&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",l),o.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",l,l),"function"!=typeof o.getSnapshotBeforeUpdate||"function"==typeof o.componentDidUpdate||Yg.has(n)||(Yg.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",w(n))),"function"==typeof o.getDerivedStateFromProps&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",l),"function"==typeof o.getDerivedStateFromError&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",l),"function"==typeof n.getSnapshotBeforeUpdate&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",l),(s=o.state)&&("object"!=typeof s||Vc(s))&&console.error("%s.state: must be set to an object or null",l),"function"==typeof o.getChildContext&&"object"!=typeof n.childContextTypes&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",l),(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},Sr(t),l=n.contextType,o.context="object"==typeof l&&null!==l?Zn(l):lh,o.state===r&&(l=w(n)||"Component",Xg.has(l)||(Xg.add(l),console.error("%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))),t.mode&ph&&lm.recordLegacyContextWarning(t,o),lm.recordUnsafeLifecycleWarnings(t,o),o.state=t.memoizedState,"function"==typeof(l=n.getDerivedStateFromProps)&&(To(t,n,l,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(l=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),l!==o.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",x(t)||"Component"),rb.enqueueReplaceState(o,o.state,null)),Nr(t,r,o,a),Pr(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&hh)!==ch&&(t.flags|=134217728),o=!0}else if(null===e){o=t.stateNode;var d=t.memoizedProps;s=Ro(n,d),o.props=s;var f=o.context;u=n.contextType,l=lh,"object"==typeof u&&null!==u&&(l=Zn(u)),u="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate,d=t.pendingProps!==d,u||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(d||f!==l)&&No(t,o,r,l),Am=!1;var p=t.memoizedState;o.state=p,Nr(t,r,o,a),Pr(),f=t.memoizedState,d||p!==f||Am?("function"==typeof c&&(To(t,n,c,r),f=t.memoizedState),(s=Am||Po(t,n,s,r,p,f,l))?(u||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&hh)!==ch&&(t.flags|=134217728)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&hh)!==ch&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,o=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&hh)!==ch&&(t.flags|=134217728),o=!1)}else{o=t.stateNode,xr(e,t),u=Ro(n,l=t.memoizedProps),o.props=u,c=t.pendingProps,p=o.context,f=n.contextType,s=lh,"object"==typeof f&&null!==f&&(s=Zn(f)),(f="function"==typeof(d=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==c||p!==s)&&No(t,o,r,s),Am=!1,p=t.memoizedState,o.state=p,Nr(t,r,o,a),Pr();var h=t.memoizedState;l!==c||p!==h||Am||null!==e&&null!==e.dependencies&&Gn(e.dependencies)?("function"==typeof d&&(To(t,n,d,r),h=t.memoizedState),(u=Am||Po(t,n,u,r,p,h,s)||null!==e&&null!==e.dependencies&&Gn(e.dependencies))?(f||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,o=u):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}if(s=o,Vo(e,t),l=!!(128&t.flags),s||l){if(s=t.stateNode,Le(t),l&&"function"!=typeof n.getDerivedStateFromError)n=null,Xh=-1;else{if(W(t),n=bg(s),t.mode&ph){U(!0);try{bg(s)}finally{U(!1)}}B()}t.flags|=1,null!==e&&l?(t.child=$g(t,e.child,null,a),t.child=$g(t,null,n,a)):$o(e,t,n,a),t.memoizedState=s.state,e=t.child}else e=li(e,t,a);return a=t.stateNode,o&&a.props!==r&&(pb||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",x(t)||"a component"),pb=!0),e}function Yo(e,t,n,r){return Fn(),t.flags|=256,$o(e,t,n,r),t.child}function Go(e,t){t&&t.childContextTypes&&console.error("childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",t.displayName||t.name||"Component"),"function"==typeof t.getDerivedStateFromProps&&(e=w(t)||"Unknown",fb[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),fb[e]=!0)),"object"==typeof t.contextType&&null!==t.contextType&&(t=w(t)||"Unknown",cb[t]||(console.error("%s: Function components do not support contextType.",t),cb[t]=!0))}function Xo(e){return{baseLanes:e,cachePool:gr()}}function Zo(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=hy),e}function Jo(e,t,n){var r,a=t.pendingProps;o(t)&&(t.flags|=128);var i=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(Vg.current&Bg)),r&&(i=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(Ph){if(i?ko(t):xo(t),Ph){var s,u=Th;if(!(s=!u)){e:{var c=u;for(s=Oh;8!==c.nodeType;){if(!s){s=null;break e}if(null===(c=mu(c.nextSibling))){s=null;break e}}s=c}null!==s?(An(),t.memoizedState={dehydrated:s,treeContext:null!==xh?{id:Ch,overflow:Eh}:null,retryLane:536870912,hydrationErrors:null},(c=p(18,null,null,ch)).stateNode=s,c.return=t,t.child=c,_h=t,Th=null,s=!0):s=!1,s=!s}s&&(In(t,u),Dn(t))}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return hu(u)?t.lanes=32:t.lanes=536870912,null;Co(t)}return u=a.children,a=a.fallback,i?(xo(t),u=ti({mode:"hidden",children:u},i=t.mode),a=_n(a,i,n,null),u.return=t,a.return=t,u.sibling=a,t.child=u,(i=t.child).memoizedState=Xo(n),i.childLanes=Zo(e,r,n),t.memoizedState=gb,a):(ko(t),ei(t,u))}var d=e.memoizedState;if(null!==d&&null!==(u=d.dehydrated)){if(l)256&t.flags?(ko(t),t.flags&=-257,t=ni(e,t,n)):null!==t.memoizedState?(xo(t),t.child=e.child,t.flags|=128,t=null):(xo(t),i=a.fallback,u=t.mode,a=ti({mode:"visible",children:a.children},u),(i=_n(i,u,n,null)).flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,$g(t,e.child,null,n),(a=t.child).memoizedState=Xo(n),a.childLanes=Zo(e,r,n),t.memoizedState=gb,t=i);else if(ko(t),Ph&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),hu(u)){if(r=u.nextSibling&&u.nextSibling.dataset){s=r.dgst;var f=r.msg;c=r.stck;var h=r.cstck}r=s,a=c,s=i=h,(i=(u=f)?Error(u):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")).stack=a||"",i.digest=r,a={value:i,source:null,stack:r=void 0===s?null:s},"string"==typeof r&&th.set(i,a),Hn(a),t=ni(e,t,n)}else if(sb||Yn(e,t,n,!1),r=0!==(n&e.childLanes),sb||r){if(null!==(r=Vb)&&0!==(a=0!==((a=42&(a=n&-n)?1:oe(a))&(r.suspendedLanes|n))?0:a)&&a!==d.retryLane)throw d.retryLane=a,fn(e,a),kl(r,e,a),lb;u.data===_v||Ol(),t=ni(e,t,n)}else u.data===_v?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,Th=mu(u.nextSibling),_h=t,Ph=!0,zh=null,Nh=!1,Rh=null,Oh=!1,null!==e&&(An(),kh[Sh++]=Ch,kh[Sh++]=Eh,kh[Sh++]=xh,Ch=e.id,Eh=e.overflow,xh=t),(t=ei(t,a.children)).flags|=4096);return t}return i?(xo(t),i=a.fallback,u=t.mode,c=(s=e.child).sibling,(a=Sn(s,{mode:"hidden",children:a.children})).subtreeFlags=65011712&s.subtreeFlags,null!==c?i=Sn(c,i):(i=_n(i,u,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,null===(u=e.child.memoizedState)?u=Xo(n):(null!==(s=u.cachePool)?(c=Kh._currentValue,s=s.parent!==c?{parent:c,pool:c}:s):s=gr(),u={baseLanes:u.baseLanes|n,cachePool:s}),i.memoizedState=u,i.childLanes=Zo(e,r,n),t.memoizedState=gb,a):(ko(t),e=(n=e.child).sibling,(n=Sn(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function ei(e,t){return(t=ti({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ti(e,t){return(e=p(22,e,null,t)).lanes=0,e.stateNode={_visibility:nh,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ni(e,t,n){return $g(t,e.child,null,n),(e=ei(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ri(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Kn(e.return,t,n)}function ai(e,t){var n=Vc(e);return e=!n&&"function"==typeof v(e),!n&&!e||(n=n?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",n,t,n),!1)}function oi(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function ii(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(r=r.children,void 0!==a&&"forwards"!==a&&"backwards"!==a&&"together"!==a&&!hb[a])if(hb[a]=!0,"string"==typeof a)switch(a.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',a,a.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',a,a.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',a)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',a);void 0===o||mb[o]||("collapsed"!==o&&"hidden"!==o?(mb[o]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',o)):"forwards"!==a&&"backwards"!==a&&(mb[o]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',o)));e:if(("forwards"===a||"backwards"===a)&&null!=r&&!1!==r)if(Vc(r)){for(var i=0;i<r.length;i++)if(!ai(r[i],i))break e}else if(i=v(r),"function"==typeof i){if(i=i.call(r))for(var l=i.next(),s=0;!l.done;l=i.next()){if(!ai(l.value,s))break e;s++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a);if($o(e,t,r,n),0!==((r=Vg.current)&Bg))r=r&Wg|Bg,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ri(e,n,t);else if(19===e.tag)ri(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=Wg}switch(_(Vg,r,t),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Eo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),oi(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Eo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}oi(t,!0,n,null,o);break;case"together":oi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function li(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Xh=-1,dy|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Yn(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==t.child){for(n=Sn(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Sn(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function si(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Gn(e))}function ui(e,t,n){if(t._debugNeedsRemount&&null!==e){(n=Cn(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes))._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(null===r)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var a=r.child;if(null===a)throw Error("Expected parent to have a child.");for(;a.sibling!==t;)if(null===(a=a.sibling))throw Error("Expected to find the previous sibling.");a.sibling=n}return null===(t=r.deletions)?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(null!==e)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)sb=!0;else{if(!(si(e,n)||128&t.flags))return sb=!1,function(e,t,n){switch(t.tag){case 3:P(t,t.stateNode.containerInfo),Vn(t,Kh,e.memoizedState.cache),Fn();break;case 27:case 5:A(t);break;case 4:P(t,t.stateNode.containerInfo);break;case 10:Vn(t,t.type,t.memoizedProps.value);break;case 12:0!==(n&t.childLanes)&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ko(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Jo(e,t,n):(ko(t),null!==(e=li(e,t,n))?e.sibling:null);ko(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Yn(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return ii(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),_(Vg,Vg.current,t),r)break;return null;case 22:case 23:return t.lanes=0,Wo(e,t,n);case 24:Vn(t,Kh,e.memoizedState.cache)}return li(e,t,n)}(e,t,n);sb=!!(131072&e.flags)}else sb=!1,(r=Ph)&&(An(),r=!!(1048576&t.flags)),r&&(r=t.index,An(),Rn(t,wh,r));switch(t.lanes=0,t.tag){case 16:e:{if(r=t.pendingProps,e=zg(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){if((a=e.$$typeof)===Dc){t.tag=11,t.type=e=gn(e),t=Fo(null,t,e,r,n);break e}if(a===$c){t.tag=14,t=Uo(null,t,e,r,n);break e}}throw t="",null!==e&&"object"==typeof e&&e.$$typeof===Fc&&(t=" Did you wrap a component in React.lazy() more than once?"),e=w(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}kn(e)?(r=Ro(e,r),t.tag=1,t.type=e=mn(e),t=Qo(null,t,e,r,n)):(t.tag=0,Go(t,e),t.type=e=mn(e),t=qo(null,t,e,r,n))}return t;case 0:return qo(e,t,t.type,t.pendingProps,n);case 1:return Qo(e,t,r=t.type,a=Ro(r,t.pendingProps),n);case 3:e:{if(P(t,t.stateNode.containerInfo),null===e)throw Error("Should have a current fiber. This is a bug in React.");r=t.pendingProps;var o=t.memoizedState;a=o.element,xr(e,t),Nr(t,r,null,n);var i=t.memoizedState;if(r=i.cache,Vn(t,Kh,r),r!==o.cache&&Qn(t,[Kh],n,!0),Pr(),r=i.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Yo(e,t,r,n);break e}if(r!==a){Hn(a=sn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t)),t=Yo(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,Th=mu(e.firstChild),_h=t,Ph=!0,zh=null,Nh=!1,Rh=null,Oh=!0,e=Fg(t,null,r,n),t.child=e;e;)e.flags=-3&e.flags|4096,e=e.sibling}else{if(Fn(),r===a){t=li(e,t,n);break e}$o(e,t,r,n)}t=t.child}return t;case 26:return Vo(e,t),null===e?(e=Tu(t.type,null,t.pendingProps,null))?t.memoizedState=e:Ph||(e=t.type,n=t.pendingProps,(r=Gs(r=T(ed.current)).createElement(e))[zd]=t,r[Od]=n,Fs(r,e,n),me(r),t.stateNode=r):t.memoizedState=Tu(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return A(t),null===e&&Ph&&(r=T(ed.current),a=z(),r=t.stateNode=Su(t.type,t.pendingProps,r,a,!1),Nh||null!==(a=Ys(r,t.type,t.pendingProps,a))&&(Ln(t,0).serverProps=a),_h=t,Oh=!0,a=Th,ou(t.type)?(Kv=a,Th=mu(r.firstChild)):Th=a),$o(e,t,t.pendingProps.children,n),Vo(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&Ph&&(o=z(),r=bt(t.type,o.ancestorInfo),(i=!(a=Th))||(null!==(i=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[jd])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;j(a.name,"name");var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=mu(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,Oh))?(t.stateNode=i,Nh||null!==(o=Ys(i,t.type,t.pendingProps,o))&&(Ln(t,0).serverProps=o),_h=t,Th=mu(i.firstChild),Oh=!1,o=!0):o=!1,i=!o),i&&(r&&In(t,a),Dn(t))),A(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,r=o.children,Js(a,o)?r=null:null!==i&&Js(a,i)&&(t.flags|=32),null!==t.memoizedState&&(a=Hr(e,t,Vr,null,null,n),bw._currentValue=a),Vo(e,t),$o(e,t,r,n),t.child;case 6:return null===e&&Ph&&(e=t.pendingProps,e=null==(r=(n=z()).ancestorInfo.current)||yt(e,r.tag,n.ancestorInfo.implicitRootScope),(r=!(n=Th))||(null!==(r=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=mu(e.nextSibling)))return null}return e}(n,t.pendingProps,Oh))?(t.stateNode=r,_h=t,Th=null,r=!0):r=!1,r=!r),r&&(e&&In(t,n),Dn(t))),null;case 13:return Jo(e,t,n);case 4:return P(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=$g(t,null,r,n):$o(e,t,r,n),t.child;case 11:return Fo(e,t,t.type,t.pendingProps,n);case 7:return $o(e,t,t.pendingProps,n),t.child;case 8:return $o(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,(r=t.stateNode).effectDuration=-0,r.passiveEffectDuration=-0,$o(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,o=(a=t.pendingProps).value,"value"in a||bb||(bb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Vn(t,r,o),$o(e,t,a.children,n),t.child;case 9:return a=t.type._context,"function"!=typeof(r=t.pendingProps.children)&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Xn(t),a=Zn(a),W(t),r=mg(r,a,void 0),B(),t.flags|=1,$o(e,t,r,n),t.child;case 14:return Uo(e,t,t.type,t.pendingProps,n);case 15:return Ho(e,t,t.type,t.pendingProps,n);case 19:return ii(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((e=ti(r,n)).ref=t.ref,t.child=e,e.return=t,t=e):((e=Sn(e.child,r)).ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return Wo(e,t,n);case 24:return Xn(t),r=Zn(Kh),null===e?(null===(a=hr())&&(a=Vb,o=tr(),a.pooledCache=o,nr(o),null!==o&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Sr(t),Vn(t,Kh,a)):(0!==(e.lanes&n)&&(xr(e,t),Nr(t,null,null,n),Pr()),a=e.memoizedState,o=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Vn(t,Kh,r)):(r=o.cache,Vn(t,Kh,r),r!==a.cache&&Qn(t,[Kh],n,!0))),$o(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ci(e){e.flags|=4}function di(e,t){if("stylesheet"!==t.type||(t.state.loading&Zv)!==Qv)e.flags&=-16777217;else if(e.flags|=16777216,!Fu(t)){if(null!==(t=Ug.current)&&((4194048&Kb)===Kb?null!==Hg:(62914560&Kb)!==Kb&&!(536870912&Kb)||t!==Hg))throw Sm=km,vm;e.flags|=8192}}function fi(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?ee():536870912,e.lanes|=t,my|=t)}function pi(e,t){if(!Ph)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&fh)!==ch){for(var a=e.selfBaseDuration,o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,a+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=a}else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else if((e.mode&fh)!==ch){a=e.actualDuration,o=e.selfBaseDuration;for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,a+=i.actualDuration,o+=i.treeBaseDuration,i=i.sibling;e.actualDuration=a,e.treeBaseDuration=o}else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mi(e,t,n){var r=t.pendingProps;switch(On(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hi(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qn(Kh,t),R(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||($n(t)?(Wn(),ci(t)):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,Un())),hi(t),null;case 26:return n=t.memoizedState,null===e?(ci(t),null!==n?(hi(t),di(t,n)):(hi(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ci(t),hi(t),di(t,n)):(hi(t),t.flags&=-16777217):(e.memoizedProps!==r&&ci(t),hi(t),t.flags&=-16777217),null;case 27:L(t),n=T(ed.current);var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ci(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return hi(t),null}e=z(),$n(t)?Mn(t):(e=Su(a,r,n,e,!0),t.stateNode=e,ci(t))}return hi(t),null;case 5:if(L(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ci(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return hi(t),null}if(a=z(),$n(t))Mn(t);else{switch(e=T(ed.current),bt(n,a.ancestorInfo),a=a.context,e=Gs(e),a){case Dv:e=e.createElementNS(Nf,n);break;case Mv:e=e.createElementNS(Pf,n);break;default:switch(n){case"svg":e=e.createElementNS(Nf,n);break;case"math":e=e.createElementNS(Pf,n);break;case"script":(e=e.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?e.createElement("select",{is:r.is}):e.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?e.createElement(n,{is:r.is}):e.createElement(n),-1===n.indexOf("-")&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),"[object HTMLUnknownElement]"!==Object.prototype.toString.call(e)||nd.call(Fv,n)||(Fv[n]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)))}}e[zd]=t,e[Od]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(Fs(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ci(t)}}return hi(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ci(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=T(ed.current),n=z(),$n(t)){e=t.stateNode,n=t.memoizedProps,a=!Nh,r=null;var o=_h;if(null!==o)switch(o.tag){case 3:a&&null!==(a=bu(e,n,r))&&(Ln(t,0).serverProps=a);break;case 27:case 5:r=o.memoizedProps,a&&null!==(a=bu(e,n,r))&&(Ln(t,0).serverProps=a)}e[zd]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Ds(e.nodeValue,n)))||Dn(t)}else null!=(a=n.ancestorInfo.current)&&yt(r,a.tag,n.ancestorInfo.implicitRootScope),(e=Gs(e).createTextNode(r))[zd]=t,t.stateNode=e}return hi(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=$n(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");a[zd]=t,hi(t),(t.mode&fh)!==ch&&null!==r&&null!==(a=t.child)&&(t.treeBaseDuration-=a.treeBaseDuration)}else Wn(),Fn(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4,hi(t),(t.mode&fh)!==ch&&null!==r&&null!==(a=t.child)&&(t.treeBaseDuration-=a.treeBaseDuration);a=!1}else a=Un(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(Co(t),t):(Co(t),null)}return Co(t),128&t.flags?(t.lanes=n,(t.mode&fh)!==ch&&fr(t),t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fi(t,t.updateQueue),hi(t),(t.mode&fh)!==ch&&n&&null!==(e=t.child)&&(t.treeBaseDuration-=e.treeBaseDuration),null);case 4:return R(t),null===e&&Cs(t.stateNode.containerInfo),hi(t),null;case 10:return qn(t.type,t),hi(t),null;case 19:if(E(Vg,t),null===(a=t.memoizedState))return hi(t),null;if(r=!!(128&t.flags),null===(o=a.rendering))if(r)pi(a,!1);else{if(cy!==Mb||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=Eo(e))){for(t.flags|=128,pi(a,!1),e=o.updateQueue,t.updateQueue=e,fi(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)xn(n,e),n=n.sibling;return _(Vg,Vg.current&Wg|Bg,t),t.child}e=e.sibling}null!==a.tail&&ld()>ky&&(t.flags|=128,r=!0,pi(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Eo(o))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,fi(t,e),pi(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!Ph)return hi(t),null}else 2*ld()-a.renderingStartTime>ky&&536870912!==n&&(t.flags|=128,r=!0,pi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=a.last)?e.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ld(),e.sibling=null,n=Vg.current,_(Vg,n=r?n&Wg|Bg:n&Wg,t),e):(hi(t),null);case 22:case 23:return Co(t),Ir(t),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(hi(t),6&t.subtreeFlags&&(t.flags|=8192)):hi(t),null!==(n=t.updateQueue)&&fi(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&E(im,t),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qn(Kh,t),hi(t),null;case 25:case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function gi(e,t){switch(On(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&fh)!==ch&&fr(t),t):null;case 3:return qn(Kh,t),R(t),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return L(t),null;case 13:if(Co(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Fn()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&fh)!==ch&&fr(t),t):null;case 19:return E(Vg,t),null;case 4:return R(t),null;case 10:return qn(t.type,t),null;case 22:case 23:return Co(t),Ir(t),null!==e&&E(im,t),65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&fh)!==ch&&fr(t),t):null;case 24:return qn(Kh,t),null;default:return null}}function bi(e,t){switch(On(t),t.tag){case 3:qn(Kh,t),R(t);break;case 26:case 27:case 5:L(t);break;case 4:R(t);break;case 13:Co(t);break;case 19:E(Vg,t);break;case 10:qn(t.type,t);break;case 22:case 23:Co(t),Ir(t),null!==e&&E(im,t);break;case 24:qn(Kh,t)}}function yi(e){return(e.mode&fh)!==ch}function vi(e,t){yi(e)?(dr(),ki(t,e),cr()):ki(t,e)}function wi(e,t,n){yi(e)?(dr(),Si(n,e,t),cr()):Si(n,e,t)}function ki(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{var o;(n.tag&e)===e&&((e&Pm)!==Cm?null!==yd&&"function"==typeof yd.markComponentPassiveEffectMountStarted&&yd.markComponentPassiveEffectMountStarted(t):(e&Tm)!==Cm&&null!==yd&&"function"==typeof yd.markComponentLayoutEffectMountStarted&&yd.markComponentLayoutEffectMountStarted(t),r=void 0,(e&_m)!==Cm&&(Yy=!0),r=Ae(t,Tg,n),(e&_m)!==Cm&&(Yy=!1),(e&Pm)!==Cm?null!==yd&&"function"==typeof yd.markComponentPassiveEffectMountStopped&&yd.markComponentPassiveEffectMountStopped():(e&Tm)!==Cm&&null!==yd&&"function"==typeof yd.markComponentLayoutEffectMountStopped&&yd.markComponentLayoutEffectMountStopped(),void 0!==r&&"function"!=typeof r)&&Ae(t,function(e,t){console.error("%s must not return anything besides a function, which is used for clean-up.%s",e,t)},o=0!==(n.tag&Tm)?"useLayoutEffect":0!==(n.tag&_m)?"useInsertionEffect":"useEffect",null===r?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof r.then?"\n\nIt looks like you wrote "+o+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+o+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching":" You returned: "+r),n=n.next}while(n!==a)}}catch(e){Xl(t,t.return,e)}}function Si(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var i=r.inst,l=i.destroy;void 0!==l&&(i.destroy=void 0,(e&Pm)!==Cm?null!==yd&&"function"==typeof yd.markComponentPassiveEffectUnmountStarted&&yd.markComponentPassiveEffectUnmountStarted(t):(e&Tm)!==Cm&&null!==yd&&"function"==typeof yd.markComponentLayoutEffectUnmountStarted&&yd.markComponentLayoutEffectUnmountStarted(t),(e&_m)!==Cm&&(Yy=!0),Ae(a=t,Ng,a,n,l),(e&_m)!==Cm&&(Yy=!1),(e&Pm)!==Cm?null!==yd&&"function"==typeof yd.markComponentPassiveEffectUnmountStopped&&yd.markComponentPassiveEffectUnmountStopped():(e&Tm)!==Cm&&null!==yd&&"function"==typeof yd.markComponentLayoutEffectUnmountStopped&&yd.markComponentLayoutEffectUnmountStopped())}r=r.next}while(r!==o)}}catch(e){Xl(t,t.return,e)}}function xi(e,t){yi(e)?(dr(),ki(t,e),cr()):ki(t,e)}function Ci(e,t,n){yi(e)?(dr(),Si(n,e,t),cr()):Si(n,e,t)}function Ei(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||pb||(n.props!==e.memoizedProps&&console.error("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.",x(e)||"instance"),n.state!==e.memoizedState&&console.error("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.",x(e)||"instance"));try{Ae(e,Or,t,n)}catch(t){Xl(e,e.return,t)}}}function _i(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Ti(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||pb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",x(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",x(e)||"instance"));try{var a=Ro(e.type,n,(e.elementType,e.type)),o=Ae(e,_i,t,a,r);n=yb,void 0!==o||n.has(e.type)||(n.add(e.type),Ae(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",x(e))})),t.__reactInternalSnapshotBeforeUpdate=o}catch(t){Xl(e,e.return,t)}}function Pi(e,t,n){n.props=Ro(e.type,e.memoizedProps),n.state=e.memoizedState,yi(e)?(dr(),Ae(e,Eg,e,t,n),cr()):Ae(e,Eg,e,t,n)}function Ni(e){var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;default:n=e.stateNode}if("function"==typeof t)if(yi(e))try{dr(),e.refCleanup=t(n)}finally{cr()}else e.refCleanup=t(n);else"string"==typeof t?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",x(e)),t.current=n}}function Ri(e,t){try{Ae(e,Ni,e)}catch(n){Xl(e,t,n)}}function zi(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{if(yi(e))try{dr(),Ae(e,r)}finally{cr()}else Ae(e,r)}catch(n){Xl(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{if(yi(e))try{dr(),Ae(e,n,null)}finally{cr()}else Ae(e,n,null)}catch(n){Xl(e,t,n)}else n.current=null}function Oi(e,t,n,r){var a=e.memoizedProps,o=a.id,i=a.onCommit;a=a.onRender,t=null===t?"mount":"update",Jh&&(t="nested-update"),"function"==typeof a&&a(o,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),"function"==typeof i&&i(e.memoizedProps.id,t,r,n)}function Ai(e,t,n,r){var a=e.memoizedProps;e=a.id,a=a.onPostCommit,t=null===t?"mount":"update",Jh&&(t="nested-update"),"function"==typeof a&&a(e,t,r,n)}function Li(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{Ae(e,tu,r,t,n,e)}catch(t){Xl(e,e.return,t)}}function Ii(e,t,n){try{Ae(e,nu,e.stateNode,e.type,n,t,e)}catch(t){Xl(e,e.return,t)}}function Di(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&ou(e.type)||4===e.tag}function Mi(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Di(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&ou(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ji(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Ms));else if(4!==r&&(27===r&&ou(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(ji(e,t,n),e=e.sibling;null!==e;)ji(e,t,n),e=e.sibling}function $i(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&ou(e.type)&&(n=e.stateNode),null!==(e=e.child)))for($i(e,t,n),e=e.sibling;null!==e;)$i(e,t,n),e=e.sibling}function Fi(e){for(var t,n=e.return;null!==n;){if(Di(n)){t=n;break}n=n.return}if(null==t)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,$i(e,n=Mi(e),t);break;case 5:n=t.stateNode,32&t.flags&&(ru(n),t.flags&=-33),$i(e,t=Mi(e),n);break;case 3:case 4:t=t.stateNode.containerInfo,ji(e,n=Mi(e),t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Ui(e){var t=e.stateNode,n=e.memoizedProps;try{Ae(e,xu,e.type,n,t,e)}catch(t){Xl(e,e.return,t)}}function Hi(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Zi(e,n),4&r&&vi(n,Tm|Em);break;case 1:if(Zi(e,n),4&r)if(e=n.stateNode,null===t)n.type.defaultProps||"ref"in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("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.",x(n)||"instance"),e.state!==n.memoizedState&&console.error("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.",x(n)||"instance")),yi(n)?(dr(),Ae(n,vg,n,e),cr()):Ae(n,vg,n,e);else{var a=Ro(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("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.",x(n)||"instance"),e.state!==n.memoizedState&&console.error("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.",x(n)||"instance")),yi(n)?(dr(),Ae(n,kg,n,e,a,t,e.__reactInternalSnapshotBeforeUpdate),cr()):Ae(n,kg,n,e,a,t,e.__reactInternalSnapshotBeforeUpdate)}64&r&&Ei(n),512&r&&Ri(n,n.return);break;case 3:if(t=ar(),Zi(e,n),64&r&&null!==(r=n.updateQueue)){if(a=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:a=n.child.stateNode}try{Ae(n,Or,r,a)}catch(e){Xl(n,n.return,e)}}e.effectDuration+=or(t);break;case 27:null===t&&4&r&&Ui(n);case 26:case 5:Zi(e,n),null===t&&4&r&&Li(n),512&r&&Ri(n,n.return);break;case 12:if(4&r){r=ar(),Zi(e,n),(e=n.stateNode).effectDuration+=ir(r);try{Ae(n,Oi,n,t,Gh,e.effectDuration)}catch(e){Xl(n,n.return,e)}}else Zi(e,n);break;case 13:Zi(e,n),4&r&&qi(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if(e.data!==_v||n.readyState===Av)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=ts.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||vb)){t=null!==t&&null!==t.memoizedState||wb,a=vb;var o=wb;vb=r,(wb=t)&&!o?nl(e,n,!!(8772&n.subtreeFlags)):Zi(e,n),vb=a,wb=o}break;case 30:break;default:Zi(e,n)}}function Wi(e){var t=e.alternate;null!==t&&(e.alternate=null,Wi(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&ce(t),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Bi(e,t,n){for(n=n.child;null!==n;)Vi(e,t,n),n=n.sibling}function Vi(e,t,n){if(bd&&"function"==typeof bd.onCommitFiberUnmount)try{bd.onCommitFiberUnmount(gd,n)}catch(e){vd||(vd=!0,console.error("React instrumentation encountered an error: %s",e))}switch(n.tag){case 26:wb||zi(n,t),Bi(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:wb||zi(n,t);var r=_b,a=Tb;ou(n.type)&&(_b=n.stateNode,Tb=!1),Bi(e,t,n),Ae(n,Cu,n.stateNode),_b=r,Tb=a;break;case 5:wb||zi(n,t);case 6:if(r=_b,a=Tb,_b=null,Bi(e,t,n),Tb=a,null!==(_b=r))if(Tb)try{Ae(n,lu,_b,n.stateNode)}catch(e){Xl(n,t,e)}else try{Ae(n,iu,_b,n.stateNode)}catch(e){Xl(n,t,e)}break;case 18:null!==_b&&(Tb?(su(9===(e=_b).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),fc(e)):su(_b,n.stateNode));break;case 4:r=_b,a=Tb,_b=n.stateNode.containerInfo,Tb=!0,Bi(e,t,n),_b=r,Tb=a;break;case 0:case 11:case 14:case 15:wb||Si(_m,n,t),wb||wi(n,t,Tm),Bi(e,t,n);break;case 1:wb||(zi(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&Pi(n,t,r)),Bi(e,t,n);break;case 21:Bi(e,t,n);break;case 22:wb=(r=wb)||null!==n.memoizedState,Bi(e,t,n),wb=r;break;default:Bi(e,t,n)}}function qi(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Ae(t,ku,e)}catch(e){Xl(t,t.return,e)}}function Ki(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Sb),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Sb),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}(e);t.forEach(function(t){var r=ns.bind(null,e,t);if(!n.has(t)){if(n.add(t),wd){if(null===Cb||null===Eb)throw Error("Expected finished root and lanes to be set. This is a bug in React.");ls(Eb,Cb)}t.then(r,r)}})}function Qi(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=e,o=t,i=n[r],l=o;e:for(;null!==l;){switch(l.tag){case 27:if(ou(l.type)){_b=l.stateNode,Tb=!1;break e}break;case 5:_b=l.stateNode,Tb=!1;break e;case 3:case 4:_b=l.stateNode.containerInfo,Tb=!0;break e}l=l.return}if(null===_b)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Vi(a,o,i),_b=null,Tb=!1,null!==(o=(a=i).alternate)&&(o.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Yi(t,e),t=t.sibling}function Yi(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Qi(t,e),Gi(e),4&r&&(Si(_m|Em,e,e.return),ki(_m|Em,e),wi(e,e.return,Tm|Em));break;case 1:Qi(t,e),Gi(e),512&r&&(wb||null===n||zi(n,n.return)),64&r&&vb&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var a=Pb;if(Qi(t,e),Gi(e),512&r&&(wb||null===n||zi(n,n.return)),4&r)if(t=null!==n?n.memoizedState:null,r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,t=a.ownerDocument||a;t:switch(r){case"title":(!(a=t.getElementsByTagName("title")[0])||a[jd]||a[zd]||a.namespaceURI===Nf||a.hasAttribute("itemprop"))&&(a=t.createElement(r),t.head.insertBefore(a,t.querySelector("head > title"))),Fs(a,r,n),a[zd]=e,me(a),r=a;break e;case"link":var o=ju("link","href",t).get(r+(n.href||""));if(o)for(var i=0;i<o.length;i++)if((a=o[i]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(i,1);break t}Fs(a=t.createElement(r),r,n),t.head.appendChild(a);break;case"meta":if(o=ju("meta","content",t).get(r+(n.content||"")))for(i=0;i<o.length;i++)if(a=o[i],j(n.content,"content"),a.getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(i,1);break t}Fs(a=t.createElement(r),r,n),t.head.appendChild(a);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+r+'". This is a bug in React.')}a[zd]=e,me(a),r=a}e.stateNode=r}else $u(a,e.type,e.stateNode);else e.stateNode=Lu(a,r,e.memoizedProps);else t!==r?(null===t?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):t.count--,null===r?$u(a,e.type,e.stateNode):Lu(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Ii(e,e.memoizedProps,n.memoizedProps);break;case 27:Qi(t,e),Gi(e),512&r&&(wb||null===n||zi(n,n.return)),null!==n&&4&r&&Ii(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Qi(t,e),Gi(e),512&r&&(wb||null===n||zi(n,n.return)),32&e.flags){t=e.stateNode;try{Ae(e,ru,t)}catch(t){Xl(e,e.return,t)}}4&r&&null!=e.stateNode&&Ii(e,t=e.memoizedProps,null!==n?n.memoizedProps:t),1024&r&&(kb=!0,"form"!==e.type&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Qi(t,e),Gi(e),4&r){if(null===e.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");r=e.memoizedProps,n=null!==n?n.memoizedProps:r,t=e.stateNode;try{Ae(e,au,t,n,r)}catch(t){Xl(e,e.return,t)}}break;case 3:if(a=ar(),fw=null,o=Pb,Pb=Eu(t.containerInfo),Qi(t,e),Pb=o,Gi(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ae(e,wu,t.containerInfo)}catch(t){Xl(e,e.return,t)}kb&&(kb=!1,Xi(e)),t.effectDuration+=or(a);break;case 4:r=Pb,Pb=Eu(e.stateNode.containerInfo),Qi(t,e),Gi(e),Pb=r;break;case 12:r=ar(),Qi(t,e),Gi(e),e.stateNode.effectDuration+=ir(r);break;case 13:Qi(t,e),Gi(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(vy=ld()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ki(e,r));break;case 22:a=null!==e.memoizedState;var l=null!==n&&null!==n.memoizedState,s=vb,u=wb;if(vb=s||a,wb=u||l,Qi(t,e),wb=u,vb=s,Gi(e),8192&r)e:for(t=e.stateNode,t._visibility=a?t._visibility&~nh:t._visibility|nh,a&&(null===n||l||vb||wb||el(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){l=n=t;try{o=l.stateNode,a?Ae(l,uu,o):Ae(l,du,l.stateNode,l.memoizedProps)}catch(e){Xl(l,l.return,e)}}}else if(6===t.tag){if(null===n){l=t;try{i=l.stateNode,a?Ae(l,cu,i):Ae(l,fu,i,l.memoizedProps)}catch(e){Xl(l,l.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Ki(e,n));break;case 19:Qi(t,e),Gi(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ki(e,r));break;case 30:case 21:break;default:Qi(t,e),Gi(e)}}function Gi(e){var t=e.flags;if(2&t){try{Ae(e,Fi,e)}catch(t){Xl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Xi(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Xi(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Zi(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Hi(e,t.alternate,t),t=t.sibling}function Ji(e){switch(e.tag){case 0:case 11:case 14:case 15:wi(e,e.return,Tm),el(e);break;case 1:zi(e,e.return);var t=e.stateNode;"function"==typeof t.componentWillUnmount&&Pi(e,e.return,t),el(e);break;case 27:Ae(e,Cu,e.stateNode);case 26:case 5:zi(e,e.return),el(e);break;case 22:null===e.memoizedState&&el(e);break;default:el(e)}}function el(e){for(e=e.child;null!==e;)Ji(e),e=e.sibling}function tl(e,t,n,r){var a=n.flags;switch(n.tag){case 0:case 11:case 15:nl(e,n,r),vi(n,Tm);break;case 1:if(nl(e,n,r),"function"==typeof(t=n.stateNode).componentDidMount&&Ae(n,vg,n,t),null!==(t=n.updateQueue)){e=n.stateNode;try{Ae(n,zr,t,e)}catch(e){Xl(n,n.return,e)}}r&&64&a&&Ei(n),Ri(n,n.return);break;case 27:Ui(n);case 26:case 5:nl(e,n,r),r&&null===t&&4&a&&Li(n),Ri(n,n.return);break;case 12:if(r&&4&a){a=ar(),nl(e,n,r),(r=n.stateNode).effectDuration+=ir(a);try{Ae(n,Oi,n,t,Gh,r.effectDuration)}catch(e){Xl(n,n.return,e)}}else nl(e,n,r);break;case 13:nl(e,n,r),r&&4&a&&qi(e,n);break;case 22:null===n.memoizedState&&nl(e,n,r),Ri(n,n.return);break;case 30:break;default:nl(e,n,r)}}function nl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;)tl(e,t.alternate,t,n),t=t.sibling}function rl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&nr(e),null!=n&&rr(n))}function al(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(nr(t),null!=e&&rr(e))}function ol(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)il(e,t,n,r),t=t.sibling}function il(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:ol(e,t,n,r),2048&a&&xi(t,Pm|Em);break;case 1:case 13:default:ol(e,t,n,r);break;case 3:var o=ar();ol(e,t,n,r),2048&a&&(n=null,null!==t.alternate&&(n=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==n&&(nr(t),null!=n&&rr(n))),e.passiveEffectDuration+=or(o);break;case 12:if(2048&a){a=ar(),ol(e,t,n,r),(e=t.stateNode).passiveEffectDuration+=ir(a);try{Ae(t,Ai,t,t.alternate,Gh,e.passiveEffectDuration)}catch(e){Xl(t,t.return,e)}}else ol(e,t,n,r);break;case 23:break;case 22:o=t.stateNode;var i=t.alternate;null!==t.memoizedState?o._visibility&rh?ol(e,t,n,r):ul(e,t):o._visibility&rh?ol(e,t,n,r):(o._visibility|=rh,ll(e,t,n,r,!!(10256&t.subtreeFlags))),2048&a&&rl(i,t);break;case 24:ol(e,t,n,r),2048&a&&al(t.alternate,t)}}function ll(e,t,n,r,a){for(a=a&&!!(10256&t.subtreeFlags),t=t.child;null!==t;)sl(e,t,n,r,a),t=t.sibling}function sl(e,t,n,r,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:ll(e,t,n,r,a),xi(t,Pm);break;case 23:break;case 22:var i=t.stateNode;null!==t.memoizedState?i._visibility&rh?ll(e,t,n,r,a):ul(e,t):(i._visibility|=rh,ll(e,t,n,r,a)),a&&2048&o&&rl(t.alternate,t);break;case 24:ll(e,t,n,r,a),a&&2048&o&&al(t.alternate,t);break;default:ll(e,t,n,r,a)}}function ul(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:ul(n,r),2048&a&&rl(r.alternate,r);break;case 24:ul(n,r),2048&a&&al(r.alternate,r);break;default:ul(n,r)}t=t.sibling}}function cl(e){if(e.subtreeFlags&Nb)for(e=e.child;null!==e;)dl(e),e=e.sibling}function dl(e){switch(e.tag){case 26:cl(e),e.flags&Nb&&null!==e.memoizedState&&function(e,t,n){if(null===pw)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var r=pw;if("stylesheet"===t.type&&("string"!=typeof n.media||!1!==matchMedia(n.media).matches)&&(t.state.loading&Zv)===Qv){if(null===t.instance){var a=Nu(n.href),o=e.querySelector(Ru(a));if(o)return null!==(e=o._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=Hu.bind(r),e.then(r,r)),t.state.loading|=Zv,t.instance=o,void me(o);o=e.ownerDocument||e,n=zu(n),(a=Jv.get(a))&&Du(n,a),me(o=o.createElement("link"));var i=o;i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),Fs(o,"link",n),t.instance=o}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&Xv)===Qv&&(r.count++,t=Hu.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Pb,e.memoizedState,e.memoizedProps);break;case 5:default:cl(e);break;case 3:case 4:var t=Pb;Pb=Eu(e.stateNode.containerInfo),cl(e),Pb=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Nb,Nb=16777216,cl(e),Nb=t):cl(e))}}function fl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function pl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];xb=r,bl(r,e)}fl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)hl(e),e=e.sibling}function hl(e){switch(e.tag){case 0:case 11:case 15:pl(e),2048&e.flags&&Ci(e,e.return,Pm|Em);break;case 3:var t=ar();pl(e),e.stateNode.passiveEffectDuration+=or(t);break;case 12:t=ar(),pl(e),e.stateNode.passiveEffectDuration+=ir(t);break;case 22:t=e.stateNode,null!==e.memoizedState&&t._visibility&rh&&(null===e.return||13!==e.return.tag)?(t._visibility&=~rh,ml(e)):pl(e);break;default:pl(e)}}function ml(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];xb=r,bl(r,e)}fl(e)}for(e=e.child;null!==e;)gl(e),e=e.sibling}function gl(e){switch(e.tag){case 0:case 11:case 15:Ci(e,e.return,Pm),ml(e);break;case 22:var t=e.stateNode;t._visibility&rh&&(t._visibility&=~rh,ml(e));break;default:ml(e)}}function bl(e,t){for(;null!==xb;){var n=xb,r=n;switch(r.tag){case 0:case 11:case 15:Ci(r,t,Pm);break;case 23:case 22:null!==r.memoizedState&&null!==r.memoizedState.cachePool&&null!=(r=r.memoizedState.cachePool.pool)&&nr(r);break;case 24:rr(r.memoizedState.cache)}if(null!==(r=n.child))r.return=n,xb=r;else e:for(n=e;null!==xb;){var a=(r=xb).sibling,o=r.return;if(Wi(r),r===n){xb=null;break e}if(null!==a){a.return=o,xb=a;break e}xb=o}}}function yl(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===qc.actQueue||console.error("The current testing environment is not configured to support act(...)"),e}function vl(e){if((Bb&Ib)!==Lb&&0!==Kb)return Kb&-Kb;var t=qc.T;return null!==t?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),0!==(e=rm)?e:bs()):ue()}function wl(){0===hy&&(hy=536870912&Kb&&!Ph?536870912:J());var e=Ug.current;return null!==e&&(e.flags|=32),hy}function kl(e,t,n){if(Yy&&console.error("useInsertionEffect must not schedule updates."),By&&(Vy=!0),(e!==Vb||ay!==Gb&&ay!==ry)&&null===e.cancelPendingCommit||(Pl(e,0),El(e,Kb,hy,!1)),ne(e,n),0!==(Bb&Ib)&&e===Vb){if(Zd)switch(t.tag){case 0:case 11:case 15:e=qb&&x(qb)||"Unknown",Zy.has(e)||(Zy.add(e),t=x(t)||"Unknown",console.error("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://react.dev/link/setstate-in-render",t,e,e));break;case 1:Xy||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Xy=!0)}}else wd&&ie(e,t,n),function(e){yl()&&null===qc.actQueue&&Ae(e,function(){console.error("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act",x(e))})}(t),e===Vb&&((Bb&Ib)===Lb&&(fy|=n),cy===Ub&&El(e,Kb,hy,!1)),ss(e)}function Sl(e,t,n){if((Bb&(Ib|Db))!==Lb)throw Error("Should not already be working.");for(var r=!n&&!(124&t)&&0===(t&e.expiredLanes)||X(e,t),a=r?function(e,t){var n=Bb;Bb|=Ib;var r=Rl(),a=zl();if(Vb!==e||Kb!==t){if(wd){var o=e.memoizedUpdaters;0<o.size&&(ls(e,Kb),o.clear()),le(e,t)}xy=null,ky=ld()+Sy,Pl(e,t)}else ly=X(e,t);V(t);e:for(;;)try{if(ay!==Qb&&null!==qb)t:switch(t=qb,o=oy,ay){case Yb:ay=Qb,oy=null,$l(e,t,o,Yb);break;case Gb:case ry:if(br(o)){ay=Qb,oy=null,Ml(t);break}t=function(){ay!==Gb&&ay!==ry||Vb!==e||(ay=ty),ss(e)},o.then(t,t);break e;case Xb:ay=ty;break e;case Zb:ay=Jb;break e;case ty:br(o)?(ay=Qb,oy=null,Ml(t)):(ay=Qb,oy=null,$l(e,t,o,ty));break;case Jb:var i=null;switch(qb.tag){case 26:i=qb.memoizedState;case 5:case 27:var l=qb;if(!i||Fu(i)){ay=Qb,oy=null;var s=l.sibling;if(null!==s)qb=s;else{var u=l.return;null!==u?(qb=u,Fl(u)):qb=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ay=Qb,oy=null,$l(e,t,o,Jb);break;case ey:ay=Qb,oy=null,$l(e,t,o,ey);break;case ny:Tl(),cy=Hb;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}null!==qc.actQueue?Ll():Il();break}catch(t){Nl(e,t)}return Bn(),qc.H=r,qc.A=a,Bb=n,null!==qb?(null!==yd&&"function"==typeof yd.markRenderYielded&&yd.markRenderYielded(),Mb):(q(),Vb=null,Kb=0,un(),cy)}(e,t):Al(e,t,!0),o=r;;){if(a===Mb){ly&&!r&&El(e,t,0,!1);break}if(n=e.current.alternate,!o||Cl(n)){if(a===$b){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=0!=(i=-536870913&e.pendingLanes)?i:536870912&i?536870912:0;if(0!==i){t=i;e:{var l=i;i=gy;var s=(a=e).current.memoizedState.isDehydrated;if(s&&(Pl(a,l).flags|=256),(l=Al(a,l,!1))!==$b){if(sy&&!s){a.errorRecoveryDisabledLanes|=o,fy|=o,a=Ub;break e}a=by,by=i,null!==a&&(null===by?by=a:by.push.apply(by,a))}a=l}if(o=!1,a!==$b)continue}}if(a===jb){Pl(e,0),El(e,t,0,!0);break}e:{switch(r=e,a){case Mb:case jb:throw Error("Root did not complete. This is a bug in React.");case Ub:if((4194048&t)!==t)break;case Hb:El(r,t,hy,!iy);break e;case $b:by=null;break;case Fb:case Wb:break;default:throw Error("Unknown root exit status.")}if(null!==qc.actQueue)Hl(r,n,t,by,xy,yy,hy,fy,my);else{if((62914560&t)===t&&10<(o=vy+wy-ld())){if(El(r,t,hy,!iy),0!==G(r,0,!0))break e;r.timeoutHandle=Hv(xl.bind(null,r,n,by,xy,yy,t,hy,fy,my,iy,a,Ty,Yh,0),o);break e}xl(r,n,by,xy,yy,t,hy,fy,my,iy,a,Ey,Yh,0)}}break}a=Al(e,t,!1),o=!1}ss(e)}function xl(e,t,n,r,a,o,i,l,s,u,c,d,f,p){if(e.timeoutHandle=Bv,(8192&(d=t.subtreeFlags)||!(16785408&~d))&&(pw={stylesheets:null,count:0,unsuspend:Uu},dl(t),null!==(d=function(){if(null===pw)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=pw;return e.stylesheets&&0===e.count&&Wu(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=d(Hl.bind(null,e,t,o,n,r,a,i,l,s,c,_y,f,p)),void El(e,o,i,!u);Hl(e,t,o,n,r,a,i,l,s)}function Cl(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Mp(o(),a))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function El(e,t,n,r){t&=~py,t&=~fy,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-kd(a),i=1<<o;r[o]=-1,a&=~i}0!==n&&re(e,n,t)}function _l(){return(Bb&(Ib|Db))!==Lb||(us(0),!1)}function Tl(){if(null!==qb){if(ay===Qb)var e=qb.return;else e=qb,Bn(),Qr(e),Og=null,Ag=0,e=qb;for(;null!==e;)bi(e.alternate,e),e=e.return;qb=null}}function Pl(e,t){var n=e.timeoutHandle;n!==Bv&&(e.timeoutHandle=Bv,Wv(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Tl(),Vb=e,qb=n=Sn(e.current,null),Kb=t,ay=Qb,oy=null,iy=!1,ly=X(e,t),sy=!1,cy=Mb,my=hy=py=fy=dy=0,by=gy=null,yy=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-kd(r),o=1<<a;t|=e[a],r&=~o}return uy=t,un(),1e3<(t=Dh())-Lh&&(qc.recentlyCreatedOwnerStacks=0,Lh=t),lm.discardPendingWarnings(),n}function Nl(e,t){Bm=null,qc.H=og,qc.getCurrentStack=null,Zd=!1,Xd=null,t===ym||t===wm?(t=wr(),ay=Xb):t===vm?(t=wr(),ay=Zb):ay=t===lb?ny:null!==t&&"object"==typeof t&&"function"==typeof t.then?ey:Yb,oy=t;var n=qb;if(null===n)cy=jb,Lo(e,sn(t,e.current));else switch(n.mode&fh&&sr(n),B(),ay){case Yb:null!==yd&&"function"==typeof yd.markComponentErrored&&yd.markComponentErrored(n,t,Kb);break;case Gb:case ry:case Xb:case ey:case ty:null!==yd&&"function"==typeof yd.markComponentSuspended&&yd.markComponentSuspended(n,t,Kb)}}function Rl(){var e=qc.H;return qc.H=og,null===e?og:e}function zl(){var e=qc.A;return qc.A=Rb,e}function Ol(){cy=Ub,iy||(4194048&Kb)!==Kb&&null!==Ug.current||(ly=!0),!(134217727&dy)&&!(134217727&fy)||null===Vb||El(Vb,Kb,hy,!1)}function Al(e,t,n){var r=Bb;Bb|=Ib;var a=Rl(),o=zl();if(Vb!==e||Kb!==t){if(wd){var i=e.memoizedUpdaters;0<i.size&&(ls(e,Kb),i.clear()),le(e,t)}xy=null,Pl(e,t)}V(t),t=!1,i=cy;e:for(;;)try{if(ay!==Qb&&null!==qb){var l=qb,s=oy;switch(ay){case ny:Tl(),i=Hb;break e;case Xb:case Gb:case ry:case ey:null===Ug.current&&(t=!0);var u=ay;if(ay=Qb,oy=null,$l(e,l,s,u),n&&ly){i=Mb;break e}break;default:u=ay,ay=Qb,oy=null,$l(e,l,s,u)}}Ll(),i=cy;break}catch(t){Nl(e,t)}return t&&e.shellSuspendCounter++,Bn(),Bb=r,qc.H=a,qc.A=o,q(),null===qb&&(Vb=null,Kb=0,un()),i}function Ll(){for(;null!==qb;)Dl(qb)}function Il(){for(;null!==qb&&!od();)Dl(qb)}function Dl(e){var t=e.alternate;(e.mode&fh)!==ch?(lr(e),t=Ae(e,ui,t,e,uy),sr(e)):t=Ae(e,ui,t,e,uy),e.memoizedProps=e.pendingProps,null===t?Fl(e):qb=t}function Ml(e){var t=Ae(e,jl,e);e.memoizedProps=e.pendingProps,null===t?Fl(e):qb=t}function jl(e){var t=e.alternate,n=(e.mode&fh)!==ch;switch(n&&lr(e),e.tag){case 15:case 0:t=Ko(t,e,e.pendingProps,e.type,void 0,Kb);break;case 11:t=Ko(t,e,e.pendingProps,e.type.render,e.ref,Kb);break;case 5:Qr(e);default:bi(t,e),t=ui(t,e=qb=xn(e,uy),uy)}return n&&sr(e),t}function $l(e,t,n,r){Bn(),Qr(t),Og=null,Ag=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,wd&&ls(e,a),null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Yn(t,n,a,!0),Ph&&(Nh=!0),null!==(n=Ug.current)){switch(n.tag){case 13:return null===Hg?Ol():null===n.alternate&&cy===Mb&&(cy=Fb),n.flags&=-257,n.flags|=65536,n.lanes=a,r===km?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Zl(e,r,a)),!1;case 22:return n.flags|=65536,r===km?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Zl(e,r,a)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return Zl(e,r,a),Ol(),!1}if(Ph)return Nh=!0,null!==(t=Ug.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ah&&Hn(sn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:r}),n))):(r!==Ah&&Hn(sn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=sn(r,n),Tr(e,a=Do(e.stateNode,r,a)),cy!==Ub&&(cy=$b)),!1;var o=sn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:r}),n);if(null===gy?gy=[o]:gy.push(o),cy!==Ub&&(cy=$b),null===t)return!0;r=sn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,Tr(n,e=Do(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==Cy&&Cy.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,jo(a=Mo(a),e,n,r),Tr(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,Kb))return cy=jb,Lo(e,sn(n,e.current)),void(qb=null)}catch(t){if(null!==a)throw qb=a,t;return cy=jb,Lo(e,sn(n,e.current)),void(qb=null)}32768&t.flags?(Ph||r===Yb?e=!0:ly||536870912&Kb?e=!1:(iy=e=!0,(r===Gb||r===ry||r===Xb||r===ey)&&null!==(r=Ug.current)&&13===r.tag&&(r.flags|=16384)),Ul(t,e)):Fl(t)}function Fl(e){var t=e;do{if(32768&t.flags)return void Ul(t,iy);var n=t.alternate;if(e=t.return,lr(t),n=Ae(t,mi,n,t,uy),(t.mode&fh)!==ch&&ur(t),null!==n)return void(qb=n);if(null!==(t=t.sibling))return void(qb=t);qb=t=e}while(null!==t);cy===Mb&&(cy=Wb)}function Ul(e,t){do{var n=gi(e.alternate,e);if(null!==n)return n.flags&=32767,void(qb=n);if((e.mode&fh)!==ch){ur(e),n=e.actualDuration;for(var r=e.child;null!==r;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(qb=e);qb=e=n}while(null!==e);cy=Hb,qb=null}function Hl(e,t,n,r,a,o,i,l,s){e.cancelPendingCommit=null;do{Ql()}while(Ly!==Py);if(lm.flushLegacyContextWarning(),lm.flushPendingUnsafeLifecycleWarnings(),(Bb&(Ib|Db))!==Lb)throw Error("Should not already be working.");if(null!==yd&&"function"==typeof yd.markCommitStarted&&yd.markCommitStarted(n),null===t)H();else{if(0===n&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(o=t.lanes|t.childLanes,function(e,t,n,r,a,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var c=31-kd(n),d=1<<c;l[c]=0,s[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&re(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(i&~t))}(e,n,o|=ih,i,l,s),e===Vb&&(qb=Vb=null,Kb=0),Dy=t,Iy=e,My=n,jy=o,$y=a,Fy=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,u=dd,c=function(){return Yl(),null},null!==(d=qc.actQueue)?d.push(c):rd(u,c)):(e.callbackNode=null,e.callbackPriority=0),Gh=Qh(),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=qc.T,qc.T=null,a=Kc.p,Kc.p=_d,i=Bb,Bb|=Db;try{!function(e,t){if(e=e.containerInfo,jv=Ew,nn(e=tn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==a&&3!==d.nodeType||(l=i+a),d!==o||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===a&&(l=i),f===o&&++c===r&&(s=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for($v={focusedElem:e,selectionRange:n},Ew=!1,xb=t;null!==xb;)if(e=(t=xb).child,1024&t.subtreeFlags&&null!==e)e.return=t,xb=e;else for(;null!==xb;){switch(n=(e=t=xb).alternate,a=e.flags,e.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:1024&a&&null!==n&&Ti(e,n);break;case 3:if(1024&a)if(9===(n=(e=e.stateNode.containerInfo).nodeType))pu(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pu(e);break;default:e.textContent=""}break;default:if(1024&a)throw 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.")}if(null!==(e=t.sibling)){e.return=t.return,xb=e;break}xb=t.return}}(e,t)}finally{Bb=i,Kc.p=a,qc.T=r}}Ly=Ny,Wl(),Bl(),Vl()}var u,c,d}function Wl(){if(Ly===Ny){Ly=Py;var e=Iy,t=Dy,n=My,r=!!(13878&t.flags);if(13878&t.subtreeFlags||r){r=qc.T,qc.T=null;var a=Kc.p;Kc.p=_d;var o=Bb;Bb|=Db;try{Cb=n,Eb=e,Yi(t,e),Eb=Cb=null,n=$v;var i=tn(e.containerInfo),l=n.focusedElem,s=n.selectionRange;if(i!==l&&l&&l.ownerDocument&&en(l.ownerDocument.documentElement,l)){if(null!==s&&nn(l)){var u=s.start,c=s.end;if(void 0===c&&(c=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(c,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=l.textContent.length,m=Math.min(s.start,h),g=void 0===s.end?m:Math.min(s.end,h);!p.extend&&m>g&&(i=g,g=m,m=i);var b=Jt(l,m),y=Jt(l,g);if(b&&y&&(1!==p.rangeCount||p.anchorNode!==b.node||p.anchorOffset!==b.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var v=d.createRange();v.setStart(b.node,b.offset),p.removeAllRanges(),m>g?(p.addRange(v),p.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),p.addRange(v))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Ew=!!jv,$v=jv=null}finally{Bb=o,Kc.p=a,qc.T=r}}e.current=t,Ly=Ry}}function Bl(){if(Ly===Ry){Ly=Py;var e=Iy,t=Dy,n=My,r=!!(8772&t.flags);if(8772&t.subtreeFlags||r){r=qc.T,qc.T=null;var a=Kc.p;Kc.p=_d;var o=Bb;Bb|=Db;try{null!==yd&&"function"==typeof yd.markLayoutEffectsStarted&&yd.markLayoutEffectsStarted(n),Cb=n,Eb=e,Hi(e,t.alternate,t),Eb=Cb=null,null!==yd&&"function"==typeof yd.markLayoutEffectsStopped&&yd.markLayoutEffectsStopped()}finally{Bb=o,Kc.p=a,qc.T=r}}Ly=zy}}function Vl(){if(Ly===Oy||Ly===zy){Ly=Py,id();var e=Iy,t=Dy,n=My,r=Fy,a=!!(10256&t.subtreeFlags)||!!(10256&t.flags);a?Ly=Ay:(Ly=Py,Dy=Iy=null,Kl(e,e.pendingLanes),Ky=0,Qy=null);var o=e.pendingLanes;if(0===o&&(Cy=null),a||os(e),a=se(n),t=t.stateNode,bd&&"function"==typeof bd.onCommitFiberRoot)try{var i=!(128&~t.current.flags);switch(a){case _d:var l=ud;break;case Td:l=cd;break;case Pd:l=dd;break;case Nd:l=pd;break;default:l=dd}bd.onCommitFiberRoot(gd,t,l,i)}catch(e){vd||(vd=!0,console.error("React instrumentation encountered an error: %s",e))}if(wd&&e.memoizedUpdaters.clear(),Ob.forEach(function(e){return e()}),null!==r){i=qc.T,l=Kc.p,Kc.p=_d,qc.T=null;try{var s=e.onRecoverableError;for(t=0;t<r.length;t++){var u=r[t],c=ql(u.stack);Ae(u.source,s,u.value,c)}}finally{qc.T=i,Kc.p=l}}3&My&&Ql(),ss(e),o=e.pendingLanes,4194090&n&&42&o?(em=!0,e===Wy?Hy++:(Hy=0,Wy=e)):Hy=0,us(0),H()}}function ql(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Kl(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,rr(t))}function Ql(e){return Wl(),Bl(),Vl(),Yl()}function Yl(){if(Ly!==Ay)return!1;var e=Iy,t=jy;jy=0;var n=se(My),r=Pd>n?Pd:n;n=qc.T;var a=Kc.p;try{Kc.p=r,qc.T=null,r=$y,$y=null;var o=Iy,i=My;if(Ly=Py,Dy=Iy=null,My=0,(Bb&(Ib|Db))!==Lb)throw Error("Cannot flush passive effects while already rendering.");By=!0,Vy=!1,null!==yd&&"function"==typeof yd.markPassiveEffectsStarted&&yd.markPassiveEffectsStarted(i);var l=Bb;if(Bb|=Db,hl(o.current),il(o,o.current,i,r),null!==yd&&"function"==typeof yd.markPassiveEffectsStopped&&yd.markPassiveEffectsStopped(),os(o),Bb=l,us(0),Vy?o===Qy?Ky++:(Ky=0,Qy=o):Ky=0,Vy=By=!1,bd&&"function"==typeof bd.onPostCommitFiberRoot)try{bd.onPostCommitFiberRoot(gd,o)}catch(e){vd||(vd=!0,console.error("React instrumentation encountered an error: %s",e))}var s=o.current.stateNode;return s.effectDuration=0,s.passiveEffectDuration=0,!0}finally{Kc.p=a,qc.T=n,Kl(e,t)}}function Gl(e,t,n){t=sn(n,t),null!==(e=Er(e,t=Do(e.stateNode,t,2),2))&&(ne(e,2),ss(e))}function Xl(e,t,n){if(Yy=!1,3===e.tag)Gl(e,e,n);else{for(;null!==t;){if(3===t.tag)return void Gl(t,e,n);if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Cy||!Cy.has(r)))return e=sn(n,e),void(null!==(r=Er(t,n=Mo(2),2))&&(jo(n,r,t,e),ne(r,2),ss(r)))}t=t.return}console.error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}}function Zl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ab;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(sy=!0,a.add(n),r=Jl.bind(null,e,t,n),wd&&ls(e,n),t.then(r,r))}function Jl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,yl()&&null===qc.actQueue&&console.error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act"),Vb===e&&(Kb&n)===n&&(cy===Ub||cy===Fb&&(62914560&Kb)===Kb&&ld()-vy<wy?(Bb&Ib)===Lb&&Pl(e,0):py|=n,my===Kb&&(my=0)),ss(e)}function es(e,t){0===t&&(t=ee()),null!==(e=fn(e,t))&&(ne(e,t),ss(e))}function ts(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),es(e,n)}function ns(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(t),es(e,n)}function rs(e,t,n){if(67117056&t.subtreeFlags)for(t=t.child;null!==t;){var r=e,a=t,o=a.type===zc;o=n||o,22!==a.tag?67108864&a.flags?o&&Ae(a,as,r,a,(a.mode&mh)===ch):rs(r,a,o):null===a.memoizedState&&(o&&8192&a.flags?Ae(a,as,r,a):67108864&a.subtreeFlags&&Ae(a,rs,r,a,o)),t=t.sibling}}function as(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];U(!0);try{Ji(t),n&&gl(t),tl(e,t.alternate,t,!1),n&&sl(e,t,0,null,!1)}finally{U(!1)}}function os(e){var t=!0;e.current.mode&(ph|hh)||(t=!1),rs(e,e.current,t)}function is(e){if((Bb&Ib)===Lb){var t=e.tag;if(3===t||1===t||0===t||11===t||14===t||15===t){if(t=x(e)||"ReactComponent",null!==Gy){if(Gy.has(t))return;Gy.add(t)}else Gy=new Set([t]);Ae(e,function(){console.error("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.")})}}}function ls(e,t){wd&&e.memoizedUpdaters.forEach(function(n){ie(e,n,t)})}function ss(e){e!==ev&&null===e.next&&(null===ev?Jy=ev=e:ev=ev.next=e),rv=!0,null!==qc.actQueue?nv||(nv=!0,gs()):tv||(tv=!0,gs())}function us(e,t){if(!av&&rv){av=!0;do{for(var n=!1,r=Jy;null!==r;){if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var i=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-kd(42|e)+1)-1,o=201326741&(o&=a&~(i&~l))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,hs(r,o))}else o=Kb,!(3&(o=G(r,r===Vb?o:0,null!==r.cancelPendingCommit||r.timeoutHandle!==Bv)))||X(r,o)||(n=!0,hs(r,o));r=r.next}}while(n);av=!1}}function cs(){ds()}function ds(){rv=nv=tv=!1;var e=0;0!==ov&&(function(){var e=window.event;return e&&"popstate"===e.type?e!==Uv&&(Uv=e,!0):(Uv=null,!1)}()&&(e=ov),ov=0);for(var t=ld(),n=null,r=Jy;null!==r;){var a=r.next,o=fs(r,t);0===o?(r.next=null,null===n?Jy=a:n.next=a,null===a&&(ev=n)):(n=r,(0!==e||3&o)&&(rv=!0)),r=a}us(e)}function fs(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var i=31-kd(o),l=1<<i,s=a[i];-1===s?0!==(l&n)&&0===(l&r)||(a[i]=Z(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(n=Kb,n=G(e,e===(t=Vb)?n:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Bv),r=e.callbackNode,0===n||e===t&&(ay===Gb||ay===ry)||null!==e.cancelPendingCommit)return null!==r&&ms(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||X(e,n)){if((t=n&-n)===e.callbackPriority&&(null===qc.actQueue||r===iv))return t;switch(ms(r),se(n)){case _d:case Td:n=cd;break;case Pd:n=dd;break;case Nd:n=pd;break;default:n=dd}return r=ps.bind(null,e),null!==qc.actQueue?(qc.actQueue.push(r),n=iv):n=rd(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&ms(r),e.callbackPriority=2,e.callbackNode=null,2}function ps(e,t){if(em=Jh=!1,Ly!==Py&&Ly!==Ay)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ql()&&e.callbackNode!==n)return null;var r=Kb;return 0===(r=G(e,e===Vb?r:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Bv))?null:(Sl(e,r,t),fs(e,ld()),null!=e.callbackNode&&e.callbackNode===n?ps.bind(null,e):null)}function hs(e,t){if(Ql())return null;Jh=em,em=!1,Sl(e,t,!0)}function ms(e){e!==iv&&null!==e&&ad(e)}function gs(){null!==qc.actQueue&&qc.actQueue.push(function(){return ds(),null}),qv(function(){(Bb&(Ib|Db))!==Lb?rd(ud,cs):ds()})}function bs(){return 0===ov&&(ov=J()),ov}function ys(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:(j(e,"action"),_t(""+e))}function vs(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function ws(e,t,n){e.currentTarget=n;try{t(e)}catch(e){ab(e)}e.currentTarget=null}function ks(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n];e:{var a=void 0,o=r.event;if(r=r.listeners,t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;null!==s?Ae(s,ws,o,l,u):ws(o,l,u),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;null!==s?Ae(s,ws,o,l,u):ws(o,l,u),a=s}}}}function Ss(e,t){sv.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[Ld];void 0===n&&(n=t[Ld]=new Set);var r=e+"__bubble";n.has(r)||(Es(t,e,2,!1),n.add(r))}function xs(e,t,n){sv.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),Es(n,e,r,t)}function Cs(e){if(!e[uv]){e[uv]=!0,$d.forEach(function(t){"selectionchange"!==t&&(sv.has(t)||xs(t,!1,e),xs(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[uv]||(t[uv]=!0,xs("selectionchange",!1,t))}}function Es(e,t,n,r){switch(rc(t)){case _d:var a=Zu;break;case Td:a=Ju;break;default:a=ec}n=a.bind(null,t,n,e),a=void 0,!Qf||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function _s(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===a)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&i.stateNode.containerInfo===a)return;i=i.return}for(;null!==l;){if(null===(i=de(l)))return;if(5===(s=i.tag)||6===s||26===s||27===s){r=o=i;continue e}l=l.parentNode}}r=r.return}Nt(function(){var r=o,a=Tt(n),i=[];e:{var l=Jp.get(e);if(void 0!==l){var s=rp,u=e;switch(e){case"keypress":if(0===Ot(n))break e;case"keydown":case"keyup":s=bp;break;case"focusin":u="focus",s=up;break;case"focusout":u="blur",s=up;break;case"beforeblur":case"afterblur":s=up;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=lp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=sp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=vp;break;case qp:case Kp:case Qp:s=cp;break;case Zp:s=wp;break;case"scroll":case"scrollend":s=op;break;case"wheel":s=kp;break;case"copy":case"cut":case"paste":s=dp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=yp;break;case"toggle":case"beforetoggle":s=Sp}var c=!!(4&t),d=!c&&("scroll"===e||"scrollend"===e),f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var g=h;if(p=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===p||null===f||null!=(g=Rt(h,f))&&c.push(Ts(h,g,p)),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,a),i.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Wf||!(u=n.relatedTarget||n.fromElement)||!de(u)&&!u[Ad])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?de(u):null)&&(d=m(u),c=u.tag,u!==d||5!==c&&27!==c&&6!==c)&&(u=null)):(s=null,u=r),s!==u)){if(c=lp,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=yp,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:pe(s),p=null==u?l:pe(u),(l=new c(g,h+"leave",s,n,a)).target=d,l.relatedTarget=p,g=null,de(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,g=c),d=g,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Ns(p))h++;for(p=0,g=f;g;g=Ns(g))p++;for(;0<h-p;)c=Ns(c),h--;for(;0<p-h;)f=Ns(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Ns(c),f=Ns(f)}c=null}else c=null;null!==s&&Rs(i,l,s,c,!1),null!==u&&null!==d&&Rs(i,d,u,c,!0)}if("select"===(s=(l=r?pe(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var b=Bt;else if(Ft(l))if(Dp)b=Gt;else{b=Qt;var y=Kt}else!(s=l.nodeName)||"input"!==s.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&St(r.elementType)&&(b=Bt):b=Yt;switch(b&&(b=b(e,r))?Ut(i,b,n,a):(y&&y(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&Be(l,"number",l.value)),y=r?pe(r):window,e){case"focusin":(Ft(y)||"true"===y.contentEditable)&&($p=y,Fp=r,Up=null);break;case"focusout":Up=Fp=$p=null;break;case"mousedown":Hp=!0;break;case"contextmenu":case"mouseup":case"dragend":Hp=!1,rn(i,n,a);break;case"selectionchange":if(jp)break;case"keydown":case"keyup":rn(i,n,a)}var v;if(Ep)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Op?jt(e,n)&&(w="onCompositionEnd"):"keydown"===e&&n.keyCode===Cp&&(w="onCompositionStart");w&&(Pp&&"ko"!==n.locale&&(Op||"onCompositionStart"!==w?"onCompositionEnd"===w&&Op&&(v=zt()):(ep="value"in(Jf=a)?Jf.value:Jf.textContent,Op=!0)),0<(y=Ps(r,w)).length&&(w=new fp(w,e,null,n,a),i.push({event:w,listeners:y}),(v||null!==(v=$t(n)))&&(w.data=v))),(v=Tp?function(e,t){switch(e){case"compositionend":return $t(t);case"keypress":return t.which!==Np?null:(zp=!0,Rp);case"textInput":return(e=t.data)===Rp&&zp?null:e;default:return null}}(e,n):function(e,t){if(Op)return"compositionend"===e||!Ep&&jt(e,t)?(e=zt(),tp=ep=Jf=null,Op=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pp&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(w=Ps(r,"onBeforeInput")).length&&(y=new pp("onBeforeInput","beforeinput",null,n,a),i.push({event:y,listeners:w}),y.data=v),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=ys((a[Od]||null).action),i=r.submitter;i&&null!==(t=(t=i[Od]||null)?ys(t.formAction):i.getAttribute("formAction"))&&(o=t,i=null);var l=new rp("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==ov){var e=i?vs(a,i):new FormData(a),t={pending:!0,data:e,method:a.method,action:o};Object.freeze(t),Ya(n,t,null,e)}}else"function"==typeof o&&(l.preventDefault(),t={pending:!0,data:e=i?vs(a,i):new FormData(a),method:a.method,action:o},Object.freeze(t),Ya(n,t,o,e))},currentTarget:a}]})}}(i,e,r,n,a)}ks(i,t)})}function Ts(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ps(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=Rt(e,n))&&r.unshift(Ts(e,a,o)),null!=(a=Rt(e,t))&&r.push(Ts(e,a,o))),3===e.tag)return r;e=e.return}return[]}function Ns(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Rs(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===u||(s=u,a?null!=(u=Rt(n,o))&&i.unshift(Ts(n,u,s)):a||null!=(u=Rt(n,o))&&i.push(Ts(n,u,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function zs(e,t){!function(e,t){var n,r=[];for(n in t)Ct(e,n)||r.push(n);t=r.map(function(e){return"`"+e+"`"}).join(", "),1===r.length?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<r.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}(e,t),"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||Df||(Df=!0,"select"===e&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Fd,possibleRegistrationNames:Ud};St(e)||"string"==typeof t.is||function(e,t,n){var r,a=[];for(r in t)Et(e,r,t[r],n)||a.push(r);t=a.map(function(e){return"`"+e+"`"}).join(", "),1===a.length?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<a.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&null!=t.children&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Os(e,t,n,r){t!==n&&(n=Is(n),Is(t)!==n&&(r[e]=t))}function As(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Ls(e,t){return(e=e.namespaceURI===Pf||e.namespaceURI===Nf?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName)).innerHTML=t,e.innerHTML}function Is(e){return D(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",I(e)),M(e)),("string"==typeof e?e:""+e).replace(yv,"\n").replace(vv,"")}function Ds(e,t){return t=Is(t),Is(e)===t}function Ms(){}function js(e,t,n,r,a,o){switch(n){case"children":"string"==typeof r?(yt(r,t,!1),"body"===t||"textarea"===t&&""===r||vt(e,r)):"number"!=typeof r&&"bigint"!=typeof r||(yt(""+r,t,!1),"body"!==t&&vt(e,""+r));break;case"className":Se(e,"class",r);break;case"tabIndex":Se(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Se(e,n,r);break;case"style":kt(e,r,o);break;case"data":if("object"!==t){Se(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){"src"===n?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}j(r,n),r=_t(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(null!=r&&("form"===t?"formAction"===n?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):"function"==typeof r&&(null==a.encType&&null==a.method||mv||(mv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),null==a.target||hv||(hv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):"input"===t||"button"===t?"action"===n?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):"input"!==t||"submit"===a.type||"image"===a.type||fv?"button"!==t||null==a.type||"submit"===a.type||fv?"function"==typeof r&&(null==a.name||pv||(pv=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),null==a.formEncType&&null==a.formMethod||mv||(mv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),null==a.formTarget||hv||(hv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(fv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(fv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):"action"===n?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),"function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&js(e,t,"name",a.name,a,null),js(e,t,"formEncType",a.formEncType,a,null),js(e,t,"formMethod",a.formMethod,a,null),js(e,t,"formTarget",a.formTarget,a,null)):(js(e,t,"encType",a.encType,a,null),js(e,t,"method",a.method,a,null),js(e,t,"target",a.target,a,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}j(r,n),r=_t(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&("function"!=typeof r&&As(n,r),e.onclick=Ms);break;case"onScroll":null!=r&&("function"!=typeof r&&As(n,r),Ss("scroll",e));break;case"onScrollEnd":null!=r&&("function"!=typeof r&&As(n,r),Ss("scrollend",e));break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(n=r.__html)){if(null!=a.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}j(r,n),n=_t(""+r),e.setAttributeNS(wv,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(j(r,n),e.setAttribute(n,""+r)):e.removeAttribute(n);break;case"inert":""!==r||bv[n]||(bv[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(j(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?(j(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):(j(r,n),e.setAttribute(n,r));break;case"popover":Ss("beforetoggle",e),Ss("toggle",e),ke(e,"popover",r);break;case"xlinkActuate":xe(e,wv,"xlink:actuate",r);break;case"xlinkArcrole":xe(e,wv,"xlink:arcrole",r);break;case"xlinkRole":xe(e,wv,"xlink:role",r);break;case"xlinkShow":xe(e,wv,"xlink:show",r);break;case"xlinkTitle":xe(e,wv,"xlink:title",r);break;case"xlinkType":xe(e,wv,"xlink:type",r);break;case"xmlBase":xe(e,kv,"xml:base",r);break;case"xmlLang":xe(e,kv,"xml:lang",r);break;case"xmlSpace":xe(e,kv,"xml:space",r);break;case"is":null!=o&&console.error('Cannot update the "is" prop after it has been initialized.'),ke(e,"is",r);break;case"innerText":case"textContent":break;case"popoverTarget":gv||null==r||"object"!=typeof r||(gv=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]?ke(e,n=xt(n),r):Fd.hasOwnProperty(n)&&null!=r&&"function"!=typeof r&&As(n,r)}}function $s(e,t,n,r,a,o){switch(n){case"style":kt(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(n=r.__html)){if(null!=a.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":"string"==typeof r?vt(e,r):("number"==typeof r||"bigint"==typeof r)&&vt(e,""+r);break;case"onScroll":null!=r&&("function"!=typeof r&&As(n,r),Ss("scroll",e));break;case"onScrollEnd":null!=r&&("function"!=typeof r&&As(n,r),Ss("scrollend",e));break;case"onClick":null!=r&&("function"!=typeof r&&As(n,r),e.onclick=Ms);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Fd.hasOwnProperty(n)?null!=r&&"function"!=typeof r&&As(n,r):"o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(o=null!=(o=e[Od]||null)?o[n]:null)&&e.removeEventListener(t,o,a),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):ke(e,n,r):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a))}}function Fs(e,t,n){switch(zs(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ss("error",e),Ss("load",e);var r,a=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var i=n[r];if(null!=i)switch(r){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:js(e,t,r,i,n,null)}}return o&&js(e,t,"srcSet",n.srcSet,n,null),void(a&&js(e,t,"src",n.src,n,null));case"input":ye("input",n),Ss("invalid",e);var l=r=i=o=null,s=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var c=n[a];if(null!=c)switch(a){case"name":o=c;break;case"type":i=c;break;case"checked":s=c;break;case"defaultChecked":u=c;break;case"value":r=c;break;case"defaultValue":l=c;break;case"children":case"dangerouslySetInnerHTML":if(null!=c)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:js(e,t,a,c,n,null)}}return Ue(0,n),We(e,r,l,s,u,i,o,!1),void Me(e);case"select":for(o in ye("select",n),Ss("invalid",e),a=i=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":i=l;break;case"multiple":a=l;default:js(e,t,o,l,n,null)}return Qe(e,n),t=r,n=i,e.multiple=!!a,void(null!=t?Ke(e,!!a,t,!1):null!=n&&Ke(e,!!a,n,!0));case"textarea":for(i in ye("textarea",n),Ss("invalid",e),r=o=a=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":a=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:js(e,t,i,l,n,null)}return Ye(0,n),Xe(e,a,o,r),void Me(e);case"option":for(s in Ve(0,n),n)n.hasOwnProperty(s)&&null!=(a=n[s])&&("selected"===s?e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a:js(e,t,s,a,n,null));return;case"dialog":Ss("beforetoggle",e),Ss("toggle",e),Ss("cancel",e),Ss("close",e);break;case"iframe":case"object":Ss("load",e);break;case"video":case"audio":for(a=0;a<lv.length;a++)Ss(lv[a],e);break;case"image":Ss("error",e),Ss("load",e);break;case"details":Ss("toggle",e);break;case"embed":case"source":case"link":Ss("error",e),Ss("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:js(e,t,u,a,n,null)}return;default:if(St(t)){for(c in n)n.hasOwnProperty(c)&&void 0!==(a=n[c])&&$s(e,t,c,a,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(a=n[l])&&js(e,t,l,a,n,null)}function Us(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Hs(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Ws(e,t,n){if(null!=t&&"object"!=typeof t)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,a,o=r="";for(a in t)if(t.hasOwnProperty(a)){var i=t[a];null!=i&&"boolean"!=typeof i&&""!==i&&(0===a.indexOf("--")?($(i,a),r+=o+a+":"+(""+i).trim()):"number"!=typeof i||0===i||Tf.has(a)?($(i,a),r+=o+a.replace(bf,"-$1").toLowerCase().replace(yf,"-ms-")+":"+(""+i).trim()):r+=o+a.replace(bf,"-$1").toLowerCase().replace(yf,"-ms-")+":"+i+"px",o=";")}r=r||null,(t=e.getAttribute("style"))!==r&&(r=Is(r),Is(t)!==r&&(n.style=Hs(e)))}}function Bs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(j(r,t),e===""+r)return}Os(t,e,r,o)}function Vs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n))){switch(typeof r){case"function":case"symbol":return}if(!r)return}else switch(typeof r){case"function":case"symbol":break;default:if(r)return}Os(t,e,r,o)}function qs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":return}else if(null!=r)switch(typeof r){case"function":case"symbol":break;default:if(j(r,n),e===""+r)return}Os(t,e,r,o)}function Ks(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(r))return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(!isNaN(r)&&(j(r,t),e===""+r))return}Os(t,e,r,o)}function Qs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(j(r,t),e===(n=_t(""+r)))return}Os(t,e,r,o)}function Ys(e,t,n,r){for(var a={},o=new Set,i=e.attributes,l=0;l<i.length;l++)switch(i[l].name.toLowerCase()){case"value":case"checked":case"selected":break;default:o.add(i[l].name)}if(St(t)){for(var s in n)if(n.hasOwnProperty(s)){var u=n[s];if(null!=u)if(Fd.hasOwnProperty(s))"function"!=typeof u&&As(s,u);else if(!0!==n.suppressHydrationWarning)switch(s){case"children":"string"!=typeof u&&"number"!=typeof u||Os("children",e.textContent,u,a);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":i=e.innerHTML,null!=(u=u?u.__html:void 0)&&Os(s,i,u=Ls(e,u),a);continue;case"style":o.delete(s),Ws(e,u,a);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":o.delete(s.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",s);continue;case"className":o.delete("class"),Os("className",i=we(e,"class",u),u,a);continue;default:r.context===Iv&&"svg"!==t&&"math"!==t?o.delete(s.toLowerCase()):o.delete(s),Os(s,i=we(e,s,u),u,a)}}}else for(u in n)if(n.hasOwnProperty(u)&&null!=(s=n[u]))if(Fd.hasOwnProperty(u))"function"!=typeof s&&As(u,s);else if(!0!==n.suppressHydrationWarning)switch(u){case"children":"string"!=typeof s&&"number"!=typeof s||Os("children",e.textContent,s,a);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":i=e.innerHTML,null!=(s=s?s.__html:void 0)&&i!==(s=Ls(e,s))&&(a[u]={__html:i});continue;case"className":Bs(e,u,"class",s,o,a);continue;case"tabIndex":Bs(e,u,"tabindex",s,o,a);continue;case"style":o.delete(u),Ws(e,s,a);continue;case"multiple":o.delete(u),Os(u,e.multiple,s,a);continue;case"muted":o.delete(u),Os(u,e.muted,s,a);continue;case"autoFocus":o.delete("autofocus"),Os(u,e.autofocus,s,a);continue;case"data":if("object"!==t){o.delete(u),Os(u,i=e.getAttribute("data"),s,a);continue}case"src":case"href":if(!(""!==s||"a"===t&&"href"===u||"object"===t&&"data"===u)){"src"===u?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',u,u):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',u,u);continue}Qs(e,u,u,s,o,a);continue;case"action":case"formAction":if(i=e.getAttribute(u),"function"==typeof s){o.delete(u.toLowerCase()),"formAction"===u?(o.delete("name"),o.delete("formenctype"),o.delete("formmethod"),o.delete("formtarget")):(o.delete("enctype"),o.delete("method"),o.delete("target"));continue}if(i===Sv){o.delete(u.toLowerCase()),Os(u,"function",s,a);continue}Qs(e,u,u.toLowerCase(),s,o,a);continue;case"xlinkHref":Qs(e,u,"xlink:href",s,o,a);continue;case"contentEditable":qs(e,u,"contenteditable",s,o,a);continue;case"spellCheck":qs(e,u,"spellcheck",s,o,a);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":qs(e,u,u,s,o,a);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Vs(e,u,u.toLowerCase(),s,o,a);continue;case"capture":case"download":e:{l=e;var c=i=u,d=a;if(o.delete(c),null===(l=l.getAttribute(c)))switch(typeof s){case"undefined":case"function":case"symbol":break e;default:if(!1===s)break e}else if(null!=s)switch(typeof s){case"function":case"symbol":break;case"boolean":if(!0===s&&""===l)break e;break;default:if(j(s,i),l===""+s)break e}Os(i,l,s,d)}continue;case"cols":case"rows":case"size":case"span":e:{if(l=e,c=i=u,d=a,o.delete(c),null===(l=l.getAttribute(c)))switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(s)||1>s)break e}else if(null!=s)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(s)||1>s)&&(j(s,i),l===""+s))break e}Os(i,l,s,d)}continue;case"rowSpan":Ks(e,u,"rowspan",s,o,a);continue;case"start":Ks(e,u,u,s,o,a);continue;case"xHeight":Bs(e,u,"x-height",s,o,a);continue;case"xlinkActuate":Bs(e,u,"xlink:actuate",s,o,a);continue;case"xlinkArcrole":Bs(e,u,"xlink:arcrole",s,o,a);continue;case"xlinkRole":Bs(e,u,"xlink:role",s,o,a);continue;case"xlinkShow":Bs(e,u,"xlink:show",s,o,a);continue;case"xlinkTitle":Bs(e,u,"xlink:title",s,o,a);continue;case"xlinkType":Bs(e,u,"xlink:type",s,o,a);continue;case"xmlBase":Bs(e,u,"xml:base",s,o,a);continue;case"xmlLang":Bs(e,u,"xml:lang",s,o,a);continue;case"xmlSpace":Bs(e,u,"xml:space",s,o,a);continue;case"inert":""!==s||bv[u]||(bv[u]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",u)),Vs(e,u,u,s,o,a);continue;default:if(!(2<u.length)||"o"!==u[0]&&"O"!==u[0]||"n"!==u[1]&&"N"!==u[1]){l=xt(u),i=!1,r.context===Iv&&"svg"!==t&&"math"!==t?o.delete(l.toLowerCase()):(c=u.toLowerCase(),null!==(c=zf.hasOwnProperty(c)&&zf[c]||null)&&c!==u&&(i=!0,o.delete(c)),o.delete(l));e:if(c=e,d=l,l=s,ve(d))if(c.hasAttribute(d))c=c.getAttribute(d),j(l,d),l=c===""+l?l:c;else{switch(typeof l){case"function":case"symbol":break e;case"boolean":if("data-"!==(c=d.toLowerCase().slice(0,5))&&"aria-"!==c)break e}l=void 0===l?void 0:null}else l=void 0;i||Os(u,l,s,a)}}return 0<o.size&&!0!==n.suppressHydrationWarning&&function(e,t,n){t.forEach(function(t){n[Us(t)]="style"===t?Hs(e):e.getAttribute(t)})}(e,o,a),0===Object.keys(a).length?null:a}function Gs(e){return 9===e.nodeType?e:e.ownerDocument}function Xs(e){switch(e){case Nf:return Dv;case Pf:return Mv;default:return Iv}}function Zs(e,t){if(e===Iv)switch(t){case"svg":return Dv;case"math":return Mv;default:return Iv}return e===Dv&&"foreignObject"===t?Iv:e}function Js(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function eu(e){setTimeout(function(){throw e})}function tu(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function nu(e,t,n,r){!function(e,t,n,r){switch(zs(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,i=null,l=null,s=null,u=null,c=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&null!=d)switch(p){case"checked":case"value":break;case"defaultValue":s=d;default:r.hasOwnProperty(p)||js(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(null!=p||null!=d))switch(f){case"type":o=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":c=p;break;case"value":i=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&js(e,t,f,p,r,d)}}return t="checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value,r="checkbox"===r.type||"radio"===r.type?null!=r.checked:null!=r.value,t||!r||dv||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),dv=!0),!t||r||cv||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),cv=!0),void He(e,i,l,s,u,c,o,a);case"select":for(o in p=i=l=f=null,n)if(s=n[o],n.hasOwnProperty(o)&&null!=s)switch(o){case"value":break;case"multiple":p=s;default:r.hasOwnProperty(o)||js(e,t,o,null,r,s)}for(a in r)if(o=r[a],s=n[a],r.hasOwnProperty(a)&&(null!=o||null!=s))switch(a){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":i=o;default:o!==s&&js(e,t,a,o,r,s)}return r=l,t=i,n=p,void(null!=f?Ke(e,!!t,f,!1):!!n!=!!t&&(null!=r?Ke(e,!!t,r,!0):Ke(e,!!t,t?[]:"",!1)));case"textarea":for(l in p=f=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:js(e,t,l,null,r,a)}for(i in r)if(a=r[i],o=n[i],r.hasOwnProperty(i)&&(null!=a||null!=o))switch(i){case"value":f=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:a!==o&&js(e,t,i,a,r,o)}return void Ge(e,f,p);case"option":for(var h in n)f=n[h],n.hasOwnProperty(h)&&null!=f&&!r.hasOwnProperty(h)&&("selected"===h?e.selected=!1:js(e,t,h,null,r,f));for(s in r)f=r[s],p=n[s],!r.hasOwnProperty(s)||f===p||null==f&&null==p||("selected"===s?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:js(e,t,s,f,r,p));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m)&&js(e,t,m,null,r,f);for(u in r)if(f=r[u],p=n[u],r.hasOwnProperty(u)&&f!==p&&(null!=f||null!=p))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:js(e,t,u,f,r,p)}return;default:if(St(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&void 0!==f&&!r.hasOwnProperty(g)&&$s(e,t,g,void 0,r,f);for(c in r)f=r[c],p=n[c],!r.hasOwnProperty(c)||f===p||void 0===f&&void 0===p||$s(e,t,c,f,r,p);return}}for(var b in n)f=n[b],n.hasOwnProperty(b)&&null!=f&&!r.hasOwnProperty(b)&&js(e,t,b,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||null==f&&null==p||js(e,t,d,f,r,p)}(e,t,n,r),e[Od]=r}function ru(e){vt(e,"")}function au(e,t,n){e.nodeValue=n}function ou(e){return"head"===e}function iu(e,t){e.removeChild(t)}function lu(e,t){(9===e.nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).removeChild(t)}function su(e,t){var n=t,r=0,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if((n=o.data)===Ev){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(n&Pv&&Cu(i.documentElement),n&Nv&&Cu(i.body),n&Rv)for(Cu(n=i.head),i=n.firstChild;i;){var l=i.nextSibling,s=i.nodeName;i[jd]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=l}}if(0===a)return e.removeChild(o),void fc(t);a--}else n===Cv||n===_v||n===Tv?a++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);fc(t)}function uu(e){"function"==typeof(e=e.style).setProperty?e.setProperty("display","none","important"):e.display="none"}function cu(e){e.nodeValue=""}function du(e,t){t=null!=(t=t[Lv])&&t.hasOwnProperty("display")?t.display:null,e.style.display=null==t||"boolean"==typeof t?"":(""+t).trim()}function fu(e,t){e.nodeValue=t}function pu(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":pu(n),ce(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function hu(e){return e.data===Tv||e.data===_v&&e.ownerDocument.readyState===Av}function mu(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if((t=e.data)===Cv||t===Tv||t===_v||t===zv||t===Ov)break;if(t===Ev)return null}}return e}function gu(e){if(1===e.nodeType){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,a=0;a<r.length;a++){var o=r[a];n[Us(o.name)]="style"===o.name.toLowerCase()?Hs(e):o.value}return{type:t,props:n}}return 8===e.nodeType?{type:"Suspense",props:{}}:e.nodeValue}function bu(e,t,n){return null===n||!0!==n[xv]?(e.nodeValue===t?e=null:(t=Is(t),e=Is(e.nodeValue)===t?null:e.nodeValue),e):null}function yu(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Ev){if(0===t)return mu(e.nextSibling);t--}else n!==Cv&&n!==Tv&&n!==_v||t++}e=e.nextSibling}return null}function vu(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Cv||n===Tv||n===_v){if(0===t)return e;t--}else n===Ev&&t++}e=e.previousSibling}return null}function wu(e){fc(e)}function ku(e){fc(e)}function Su(e,t,n,r,a){switch(a&&bt(e,r.ancestorInfo),t=Gs(n),e){case"html":if(!(e=t.documentElement))throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(!(e=t.head))throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(!(e=t.body))throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function xu(e,t,n,r){if(!n[Ad]&&fe(n)){var a=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",a,a,a)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Fs(n,e,t),n[zd]=r,n[Od]=t}function Cu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ce(e)}function Eu(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}function _u(e,t,n){var r=dw;if(r&&"string"==typeof t&&t){var a=Fe(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),ew.has(a)||(ew.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(Fs(t=r.createElement("link"),"link",e),me(t),r.head.appendChild(t)))}}function Tu(e,t,n,r){var a=(a=ed.current)?Eu(a):null;if(!a)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(n=Nu(n.href),(r=(t=he(a).hoistableStyles).get(n))||(r={type:"style",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Nu(n.href);var o=he(a).hoistableStyles,i=o.get(e);if(!i&&(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:Qv,preload:null}},o.set(e,i),(o=a.querySelector(Ru(e)))&&!o._p&&(i.instance=o,i.state.loading=Yv|Zv),!Jv.has(e))){var l={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};Jv.set(e,l),o||function(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=Yv:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=Yv}),t.addEventListener("error",function(){return r.loading|=Gv}),Fs(t,"link",n),me(t),e.head.appendChild(t))}(a,e,l,i.state)}if(t&&null===r)throw n="\n\n - "+Pu(t)+"\n + "+Pu(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return i}if(t&&null!==r)throw n="\n\n - "+Pu(t)+"\n + "+Pu(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(n=Ou(n),(r=(t=he(a).hoistableScripts).get(n))||(r={type:"script",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Pu(e){var t=0,n="<link";return"string"==typeof e.rel?(t++,n+=' rel="'+e.rel+'"'):nd.call(e,"rel")&&(t++,n+=' rel="'+(null===e.rel?"null":"invalid type "+typeof e.rel)+'"'),"string"==typeof e.href?(t++,n+=' href="'+e.href+'"'):nd.call(e,"href")&&(t++,n+=' href="'+(null===e.href?"null":"invalid type "+typeof e.href)+'"'),"string"==typeof e.precedence?(t++,n+=' precedence="'+e.precedence+'"'):nd.call(e,"precedence")&&(t++,n+=" precedence={"+(null===e.precedence?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Nu(e){return'href="'+Fe(e)+'"'}function Ru(e){return'link[rel="stylesheet"]['+e+"]"}function zu(e){return _c({},e,{"data-precedence":e.precedence,precedence:null})}function Ou(e){return'[src="'+Fe(e)+'"]'}function Au(e){return"script[async]"+e}function Lu(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Fe(n.href)+'"]');if(r)return t.instance=r,me(r),r;var a=_c({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return me(r=(e.ownerDocument||e).createElement("style")),Fs(r,"style",a),Iu(r,n.precedence,e),t.instance=r;case"stylesheet":a=Nu(n.href);var o=e.querySelector(Ru(a));if(o)return t.state.loading|=Zv,t.instance=o,me(o),o;r=zu(n),(a=Jv.get(a))&&Du(r,a),me(o=(e.ownerDocument||e).createElement("link"));var i=o;return i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),Fs(o,"link",r),t.state.loading|=Zv,Iu(o,n.precedence,e),t.instance=o;case"script":return o=Ou(n.src),(a=e.querySelector(Au(o)))?(t.instance=a,me(a),a):(r=n,(a=Jv.get(o))&&Mu(r=_c({},n),a),me(a=(e=e.ownerDocument||e).createElement("script")),Fs(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else"stylesheet"===t.type&&(t.state.loading&Zv)===Qv&&(r=t.instance,t.state.loading|=Zv,Iu(r,n.precedence,e));return t.instance}function Iu(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,i=0;i<r.length;i++){var l=r[i];if(l.dataset.precedence===t)o=l;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Du(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Mu(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}function ju(e,t,n){if(null===fw){var r=new Map,a=fw=new Map;a.set(n,r)}else(r=(a=fw).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[jd]||o[zd]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&o.namespaceURI!==Nf){var i=o.getAttribute(t)||"";i=e+i;var l=r.get(i);l?l.push(o):r.set(i,[o])}}return r}function $u(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Fu(e){return"stylesheet"!==e.type||(e.state.loading&Xv)!==Qv}function Uu(){}function Hu(){if(this.count--,0===this.count)if(this.stylesheets)Wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}function Wu(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,mw=new Map,t.forEach(Bu,e),mw=null,Hu.call(e))}function Bu(e,t){if(!(t.state.loading&Zv)){var n=mw.get(e);if(n)var r=n.get(hw);else{n=new Map,mw.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var i=a[o];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(hw,r)}i=(a=t.instance).getAttribute("data-precedence"),(o=n.get(i)||r)===r&&n.set(hw,a),n.set(i,a),this.count++,r=Hu.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=Zv}}function Vu(e,t,n,r,a,o,i,l){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Bv,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=te(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=te(0),this.hiddenUpdates=te(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?"hydrateRoot()":"createRoot()"}function qu(e,t,n,r,a,o,i,l,s,u,c,d){return e=new Vu(e,t,n,i,l,s,u,d),t=dh,!0===o&&(t|=ph|hh),wd&&(t|=fh),o=p(3,null,null,t),e.current=o,o.stateNode=e,nr(t=tr()),e.pooledCache=t,nr(t),o.memoizedState={element:r,isDehydrated:n,cache:t},Sr(o),e}function Ku(e){return e?e=lh:lh}function Qu(e,t,n,r,a,o){if(bd&&"function"==typeof bd.onScheduleFiberRoot)try{bd.onScheduleFiberRoot(gd,r,n)}catch(e){vd||(vd=!0,console.error("React instrumentation encountered an error: %s",e))}null!==yd&&"function"==typeof yd.markRenderScheduled&&yd.markRenderScheduled(t),a=Ku(a),null===r.context?r.context=a:r.pendingContext=a,Zd&&null!==Xd&&!xw&&(xw=!0,console.error("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",x(Xd)||"Unknown")),(r=Cr(t)).payload={element:n},null!==(o=void 0===o?null:o)&&("function"!=typeof o&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",o),r.callback=o),null!==(n=Er(e,r,t))&&(kl(n,e,t),_r(n,e,t))}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}function Xu(e){if(13===e.tag){var t=fn(e,67108864);null!==t&&kl(t,e,67108864),Gu(e,67108864)}}function Zu(e,t,n,r){var a=qc.T;qc.T=null;var o=Kc.p;try{Kc.p=_d,ec(e,t,n,r)}finally{Kc.p=o,qc.T=a}}function Ju(e,t,n,r){var a=qc.T;qc.T=null;var o=Kc.p;try{Kc.p=Td,ec(e,t,n,r)}finally{Kc.p=o,qc.T=a}}function ec(e,t,n,r){if(Ew){var a=tc(r);if(null===a)_s(e,t,r,_w,n),ac(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Pw=oc(Pw,e,t,n,r,a),!0;case"dragenter":return Nw=oc(Nw,e,t,n,r,a),!0;case"mouseover":return Rw=oc(Rw,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return zw.set(o,oc(zw.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Ow.set(o,oc(Ow.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(ac(e,r),4&t&&-1<Lw.indexOf(e)){for(;null!==a;){var o=fe(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var i=Y(o.pendingLanes);if(0!==i){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-kd(i);l.entanglements[1]|=s,i&=~s}ss(o),(Bb&(Ib|Db))===Lb&&(ky=ld()+Sy,us(0))}}break;case 13:null!==(l=fn(o,2))&&kl(l,o,2),_l(),Gu(o,2)}if(null===(o=tc(r))&&_s(e,t,r,_w,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else _s(e,t,r,null,n)}}function tc(e){return nc(e=Tt(e))}function nc(e){if(_w=null,null!==(e=de(e))){var t=m(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=g(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _w=e,null}function rc(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return _d;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Td;case"message":switch(sd()){case ud:return _d;case cd:return Td;case dd:case fd:return Pd;case pd:return Nd;default:return Pd}default:return Pd}}function ac(e,t){switch(e){case"focusin":case"focusout":Pw=null;break;case"dragenter":case"dragleave":Nw=null;break;case"mouseover":case"mouseout":Rw=null;break;case"pointerover":case"pointerout":zw.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ow.delete(t.pointerId)}}function oc(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&null!==(t=fe(t))&&Xu(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function ic(e){var t=de(e.target);if(null!==t){var n=m(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=g(n)))return e.blockedOn=t,void function(e,t){var n=Kc.p;try{return Kc.p=e,t()}finally{Kc.p=n}}(e.priority,function(){if(13===n.tag){var e=vl(n);e=oe(e);var t=fn(n,e);null!==t&&kl(t,n,e),Gu(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function lc(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=tc(e.nativeEvent);if(null!==n)return null!==(t=fe(n))&&Xu(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n),a=r;null!==Wf&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Wf=a,n.target.dispatchEvent(r),null===Wf&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Wf=null,t.shift()}return!0}function sc(e,t,n){lc(e)&&n.delete(t)}function uc(){Tw=!1,null!==Pw&&lc(Pw)&&(Pw=null),null!==Nw&&lc(Nw)&&(Nw=null),null!==Rw&&lc(Rw)&&(Rw=null),zw.forEach(sc),Ow.forEach(sc)}function cc(e,t){e.blockedOn===t&&(e.blockedOn=null,Tw||(Tw=!0,xc.unstable_scheduleCallback(xc.unstable_NormalPriority,uc)))}function dc(e){Iw!==e&&(Iw=e,xc.unstable_scheduleCallback(xc.unstable_NormalPriority,function(){Iw===e&&(Iw=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!=typeof r){if(null===nc(r||n))continue;break}var o=fe(n);null!==o&&(e.splice(t,3),t-=3,n={pending:!0,data:a,method:n.method,action:r},Object.freeze(n),Ya(o,n,r,a))}}))}function fc(e){function t(t){return cc(t,e)}null!==Pw&&cc(Pw,e),null!==Nw&&cc(Nw,e),null!==Rw&&cc(Rw,e),zw.forEach(t),Ow.forEach(t);for(var n=0;n<Aw.length;n++){var r=Aw[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Aw.length&&null===(n=Aw[0]).blockedOn;)ic(n),null===n.blockedOn&&Aw.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],i=a[Od]||null;if("function"==typeof o)i||dc(n);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(a=o,i=o[Od]||null)l=i.formAction;else if(null!==nc(a))continue}else l=i.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),dc(n)}}}function pc(e){this._internalRoot=e}function hc(e){this._internalRoot=e}function mc(e){e[Ad]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("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."))}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var gc,bc,yc,vc,wc,kc,Sc,xc=k(),Cc=c(),Ec=N(),_c=Object.assign,Tc=Symbol.for("react.element"),Pc=Symbol.for("react.transitional.element"),Nc=Symbol.for("react.portal"),Rc=Symbol.for("react.fragment"),zc=Symbol.for("react.strict_mode"),Oc=Symbol.for("react.profiler"),Ac=Symbol.for("react.provider"),Lc=Symbol.for("react.consumer"),Ic=Symbol.for("react.context"),Dc=Symbol.for("react.forward_ref"),Mc=Symbol.for("react.suspense"),jc=Symbol.for("react.suspense_list"),$c=Symbol.for("react.memo"),Fc=Symbol.for("react.lazy"),Uc=Symbol.for("react.activity"),Hc=Symbol.for("react.memo_cache_sentinel"),Wc=Symbol.iterator,Bc=Symbol.for("react.client.reference"),Vc=Array.isArray,qc=Cc.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kc=Ec.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qc=Object.freeze({pending:!1,data:null,method:null,action:null}),Yc=[],Gc=[],Xc=-1,Zc=C(null),Jc=C(null),ed=C(null),td=C(null),nd=Object.prototype.hasOwnProperty,rd=xc.unstable_scheduleCallback,ad=xc.unstable_cancelCallback,od=xc.unstable_shouldYield,id=xc.unstable_requestPaint,ld=xc.unstable_now,sd=xc.unstable_getCurrentPriorityLevel,ud=xc.unstable_ImmediatePriority,cd=xc.unstable_UserBlockingPriority,dd=xc.unstable_NormalPriority,fd=xc.unstable_LowPriority,pd=xc.unstable_IdlePriority,hd=xc.log,md=xc.unstable_setDisableYieldValue,gd=null,bd=null,yd=null,vd=!1,wd="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__,kd=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Sd(e)/xd|0)|0},Sd=Math.log,xd=Math.LN2,Cd=256,Ed=4194304,_d=2,Td=8,Pd=32,Nd=268435456,Rd=Math.random().toString(36).slice(2),zd="__reactFiber$"+Rd,Od="__reactProps$"+Rd,Ad="__reactContainer$"+Rd,Ld="__reactEvents$"+Rd,Id="__reactListeners$"+Rd,Dd="__reactHandles$"+Rd,Md="__reactResources$"+Rd,jd="__reactMarker$"+Rd,$d=new Set,Fd={},Ud={},Hd={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Wd=RegExp("^[: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][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Bd={},Vd={},qd=0;Ce.__reactDisabledLog=!0;var Kd,Qd,Yd=!1,Gd=new("function"==typeof WeakMap?WeakMap:Map),Xd=null,Zd=!1,Jd=/[\n"\\]/g,ef=!1,tf=!1,nf=!1,rf=!1,af=!1,of=!1,lf=["value","defaultValue"],sf=!1,uf=/["'&<>\n\t]|^\s|\s$/,cf="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),df="applet caption html table td th marquee object template foreignObject desc title".split(" "),ff=df.concat(["button"]),pf="dd dt li option optgroup p rp rt".split(" "),hf={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},mf={},gf={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},bf=/([A-Z])/g,yf=/^ms-/,vf=/^(?:webkit|moz|o)[A-Z]/,wf=/^-ms-/,kf=/-(.)/g,Sf=/;\s*$/,xf={},Cf={},Ef=!1,_f=!1,Tf=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Pf="http://www.w3.org/1998/Math/MathML",Nf="http://www.w3.org/2000/svg",Rf=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zf={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Of={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Af={},Lf=RegExp("^(aria)-[: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),If=RegExp("^(aria)[A-Z][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Df=!1,Mf={},jf=/^on./,$f=/^on[^A-Z]/,Ff=RegExp("^(aria)-[: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Uf=RegExp("^(aria)[A-Z][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Hf=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Wf=null,Bf=null,Vf=null,qf=!1,Kf=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Qf=!1;if(Kf)try{var Yf={};Object.defineProperty(Yf,"passive",{get:function(){Qf=!0}}),window.addEventListener("test",Yf,Yf),window.removeEventListener("test",Yf,Yf)}catch(e){Qf=!1}var Gf,Xf,Zf,Jf=null,ep=null,tp=null,np={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rp=It(np),ap=_c({},np,{view:0,detail:0}),op=It(ap),ip=_c({},ap,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mt,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zf&&(Zf&&"mousemove"===e.type?(Gf=e.screenX-Zf.screenX,Xf=e.screenY-Zf.screenY):Xf=Gf=0,Zf=e),Gf)},movementY:function(e){return"movementY"in e?e.movementY:Xf}}),lp=It(ip),sp=It(_c({},ip,{dataTransfer:0})),up=It(_c({},ap,{relatedTarget:0})),cp=It(_c({},np,{animationName:0,elapsedTime:0,pseudoElement:0})),dp=It(_c({},np,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),fp=It(_c({},np,{data:0})),pp=fp,hp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},bp=It(_c({},ap,{key:function(e){if(e.key){var t=hp[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ot(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mt,charCode:function(e){return"keypress"===e.type?Ot(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ot(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yp=It(_c({},ip,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vp=It(_c({},ap,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mt})),wp=It(_c({},np,{propertyName:0,elapsedTime:0,pseudoElement:0})),kp=It(_c({},ip,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Sp=It(_c({},np,{newState:0,oldState:0})),xp=[9,13,27,32],Cp=229,Ep=Kf&&"CompositionEvent"in window,_p=null;Kf&&"documentMode"in document&&(_p=document.documentMode);var Tp=Kf&&"TextEvent"in window&&!_p,Pp=Kf&&(!Ep||_p&&8<_p&&11>=_p),Np=32,Rp=String.fromCharCode(Np),zp=!1,Op=!1,Ap={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Lp=null,Ip=null,Dp=!1;Kf&&(Dp=function(e){if(!Kf)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}("input")&&(!document.documentMode||9<document.documentMode));var Mp="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},jp=Kf&&"documentMode"in document&&11>=document.documentMode,$p=null,Fp=null,Up=null,Hp=!1,Wp={animationend:an("Animation","AnimationEnd"),animationiteration:an("Animation","AnimationIteration"),animationstart:an("Animation","AnimationStart"),transitionrun:an("Transition","TransitionRun"),transitionstart:an("Transition","TransitionStart"),transitioncancel:an("Transition","TransitionCancel"),transitionend:an("Transition","TransitionEnd")},Bp={},Vp={};Kf&&(Vp=document.createElement("div").style,"AnimationEvent"in window||(delete Wp.animationend.animation,delete Wp.animationiteration.animation,delete Wp.animationstart.animation),"TransitionEvent"in window||delete Wp.transitionend.transition);var qp=on("animationend"),Kp=on("animationiteration"),Qp=on("animationstart"),Yp=on("transitionrun"),Gp=on("transitionstart"),Xp=on("transitioncancel"),Zp=on("transitionend"),Jp=new Map,eh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");eh.push("scrollEnd");var th=new WeakMap,nh=1,rh=2,ah=[],oh=0,ih=0,lh={};Object.freeze(lh);var sh=null,uh=null,ch=0,dh=1,fh=2,ph=8,hh=16,mh=64,gh=!1;try{Object.preventExtensions({})}catch(e){gh=!0}var bh=[],yh=0,vh=null,wh=0,kh=[],Sh=0,xh=null,Ch=1,Eh="",_h=null,Th=null,Ph=!1,Nh=!1,Rh=null,zh=null,Oh=!1,Ah=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Lh=0;if("object"==typeof performance&&"function"==typeof performance.now)var Ih=performance,Dh=function(){return Ih.now()};else{var Mh=Date;Dh=function(){return Mh.now()}}var jh=C(null),$h=C(null),Fh={},Uh=null,Hh=null,Wh=!1,Bh="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Vh=xc.unstable_scheduleCallback,qh=xc.unstable_NormalPriority,Kh={$$typeof:Ic,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Qh=xc.unstable_now,Yh=-0,Gh=-0,Xh=-1.1,Zh=-0,Jh=!1,em=!1,tm=null,nm=0,rm=0,am=null,om=qc.S;qc.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===tm){var n=tm=[];nm=0,rm=bs(),am={status:"pending",value:void 0,then:function(e){n.push(e)}}}nm++,t.then(pr,pr)}(0,t),null!==om&&om(e,t)};var im=C(null),lm={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},sm=[],um=[],cm=[],dm=[],fm=[],pm=[],hm=new Set;lm.recordUnsafeLifecycleWarnings=function(e,t){hm.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&sm.push(e),e.mode&ph&&"function"==typeof t.UNSAFE_componentWillMount&&um.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&cm.push(e),e.mode&ph&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&dm.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&fm.push(e),e.mode&ph&&"function"==typeof t.UNSAFE_componentWillUpdate&&pm.push(e))},lm.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<sm.length&&(sm.forEach(function(t){e.add(x(t)||"Component"),hm.add(t.type)}),sm=[]);var t=new Set;0<um.length&&(um.forEach(function(e){t.add(x(e)||"Component"),hm.add(e.type)}),um=[]);var n=new Set;0<cm.length&&(cm.forEach(function(e){n.add(x(e)||"Component"),hm.add(e.type)}),cm=[]);var r=new Set;0<dm.length&&(dm.forEach(function(e){r.add(x(e)||"Component"),hm.add(e.type)}),dm=[]);var a=new Set;0<fm.length&&(fm.forEach(function(e){a.add(x(e)||"Component"),hm.add(e.type)}),fm=[]);var o=new Set;if(0<pm.length&&(pm.forEach(function(e){o.add(x(e)||"Component"),hm.add(e.type)}),pm=[]),0<t.size){var i=f(t);console.error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",i)}0<r.size&&(i=f(r),console.error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* 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://react.dev/link/derived-state\n\nPlease update the following components: %s",i)),0<o.size&&(i=f(o),console.error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",i)),0<e.size&&(i=f(e),console.warn("componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* 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.\n\nPlease update the following components: %s",i)),0<n.size&&(i=f(n),console.warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* 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://react.dev/link/derived-state\n* 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.\n\nPlease update the following components: %s",i)),0<a.size&&(i=f(a),console.warn("componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* 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.\n\nPlease update the following components: %s",i))};var mm=new Map,gm=new Set;lm.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;null!==r;)r.mode&ph&&(n=r),r=r.return;null===n?console.error("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."):!gm.has(e.type)&&(r=mm.get(n),null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],mm.set(n,r)),r.push(e))},lm.flushLegacyContextWarning=function(){mm.forEach(function(e){if(0!==e.length){var t=e[0],n=new Set;e.forEach(function(e){n.add(x(e)||"Component"),gm.add(e.type)});var r=f(n);Ae(t,function(){console.error("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context",r)})}})},lm.discardPendingWarnings=function(){sm=[],um=[],cm=[],dm=[],fm=[],pm=[],mm=new Map};var bm,ym=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),vm=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),wm=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),km={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Sm=null,xm=!1,Cm=0,Em=1,_m=2,Tm=4,Pm=8,Nm=0,Rm=1,zm=2,Om=3,Am=!1,Lm=!1,Im=null,Dm=!1,Mm=C(null),jm=C(0),$m=new Set,Fm=new Set,Um=new Set,Hm=new Set,Wm=0,Bm=null,Vm=null,qm=null,Km=!1,Qm=!1,Ym=!1,Gm=0,Xm=0,Zm=null,Jm=0,eg=25,tg=null,ng=null,rg=-1,ag=!1,og={readContext:Zn,use:Zr,useCallback:Fr,useContext:Fr,useEffect:Fr,useImperativeHandle:Fr,useLayoutEffect:Fr,useInsertionEffect:Fr,useMemo:Fr,useReducer:Fr,useRef:Fr,useState:Fr,useDebugValue:Fr,useDeferredValue:Fr,useTransition:Fr,useSyncExternalStore:Fr,useId:Fr,useHostTransitionStatus:Fr,useFormState:Fr,useActionState:Fr,useOptimistic:Fr,useMemoCache:Fr,useCacheRefresh:Fr},ig=null,lg=null,sg=null,ug=null,cg=null,dg=null,fg=null;ig={readContext:function(e){return Zn(e)},use:Zr,useCallback:function(e,t){return tg="useCallback",Dr(),jr(t),$a(e,t)},useContext:function(e){return tg="useContext",Dr(),Zn(e)},useEffect:function(e,t){return tg="useEffect",Dr(),jr(t),La(e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",Dr(),jr(n),Ma(e,t,n)},useInsertionEffect:function(e,t){tg="useInsertionEffect",Dr(),jr(t),Oa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",Dr(),jr(t),Ia(e,t)},useMemo:function(e,t){tg="useMemo",Dr(),jr(t);var n=qc.H;qc.H=cg;try{return Ua(e,t)}finally{qc.H=n}},useReducer:function(e,t,n){tg="useReducer",Dr();var r=qc.H;qc.H=cg;try{return ta(e,t,n)}finally{qc.H=r}},useRef:function(e){return tg="useRef",Dr(),za(e)},useState:function(e){tg="useState",Dr();var t=qc.H;qc.H=cg;try{return pa(e)}finally{qc.H=t}},useDebugValue:function(){tg="useDebugValue",Dr()},useDeferredValue:function(e,t){return tg="useDeferredValue",Dr(),Wa(e,t)},useTransition:function(){return tg="useTransition",Dr(),Za()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",Dr(),oa(e,t,n)},useId:function(){return tg="useId",Dr(),no()},useFormState:function(e,t){return tg="useFormState",Dr(),$r(),Ea(e,t)},useActionState:function(e,t){return tg="useActionState",Dr(),Ea(e,t)},useOptimistic:function(e){return tg="useOptimistic",Dr(),ha(e)},useHostTransitionStatus:to,useMemoCache:Jr,useCacheRefresh:function(){return tg="useCacheRefresh",Dr(),ro()}},lg={readContext:function(e){return Zn(e)},use:Zr,useCallback:function(e,t){return tg="useCallback",Mr(),$a(e,t)},useContext:function(e){return tg="useContext",Mr(),Zn(e)},useEffect:function(e,t){return tg="useEffect",Mr(),La(e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",Mr(),Ma(e,t,n)},useInsertionEffect:function(e,t){tg="useInsertionEffect",Mr(),Oa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",Mr(),Ia(e,t)},useMemo:function(e,t){tg="useMemo",Mr();var n=qc.H;qc.H=cg;try{return Ua(e,t)}finally{qc.H=n}},useReducer:function(e,t,n){tg="useReducer",Mr();var r=qc.H;qc.H=cg;try{return ta(e,t,n)}finally{qc.H=r}},useRef:function(e){return tg="useRef",Mr(),za(e)},useState:function(e){tg="useState",Mr();var t=qc.H;qc.H=cg;try{return pa(e)}finally{qc.H=t}},useDebugValue:function(){tg="useDebugValue",Mr()},useDeferredValue:function(e,t){return tg="useDeferredValue",Mr(),Wa(e,t)},useTransition:function(){return tg="useTransition",Mr(),Za()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",Mr(),oa(e,t,n)},useId:function(){return tg="useId",Mr(),no()},useActionState:function(e,t){return tg="useActionState",Mr(),Ea(e,t)},useFormState:function(e,t){return tg="useFormState",Mr(),$r(),Ea(e,t)},useOptimistic:function(e){return tg="useOptimistic",Mr(),ha(e)},useHostTransitionStatus:to,useMemoCache:Jr,useCacheRefresh:function(){return tg="useCacheRefresh",Mr(),ro()}},sg={readContext:function(e){return Zn(e)},use:Zr,useCallback:function(e,t){return tg="useCallback",Mr(),Fa(e,t)},useContext:function(e){return tg="useContext",Mr(),Zn(e)},useEffect:function(e,t){tg="useEffect",Mr(),Aa(2048,Pm,e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",Mr(),ja(e,t,n)},useInsertionEffect:function(e,t){return tg="useInsertionEffect",Mr(),Aa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",Mr(),Aa(4,Tm,e,t)},useMemo:function(e,t){tg="useMemo",Mr();var n=qc.H;qc.H=dg;try{return Ha(e,t)}finally{qc.H=n}},useReducer:function(e,t,n){tg="useReducer",Mr();var r=qc.H;qc.H=dg;try{return na(e)}finally{qc.H=r}},useRef:function(){return tg="useRef",Mr(),Gr().memoizedState},useState:function(){tg="useState",Mr();var e=qc.H;qc.H=dg;try{return na(ea)}finally{qc.H=e}},useDebugValue:function(){tg="useDebugValue",Mr()},useDeferredValue:function(e,t){return tg="useDeferredValue",Mr(),Ba(e,t)},useTransition:function(){return tg="useTransition",Mr(),Ja()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",Mr(),ia(e,t,n)},useId:function(){return tg="useId",Mr(),Gr().memoizedState},useFormState:function(e){return tg="useFormState",Mr(),$r(),_a(e)},useActionState:function(e){return tg="useActionState",Mr(),_a(e)},useOptimistic:function(e,t){return tg="useOptimistic",Mr(),ma(e,t)},useHostTransitionStatus:to,useMemoCache:Jr,useCacheRefresh:function(){return tg="useCacheRefresh",Mr(),Gr().memoizedState}},ug={readContext:function(e){return Zn(e)},use:Zr,useCallback:function(e,t){return tg="useCallback",Mr(),Fa(e,t)},useContext:function(e){return tg="useContext",Mr(),Zn(e)},useEffect:function(e,t){tg="useEffect",Mr(),Aa(2048,Pm,e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",Mr(),ja(e,t,n)},useInsertionEffect:function(e,t){return tg="useInsertionEffect",Mr(),Aa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",Mr(),Aa(4,Tm,e,t)},useMemo:function(e,t){tg="useMemo",Mr();var n=qc.H;qc.H=fg;try{return Ha(e,t)}finally{qc.H=n}},useReducer:function(e,t,n){tg="useReducer",Mr();var r=qc.H;qc.H=fg;try{return aa(e)}finally{qc.H=r}},useRef:function(){return tg="useRef",Mr(),Gr().memoizedState},useState:function(){tg="useState",Mr();var e=qc.H;qc.H=fg;try{return aa(ea)}finally{qc.H=e}},useDebugValue:function(){tg="useDebugValue",Mr()},useDeferredValue:function(e,t){return tg="useDeferredValue",Mr(),Va(e,t)},useTransition:function(){return tg="useTransition",Mr(),eo()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",Mr(),ia(e,t,n)},useId:function(){return tg="useId",Mr(),Gr().memoizedState},useFormState:function(e){return tg="useFormState",Mr(),$r(),Na(e)},useActionState:function(e){return tg="useActionState",Mr(),Na(e)},useOptimistic:function(e,t){return tg="useOptimistic",Mr(),ba(e,t)},useHostTransitionStatus:to,useMemoCache:Jr,useCacheRefresh:function(){return tg="useCacheRefresh",Mr(),Gr().memoizedState}},cg={readContext:function(e){return u(),Zn(e)},use:function(e){return s(),Zr(e)},useCallback:function(e,t){return tg="useCallback",s(),Dr(),$a(e,t)},useContext:function(e){return tg="useContext",s(),Dr(),Zn(e)},useEffect:function(e,t){return tg="useEffect",s(),Dr(),La(e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",s(),Dr(),Ma(e,t,n)},useInsertionEffect:function(e,t){tg="useInsertionEffect",s(),Dr(),Oa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",s(),Dr(),Ia(e,t)},useMemo:function(e,t){tg="useMemo",s(),Dr();var n=qc.H;qc.H=cg;try{return Ua(e,t)}finally{qc.H=n}},useReducer:function(e,t,n){tg="useReducer",s(),Dr();var r=qc.H;qc.H=cg;try{return ta(e,t,n)}finally{qc.H=r}},useRef:function(e){return tg="useRef",s(),Dr(),za(e)},useState:function(e){tg="useState",s(),Dr();var t=qc.H;qc.H=cg;try{return pa(e)}finally{qc.H=t}},useDebugValue:function(){tg="useDebugValue",s(),Dr()},useDeferredValue:function(e,t){return tg="useDeferredValue",s(),Dr(),Wa(e,t)},useTransition:function(){return tg="useTransition",s(),Dr(),Za()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",s(),Dr(),oa(e,t,n)},useId:function(){return tg="useId",s(),Dr(),no()},useFormState:function(e,t){return tg="useFormState",s(),Dr(),Ea(e,t)},useActionState:function(e,t){return tg="useActionState",s(),Dr(),Ea(e,t)},useOptimistic:function(e){return tg="useOptimistic",s(),Dr(),ha(e)},useMemoCache:function(e){return s(),Jr(e)},useHostTransitionStatus:to,useCacheRefresh:function(){return tg="useCacheRefresh",Dr(),ro()}},dg={readContext:function(e){return u(),Zn(e)},use:function(e){return s(),Zr(e)},useCallback:function(e,t){return tg="useCallback",s(),Mr(),Fa(e,t)},useContext:function(e){return tg="useContext",s(),Mr(),Zn(e)},useEffect:function(e,t){tg="useEffect",s(),Mr(),Aa(2048,Pm,e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",s(),Mr(),ja(e,t,n)},useInsertionEffect:function(e,t){return tg="useInsertionEffect",s(),Mr(),Aa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",s(),Mr(),Aa(4,Tm,e,t)},useMemo:function(e,t){tg="useMemo",s(),Mr();var n=qc.H;qc.H=dg;try{return Ha(e,t)}finally{qc.H=n}},useReducer:function(e,t,n){tg="useReducer",s(),Mr();var r=qc.H;qc.H=dg;try{return na(e)}finally{qc.H=r}},useRef:function(){return tg="useRef",s(),Mr(),Gr().memoizedState},useState:function(){tg="useState",s(),Mr();var e=qc.H;qc.H=dg;try{return na(ea)}finally{qc.H=e}},useDebugValue:function(){tg="useDebugValue",s(),Mr()},useDeferredValue:function(e,t){return tg="useDeferredValue",s(),Mr(),Ba(e,t)},useTransition:function(){return tg="useTransition",s(),Mr(),Ja()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",s(),Mr(),ia(e,t,n)},useId:function(){return tg="useId",s(),Mr(),Gr().memoizedState},useFormState:function(e){return tg="useFormState",s(),Mr(),_a(e)},useActionState:function(e){return tg="useActionState",s(),Mr(),_a(e)},useOptimistic:function(e,t){return tg="useOptimistic",s(),Mr(),ma(e,t)},useMemoCache:function(e){return s(),Jr(e)},useHostTransitionStatus:to,useCacheRefresh:function(){return tg="useCacheRefresh",Mr(),Gr().memoizedState}},fg={readContext:function(e){return u(),Zn(e)},use:function(e){return s(),Zr(e)},useCallback:function(e,t){return tg="useCallback",s(),Mr(),Fa(e,t)},useContext:function(e){return tg="useContext",s(),Mr(),Zn(e)},useEffect:function(e,t){tg="useEffect",s(),Mr(),Aa(2048,Pm,e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",s(),Mr(),ja(e,t,n)},useInsertionEffect:function(e,t){return tg="useInsertionEffect",s(),Mr(),Aa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",s(),Mr(),Aa(4,Tm,e,t)},useMemo:function(e,t){tg="useMemo",s(),Mr();var n=qc.H;qc.H=dg;try{return Ha(e,t)}finally{qc.H=n}},useReducer:function(e,t,n){tg="useReducer",s(),Mr();var r=qc.H;qc.H=dg;try{return aa(e)}finally{qc.H=r}},useRef:function(){return tg="useRef",s(),Mr(),Gr().memoizedState},useState:function(){tg="useState",s(),Mr();var e=qc.H;qc.H=dg;try{return aa(ea)}finally{qc.H=e}},useDebugValue:function(){tg="useDebugValue",s(),Mr()},useDeferredValue:function(e,t){return tg="useDeferredValue",s(),Mr(),Va(e,t)},useTransition:function(){return tg="useTransition",s(),Mr(),eo()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",s(),Mr(),ia(e,t,n)},useId:function(){return tg="useId",s(),Mr(),Gr().memoizedState},useFormState:function(e){return tg="useFormState",s(),Mr(),Na(e)},useActionState:function(e){return tg="useActionState",s(),Mr(),Na(e)},useOptimistic:function(e,t){return tg="useOptimistic",s(),Mr(),ba(e,t)},useMemoCache:function(e){return s(),Jr(e)},useHostTransitionStatus:to,useCacheRefresh:function(){return tg="useCacheRefresh",Mr(),Gr().memoizedState}};var pg,hg={react_stack_bottom_frame:function(e,t,n){var r=Zd;Zd=!0;try{return e(t,n)}finally{Zd=r}}},mg=hg.react_stack_bottom_frame.bind(hg),gg={react_stack_bottom_frame:function(e){var t=Zd;Zd=!0;try{return e.render()}finally{Zd=t}}},bg=gg.react_stack_bottom_frame.bind(gg),yg={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){Xl(e,e.return,t)}}},vg=yg.react_stack_bottom_frame.bind(yg),wg={react_stack_bottom_frame:function(e,t,n,r,a){try{t.componentDidUpdate(n,r,a)}catch(t){Xl(e,e.return,t)}}},kg=wg.react_stack_bottom_frame.bind(wg),Sg={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:null!==n?n:""})}},xg=Sg.react_stack_bottom_frame.bind(Sg),Cg={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){Xl(e,t,n)}}},Eg=Cg.react_stack_bottom_frame.bind(Cg),_g={react_stack_bottom_frame:function(e){null!=e.resourceKind&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Tg=_g.react_stack_bottom_frame.bind(_g),Pg={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){Xl(e,t,n)}}},Ng=Pg.react_stack_bottom_frame.bind(Pg),Rg={react_stack_bottom_frame:function(e){return(0,e._init)(e._payload)}},zg=Rg.react_stack_bottom_frame.bind(Rg),Og=null,Ag=0,Lg=null,Ig=pg=!1,Dg={},Mg={},jg={};l=function(e,t,n){if(null!==n&&"object"==typeof n&&n._store&&(!n._store.validated&&null==n.key||2===n._store.validated)){if("object"!=typeof n._store)throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=1;var r=x(e),a=r||"null";if(!Dg[a]){Dg[a]=!0,n=n._owner,e=e._debugOwner;var o="";e&&"number"==typeof e.tag&&(a=x(e))&&(o="\n\nCheck the render method of `"+a+"`."),o||r&&(o="\n\nCheck the top-level render call using <"+r+">.");var i="";null!=n&&e!==n&&(r=null,"number"==typeof n.tag?r=x(n):"string"==typeof n.name&&(r=n.name),r&&(i=" It was passed a child from "+r+".")),Ae(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',o,i)})}}};var $g=wo(!0),Fg=wo(!1),Ug=C(null),Hg=null,Wg=1,Bg=2,Vg=C(0),qg={},Kg=new Set,Qg=new Set,Yg=new Set,Gg=new Set,Xg=new Set,Zg=new Set,Jg=new Set,eb=new Set,tb=new Set,nb=new Set;Object.freeze(qg);var rb={enqueueSetState:function(e,t,n){var r=vl(e=e._reactInternals),a=Cr(r);a.payload=t,null!=n&&(_o(n),a.callback=n),null!==(t=Er(e,a,r))&&(kl(t,e,r),_r(t,e,r)),K(e,r)},enqueueReplaceState:function(e,t,n){var r=vl(e=e._reactInternals),a=Cr(r);a.tag=Rm,a.payload=t,null!=n&&(_o(n),a.callback=n),null!==(t=Er(e,a,r))&&(kl(t,e,r),_r(t,e,r)),K(e,r)},enqueueForceUpdate:function(e,t){var n=vl(e=e._reactInternals),r=Cr(n);r.tag=zm,null!=t&&(_o(t),r.callback=t),null!==(t=Er(e,r,n))&&(kl(t,e,n),_r(t,e,n)),null!==yd&&"function"==typeof yd.markForceUpdateScheduled&&yd.markForceUpdateScheduled(e,n)}},ab="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},ob=null,ib=null,lb=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),sb=!1,ub={},cb={},db={},fb={},pb=!1,hb={},mb={},gb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},bb=!1,yb=null;yb=new Set;var vb=!1,wb=!1,kb=!1,Sb="function"==typeof WeakSet?WeakSet:Set,xb=null,Cb=null,Eb=null,_b=null,Tb=!1,Pb=null,Nb=8192,Rb={getCacheForType:function(e){var t=Zn(Kh),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},getOwner:function(){return Xd}};if("function"==typeof Symbol&&Symbol.for){var zb=Symbol.for;zb("selector.component"),zb("selector.has_pseudo_class"),zb("selector.role"),zb("selector.test_id"),zb("selector.text")}var Ob=[],Ab="function"==typeof WeakMap?WeakMap:Map,Lb=0,Ib=2,Db=4,Mb=0,jb=1,$b=2,Fb=3,Ub=4,Hb=6,Wb=5,Bb=Lb,Vb=null,qb=null,Kb=0,Qb=0,Yb=1,Gb=2,Xb=3,Zb=4,Jb=5,ey=6,ty=7,ny=8,ry=9,ay=Qb,oy=null,iy=!1,ly=!1,sy=!1,uy=0,cy=Mb,dy=0,fy=0,py=0,hy=0,my=0,gy=null,by=null,yy=!1,vy=0,wy=300,ky=1/0,Sy=500,xy=null,Cy=null,Ey=0,_y=1,Ty=2,Py=0,Ny=1,Ry=2,zy=3,Oy=4,Ay=5,Ly=0,Iy=null,Dy=null,My=0,jy=0,$y=null,Fy=null,Uy=50,Hy=0,Wy=null,By=!1,Vy=!1,qy=50,Ky=0,Qy=null,Yy=!1,Gy=null,Xy=!1,Zy=new Set,Jy=null,ev=null,tv=!1,nv=!1,rv=!1,av=!1,ov=0,iv={};!function(){for(var e=0;e<eh.length;e++){var t=eh[e];ln(t.toLowerCase(),"on"+(t=t[0].toUpperCase()+t.slice(1)))}ln(qp,"onAnimationEnd"),ln(Kp,"onAnimationIteration"),ln(Qp,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(Yp,"onTransitionRun"),ln(Gp,"onTransitionStart"),ln(Xp,"onTransitionCancel"),ln(Zp,"onTransitionEnd")}(),be("onMouseEnter",["mouseout","mouseover"]),be("onMouseLeave",["mouseout","mouseover"]),be("onPointerEnter",["pointerout","pointerover"]),be("onPointerLeave",["pointerout","pointerover"]),ge("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ge("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ge("onBeforeInput",["compositionend","keypress","textInput","paste"]),ge("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ge("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ge("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lv="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lv)),uv="_reactListening"+Math.random().toString(36).slice(2),cv=!1,dv=!1,fv=!1,pv=!1,hv=!1,mv=!1,gv=!1,bv={},yv=/\r\n?/g,vv=/\u0000|\uFFFD/g,wv="http://www.w3.org/1999/xlink",kv="http://www.w3.org/XML/1998/namespace",Sv="javascript:throw new Error('React form unexpectedly submitted.')",xv="suppressHydrationWarning",Cv="$",Ev="/$",_v="$?",Tv="$!",Pv=1,Nv=2,Rv=4,zv="F!",Ov="F",Av="complete",Lv="style",Iv=0,Dv=1,Mv=2,jv=null,$v=null,Fv={dialog:!0,webview:!0},Uv=null,Hv="function"==typeof setTimeout?setTimeout:void 0,Wv="function"==typeof clearTimeout?clearTimeout:void 0,Bv=-1,Vv="function"==typeof Promise?Promise:void 0,qv="function"==typeof queueMicrotask?queueMicrotask:void 0!==Vv?function(e){return Vv.resolve(null).then(e).catch(eu)}:Hv,Kv=null,Qv=0,Yv=1,Gv=2,Xv=3,Zv=4,Jv=new Map,ew=new Set,tw=Kc.d;Kc.d={f:function(){var e=tw.f(),t=_l();return e||t},r:function(e){var t=fe(e);null!==t&&5===t.tag&&"form"===t.type?Xa(t):tw.r(e)},D:function(e){tw.D(e),_u("dns-prefetch",e,null)},C:function(e,t){tw.C(e,t),_u("preconnect",e,t)},L:function(e,t,n){tw.L(e,t,n);var r=dw;if(r&&e&&t){var a='link[rel="preload"][as="'+Fe(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Fe(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+Fe(n.imageSizes)+'"]')):a+='[href="'+Fe(e)+'"]';var o=a;switch(t){case"style":o=Nu(e);break;case"script":o=Ou(e)}Jv.has(o)||(e=_c({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Jv.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(Ru(o))||"script"===t&&r.querySelector(Au(o))||(Fs(t=r.createElement("link"),"link",e),me(t),r.head.appendChild(t)))}},m:function(e,t){tw.m(e,t);var n=dw;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+Fe(r)+'"][href="'+Fe(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Ou(e)}if(!Jv.has(o)&&(e=_c({rel:"modulepreload",href:e},t),Jv.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Au(o)))return}Fs(r=n.createElement("link"),"link",e),me(r),n.head.appendChild(r)}}},X:function(e,t){tw.X(e,t);var n=dw;if(n&&e){var r=he(n).hoistableScripts,a=Ou(e),o=r.get(a);o||((o=n.querySelector(Au(a)))||(e=_c({src:e,async:!0},t),(t=Jv.get(a))&&Mu(e,t),me(o=n.createElement("script")),Fs(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){tw.S(e,t,n);var r=dw;if(r&&e){var a=he(r).hoistableStyles,o=Nu(e);t=t||"default";var i=a.get(o);if(!i){var l={loading:Qv,preload:null};if(i=r.querySelector(Ru(o)))l.loading=Yv|Zv;else{e=_c({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Jv.get(o))&&Du(e,n);var s=i=r.createElement("link");me(s),Fs(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){l.loading|=Yv}),s.addEventListener("error",function(){l.loading|=Gv}),l.loading|=Zv,Iu(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:l},a.set(o,i)}}},M:function(e,t){tw.M(e,t);var n=dw;if(n&&e){var r=he(n).hoistableScripts,a=Ou(e),o=r.get(a);o||((o=n.querySelector(Au(a)))||(e=_c({src:e,async:!0,type:"module"},t),(t=Jv.get(a))&&Mu(e,t),me(o=n.createElement("script")),Fs(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var nw,rw,aw,ow,iw,lw,sw,uw,cw,dw="undefined"==typeof document?null:document,fw=null,pw=null,hw=null,mw=null,gw=Qc,bw={$$typeof:Ic,Provider:null,Consumer:null,_currentValue:gw,_currentValue2:gw,_threadCount:0},yw="%c%s%c ",vw="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",ww="",kw=" ",Sw=Function.prototype.bind,xw=!1;nw=function(n,r,a,o){null!==(r=e(n,r))&&(a=t(r.memoizedState,a,0,o),r.memoizedState=a,r.baseState=a,n.memoizedProps=_c({},n.memoizedProps),null!==(a=fn(n,2))&&kl(a,n,2))},rw=function(t,n,r){null!==(n=e(t,n))&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,t.memoizedProps=_c({},t.memoizedProps),null!==(r=fn(t,2))&&kl(r,t,2))},aw=function(t,r,a,o){null!==(r=e(t,r))&&(a=n(r.memoizedState,a,o),r.memoizedState=a,r.baseState=a,t.memoizedProps=_c({},t.memoizedProps),null!==(a=fn(t,2))&&kl(a,t,2))},ow=function(e,n,r){e.pendingProps=t(e.memoizedProps,n,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(n=fn(e,2))&&kl(n,e,2)},iw=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=fn(e,2))&&kl(t,e,2)},lw=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=fn(e,2))&&kl(t,e,2)},sw=function(e){var t=fn(e,2);null!==t&&kl(t,e,2)},uw=function(e){i=e},cw=function(e){o=e};var Cw,Ew=!0,_w=null,Tw=!1,Pw=null,Nw=null,Rw=null,zw=new Map,Ow=new Map,Aw=[],Lw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Iw=null;if(hc.prototype.render=pc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error("Cannot update an unmounted root.");var n=arguments;"function"==typeof n[1]?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):h(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==n[1]&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var r=t.current;Qu(r,vl(r),n,t,null,null)},hc.prototype.unmount=pc.prototype.unmount=function(){var e=arguments;if("function"==typeof e[0]&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),null!==(e=this._internalRoot)){this._internalRoot=null;var t=e.containerInfo;(Bb&(Ib|Db))!==Lb&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Qu(e.current,2,null,e,null,null),_l(),t[Ad]=null}},hc.prototype.unstable_scheduleHydration=function(e){if(e){var t=ue();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Aw.length&&0!==t&&t<Aw[n].priority;n++);Aw.splice(n,0,e),0===n&&ic(e)}},function(){var e=Cc.version;if("19.1.1"!==e)throw Error('Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: '+e+"\n - react-dom: 19.1.1\nLearn more: https://react.dev/warnings/version-mismatch")}(),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Kc.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=function(e){var t=e.alternate;if(!t){if(null===(t=m(e)))throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return b(a),e;if(o===r)return b(a),t;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==r.return)n=a,r=o;else{for(var i=!1,l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==n.tag)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}(t),null===(e=null!==e?y(e):null)?null:e.stateNode},(Cw={bundleType:1,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:qc,reconcilerVersion:"19.1.1"}).overrideHookState=nw,Cw.overrideHookStateDeletePath=rw,Cw.overrideHookStateRenamePath=aw,Cw.overrideProps=ow,Cw.overridePropsDeletePath=iw,Cw.overridePropsRenamePath=lw,Cw.scheduleUpdate=sw,Cw.setErrorHandler=uw,Cw.setSuspenseHandler=cw,Cw.scheduleRefresh=function(e,t){if(null!==sh){var n=t.staleFamilies;t=t.updatedFamilies,Ql(),vn(e.current,t,n),_l()}},Cw.scheduleRoot=function(e,t){e.context===lh&&(Qu(e.current,2,t,e,null,null),_l())},Cw.setRefreshHandler=function(e){sh=e},Cw.getCurrentFiber=function(){return Xd},Cw.getLaneLabelMap=function(){for(var e=new Map,t=1,n=0;31>n;n++){var r=Q(t);e.set(t,r),t*=2}return e},Cw.injectProfilingHooks=function(e){yd=e},!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{gd=t.inject(e),bd=t}catch(e){console.error("React instrumentation encountered an error: %s.",e)}return!!t.checkDCE}(Cw)&&Kf&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Edge")||-1<navigator.userAgent.indexOf("Firefox"))){var Dw=window.location.protocol;/^(https?|file):$/.test(Dw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+("file:"===Dw?"\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq":""),"font-weight:bold")}O.createRoot=function(e,t){if(!h(e))throw Error("Target container is not a DOM element.");mc(e);var n=!1,r="",a=zo,o=Oo,i=Ao;return null!=t&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===Pc&&console.error("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(i=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=qu(e,1,!1,null,0,n,r,a,o,i,0,null),e[Ad]=t.current,Cs(e),new pc(t)},O.hydrateRoot=function(e,t,n){if(!h(e))throw Error("Target container is not a DOM element.");mc(e),void 0===t&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=!1,a="",o=zo,i=Oo,l=Ao,s=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(i=n.onCaughtError),void 0!==n.onRecoverableError&&(l=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(s=n.formState)),(t=qu(e,1,!0,t,0,r,a,o,i,l,0,s)).context=Ku(null),(a=Cr(r=oe(r=vl(n=t.current)))).callback=null,Er(n,a,r),n=r,t.current.lanes=n,ne(t,n),ss(t),e[Ad]=t.current,Cs(e),new hc(t)},O.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),O)),g.exports),M={exports:{}},j={},$={};var F=(I||(I=1,"production"===process.env.NODE_ENV?M.exports=function(){if(A)return j;A=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==n.key&&(a=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:a,ref:void 0!==n?n:null,props:r}}return j.Fragment=t,j.jsx=n,j.jsxs=n,j}():M.exports=(L||(L=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===C?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case p:return"Fragment";case m:return"Profiler";case h:return"StrictMode";case v:return"Suspense";case w:return"SuspenseList";case x:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case f:return"Portal";case b:return(t.displayName||"Context")+".Provider";case g:return(t._context.displayName||"Context")+".Consumer";case y:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case k:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case S:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}function t(e){return""+e}function n(e){try{t(e);var n=!1}catch(e){n=!0}if(n){var r=(n=console).error,a="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),t(e)}}function r(t){if(t===p)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===S)return"<...>";try{var n=e(t);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function a(){return Error("react-stack-top-frame")}function o(){var t=e(this.type);return N[t]||(N[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function i(t,r,a,i,u,c,f,p){var h,m=r.children;if(void 0!==m)if(i)if(T(m)){for(i=0;i<m.length;i++)l(m[i]);Object.freeze&&Object.freeze(m)}else console.error("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 l(m);if(_.call(r,"key")){m=e(t);var g=Object.keys(r).filter(function(e){return"key"!==e});i=0<g.length?"{key: someKey, "+g.join(": ..., ")+": ...}":"{key: someKey}",O[m+i]||(g=0<g.length?"{"+g.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,m,g,m),O[m+i]=!0)}if(m=null,void 0!==a&&(n(a),m=""+a),function(e){if(_.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(n(r.key),m=""+r.key),"key"in r)for(var b in a={},r)"key"!==b&&(a[b]=r[b]);else a=r;return m&&function(e,t){function n(){s||(s=!0,console.error("%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://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,n,r,a,i,l,s){return n=i.ref,e={$$typeof:d,type:e,key:t,props:i,_owner:a},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:o}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,m,c,0,null===(h=E.A)?null:h.getOwner(),a,f,p)}function l(e){"object"==typeof e&&null!==e&&e.$$typeof===d&&e._store&&(e._store.validated=1)}var s,u=c(),d=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),b=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),E=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=Object.prototype.hasOwnProperty,T=Array.isArray,P=console.createTask?console.createTask:function(){return null},N={},R=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,a)(),z=P(r(a)),O={};$.Fragment=p,$.jsx=function(e,t,n,a,o){var l=1e4>E.recentlyCreatedOwnerStacks++;return i(e,t,n,!1,0,o,l?Error("react-stack-top-frame"):R,l?P(r(e)):z)},$.jsxs=function(e,t,n,a,o){var l=1e4>E.recentlyCreatedOwnerStacks++;return i(e,t,n,!0,0,o,l?Error("react-stack-top-frame"):R,l?P(r(e)):z)}}()),$)),M.exports);const U=new class{constructor(){this.supportsContainerQueries=this.detectContainerQueries(),this.init()}detectContainerQueries(){if("undefined"==typeof window)return!1;try{if("CSS"in window&&"supports"in window.CSS)return window.CSS.supports("container-type","inline-size");const e=document.createElement("div");return e.style.containerType="inline-size","inline-size"===e.style.containerType}catch{return!1}}init(){"undefined"!=typeof window&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>this.applyClasses()):this.applyClasses())}applyClasses(){document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.supportsContainerQueries?(e.classList.add("container-queries-supported"),e.classList.remove("container-queries-fallback")):(e.classList.add("container-queries-fallback"),e.classList.remove("container-queries-supported"))}),this.supportsContainerQueries?(document.body.classList.add("container-queries-supported"),document.body.classList.remove("container-queries-fallback")):(document.body.classList.add("container-queries-fallback"),document.body.classList.remove("container-queries-supported"))}getContainerWidth(e){if(!e)return window.innerWidth;let t=e.closest(".limbo-component-container-wrapper");return t||(t=e.closest(".limbo-modal-content")),t||(t=e.closest(".limbo-modal")),t||(t=document.body),t.offsetWidth||t.clientWidth}shouldUseMobileStyles(e,t=768){return this.getContainerWidth(e)<=t}applyResponsiveClasses(e){if(this.supportsContainerQueries)return;const t=this.shouldUseMobileStyles(e),n=this.shouldUseMobileStyles(e,1024)&&!t;e.classList.toggle("limbo-mobile-fallback",t),e.classList.toggle("limbo-tablet-fallback",n),e.classList.toggle("limbo-desktop-fallback",!t&&!n)}observeResize(){if(!this.supportsContainerQueries)if("ResizeObserver"in window){const e=new ResizeObserver(e=>{e.forEach(e=>{this.applyResponsiveClasses(e.target)})});document.querySelectorAll(".limbo-component-container-wrapper").forEach(t=>{e.observe(t)})}else window.addEventListener("resize",()=>{document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.applyResponsiveClasses(e)})})}};function H(e={}){const{useContainerQuery:t=!1,containerElement:n=null}=e,[r,a]=d.useState(()=>{const e=t&&n?U.getContainerWidth(n):"undefined"!=typeof window?window.innerWidth:0,r="undefined"!=typeof window&&(e<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),a="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0);return{isMobile:r,isTouch:a,isTablet:"undefined"!=typeof window&&e>768&&e<=1024&&a,orientation:"undefined"!=typeof window?window.innerHeight>window.innerWidth?"portrait":"landscape":"portrait",viewport:{width:"undefined"!=typeof window?window.innerWidth:0,height:"undefined"!=typeof window?window.innerHeight:0},container:{width:e,supportsContainerQueries:U.supportsContainerQueries}}});d.useEffect(()=>{if("undefined"==typeof window)return;const e=()=>{const e=window.innerWidth,r=window.innerHeight,o=t&&n?U.getContainerWidth(n):e,i=o<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),l="ontouchstart"in window||navigator.maxTouchPoints>0;a({isMobile:i,isTouch:l,isTablet:o>768&&o<=1024&&l,orientation:r>e?"portrait":"landscape",viewport:{width:e,height:r},container:{width:o,supportsContainerQueries:U.supportsContainerQueries}})};let r;const o=()=>{clearTimeout(r),r=setTimeout(e,150)};return window.addEventListener("resize",o),window.addEventListener("orientationchange",()=>{setTimeout(e,100)}),()=>{clearTimeout(r),window.removeEventListener("resize",o),window.removeEventListener("orientationchange",e)}},[t,n]);const o="portrait"===r.orientation,i="landscape"===r.orientation,l=r.isMobile||r.isTablet&&o;return{...r,isPortrait:o,isLandscape:i,isCompactMode:l,isMobileSize:r.viewport.width<=640,isTabletSize:r.viewport.width>640&&r.viewport.width<=1024,isDesktopSize:r.viewport.width>1024,deviceClass:r.isMobile?"mobile":r.isTablet?"tablet":"desktop"}}function W({tabs:e,active:t,onChange:n}){const{isMobile:r,isTouch:a}=H();return F.jsx("div",{className:"limbo-tabs "+(r?"limbo-tabs--mobile":""),role:"tablist","aria-label":"Opciones de navegación",style:{...r&&{overflowX:"auto",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"}},children:e.map(o=>{const i=t===o.id;return!i&&o.hideNonActive?null:F.jsx("button",{"data-tab-id":o.id,onClick:()=>n(o.id),onKeyDown:t=>((t,r)=>{const a=e.findIndex(e=>e.id===r);let o=a;switch(t.key){case"ArrowLeft":case"ArrowUp":t.preventDefault(),o=a>0?a-1:e.length-1;break;case"ArrowRight":case"ArrowDown":t.preventDefault(),o=a<e.length-1?a+1:0;break;case"Home":t.preventDefault(),o=0;break;case"End":t.preventDefault(),o=e.length-1;break;case"Enter":case" ":return t.preventDefault(),void n(r);default:return}const i=e[o];i&&!i.hideNonActive&&(n(i.id),setTimeout(()=>{const e=document.querySelector(`[data-tab-id="${i.id}"]`);e&&e.focus()},0))})(t,o.id),className:`limbo-tab ${i?"active":""} ${r?"limbo-tab--mobile":""}`,role:"tab","aria-selected":i,"aria-controls":`tabpanel-${o.id}`,tabIndex:i?0:-1,id:`tab-${o.id}`,style:{...r&&{minWidth:"120px",minHeight:"44px",padding:"12px 16px",flexShrink:0,fontSize:"16px"},...a&&{touchAction:"manipulation",WebkitTapHighlightColor:"transparent"}},children:o.label},o.id)})})}function B({image:e,onDelete:t,onCrop:n,onSelect:r,thumbnailSize:a=32,isDeleting:o=!1,allowedActions:i={select:!0,download:!0,copy:!0,delete:!0,crop:!0}}){const[l,s]=d.useState(!1),{isMobile:u,isTouch:c}=H(),f=window.limboCore?.accessibilityManager,p=(window.limboCore?.config?.getGlobal()||{}).interaction||{allowSelection:!1,allowCropping:!0},h=n=>{n.stopPropagation(),f?.announce(`Eliminando imagen ${e.filename}`,"assertive"),t?.(e)},m=t=>{t.stopPropagation(),navigator.clipboard.writeText(e.path).then(()=>{s(!0),f?.announce(`URL de ${e.filename} copiada al portapapeles`),setTimeout(()=>s(!1),2e3)})},g=t=>{t.preventDefault(),t.stopPropagation(),f?.announce(`Descargando ${e.filename}`),fetch(e.path,{mode:"cors"}).then(e=>e.blob()).then(t=>{const n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e.filename||"imagen.jpg",document.body.appendChild(r),r.click(),setTimeout(()=>{window.URL.revokeObjectURL(n),document.body.removeChild(r)},100)})},b=t=>{t.stopPropagation(),f?.announce(`Abriendo editor para ${e.filename}`),n?.(e)},y=p.allowSelection&&i.select&&r,v=p.allowCropping&&i.crop&&n,w=()=>{window.open(e.path,"_blank")};return F.jsxs("div",{className:`limbo-image-card flex flex-col items-center cursor-pointer relative transition ${o?"opacity-50":""} ${u?"limbo-image-card--mobile":""}`,onClick:w,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),w();break;case"d":case"D":i.download&&(e.preventDefault(),g(e));break;case"c":case"C":i.copy&&(e.preventDefault(),m(e));break;case"Delete":case"Backspace":i.delete&&t&&(e.preventDefault(),h(e));break;case"x":case"X":i.crop&&n&&(e.preventDefault(),b(e))}},title:u?"Toque para ver imagen":"Haga click en la imagen para ver preview en nueva pestaña (Enter/Space para abrir, D descargar, C copiar, Delete eliminar, X recortar)",role:"button",tabIndex:0,"aria-label":`Imagen ${e.filename}. ${e.width}x${e.height} px`,style:{...c&&{touchAction:"manipulation",WebkitTapHighlightColor:"transparent"}},children:[F.jsxs("div",{className:"limbo-image-actions "+(u?"limbo-image-actions--mobile":""),children:[i.copy&&F.jsx("button",{type:"button",title:l?"¡Copiado!":"Copiar URL",className:"btn btn-copy border border-brand-blue-050/50 "+(u?"btn--touch":""),onClick:m,tabIndex:-1,style:{...u&&{width:"40px",height:"40px"}},children:F.jsx("span",{className:`icon ${l?"icon-copied-white":"icon-copy-white"} icon--sm`,"aria-hidden":"true"})}),y&&F.jsx("button",{type:"button",title:"Seleccionar imagen",className:"btn btn-success border border-brand-blue-050/50 "+(u?"btn--touch":""),onClick:t=>{t.stopPropagation(),f?.announce(`Seleccionando ${e.filename} para el portal`),r?.(e)},tabIndex:-1,style:{...u&&{width:"40px",height:"40px"}},children:F.jsx("span",{className:"icon icon-tick-white icon--sm","aria-hidden":"true"})}),v&&F.jsx("button",{type:"button",title:"Editar imagen",className:"btn btn-crop border border-brand-blue-050/50 "+(u?"btn--touch":""),onClick:b,tabIndex:-1,style:{...u&&{width:"40px",height:"40px"}},children:F.jsx("span",{className:"icon icon-scissors-white icon--sm","aria-hidden":"true"})}),i.download&&F.jsx("button",{type:"button",title:"Descargar",className:"btn btn-download border border-brand-blue-050/50 "+(u?"btn--touch":""),onClick:g,tabIndex:-1,style:{...u&&{width:"40px",height:"40px"}},children:F.jsx("span",{className:"icon icon-download-white icon--sm","aria-hidden":"true"})}),i.delete&&t&&F.jsx("button",{onClick:h,disabled:o,className:"btn btn-delete border border-brand-blue-050/50 "+(u?"btn--touch":""),title:"Eliminar imagen",tabIndex:-1,style:{...u&&{width:"40px",height:"40px"}},children:o?"…":F.jsx("span",{className:"icon icon-close-small-white icon--sm","aria-hidden":"true"})})]}),F.jsx("img",{src:e.path,alt:e.filename,className:"w-full object-cover rounded aspect-square",sizes:`height: ${6*a}px,width: ${6*a}px`,draggable:!1,style:{...u&&{minHeight:`${Math.max(3*a,80)}px`,height:"auto",aspectRatio:"1 / 1",objectFit:"cover"}}}),F.jsx("span",{className:"text-xs mt-1 truncate w-full text-center limbo-image-card-name "+(u?"limbo-image-card-name--mobile":""),style:{...u&&{fontSize:"0.75rem",lineHeight:"1.2",maxWidth:"100%",padding:"2px 4px",backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:"4px",color:"#333",fontWeight:"500"}},children:e.filename})]})}function V({text:e="Cargando..."}){return F.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-gray-600",role:"status","aria-live":"polite","aria-label":e,children:[F.jsxs("svg",{className:"animate-spin h-6 w-6 mb-2 text-blue-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[F.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),F.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8H4z"})]}),F.jsx("p",{className:"text-sm",id:"loader-text",children:e})]})}const q=new Map;function K({apiKey:e,prod:t,onSelect:n,onCrop:r,onDelete:a,deletingId:o,images:i,loading:l,error:s,allowedActions:u={select:!0,download:!0,copy:!0,delete:!0,crop:!0}}){const[c,f]=d.useState({search:"",dateFrom:"",dateTo:"",originPortal:"",uploadedBy:""}),p=d.useRef(null),h=function(){const[e,t]=d.useState(null),[n,r]=d.useState(!0),[a,o]=d.useState(null);return d.useEffect(()=>{const e="auth-status",n=q.get(e),a=Date.now();if(n&&a-n.timestamp<3e5)return t(n.data),void r(!1);let i=!0;return(async()=>{try{const n=!0;if(!i)return;q.set(e,{data:n,timestamp:Date.now()}),t(n)}catch(e){i&&(o(e.message),t(!1))}finally{i&&r(!1)}})(),()=>{i=!1}},[]),{allowed:e,loading:n,error:a,invalidateCache:()=>{q.delete("auth-status")}}}(),m=window.limboCore?.accessibilityManager;d.useEffect(()=>{if(p.current&&window.limboCore?.keyboardManager){const e="gallery-grid";p.current.setAttribute("data-grid-id",e),window.limboCore.keyboardManager.setupGridNavigation(p.current,{itemSelector:".limbo-image-card",gridId:e,columns:"auto"})}},[i]),d.useEffect(()=>{l?m?.announceLoading(!0,"galería"):l||s?s&&m?.announceError(s,"galería"):(m?.announceLoading(!1,"galería"),i.length>0&&m?.announce(`Se encontraron ${i.length} imágenes en la galería`))},[l,s,i.length,m]);const g=e=>{const{name:t,value:n}=e.target;f(e=>({...e,[t]:n}))};return F.jsxs("div",{className:"w-full",children:[F.jsx("div",{className:"limbo-card mb-6 p-4 bg-brand-blue-050 shadow-md",children:F.jsxs("form",{className:"limbo-form-grid flex flex-col sm:flex-row flex-wrap gap-4 items-start sm:items-end justify-between",onSubmit:e=>e.preventDefault(),"aria-label":"Filtrar imágenes",children:[F.jsxs("div",{className:"flex flex-col w-full sm:min-w-[180px] sm:flex-1",children:[F.jsx("label",{htmlFor:"search",className:"form-label mb-1",children:"Nombre"}),F.jsx("input",{type:"text",name:"search",id:"search",placeholder:"Buscar por nombre...",value:c.search,onChange:g,className:"form-control",autoComplete:"off"})]}),F.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap gap-2 justify-between items-start sm:items-end w-full sm:w-auto",children:[F.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[F.jsx("label",{htmlFor:"dateFrom",className:"form-label mb-1",children:"Desde"}),F.jsx("input",{type:"date",name:"dateFrom",id:"dateFrom",value:c.dateFrom,onChange:g,className:"form-control"})]}),F.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[F.jsx("label",{htmlFor:"dateTo",className:"form-label mb-1",children:"Hasta"}),F.jsx("input",{type:"date",name:"dateTo",id:"dateTo",value:c.dateTo,onChange:g,className:"form-control"})]}),h&&F.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[F.jsx("label",{htmlFor:"originPortal",className:"form-label mb-1",children:"Portal de origen"}),F.jsx("input",{type:"text",name:"originPortal",id:"originPortal",placeholder:"Portal de origen",value:c.originPortal,onChange:g,className:"form-control"})]}),F.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[F.jsx("label",{htmlFor:"uploadedBy",className:"form-label mb-1",children:"Subido por"}),F.jsx("input",{type:"text",name:"uploadedBy",id:"uploadedBy",placeholder:"Subido por",value:c.uploadedBy,onChange:g,className:"form-control"})]})]})]})}),l?F.jsx(V,{text:"Cargando imágenes..."}):s?F.jsx("div",{className:"alert alert-danger text-center",children:s}):F.jsx("div",{ref:p,className:"limbo-gallery mt-4","data-limbo-responsive":!0,"data-grid-id":"gallery-grid",role:"grid","aria-label":"Galería de imágenes. Use las flechas para navegar entre imágenes",children:i.length>0?i.map((e,t)=>F.jsx("div",{role:"gridcell","aria-posinset":t+1,"aria-setsize":i.length,children:F.jsx(B,{image:e,onSelect:n,onCrop:r,onDelete:u.delete&&a?()=>a(e.id):null,thumbnailSize:32,isDeleting:o===e.id,allowedActions:u})},e.id)):F.jsx("div",{className:"col-span-full text-center text-gray-500 py-8",role:"status","aria-live":"polite",children:F.jsx("p",{children:"No se han encontrado imágenes"})})})]})}function Q({file:e,setFile:t,previewUrl:n,setPreviewUrl:r,fileInputRef:a,onUpload:o,disabled:i}){return F.jsxs("form",{onSubmit:n=>{n.preventDefault(),e&&!i&&(o(e),t(null),r(null),a.current&&(a.current.value=""))},className:"flex flex-col items-center gap-6","aria-label":"Subir imagen desde dispositivo",children:[F.jsxs("label",{htmlFor:"file-input",className:"w-full flex flex-col items-center justify-center border-2 border-dashed border-brand-blue-200 rounded-xl p-8 cursor-pointer hover:border-brand-blue-1000 hover:to-bright-blue-200 hover:from-brand-blue-050 focus-within:border-brand-blue-800 from-bright-blue-050 to-brand-blue-050 bg-linear-to-br transition",tabIndex:0,style:{outline:"none"},children:[F.jsx("span",{className:"icon icon-upload icon--lg mb-2","aria-hidden":"true"}),F.jsx("span",{className:"font-medium text-brand-blue-1000 mb-1",children:"Haz clic o arrastra una imagen aquí"}),F.jsx("span",{className:"text-sm text-neutral-700",children:"Formatos permitidos: JPG, PNG, GIF, SVG, WebP"}),F.jsx("input",{id:"file-input",ref:a,type:"file",accept:"image/jpeg,image/png,image/svg,image/webp,image/gif",onChange:e=>{const n=e.target.files[0];if(t(n),n){const e=URL.createObjectURL(n);r(e)}else r(null)},disabled:i,className:"sr-only","aria-label":"Seleccionar imagen"})]}),n&&F.jsxs("div",{className:"w-full flex flex-col items-center gap-2",children:[F.jsx("img",{src:n,alt:e?.name||"Previsualización",className:"rounded-lg shadow-md border border-brand-blue-200 max-h-64 object-contain bg-white",style:{maxWidth:"100%"}}),F.jsxs("div",{className:"text-sm text-neutral-800 bg-brand-blue-050 p-2 rounded w-full text-center",children:[F.jsxs("p",{children:[F.jsx("span",{className:"font-medium",children:"Archivo:"})," ",e?.name]}),F.jsxs("p",{children:[F.jsx("span",{className:"font-medium",children:"Tamaño:"})," ",e?(e.size/1024/1024).toFixed(2):"--"," MB"]}),F.jsxs("p",{children:[F.jsx("span",{className:"font-medium",children:"Tipo:"})," ",e?.type]})]})]}),F.jsx("button",{type:"submit",disabled:!e||i,title:e?"Subir imagen a la galeria":"Proporcione una imagen antes de continuar",className:"limbo-btn w-full mt-2 "+(e?"limbo-btn-primary":"cursor-not-allowed limbo-btn-disabled"),style:{minHeight:44},children:i?"Subiendo...":"Subir imagen"})]})}class Y{constructor(){this.currentToken=null,this.tokenExpiry=null,this.refreshPromise=null}async authenticate(e,t,n=!1){try{const r=await J({apiKey:"temp",endpoint:"/token",method:"POST",body:{api_key:e,public_key:t},prod:n,basePath:"/auth",customHeaders:{Authorization:void 0}});if(r&&r.token)return this.currentToken=r.token,this.tokenExpiry=Date.now()+1e3*r.expires_in-3e4,{success:!0,token:r.token,expires_in:r.expires_in,portal:r.portal,policies:r.policies};throw new Error("Invalid authentication response")}catch(e){return console.error("Authentication failed:",e),{success:!1,error:e.message}}}async getValidToken(e,t,n=!1){if(!this.currentToken||Date.now()>this.tokenExpiry){this.refreshPromise||(this.refreshPromise=this.authenticate(e,t,n));const r=await this.refreshPromise;if(this.refreshPromise=null,!r.success)throw new Error(`Authentication failed: ${r.error}`)}return this.currentToken}isTokenValid(){return this.currentToken&&Date.now()<this.tokenExpiry}clearToken(){this.currentToken=null,this.tokenExpiry=null,this.refreshPromise=null}getTokenInfo(){return this.currentToken?{hasToken:!!this.currentToken,isValid:this.isTokenValid(),expiresAt:new Date(this.tokenExpiry),expiresIn:Math.max(0,this.tokenExpiry-Date.now())}:null}}const G={DEV:"https://led-dev-limbo-dev.eu.els.local",PROD:"https://limbo.lefebvre.com"};let X={apiKey:null,publicKey:null,prod:!1,auth:{apiKey:null,publicKey:null,authMode:"jwt",portal:null,tokenStorage:"memory"}},Z=null;async function J({endpoint:e,method:t="GET",body:n=null,prod:r=!1,basePath:a="",customHeaders:o={},isFormData:i=!1,useJWT:l=!0}){try{const s=r||X.prod,u=await async function({isFormData:e=!1,useJWT:t=!0,customHeaders:n={}}={}){const r={"Content-Type":"application/json"};if(t){const e=X.auth;if("jwt"===e.authMode&&e.apiKey)try{Z||(Z=new Y);const t=await Z.getValidToken(e.apiKey,e.publicKey||X.publicKey,X.prod);r.Authorization=`Bearer ${t}`}catch(e){throw console.error("JWT authentication failed:",e),new Error("Authentication required")}else"legacy"===e.authMode&&X.apiKey&&(r["X-API-Key"]=X.apiKey)}return e&&delete r["Content-Type"],{...r,...n}}({isFormData:i,useJWT:l,customHeaders:o}),c=await fetch(`${function({prod:e=!1}={}){return e?G.PROD:G.DEV}({prod:s})}${a}${e}`,{method:t,headers:u,body:n?i?n:JSON.stringify(n):void 0});if(!c.ok){let e=`HTTP ${c.status}: ${c.statusText}`;try{const t=await c.json();t.error?e=`${t.error.code}: ${t.error.message}`:t.message&&(e=t.message)}catch{}throw new Error(e)}return c.json()}catch(e){throw new Error(`API Error: ${e.message}`)}}const ee="/api/atenea",te=new Map;const ne=new Map;function re(e,t=!1){const[n,r]=d.useState(null),[a,o]=d.useState(!1),[i,l]=d.useState(null);return{params:n,loading:a,error:i,fetchParams:async n=>{o(!0),l(null);const a=`${e}-${t}-${n}`,i=Date.now(),s=ne.get(a);if(s&&i-s.timestamp<864e5)return r(s.data),o(!1),s.data;try{const e=await function(e,{services:t=null,form:n=!1}={},r=!1){const a={};return t&&(a.services=t),!1!==n&&(a.form=n),J({endpoint:"/ai/params"+(Object.keys(a).length?"?"+new URLSearchParams(a).toString():""),method:"GET",prod:r,basePath:"/api/atenea"})}(0,{services:n,form:!1},t);return r(e.result||e),ne.set(a,{data:e.result||e,timestamp:i}),e.result||e}catch(e){return l(e.message),r(null),null}finally{o(!1)}},reset:()=>{l(null),r(null)}}}function ae({apiKey:e,prod:t,disabled:n,onGenerated:r}){const a=function(e,t=!1){const[n,r]=d.useState([]),[a,o]=d.useState(!0),[i,l]=d.useState(null);return d.useEffect(()=>{if(!e)return l("API Key no proporcionada"),void o(!1);const n=`${e}-${t}`,a=te.get(n),i=Date.now();if(a&&i-a.timestamp<864e5)return r(a.data),void o(!1);let s=!0;return(async()=>{try{const e=await function(e,t=!1){return J({endpoint:"/ai/services",prod:t,basePath:ee})}(0,t);if(!s)return;const a=e.result||[];r(a),te.set(n,{data:a,timestamp:i})}catch(e){s&&l(e.message)}finally{s&&o(!1)}})(),()=>{s=!1}},[e,t]),{services:n,loading:a,error:i,invalidateCache:()=>{te.delete(`${e}-${t}`)}}}(e,t),o=re(e,t),[i,l]=d.useState(""),[s,u]=d.useState({}),[c,p]=d.useState(!1),[h,m]=d.useState(null),[g,b]=d.useState(null);f.useEffect(()=>{a.loading||1!==a.services.length||l(a.services[0])},[a.loading,a.services]),f.useEffect(()=>{if(!i)return;const e=o.params?.[i]?.parameters;if(e){const t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.default??""]));t.service=i,u(t)}},[i,o.params]);const y=e=>{const{name:t,value:n}=e.target;u(e=>({...e,[t]:n}))},v=async e=>{e.preventDefault(),p(!0),m(null),b(null);try{const e=await function(e,t,n=!1){return J({endpoint:"/ai/generate",method:"POST",body:t,prod:n,basePath:ee})}(0,s,t),n=e.result||e;if(n&&r){const e=n[0].replace(/^data:image\/\w+;base64,/,""),t=atob(e),a=new Array(t.length);for(let e=0;e<t.length;e++)a[e]=t.charCodeAt(e);const o=new Uint8Array(a),i=new File([o],"ai-image.webp",{type:"image/webp"});r(i)}b(n||null)}catch(e){m(e.message||"Error al generar la imagen")}finally{p(!1)}};return a.loading?F.jsxs("div",{className:"flex items-center justify-center py-8",children:[F.jsx("span",{className:"limbo-loader mr-2"})," Cargando servicios IA..."]}):a.services.length?F.jsxs("div",{className:"flex flex-col gap-4",children:[F.jsx("h3",{id:"aiSelectDescription",className:"text-lg font-semibold text-brand-blue-1000",children:"Selecciona el modelo IA"}),a.services.length>1&&F.jsxs("select",{name:"aiService","aria-describedby":"aiSelectDescription",title:"Selecciona el servicio IA",value:i,onChange:async e=>{const t=e.target.value;l(t),u({}),b(null),t&&await o.fetchParams(t,!0)},disabled:a.loading||n,className:"limbo-input",children:[F.jsx("option",{value:"",children:"-- Selecciona --"}),a.services.map(e=>F.jsx("option",{value:e,children:e},e))]}),a.error&&F.jsx("div",{className:"alert alert-danger",children:a.error}),o.loading&&F.jsx("div",{children:"Cargando parámetros..."}),o.error&&F.jsx("div",{className:"alert alert-danger",children:o.error}),i&&(()=>{const e=o.params?.[i]?.parameters;return e?F.jsxs("form",{onSubmit:v,"data-type":"ai",className:"flex flex-col gap-4 mt-4 border-t-1 pt-5 border-brand-blue-200","aria-label":"Formulario generación IA",children:[Object.entries(e).map(([e,t])=>t.disabled?null:F.jsxs("div",{className:"flex flex-col gap-1",children:[F.jsx("label",{htmlFor:`ai-${e}`,className:"text-sm font-medium text-brand-blue-1000",children:t.label||e}),t.options?F.jsx("select",{id:`ai-${e}`,name:e,value:s[e]??"",onChange:y,className:"limbo-input",disabled:n,children:t.options.map(e=>F.jsx("option",{value:e,children:e},e))}):F.jsx("input",{id:`ai-${e}`,type:"integer"===t.type?"number":"text",name:e,value:s[e]??"",onChange:y,className:"limbo-input",disabled:n,required:t.required,min:t.minValue,max:t.maxValue})]},e)),F.jsx("button",{type:"submit",disabled:c||n,title:c?"Generando imagen...":"Generar imagen",className:"limbo-btn w-full mt-2 "+(c?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:c?"Generando...":"Generar imagen"})]}):null})(),h&&F.jsx("div",{className:"alert alert-danger",children:h}),g&&g.map((e,t)=>F.jsxs("div",{className:"mt-6 text-center",children:[F.jsx("img",{src:e.contains("http")?e:`data:image/png;base64, ${e}`,alt:"Imagen generada con IA",className:"rounded-lg shadow-md border border-brand-blue-200 max-h-72 mx-auto"}),F.jsx("button",{className:"limbo-btn limbo-btn-primary mt-4",children:"Aceptar y subir"})]},"img-"+t))]}):F.jsx("div",{className:"alert alert-warning",children:"No hay servicios IA disponibles."})}const oe="/api/atenea",ie=new Map;function le({apiKey:e,prod:t,disabled:n,onSelected:r}){const a=function(e,t=!1){const[n,r]=d.useState([]),[a,o]=d.useState(!0),[i,l]=d.useState(null);return d.useEffect(()=>{if(!e)return l("API Key no proporcionada"),void o(!1);const n=`${e}-${t}`,a=ie.get(n),i=Date.now();if(a&&i-a.timestamp<864e5)return r(a.data),void o(!1);let s=!0;return(async()=>{try{const e=await function(e,t=!1){return J({endpoint:"/stock/services",prod:t,basePath:oe})}(0,t);if(!s)return;const a=e.result||[];r(a),ie.set(n,{data:a,timestamp:i})}catch(e){s&&l(e.message)}finally{s&&o(!1)}})(),()=>{s=!1}},[e,t]),{services:n,loading:a,error:i,invalidateCache:()=>{ie.delete(`${e}-${t}`)}}}(e,t),o=re(e,t),[i,l]=d.useState(""),[s,u]=d.useState({}),[c,p]=d.useState(!1),[h,m]=d.useState(null),[g,b]=d.useState([]);f.useEffect(()=>{a.loading||1!==a.services.length||l(a.services[0])},[a.loading,a.services]),f.useEffect(()=>{if(!i)return;const e=o.params?.[i]?.parameters;if(e){const t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.default??""]));t.service=i,u(t)}},[i,o.params]);const y=e=>{const{name:t,value:n}=e.target;u(e=>({...e,[t]:n}))},v=async e=>{e.preventDefault(),p(!0),m(null),b([]);try{const e=o.params?.[i]?.parameters,n={...s};Object.entries(e||{}).forEach(([e,t])=>{e in n||(n[e]=t.default??"")}),n.service=i;const r=await function(e,t,n=!1){return J({endpoint:"/stock/search",method:"POST",body:t,prod:n,basePath:oe})}(0,n,t),a=r.result||[];b(Array.isArray(a)?a:[])}catch(e){m(e.message||"Error al buscar imágenes")}finally{p(!1)}};return a.loading?F.jsxs("div",{className:"flex items-center justify-center py-8",children:[F.jsx("span",{className:"limbo-loader mr-2"})," Cargando servicios de Stock..."]}):a.services.length?F.jsxs("div",{className:"flex flex-col gap-4",children:[F.jsx("h3",{className:"text-lg font-semibold text-brand-blue-1000",children:"Selecciona el servicio de Stock"}),a.services.length>1&&F.jsxs("select",{value:i,onChange:async e=>{const t=e.target.value;l(t),u({}),b([]),t&&await o.fetchParams(t,!0)},disabled:a.loading||n,className:"limbo-input",children:[F.jsx("option",{value:"",children:"-- Selecciona --"}),a.services.map(e=>F.jsx("option",{value:e,children:e},e))]}),a.error&&F.jsx("div",{className:"alert alert-danger",children:a.error}),o.loading&&F.jsx("div",{children:"Cargando parámetros..."}),o.error&&F.jsx("div",{className:"alert alert-danger",children:o.error}),i&&(()=>{const e=o.params?.[i]?.parameters;return e?F.jsxs("form",{onSubmit:v,"data-type":"stock",className:"flex flex-col gap-4 mt-4 border-t-1 pt-5 border-brand-blue-200","aria-label":"Formulario búsqueda de imágenes de Stock",children:[Object.entries(e).map(([e,t])=>t.disabled?null:F.jsxs("div",{className:"flex flex-col gap-1",children:[F.jsx("label",{htmlFor:`stock-${e}`,className:"text-sm font-medium text-brand-blue-1000",children:t.label||e}),t.options?F.jsx("select",{id:`stock-${e}`,name:e,value:s[e]??"",onChange:y,className:"limbo-input",disabled:n,children:t.options.map(e=>F.jsx("option",{value:e,children:e},e))}):F.jsx("input",{id:`stock-${e}`,type:"integer"===t.type?"number":"text",name:e,value:s[e]??"",onChange:y,className:"limbo-input",disabled:n,required:t.required,min:t.minValue,max:t.maxValue})]},e)),F.jsx("button",{type:"submit",disabled:c||n,className:"limbo-btn w-full mt-2 "+(c?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:c?"Buscando...":"Buscar imágenes"})]}):null})(),h&&F.jsx("div",{className:"alert alert-danger",children:h}),g.length>0&&F.jsx("div",{className:"mt-6 grid grid-cols-2 md:grid-cols-4 gap-4","aria-live":"polite",children:g.map((e,t)=>F.jsxs("div",{className:"border border-brand-blue-200 rounded-lg overflow-hidden bg-white shadow-sm flex flex-col items-center",children:[F.jsx("img",{src:e.url||e,alt:`Resultado ${t+1}`,className:"object-cover w-full h-40"}),F.jsx("button",{className:"limbo-btn limbo-btn-primary mt-2",onClick:()=>(async e=>{p(!0),m(null);try{let t=e.url||e,n=await fetch(t),a=await n.blob(),o=new File([a],"stock-image.jpg",{type:a.type});r&&r(o)}catch(e){m(e.message||"No se pudo recuperar la imagen seleccionada")}finally{p(!1)}})(e),disabled:c||n,children:"Seleccionar"})]},t))})]}):F.jsx("div",{className:"alert alert-warning",children:"No hay servicios de Stock disponibles."})}const se=new Map;function ue({apiKey:e,prod:t,disabled:n}){const r=function(e,t=!1){const[n,r]=d.useState([]),[a,o]=d.useState(!0),[i,l]=d.useState(null);return d.useEffect(()=>{if(!e)return l("API Key no proporcionada"),void o(!1);const n=`${e}-${t}`,a=se.get(n),i=Date.now();if(a&&i-a.timestamp<864e5)return r(a.data),void o(!1);let s=!0;return(async()=>{try{const e=await function(e,t=!1){return J({endpoint:"/portals/list",prod:t,basePath:"/api/atenea"})}(0,t);if(!s)return;const a=e.result||[];r(a),se.set(n,{data:a,timestamp:i})}catch(e){s&&l(e.message)}finally{s&&o(!1)}})(),()=>{s=!1}},[e,t]),{sources:n,loading:a,error:i,invalidateCache:()=>{se.delete(`${e}-${t}`)}}}(e,t),[a,o]=d.useState("");return F.jsxs("div",{children:[F.jsx("h3",{className:"mb-2",children:"Selecciona un portal externo"}),F.jsxs("select",{value:a,onChange:e=>{o(e.target.value)},disabled:r.loading||n,children:[F.jsx("option",{value:"",children:"-- Selecciona --"}),Object.entries(r.sources).map(([e,t])=>F.jsx("option",{value:e,children:t.title},e))]}),r.error&&F.jsx("div",{className:"text-red-500",children:r.error}),F.jsx("button",{className:"mt-2",onClick:e=>{e.preventDefault(),a&&alert("Aquí se buscaría en el portal: "+a)},disabled:!a||n,children:"Buscar en portal"})]})}const ce=[{id:"upload",label:"Subir archivo"},{id:"ai",label:"Generar con IA"},{id:"stock",label:"Buscar en Stock"},{id:"portals",label:"Otros portales"}];function de({onUpload:e,disabled:t=!1,apiKey:n,prod:r=!1}){const[a,o]=d.useState("upload"),[i,l]=d.useState(null),[s,u]=d.useState(null),c=d.useRef();return F.jsxs("div",{className:"limbo-upload-form p-4 border-2 border-gray-200/50 rounded-lg min-w-fit max-w-5xl mx-auto",children:[F.jsx("div",{className:"limbo-tabs-container",children:F.jsx("div",{className:"limbo-tabs mb-6 min-w-fit",role:"tablist","aria-label":"Opciones de subida de imagen",children:ce.map(e=>F.jsx("button",{type:"button","data-upload-tab-id":e.id,className:"text-nowrap limbo-tab"+(a===e.id?" active":""),"aria-current":a===e.id?"page":void 0,"aria-selected":a===e.id,role:"tab",tabIndex:a===e.id?0:-1,onClick:()=>o(e.id),onKeyDown:t=>((e,t)=>{const n=ce.findIndex(e=>e.id===t);let r=n;switch(e.key){case"ArrowLeft":e.preventDefault(),r=n>0?n-1:ce.length-1;break;case"ArrowRight":e.preventDefault(),r=n<ce.length-1?n+1:0;break;case"Home":e.preventDefault(),r=0;break;case"End":e.preventDefault(),r=ce.length-1;break;case"Enter":case" ":return e.preventDefault(),void o(t);default:return}const a=ce[r];a&&(o(a.id),setTimeout(()=>{const e=document.querySelector(`[data-upload-tab-id="${a.id}"]`);e&&e.focus()},0))})(t,e.id),id:`upload-tab-${e.id}`,"aria-controls":`upload-tabpanel-${e.id}`,children:e.label},e.id))})}),F.jsxs("div",{className:"limbo-tab-content",role:"tabpanel",id:`upload-tabpanel-${a}`,"aria-labelledby":`upload-tab-${a}`,children:["upload"===a&&F.jsx(Q,{file:i,setFile:l,previewUrl:s,setPreviewUrl:u,fileInputRef:c,onUpload:e,disabled:t}),"ai"===a&&F.jsx(ae,{apiKey:n,prod:r,disabled:t,onGenerated:e=>{o("upload"),l(e),u(URL.createObjectURL(e))}}),"stock"===a&&F.jsx(le,{apiKey:n,prod:r,disabled:t}),"portals"===a&&F.jsx(ue,{apiKey:n,prod:r,disabled:t})]})]})}const fe="undefined"!=typeof window&&void 0!==window.document,pe=fe?window:{},he=!!fe&&"ontouchstart"in pe.document.documentElement,me=!!fe&&"PointerEvent"in pe,ge="cropper",be=`${ge}-canvas`,ye=`${ge}-crosshair`,ve=`${ge}-grid`,we=`${ge}-handle`,ke=`${ge}-image`,Se=`${ge}-selection`,xe=`${ge}-shade`,Ce=`${ge}-viewer`,Ee="select",_e="move",Te="scale",Pe="rotate",Ne="transform",Re="none",ze="n-resize",Oe="e-resize",Ae="s-resize",Le="w-resize",Ie="ne-resize",De="nw-resize",Me="se-resize",je="sw-resize",$e=me?"pointerdown":he?"touchstart":"mousedown",Fe=me?"pointermove":he?"touchmove":"mousemove",Ue=me?"pointerup pointercancel":he?"touchend touchcancel":"mouseup",He="error",We="keydown",Be="load",Ve="wheel",qe="action",Ke="actionend",Qe="actionstart",Ye="change",Ge="transform",Xe=Number.isNaN||pe.isNaN;function Ze(e){return"number"==typeof e&&!Xe(e)}function Je(e){return Ze(e)&&e>0&&e<1/0}function et(e){return"object"==typeof e&&null!==e}const{hasOwnProperty:tt}=Object.prototype;function nt(e){if(!et(e))return!1;try{const{constructor:t}=e,{prototype:n}=t;return t&&n&&tt.call(n,"isPrototypeOf")}catch(e){return!1}}function rt(e){return"function"==typeof e}function at(e){return"object"==typeof e&&null!==e&&1===e.nodeType}const ot=/([a-z\d])([A-Z])/g;function it(e){return String(e).replace(ot,"$1-$2").toLowerCase()}const lt=/-[A-z\d]/g;function st(e){return e.replace(lt,e=>e.slice(1).toUpperCase())}const ut=/\s\s*/;function ct(e,t,n,r){t.trim().split(ut).forEach(t=>{e.removeEventListener(t,n,r)})}function dt(e,t,n,r){t.trim().split(ut).forEach(t=>{e.addEventListener(t,n,r)})}function ft(e,t,n,r){dt(e,t,n,Object.assign(Object.assign({},r),{once:!0}))}const pt={bubbles:!0,cancelable:!0,composed:!0},ht=Promise.resolve();function mt(e){const{documentElement:t}=e.ownerDocument,n=e.getBoundingClientRect();return{left:n.left+(pe.pageXOffset-t.clientLeft),top:n.top+(pe.pageYOffset-t.clientTop)}}const gt=/deg|g?rad|turn$/i;function bt(e){const t=parseFloat(e)||0;if(0!==t){const[n="rad"]=String(e).match(gt)||[];switch(n.toLowerCase()){case"deg":return t/360*(2*Math.PI);case"grad":return t/400*(2*Math.PI);case"turn":return t*(2*Math.PI)}}return t}const yt="contain";function vt(e,t=yt){const{aspectRatio:n}=e;let{width:r,height:a}=e;const o=Je(r),i=Je(a);if(o&&i){const e=a*n;t===yt&&e>r||"cover"===t&&e<r?a=r/n:r=a*n}else o?a=r/n:i&&(r=a*n);return{width:r,height:a}}function wt(e,...t){if(0===t.length)return e;const[n,r,a,o,i,l]=e,[s,u,c,d,f,p]=t[0];return wt(e=[n*s+a*u,r*s+o*u,n*c+a*d,r*c+o*d,n*f+a*p+i,r*f+o*p+l],...t.slice(1))}const kt=/left|top|width|height/i,St="open",xt=new WeakMap,Ct=new WeakMap,Et=new Map,_t=pe.document&&Array.isArray(pe.document.adoptedStyleSheets)&&"replaceSync"in pe.CSSStyleSheet.prototype;class Tt extends HTMLElement{get $sharedStyle(){return(this.themeColor?`:host{--theme-color: ${this.themeColor};}`:"")+":host([hidden]){display:none!important}"}constructor(){var e,t;super(),this.shadowRootMode=St,this.slottable=!0;const n=null===(t=null===(e=Object.getPrototypeOf(this))||void 0===e?void 0:e.constructor)||void 0===t?void 0:t.$name;n&&Et.set(n,this.tagName.toLowerCase())}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(e,t,n){if(Object.is(n,t))return;const r=st(e);let a=n;switch(typeof this[r]){case"boolean":a=null!==n&&"false"!==n;break;case"number":a=Number(n)}switch(this[r]=a,e){case"theme-color":{const e=Ct.get(this),t=this.$sharedStyle;e&&t&&(_t?e.replaceSync(t):e.textContent=t);break}}}$propertyChangedCallback(e,t,n){if(!Object.is(n,t))switch(e=it(e),typeof n){case"boolean":!0===n?this.hasAttribute(e)||this.setAttribute(e,""):this.removeAttribute(e);break;case"number":n=Xe(n)?"":String(n);default:n?this.getAttribute(e)!==n&&this.setAttribute(e,n):this.removeAttribute(e)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach(e=>{const t=st(e);let n=this[t];(function(e){return void 0===e})(n)||this.$propertyChangedCallback(t,void 0,n),Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n,set(e){const r=n;n=e,this.$propertyChangedCallback(t,r,e)}})});const e=this.attachShadow({mode:this.shadowRootMode||St});if(this.shadowRoot||xt.set(this,e),Ct.set(this,this.$addStyles(this.$sharedStyle)),this.$style&&this.$addStyles(this.$style),this.$template){const t=document.createElement("template");t.innerHTML=this.$template,e.appendChild(t.content)}if(this.slottable){const t=document.createElement("slot");e.appendChild(t)}}disconnectedCallback(){Ct.has(this)&&Ct.delete(this),xt.has(this)&&xt.delete(this)}$getTagNameOf(e){var t;return null!==(t=Et.get(e))&&void 0!==t?t:e}$setStyles(e){return Object.keys(e).forEach(t=>{let n=e[t];Ze(n)&&(n=0!==n&&kt.test(t)?`${n}px`:String(n)),this.style[t]=n}),this}$getShadowRoot(){return this.shadowRoot||xt.get(this)}$addStyles(e){let t;const n=this.$getShadowRoot();return _t?(t=new CSSStyleSheet,t.replaceSync(e),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(t)):(t=document.createElement("style"),t.textContent=e,n.appendChild(t)),t}$emit(e,t,n){return function(e,t,n,r){return e.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign(Object.assign({},pt),{detail:n}),r)))}(this,e,t,n)}$nextTick(e){return function(e,t){return t?ht.then(e?t.bind(e):t):ht}(this,e)}static $define(e,t){et(e)&&(t=e,e=""),e||(e=this.$name||this.name),e=it(e),fe&&pe.customElements&&!pe.customElements.get(e)&&customElements.define(e,this,t)}}Tt.$version="2.0.0";class Pt extends Tt{constructor(){super(...arguments),this.$onPointerDown=null,this.$onPointerMove=null,this.$onPointerUp=null,this.$onWheel=null,this.$wheeling=!1,this.$pointers=new Map,this.$style=':host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}',this.$action=Re,this.background=!1,this.disabled=!1,this.scaleStep=.1,this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback(),this.disabled||this.$bind()}disconnectedCallback(){this.disabled||this.$unbind(),super.disconnectedCallback()}$propertyChangedCallback(e,t,n){Object.is(n,t)||(super.$propertyChangedCallback(e,t,n),"disabled"!==e)||(n?this.$unbind():this.$bind())}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),dt(this,$e,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),dt(this.ownerDocument,Fe,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),dt(this.ownerDocument,Ue,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),dt(this,Ve,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(ct(this,$e,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(ct(this.ownerDocument,Fe,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(ct(this.ownerDocument,Ue,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(ct(this,Ve,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(e){const{buttons:t,button:n,type:r}=e;if(this.disabled||("pointerdown"===r&&"mouse"===e.pointerType||"mousedown"===r)&&(Ze(t)&&1!==t||Ze(n)&&0!==n||e.ctrlKey))return;const{$pointers:a}=this;let o="";if(e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e,pageX:t,pageY:n})=>{a.set(e,{startX:t,startY:n,endX:t,endY:n})});else{const{pointerId:t=0,pageX:n,pageY:r}=e;a.set(t,{startX:n,startY:r,endX:n,endY:r})}a.size>1?o=Ne:at(e.target)&&(o=e.target.action||e.target.getAttribute("action")||""),!1!==this.$emit(Qe,{action:o,relatedEvent:e})&&(e.preventDefault(),this.$action=o,this.style.willChange="transform")}$handlePointerMove(e){const{$action:t,$pointers:n}=this;if(this.disabled||t===Re||0===n.size)return;if(!1===this.$emit("actionmove",{action:t,relatedEvent:e}))return;if(e.preventDefault(),e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e,pageX:t,pageY:r})=>{const a=n.get(e);a&&Object.assign(a,{endX:t,endY:r})});else{const{pointerId:t=0,pageX:r,pageY:a}=e,o=n.get(t);o&&Object.assign(o,{endX:r,endY:a})}const r={action:t,relatedEvent:e};if(t===Ne){const t=new Map(n);let a=0,o=0,i=0,l=0,s=e.pageX,u=e.pageY;n.forEach((e,n)=>{t.delete(n),t.forEach(t=>{let n=t.startX-e.startX,r=t.startY-e.startY,c=t.endX-e.endX,d=t.endY-e.endY,f=0,p=0,h=0,m=0;if(0===n?r<0?h=2*Math.PI:r>0&&(h=Math.PI):n>0?h=Math.PI/2+Math.atan(r/n):n<0&&(h=1.5*Math.PI+Math.atan(r/n)),0===c?d<0?m=2*Math.PI:d>0&&(m=Math.PI):c>0?m=Math.PI/2+Math.atan(d/c):c<0&&(m=1.5*Math.PI+Math.atan(d/c)),m>0||h>0){const n=m-h,r=Math.abs(n);r>a&&(a=r,i=n,s=(e.startX+t.startX)/2,u=(e.startY+t.startY)/2)}if(n=Math.abs(n),r=Math.abs(r),c=Math.abs(c),d=Math.abs(d),n>0&&r>0?f=Math.sqrt(n*n+r*r):n>0?f=n:r>0&&(f=r),c>0&&d>0?p=Math.sqrt(c*c+d*d):c>0?p=c:d>0&&(p=d),f>0&&p>0){const n=(p-f)/f,r=Math.abs(n);r>o&&(o=r,l=n,s=(e.startX+t.startX)/2,u=(e.startY+t.startY)/2)}})});const c=a>0,d=o>0;c&&d?(r.rotate=i,r.scale=l,r.centerX=s,r.centerY=u):c?(r.action=Pe,r.rotate=i,r.centerX=s,r.centerY=u):d?(r.action=Te,r.scale=l,r.centerX=s,r.centerY=u):r.action=Re}else{const[e]=Array.from(n.values());Object.assign(r,e)}n.forEach(e=>{e.startX=e.endX,e.startY=e.endY}),r.action!==Re&&this.$emit(qe,r,{cancelable:!1})}$handlePointerUp(e){const{$action:t,$pointers:n}=this;if(!this.disabled&&t!==Re&&!1!==this.$emit(Ke,{action:t,relatedEvent:e})){if(e.preventDefault(),e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e})=>{n.delete(e)});else{const{pointerId:t=0}=e;n.delete(t)}0===n.size&&(this.style.willChange="",this.$action=Re)}}$handleWheel(e){if(this.disabled)return;if(e.preventDefault(),this.$wheeling)return;this.$wheeling=!0,setTimeout(()=>{this.$wheeling=!1},50);const t=(e.deltaY>0?-1:1)*this.scaleStep;this.$emit(qe,{action:Te,scale:t,relatedEvent:e},{cancelable:!1})}$setAction(e){return"string"==typeof e&&(this.$action=e),this}$toCanvas(e){return new Promise((t,n)=>{if(!this.isConnected)return void n(new Error("The current element is not connected to the DOM."));const r=document.createElement("canvas");let a=this.offsetWidth,o=this.offsetHeight,i=1;nt(e)&&(Je(e.width)||Je(e.height))&&(({width:a,height:o}=vt({aspectRatio:a/o,width:e.width,height:e.height})),i=a/this.offsetWidth),r.width=a,r.height=o;const l=this.querySelector(this.$getTagNameOf(ke));l?l.$ready().then(n=>{const s=r.getContext("2d");if(s){const[t,u,c,d,f,p]=l.$getTransform();let h=f,m=p,g=n.naturalWidth,b=n.naturalHeight;1!==i&&(h*=i,m*=i,g*=i,b*=i);const y=g/2,v=b/2;s.fillStyle="transparent",s.fillRect(0,0,a,o),nt(e)&&rt(e.beforeDraw)&&e.beforeDraw.call(this,s,r),s.save(),s.translate(y,v),s.transform(t,u,c,d,h,m),s.translate(-y,-v),s.drawImage(n,0,0,g,b),s.restore()}t(r)}).catch(n):t(r)})}}Pt.$name=be,Pt.$version="2.0.0";const Nt=new WeakMap,Rt=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class zt extends Tt{constructor(){super(...arguments),this.$matrix=[1,0,0,1,0,0],this.$onLoad=null,this.$onCanvasAction=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$actionStartTarget=null,this.$style=":host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}",this.$image=new Image,this.initialCenterSize="contain",this.rotatable=!1,this.scalable=!1,this.skewable=!1,this.slottable=!1,this.translatable=!1}set $canvas(e){Nt.set(this,e)}get $canvas(){return Nt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(Rt,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(e,t,n){Object.is(n,t)||(super.attributeChangedCallback(e,t,n),Rt.includes(e)&&this.$image.setAttribute(e,n))}$propertyChangedCallback(e,t,n){Object.is(n,t)||(super.$propertyChangedCallback(e,t,n),"initialCenterSize"!==e)||this.$nextTick(()=>{this.$center(n)})}connectedCallback(){super.connectedCallback();const{$image:e}=this,t=this.closest(this.$getTagNameOf(be));t&&(this.$canvas=t,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=e=>{var t,n;this.$actionStartTarget=null===(n=null===(t=e.detail)||void 0===t?void 0:t.relatedEvent)||void 0===n?void 0:n.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),dt(t,Qe,this.$onCanvasActionStart),dt(t,Ke,this.$onCanvasActionEnd),dt(t,qe,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),dt(e,Be,this.$onLoad),this.$getShadowRoot().appendChild(e)}disconnectedCallback(){const{$image:e,$canvas:t}=this;t&&(this.$onCanvasActionStart&&(ct(t,Qe,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ct(t,Ke,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(ct(t,qe,this.$onCanvasAction),this.$onCanvasAction=null)),e&&this.$onLoad&&(ct(e,Be,this.$onLoad),this.$onLoad=null),this.$getShadowRoot().removeChild(e),super.disconnectedCallback()}$handleLoad(){const{$image:e}=this;this.$setStyles({width:e.naturalWidth,height:e.naturalHeight}),this.$canvas&&this.$center(this.initialCenterSize)}$handleAction(e){if(this.hidden||!(this.rotatable||this.scalable||this.translatable))return;const{$canvas:t}=this,{detail:n}=e;if(n){const{relatedEvent:e}=n;let{action:r}=n;switch(r!==Ne||this.rotatable&&this.scalable||(r=this.rotatable?Pe:this.scalable?Te:Re),r){case _e:if(this.translatable){let r=null;e&&(r=e.target.closest(this.$getTagNameOf(Se))),r||(r=t.querySelector(this.$getTagNameOf(Se))),r&&r.multiple&&!r.active&&(r=t.querySelector(`${this.$getTagNameOf(Se)}[active]`)),r&&!r.hidden&&r.movable&&!r.dynamic&&this.$actionStartTarget&&r.contains(this.$actionStartTarget)||this.$move(n.endX-n.startX,n.endY-n.startY)}break;case Pe:if(this.rotatable)if(e){const{x:t,y:r}=this.getBoundingClientRect();this.$rotate(n.rotate,e.clientX-t,e.clientY-r)}else this.$rotate(n.rotate);break;case Te:if(this.scalable)if(e){const t=e.target.closest(this.$getTagNameOf(Se));if(!t||!t.zoomable||t.zoomable&&t.dynamic){const{x:t,y:r}=this.getBoundingClientRect();this.$zoom(n.scale,e.clientX-t,e.clientY-r)}}else this.$zoom(n.scale);break;case Ne:if(this.rotatable&&this.scalable){const{rotate:t}=n;let{scale:r}=n;r<0?r=1/(1-r):r+=1;const a=Math.cos(t),o=Math.sin(t),[i,l,s,u]=[a*r,o*r,-o*r,a*r];if(e){const t=this.getBoundingClientRect(),n=e.clientX-t.x,r=e.clientY-t.y,[a,o,c,d]=this.$matrix,f=n-t.width/2,p=r-t.height/2,h=(f*d-c*p)/(a*d-c*o),m=(p*a-o*f)/(a*d-c*o);this.$transform(i,l,s,u,h*(1-i)+m*s,m*(1-u)+h*l)}else this.$transform(i,l,s,u,0,0)}}}}$ready(e){const{$image:t}=this,n=new Promise((e,n)=>{const r=new Error("Failed to load the image source");if(t.complete)t.naturalWidth>0&&t.naturalHeight>0?e(t):n(r);else{const a=()=>{ct(t,He,o),e(t)},o=()=>{ct(t,Be,a),n(r)};ft(t,Be,a),ft(t,He,o)}});return rt(e)&&n.then(t=>(e(t),t)),n}$center(e){const{parentElement:t}=this;if(!t)return this;const n=t.getBoundingClientRect(),r=n.width,a=n.height,{x:o,y:i,width:l,height:s}=this.getBoundingClientRect(),u=o+l/2,c=i+s/2,d=n.x+r/2,f=n.y+a/2;if(this.$move(d-u,f-c),e&&(l!==r||s!==a)){const t=r/l,n=a/s;switch(e){case"cover":this.$scale(Math.max(t,n));break;case"contain":this.$scale(Math.min(t,n))}}return this}$move(e,t=e){if(this.translatable&&Ze(e)&&Ze(t)){const[n,r,a,o]=this.$matrix,i=(e*o-a*t)/(n*o-a*r),l=(t*n-r*e)/(n*o-a*r);this.$translate(i,l)}return this}$moveTo(e,t=e){if(this.translatable&&Ze(e)&&Ze(t)){const[n,r,a,o]=this.$matrix,i=(e*o-a*t)/(n*o-a*r),l=(t*n-r*e)/(n*o-a*r);this.$setTransform(n,r,a,o,i,l)}return this}$rotate(e,t,n){if(this.rotatable){const r=bt(e),a=Math.cos(r),o=Math.sin(r),[i,l,s,u]=[a,o,-o,a];if(Ze(t)&&Ze(n)){const[e,r,a,o]=this.$matrix,{width:c,height:d}=this.getBoundingClientRect(),f=t-c/2,p=n-d/2,h=(f*o-a*p)/(e*o-a*r),m=(p*e-r*f)/(e*o-a*r);this.$transform(i,l,s,u,h*(1-i)-m*s,m*(1-u)-h*l)}else this.$transform(i,l,s,u,0,0)}return this}$zoom(e,t,n){if(!this.scalable||0===e)return this;if(e<0?e=1/(1-e):e+=1,Ze(t)&&Ze(n)){const[r,a,o,i]=this.$matrix,{width:l,height:s}=this.getBoundingClientRect(),u=t-l/2,c=n-s/2,d=(u*i-o*c)/(r*i-o*a),f=(c*r-a*u)/(r*i-o*a);this.$transform(e,0,0,e,d*(1-e),f*(1-e))}else this.$scale(e);return this}$scale(e,t=e){return this.scalable&&this.$transform(e,0,0,t,0,0),this}$skew(e,t=0){if(this.skewable){const n=bt(e),r=bt(t);this.$transform(1,Math.tan(r),Math.tan(n),1,0,0)}return this}$translate(e,t=e){return this.translatable&&Ze(e)&&Ze(t)&&this.$transform(1,0,0,1,e,t),this}$transform(e,t,n,r,a,o){return Ze(e)&&Ze(t)&&Ze(n)&&Ze(r)&&Ze(a)&&Ze(o)?this.$setTransform(wt(this.$matrix,[e,t,n,r,a,o])):this}$setTransform(e,t,n,r,a,o){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(e)&&([e,t,n,r,a,o]=e),Ze(e)&&Ze(t)&&Ze(n)&&Ze(r)&&Ze(a)&&Ze(o))){const i=[...this.$matrix],l=[e,t,n,r,a,o];if(!1===this.$emit(Ge,{matrix:l,oldMatrix:i}))return this;this.$matrix=l,this.style.transform=`matrix(${l.join(", ")})`}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}zt.$name=ke,zt.$version="2.0.0";const Ot=new WeakMap;class At extends Tt{constructor(){super(...arguments),this.$onCanvasChange=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$style=":host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}",this.x=0,this.y=0,this.width=0,this.height=0,this.slottable=!1,this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(e){Ot.set(this,e)}get $canvas(){return Ot.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const e=this.closest(this.$getTagNameOf(be));if(e){this.$canvas=e,this.style.position="absolute";const t=e.querySelector(this.$getTagNameOf(Se));t&&(this.$onCanvasActionStart=e=>{t.hidden&&e.detail.action===Ee&&(this.hidden=!1)},this.$onCanvasActionEnd=e=>{t.hidden&&e.detail.action===Ee&&(this.hidden=!0)},this.$onCanvasChange=e=>{const{x:n,y:r,width:a,height:o}=e.detail;this.$change(n,r,a,o),(t.hidden||0===n&&0===r&&0===a&&0===o)&&(this.hidden=!0)},dt(e,Qe,this.$onCanvasActionStart),dt(e,Ke,this.$onCanvasActionEnd),dt(e,Ye,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:e}=this;e&&(this.$onCanvasActionStart&&(ct(e,Qe,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ct(e,Ke,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(ct(e,Ye,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(e,t,n=this.width,r=this.height){return Ze(e)&&Ze(t)&&Ze(n)&&Ze(r)&&(e!==this.x||t!==this.y||n!==this.width||r!==this.height)?(this.hidden&&(this.hidden=!1),this.x=e,this.y=t,this.width=n,this.height=r,this.$render()):this}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:pe.innerWidth})}}At.$name=xe,At.$version="2.0.0";class Lt extends Tt{constructor(){super(...arguments),this.$onCanvasCropEnd=null,this.$onCanvasCropStart=null,this.$style=':host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}',this.action=Re,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}Lt.$name=we,Lt.$version="2.0.0";const It=new WeakMap;class Dt extends Tt{constructor(){super(...arguments),this.$onCanvasAction=null,this.$onCanvasActionStart=null,this.$onCanvasActionEnd=null,this.$onDocumentKeyDown=null,this.$action="",this.$actionStartTarget=null,this.$changing=!1,this.$style=':host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}',this.$initialSelection={x:0,y:0,width:0,height:0},this.x=0,this.y=0,this.width=0,this.height=0,this.aspectRatio=NaN,this.initialAspectRatio=NaN,this.initialCoverage=NaN,this.active=!1,this.linked=!1,this.dynamic=!1,this.movable=!1,this.resizable=!1,this.zoomable=!1,this.multiple=!1,this.keyboard=!1,this.outlined=!1,this.precise=!1}set $canvas(e){It.set(this,e)}get $canvas(){return It.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(e,t,n){if(!Object.is(n,t))switch(super.$propertyChangedCallback(e,t,n),e){case"x":case"y":case"width":case"height":this.$changing||this.$nextTick(()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,!0)});break;case"aspectRatio":case"initialAspectRatio":this.$nextTick(()=>{this.$initSelection()});break;case"initialCoverage":this.$nextTick(()=>{Je(n)&&n<=1&&this.$initSelection(!0,!0)});break;case"keyboard":this.$nextTick(()=>{this.$canvas&&(n?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),dt(this.ownerDocument,We,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(ct(this.ownerDocument,We,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))});break;case"multiple":this.$nextTick(()=>{if(this.$canvas){const e=this.$getSelections();n?(e.forEach(e=>{e.active=!1}),this.active=!0,this.$emit(Ye,{x:this.x,y:this.y,width:this.width,height:this.height})):(this.active=!1,e.slice(1).forEach(e=>{this.$removeSelection(e)}))}});break;case"precise":this.$nextTick(()=>{this.$change(this.x,this.y)});break;case"linked":n&&(this.dynamic=!0)}}connectedCallback(){super.connectedCallback();const e=this.closest(this.$getTagNameOf(be));e?(this.$canvas=e,this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`}),this.hidden||this.$render(),this.$initSelection(!0),this.$onCanvasActionStart=this.$handleActionStart.bind(this),this.$onCanvasActionEnd=this.$handleActionEnd.bind(this),this.$onCanvasAction=this.$handleAction.bind(this),dt(e,Qe,this.$onCanvasActionStart),dt(e,Ke,this.$onCanvasActionEnd),dt(e,qe,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:e}=this;e&&(this.$onCanvasActionStart&&(ct(e,Qe,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ct(e,Ke,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(ct(e,qe,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let e=[];return this.parentElement&&(e=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(Se)))),e}$initSelection(e=!1,t=!1){const{initialCoverage:n,parentElement:r}=this;if(Je(n)&&r){const a=this.aspectRatio||this.initialAspectRatio;let o=(t?0:this.width)||r.offsetWidth*n,i=(t?0:this.height)||r.offsetHeight*n;Je(a)&&({width:o,height:i}=vt({aspectRatio:a,width:o,height:i})),this.$change(this.x,this.y,o,i),e&&this.$center(),this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const e=this.cloneNode(!0);return this.hasAttribute("id")&&e.removeAttribute("id"),e.initialCoverage=NaN,this.active=!1,this.parentElement&&this.parentElement.insertBefore(e,this.nextSibling),e}$removeSelection(e=this){if(this.parentElement){const t=this.$getSelections();if(t.length>1){const n=t.indexOf(e),r=t[n+1]||t[n-1];r&&(e.active=!1,this.parentElement.removeChild(e),r.active=!0,r.$emit(Ye,{x:r.x,y:r.y,width:r.width,height:r.height}))}else this.$clear()}}$handleActionStart(e){var t,n;const r=null===(n=null===(t=e.detail)||void 0===t?void 0:t.relatedEvent)||void 0===n?void 0:n.target;this.$action="",this.$actionStartTarget=r,!this.hidden&&this.multiple&&!this.active&&r===this&&this.parentElement&&(this.$getSelections().forEach(e=>{e.active=!1}),this.active=!0,this.$emit(Ye,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(e){const{currentTarget:t,detail:n}=e;if(!t||!n)return;const{relatedEvent:r}=n;let{action:a}=n;if(!a&&this.multiple&&(a=this.$action||(null==r?void 0:r.target.action),this.$action=a),!a||this.hidden&&a!==Ee||this.multiple&&!this.active&&a!==Te)return;const o=n.endX-n.startX,i=n.endY-n.startY,{width:l,height:s}=this;let{aspectRatio:u}=this;switch(!Je(u)&&r.shiftKey&&(u=Je(l)&&Je(s)?l/s:1),a){case Ee:if(0!==o&&0!==i){const{$canvas:e}=this,r=mt(t);(this.multiple&&!this.hidden?this.$createSelection():this).$change(n.startX-r.left,n.startY-r.top,Math.abs(o),Math.abs(i),u),o<0?i<0?a=De:i>0&&(a=je):o>0&&(i<0?a=Ie:i>0&&(a=Me)),e&&(e.$action=a)}break;case _e:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(o,i);break;case Te:if(r&&this.zoomable&&(this.dynamic||this.contains(r.target))){const e=mt(t);this.$zoom(n.scale,r.pageX-e.left,r.pageY-e.top)}break;default:this.$resize(a,o,i,u)}}$handleActionEnd(){this.$action="",this.$actionStartTarget=null}$handleKeyDown(e){if(this.hidden||!this.keyboard||this.multiple&&!this.active||e.defaultPrevented)return;const{activeElement:t}=document;if(!t||!["INPUT","TEXTAREA"].includes(t.tagName)&&!["true","plaintext-only"].includes(t.contentEditable))switch(e.key){case"Backspace":e.metaKey&&(e.preventDefault(),this.$removeSelection());break;case"Delete":e.preventDefault(),this.$removeSelection();break;case"ArrowLeft":e.preventDefault(),this.$move(-1,0);break;case"ArrowRight":e.preventDefault(),this.$move(1,0);break;case"ArrowUp":e.preventDefault(),this.$move(0,-1);break;case"ArrowDown":e.preventDefault(),this.$move(0,1);break;case"+":e.preventDefault(),this.$zoom(.1);break;case"-":e.preventDefault(),this.$zoom(-.1)}}$center(){const{parentElement:e}=this;if(!e)return this;const t=(e.offsetWidth-this.width)/2,n=(e.offsetHeight-this.height)/2;return this.$change(t,n)}$move(e,t=e){return this.$moveTo(this.x+e,this.y+t)}$moveTo(e,t=e){return this.movable?this.$change(e,t):this}$resize(e,t=0,n=0,r=this.aspectRatio){if(!this.resizable)return this;const a=Je(r),{$canvas:o}=this;let{x:i,y:l,width:s,height:u}=this;switch(e){case ze:l+=n,u-=n,u<0&&(e=Ae,u=-u,l-=u),a&&(i+=(t=n*r)/2,s-=t,s<0&&(s=-s,i-=s));break;case Oe:s+=t,s<0&&(e=Le,s=-s,i-=s),a&&(l-=(n=t/r)/2,u+=n,u<0&&(u=-u,l-=u));break;case Ae:u+=n,u<0&&(e=ze,u=-u,l-=u),a&&(i-=(t=n*r)/2,s+=t,s<0&&(s=-s,i-=s));break;case Le:i+=t,s-=t,s<0&&(e=Oe,s=-s,i-=s),a&&(l+=(n=t/r)/2,u-=n,u<0&&(u=-u,l-=u));break;case Ie:a&&(n=-t/r),l+=n,u-=n,s+=t,s<0&&u<0?(e=je,s=-s,u=-u,i-=s,l-=u):s<0?(e=De,s=-s,i-=s):u<0&&(e=Me,u=-u,l-=u);break;case De:a&&(n=t/r),i+=t,l+=n,s-=t,u-=n,s<0&&u<0?(e=Me,s=-s,u=-u,i-=s,l-=u):s<0?(e=Ie,s=-s,i-=s):u<0&&(e=je,u=-u,l-=u);break;case Me:a&&(n=t/r),s+=t,u+=n,s<0&&u<0?(e=De,s=-s,u=-u,i-=s,l-=u):s<0?(e=je,s=-s,i-=s):u<0&&(e=Ie,u=-u,l-=u);break;case je:a&&(n=-t/r),i+=t,s-=t,u+=n,s<0&&u<0?(e=Ie,s=-s,u=-u,i-=s,l-=u):s<0?(e=Me,s=-s,i-=s):u<0&&(e=De,u=-u,l-=u)}return o&&o.$setAction(e),this.$change(i,l,s,u)}$zoom(e,t,n){if(!this.zoomable||0===e)return this;e<0?e=1/(1-e):e+=1;const{width:r,height:a}=this,o=r*e,i=a*e;let l=this.x,s=this.y;return Ze(t)&&Ze(n)?(l-=(o-r)*((t-this.x)/r),s-=(i-a)*((n-this.y)/a)):(l-=(o-r)/2,s-=(i-a)/2),this.$change(l,s,o,i)}$change(e,t,n=this.width,r=this.height,a=this.aspectRatio,o=!1){return this.$changing||!Ze(e)||!Ze(t)||!Ze(n)||!Ze(r)||n<0||r<0?this:(Je(a)&&({width:n,height:r}=vt({aspectRatio:a,width:n,height:r},"cover")),this.precise||(e=Math.round(e),t=Math.round(t),n=Math.round(n),r=Math.round(r)),e===this.x&&t===this.y&&n===this.width&&r===this.height&&Object.is(a,this.aspectRatio)&&!o?this:(this.hidden&&(this.hidden=!1),!1===this.$emit(Ye,{x:e,y:t,width:n,height:r})?this:(this.$changing=!0,this.x=e,this.y=t,this.width=n,this.height=r,this.$changing=!1,this.$render())))}$reset(){const{x:e,y:t,width:n,height:r}=this.$initialSelection;return this.$change(e,t,n,r)}$clear(){return this.$change(0,0,0,0,NaN,!0),this.hidden=!0,this}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(e){return new Promise((t,n)=>{if(!this.isConnected)return void n(new Error("The current element is not connected to the DOM."));const r=document.createElement("canvas");let{width:a,height:o}=this,i=1;if(nt(e)&&(Je(e.width)||Je(e.height))&&(({width:a,height:o}=vt({aspectRatio:a/o,width:e.width,height:e.height})),i=a/this.width),r.width=a,r.height=o,!this.$canvas)return void t(r);const l=this.$canvas.querySelector(this.$getTagNameOf(ke));l?l.$ready().then(n=>{const s=r.getContext("2d");if(s){const[t,u,c,d,f,p]=l.$getTransform(),h=-this.x,m=-this.y,g=(h*d-c*m)/(t*d-c*u),b=(m*t-u*h)/(t*d-c*u);let y=t*g+c*b+f,v=u*g+d*b+p,w=n.naturalWidth,k=n.naturalHeight;1!==i&&(y*=i,v*=i,w*=i,k*=i);const S=w/2,x=k/2;s.fillStyle="transparent",s.fillRect(0,0,a,o),nt(e)&&rt(e.beforeDraw)&&e.beforeDraw.call(this,s,r),s.save(),s.translate(S,x),s.transform(t,u,c,d,y,v),s.translate(-S,-x),s.drawImage(n,0,0,w,k),s.restore()}t(r)}).catch(n):t(r)})}}Dt.$name=Se,Dt.$version="2.0.0";class Mt extends Tt{constructor(){super(...arguments),this.$style=":host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}",this.bordered=!1,this.columns=3,this.covered=!1,this.rows=3,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(e,t,n){Object.is(n,t)||(super.$propertyChangedCallback(e,t,n),"rows"!==e&&"columns"!==e||this.$nextTick(()=>{this.$render()}))}connectedCallback(){super.connectedCallback(),this.$render()}$render(){const e=this.$getShadowRoot(),t=document.createDocumentFragment();for(let e=0;e<this.rows;e+=1){const e=document.createElement("span");e.setAttribute("role","row");for(let t=0;t<this.columns;t+=1){const t=document.createElement("span");t.setAttribute("role","gridcell"),e.appendChild(t)}t.appendChild(e)}e&&(e.innerHTML="",e.appendChild(t))}}Mt.$name=ve,Mt.$version="2.0.0";class jt extends Tt{constructor(){super(...arguments),this.$style=':host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}',this.centered=!1,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}jt.$name=ye,jt.$version="2.0.0";const $t=new WeakMap,Ft=new WeakMap,Ut=new WeakMap,Ht=new WeakMap,Wt="vertical";class Bt extends Tt{constructor(){super(...arguments),this.$onSelectionChange=null,this.$onSourceImageLoad=null,this.$onSourceImageTransform=null,this.$scale=1,this.$style=":host{display:block;height:100%;overflow:hidden;position:relative;width:100%}",this.resize=Wt,this.selection="",this.slottable=!1}set $image(e){Ft.set(this,e)}get $image(){return Ft.get(this)}set $sourceImage(e){Ht.set(this,e)}get $sourceImage(){return Ht.get(this)}set $canvas(e){$t.set(this,e)}get $canvas(){return $t.get(this)}set $selection(e){Ut.set(this,e)}get $selection(){return Ut.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let e=null;if(e=this.selection?this.ownerDocument.querySelector(this.selection):this.closest(this.$getTagNameOf(Se)),at(e)){this.$selection=e,this.$onSelectionChange=this.$handleSelectionChange.bind(this),dt(e,Ye,this.$onSelectionChange);const t=e.closest(this.$getTagNameOf(be));if(t){this.$canvas=t;const e=t.querySelector(this.$getTagNameOf(ke));e&&(this.$sourceImage=e,this.$image=e.cloneNode(!0),this.$getShadowRoot().appendChild(this.$image),this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this),this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this),dt(e.$image,Be,this.$onSourceImageLoad),dt(e,Ge,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:e,$sourceImage:t}=this;e&&this.$onSelectionChange&&(ct(e,Ye,this.$onSelectionChange),this.$onSelectionChange=null),t&&this.$onSourceImageLoad&&(ct(t.$image,Be,this.$onSourceImageLoad),this.$onSourceImageLoad=null),t&&this.$onSourceImageTransform&&(ct(t,Ge,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(e){this.$render(e.detail)}$handleSourceImageLoad(){const{$image:e,$sourceImage:t}=this,n=e.getAttribute("src"),r=t.getAttribute("src");r&&r!==n&&(e.setAttribute("src",r),e.$ready(()=>{setTimeout(()=>{this.$render()},50)}))}$handleSourceImageTransform(e){this.$render(void 0,e.detail.matrix)}$render(e,t){const{$canvas:n,$selection:r}=this;e||r.hidden||(e=r),(!e||0===e.x&&0===e.y&&0===e.width&&0===e.height)&&(e={x:0,y:0,width:n.offsetWidth,height:n.offsetHeight});const{x:a,y:o,width:i,height:l}=e,s={},{clientWidth:u,clientHeight:c}=this;let d=u,f=c,p=NaN;switch(this.resize){case"both":p=1,d=i,f=l,s.width=i,s.height=l;break;case"horizontal":p=l>0?c/l:0,d=i*p,s.width=d;break;case Wt:p=i>0?u/i:0,f=l*p,s.height=f;break;default:u>0?p=i>0?u/i:0:c>0&&(p=l>0?c/l:0)}this.$scale=p,this.$setStyles(s),this.$sourceImage&&this.$transformImageByOffset(null!=t?t:this.$sourceImage.$getTransform(),-a,-o)}$transformImageByOffset(e,t,n){const{$image:r,$scale:a,$sourceImage:o}=this;if(o&&r&&a>=0){const[o,i,l,s,u,c]=e,d=(t*s-l*n)/(o*s-l*i),f=(n*o-i*t)/(o*s-l*i),p=o*d+l*f+u,h=i*d+s*f+c;r.$ready(e=>{this.$setStyles.call(r,{width:e.naturalWidth*a,height:e.naturalHeight*a})}),r.$setTransform(o,i,l,s,p*a,h*a)}}}function Vt(e){if(e.message&&!e.message.includes("API Error:"))return e;let t=e.message||"Unknown API error";return t.startsWith("API Error: ")&&(t=t.substring(11)),new Error(t)}Bt.$name=Ce,Bt.$version="2.0.0",
47
+ */var O,A,L,I=(z||(z=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),g.exports=function(){if(T)return b;T=1;var e=k(),t=u(),n=P();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function i(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(r(188))}function s(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=s(e)))return t;e=e.sibling}return null}var c=Object.assign,d=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function j(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var O=Symbol.for("react.client.reference");function A(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===O?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case g:return"Profiler";case m:return"StrictMode";case S:return"Suspense";case C:return"SuspenseList";case N:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case p:return"Portal";case w:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:A(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return A(e(t))}catch(e){}}return null}var L=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M={pending:!1,data:null,method:null,action:null},$=[],F=-1;function U(e){return{current:e}}function H(e){0>F||(e.current=$[F],$[F]=null,F--)}function W(e,t){F++,$[F]=e.current,e.current=t}var B=U(null),V=U(null),q=U(null),K=U(null);function Q(e,t){switch(W(q,t),W(V,e),W(B,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=ld(t=id(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(B),W(B,e)}function Y(){H(B),H(V),H(q)}function G(e){null!==e.memoizedState&&W(K,e);var t=B.current,n=ld(t,e.type);t!==n&&(W(V,e),W(B,n))}function X(e){V.current===e&&(H(B),H(V)),K.current===e&&(H(K),Gd._currentValue=M)}var J=Object.prototype.hasOwnProperty,Z=e.unstable_scheduleCallback,ee=e.unstable_cancelCallback,te=e.unstable_shouldYield,ne=e.unstable_requestPaint,re=e.unstable_now,ae=e.unstable_getCurrentPriorityLevel,oe=e.unstable_ImmediatePriority,ie=e.unstable_UserBlockingPriority,le=e.unstable_NormalPriority,se=e.unstable_LowPriority,ce=e.unstable_IdlePriority,ue=e.log,de=e.unstable_setDisableYieldValue,fe=null,pe=null;function he(e){if("function"==typeof ue&&de(e),pe&&"function"==typeof pe.setStrictMode)try{pe.setStrictMode(fe,e)}catch(e){}}var me=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ge(e)/be|0)|0},ge=Math.log,be=Math.LN2,ye=256,ve=4194304;function we(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ke(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~o)?a=we(r):0!==(i&=l)?a=we(i):n||0!==(n=l&~e)&&(a=we(n)):0!==(l=r&~o)?a=we(l):0!==i?a=we(i):n||0!==(n=r&~e)&&(a=we(n)),0===a?0:0!==t&&t!==a&&0===(t&o)&&((o=a&-a)>=(n=t&-t)||32===o&&4194048&n)?t:a}function xe(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Se(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ce(){var e=ye;return!(4194048&(ye<<=1))&&(ye=256),e}function Ee(){var e=ve;return!(62914560&(ve<<=1))&&(ve=4194304),e}function _e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Te(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ne(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-me(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Pe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-me(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function Re(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ze(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function je(){var e=D.p;return 0!==e?e:void 0===(e=window.event)?32:ff(e.type)}var Oe=Math.random().toString(36).slice(2),Ae="__reactFiber$"+Oe,Le="__reactProps$"+Oe,Ie="__reactContainer$"+Oe,De="__reactEvents$"+Oe,Me="__reactListeners$"+Oe,$e="__reactHandles$"+Oe,Fe="__reactResources$"+Oe,Ue="__reactMarker$"+Oe;function He(e){delete e[Ae],delete e[Le],delete e[De],delete e[Me],delete e[$e]}function We(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ie]||n[Ae]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kd(e);null!==e;){if(n=e[Ae])return n;e=kd(e)}return t}n=(e=n).parentNode}return null}function Be(e){if(e=e[Ae]||e[Ie]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Ve(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function qe(e){var t=e[Fe];return t||(t=e[Fe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[Ue]=!0}var Qe=new Set,Ye={};function Ge(e,t){Xe(e,t),Xe(e+"Capture",t)}function Xe(e,t){for(Ye[e]=t,e=0;e<t.length;e++)Qe.add(t[e])}var Je,Ze,et=RegExp("^[: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][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),tt={},nt={};function rt(e,t,n){if(a=t,J.call(nt,a)||!J.call(tt,a)&&(et.test(a)?nt[a]=!0:(tt[a]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var a}function at(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ot(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function it(e){if(void 0===Je)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Je=t&&t[1]||"",Ze=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Je+e+Ze}var lt=!1;function st(e,t){if(!e||lt)return"";lt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],l=o[1];if(i&&l){var s=i.split("\n"),c=l.split("\n");for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===c.length)for(r=s.length-1,a=c.length-1;1<=r&&0<=a&&s[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||s[r]!==c[a]){var u="\n"+s[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{lt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?it(n):""}function ct(e){switch(e.tag){case 26:case 27:case 5:return it(e.type);case 16:return it("Lazy");case 13:return it("Suspense");case 19:return it("SuspenseList");case 0:case 15:return st(e.type,!1);case 11:return st(e.type.render,!1);case 1:return st(e.type,!0);case 31:return it("Activity");default:return""}}function ut(e){try{var t="";do{t+=ct(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){e._valueTracker||(e._valueTracker=function(e){var t=ft(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function bt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,r,a,o,i,l){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?wt(e,i,dt(t)):null!=n?wt(e,i,dt(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+dt(l):e.removeAttribute("name")}function vt(e,t,n,r,a,o,i,l){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i)}function wt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function xt(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,a){if(null==t){if(null!=a){if(null!=n)throw Error(r(92));if(L(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(a=e.textContent)===n&&""!==a&&null!==a&&(e.value=a)}function Ct(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _t(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Tt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var a in n)!n.hasOwnProperty(a)||null!=t&&t.hasOwnProperty(a)||(0===a.indexOf("--")?e.setProperty(a,""):"float"===a?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&_t(e,o,a)}else for(var i in t)t.hasOwnProperty(i)&&_t(e,i,t[i])}function Nt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Rt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function zt(e){return Rt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var jt=null;function Ot(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var At=null,Lt=null;function It(e){var t=Be(e);if(t&&(e=t.stateNode)){var n=e[Le]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[Le]||null;if(!o)throw Error(r(90));yt(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(a=n[t]).form===e.form&&ht(a)}break e;case"textarea":xt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var Dt=!1;function Mt(e,t,n){if(Dt)return e(t,n);Dt=!0;try{return e(t)}finally{if(Dt=!1,(null!==At||null!==Lt)&&(Wc(),At&&(t=At,e=Lt,Lt=At=null,It(t),e)))for(t=0;t<e.length;t++)It(e[t])}}function $t(e,t){var n=e.stateNode;if(null===n)return null;var a=n[Le]||null;if(null===a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Ft=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ut=!1;if(Ft)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Ut=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(e){Ut=!1}var Wt=null,Bt=null,Vt=null;function qt(){if(Vt)return Vt;var e,t,n=Bt,r=n.length,a="value"in Wt?Wt.value:Wt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Vt=a.slice(e,1<t?1-t:void 0)}function Kt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Qt(){return!0}function Yt(){return!1}function Gt(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Qt:Yt,this.isPropagationStopped=Yt,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Qt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Qt)},persist:function(){},isPersistent:Qt}),t}var Xt,Jt,Zt,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Gt(en),nn=c({},en,{view:0,detail:0}),rn=Gt(nn),an=c({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zt&&(Zt&&"mousemove"===e.type?(Xt=e.screenX-Zt.screenX,Jt=e.screenY-Zt.screenY):Jt=Xt=0,Zt=e),Xt)},movementY:function(e){return"movementY"in e?e.movementY:Jt}}),on=Gt(an),ln=Gt(c({},an,{dataTransfer:0})),sn=Gt(c({},nn,{relatedTarget:0})),cn=Gt(c({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),un=Gt(c({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),dn=Gt(c({},en,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function gn(){return mn}var bn=Gt(c({},nn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Kt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Kt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Kt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yn=Gt(c({},an,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vn=Gt(c({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),wn=Gt(c({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Gt(c({},an,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),xn=Gt(c({},en,{newState:0,oldState:0})),Sn=[9,13,27,32],Cn=Ft&&"CompositionEvent"in window,En=null;Ft&&"documentMode"in document&&(En=document.documentMode);var _n=Ft&&"TextEvent"in window&&!En,Tn=Ft&&(!Cn||En&&8<En&&11>=En),Nn=String.fromCharCode(32),Pn=!1;function Rn(e,t){switch(e){case"keyup":return-1!==Sn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var jn=!1,On={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function An(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!On[e.type]:"textarea"===t}function Ln(e,t,n,r){At?Lt?Lt.push(r):Lt=[r]:At=r,0<(t=qu(t,"onChange")).length&&(n=new tn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var In=null,Dn=null;function Mn(e){Mu(e,0)}function $n(e){if(ht(Ve(e)))return e}function Fn(e,t){if("change"===e)return t}var Un=!1;if(Ft){var Hn;if(Ft){var Wn="oninput"in document;if(!Wn){var Bn=document.createElement("div");Bn.setAttribute("oninput","return;"),Wn="function"==typeof Bn.oninput}Hn=Wn}else Hn=!1;Un=Hn&&(!document.documentMode||9<document.documentMode)}function Vn(){In&&(In.detachEvent("onpropertychange",qn),Dn=In=null)}function qn(e){if("value"===e.propertyName&&$n(Dn)){var t=[];Ln(t,Dn,e,Ot(e)),Mt(Mn,t)}}function Kn(e,t,n){"focusin"===e?(Vn(),Dn=n,(In=t).attachEvent("onpropertychange",qn)):"focusout"===e&&Vn()}function Qn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Dn)}function Yn(e,t){if("click"===e)return $n(t)}function Gn(e,t){if("input"===e||"change"===e)return $n(t)}var Xn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Jn(e,t){if(Xn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!J.call(t,a)||!Xn(e[a],t[a]))return!1}return!0}function Zn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var n,r=Zn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Zn(r)}}function tr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ar=Ft&&"documentMode"in document&&11>=document.documentMode,or=null,ir=null,lr=null,sr=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==or||or!==mt(r)||(r="selectionStart"in(r=or)&&rr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Jn(lr,r)||(lr=r,0<(r=qu(ir,"onSelect")).length&&(t=new tn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=or)))}function ur(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:ur("Animation","AnimationEnd"),animationiteration:ur("Animation","AnimationIteration"),animationstart:ur("Animation","AnimationStart"),transitionrun:ur("Transition","TransitionRun"),transitionstart:ur("Transition","TransitionStart"),transitioncancel:ur("Transition","TransitionCancel"),transitionend:ur("Transition","TransitionEnd")},fr={},pr={};function hr(e){if(fr[e])return fr[e];if(!dr[e])return e;var t,n=dr[e];for(t in n)if(n.hasOwnProperty(t)&&t in pr)return fr[e]=n[t];return e}Ft&&(pr=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);var mr=hr("animationend"),gr=hr("animationiteration"),br=hr("animationstart"),yr=hr("transitionrun"),vr=hr("transitionstart"),wr=hr("transitioncancel"),kr=hr("transitionend"),xr=new Map,Sr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(e,t){xr.set(e,t),Ge(t,[e])}Sr.push("scrollEnd");var Er=new WeakMap;function _r(e,t){if("object"==typeof e&&null!==e){var n=Er.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ut(t)},Er.set(e,t),t)}return{value:e,source:t,stack:ut(t)}}var Tr=[],Nr=0,Pr=0;function Rr(){for(var e=Nr,t=Pr=Nr=0;t<e;){var n=Tr[t];Tr[t++]=null;var r=Tr[t];Tr[t++]=null;var a=Tr[t];Tr[t++]=null;var o=Tr[t];if(Tr[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==o&&Ar(n,a,o)}}function zr(e,t,n,r){Tr[Nr++]=e,Tr[Nr++]=t,Tr[Nr++]=n,Tr[Nr++]=r,Pr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function jr(e,t,n,r){return zr(e,t,n,r),Lr(e)}function Or(e,t){return zr(e,null,null,t),Lr(e)}function Ar(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(a=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,a&&null!==t&&(a=31-me(n),null===(r=(e=o.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),o):null}function Lr(e){if(50<Ac)throw Ac=0,Lc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Ir={};function Dr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mr(e,t,n,r){return new Dr(e,t,n,r)}function $r(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=Mr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ur(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,n,a,o,i){var l=0;if(a=e,"function"==typeof e)$r(e)&&(l=1);else if("string"==typeof e)l=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,B.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case N:return(e=Mr(31,n,t,o)).elementType=N,e.lanes=i,e;case h:return Wr(n.children,o,i,t);case m:l=8,o|=24;break;case g:return(e=Mr(12,n,t,2|o)).elementType=g,e.lanes=i,e;case S:return(e=Mr(13,n,t,o)).elementType=S,e.lanes=i,e;case C:return(e=Mr(19,n,t,o)).elementType=C,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case y:case w:l=10;break e;case v:l=9;break e;case x:l=11;break e;case E:l=14;break e;case _:l=16,a=null;break e}l=29,n=Error(r(130,null===e?"null":typeof e,"")),a=null}return(t=Mr(l,n,t,o)).elementType=e,t.type=a,t.lanes=i,t}function Wr(e,t,n,r){return(e=Mr(7,e,r,t)).lanes=n,e}function Br(e,t,n){return(e=Mr(6,e,null,t)).lanes=n,e}function Vr(e,t,n){return(t=Mr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qr=[],Kr=0,Qr=null,Yr=0,Gr=[],Xr=0,Jr=null,Zr=1,ea="";function ta(e,t){qr[Kr++]=Yr,qr[Kr++]=Qr,Qr=e,Yr=t}function na(e,t,n){Gr[Xr++]=Zr,Gr[Xr++]=ea,Gr[Xr++]=Jr,Jr=e;var r=Zr;e=ea;var a=32-me(r)-1;r&=~(1<<a),n+=1;var o=32-me(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Zr=1<<32-me(t)+a|n<<a|r,ea=o+e}else Zr=1<<o|n<<a|r,ea=e}function ra(e){null!==e.return&&(ta(e,1),na(e,1,0))}function aa(e){for(;e===Qr;)Qr=qr[--Kr],qr[Kr]=null,Yr=qr[--Kr],qr[Kr]=null;for(;e===Jr;)Jr=Gr[--Xr],Gr[Xr]=null,ea=Gr[--Xr],Gr[Xr]=null,Zr=Gr[--Xr],Gr[Xr]=null}var oa=null,ia=null,la=!1,sa=null,ca=!1,ua=Error(r(519));function da(e){throw ba(_r(Error(r(418,"")),e)),ua}function fa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ae]=e,t[Le]=r,n){case"dialog":$u("cancel",t),$u("close",t);break;case"iframe":case"object":case"embed":$u("load",t);break;case"video":case"audio":for(n=0;n<Iu.length;n++)$u(Iu[n],t);break;case"source":$u("error",t);break;case"img":case"image":case"link":$u("error",t),$u("load",t);break;case"details":$u("toggle",t);break;case"input":$u("invalid",t),vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),pt(t);break;case"select":$u("invalid",t);break;case"textarea":$u("invalid",t),St(t,r.value,r.defaultValue,r.children),pt(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Ju(t.textContent,n)?(null!=r.popover&&($u("beforetoggle",t),$u("toggle",t)),null!=r.onScroll&&$u("scroll",t),null!=r.onScrollEnd&&$u("scrollend",t),null!=r.onClick&&(t.onclick=Zu),t=!0):t=!1,t||da(e)}function pa(e){for(oa=e.return;oa;)switch(oa.tag){case 5:case 13:return void(ca=!1);case 27:case 3:return void(ca=!0);default:oa=oa.return}}function ha(e){if(e!==oa)return!1;if(!la)return pa(e),la=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||sd(e.type,e.memoizedProps)),t=!t),t&&ia&&da(e),pa(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){ia=vd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}ia=null}}else 27===n?(n=ia,md(e.type)?(e=wd,wd=null,ia=e):ia=n):ia=oa?vd(e.stateNode.nextSibling):null;return!0}function ma(){ia=oa=null,la=!1}function ga(){var e=sa;return null!==e&&(null===kc?kc=e:kc.push.apply(kc,e),sa=null),e}function ba(e){null===sa?sa=[e]:sa.push(e)}var ya=U(null),va=null,wa=null;function ka(e,t,n){W(ya,t._currentValue),t._currentValue=n}function xa(e){e._currentValue=ya.current,H(ya)}function Sa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t,n,a){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var l=o.child;i=i.firstContext;e:for(;null!==i;){var s=i;i=o;for(var c=0;c<t.length;c++)if(s.context===t[c]){i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Sa(i.return,n,e),a||(l=null);break e}i=s.next}}else if(18===o.tag){if(null===(l=o.return))throw Error(r(341));l.lanes|=n,null!==(i=l.alternate)&&(i.lanes|=n),Sa(l,n,e),l=null}else l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===e){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}}function Ea(e,t,n,a){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(524288&o.flags)i=!0;else if(262144&o.flags)break;if(10===o.tag){var l=o.alternate;if(null===l)throw Error(r(387));if(null!==(l=l.memoizedProps)){var s=o.type;Xn(o.pendingProps.value,l.value)||(null!==e?e.push(s):e=[s])}}else if(o===K.current){if(null===(l=o.alternate))throw Error(r(387));l.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(Gd):e=[Gd])}o=o.return}null!==e&&Ca(t,e,n,a),t.flags|=262144}function _a(e){for(e=e.firstContext;null!==e;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){va=e,wa=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Na(e){return Ra(va,e)}function Pa(e,t){return null===va&&Ta(e),Ra(e,t)}function Ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===wa){if(null===e)throw Error(r(308));wa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wa=wa.next=t;return n}var za="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ja=e.unstable_scheduleCallback,Oa=e.unstable_NormalPriority,Aa={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function La(){return{controller:new za,data:new Map,refCount:0}}function Ia(e){e.refCount--,0===e.refCount&&ja(Oa,function(){e.controller.abort()})}var Da=null,Ma=0,$a=0,Fa=null;function Ua(){if(0===--Ma&&null!==Da){null!==Fa&&(Fa.status="fulfilled");var e=Da;Da=null,$a=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ha=I.S;I.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Da){var n=Da=[];Ma=0,$a=zu(),Fa={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ma++,t.then(Ua,Ua)}(0,t),null!==Ha&&Ha(e,t)};var Wa=U(null);function Ba(){var e=Wa.current;return null!==e?e:oc.pooledCache}function Va(e,t){W(Wa,null===t?Wa.current:t.pool)}function qa(){var e=Ba();return null===e?null:{parent:Aa._currentValue,pool:e}}var Ka=Error(r(460)),Qa=Error(r(474)),Ya=Error(r(542)),Ga={then:function(){}};function Xa(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Ja(){}function Za(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Ja,Ja),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw no(e=t.reason),e;default:if("string"==typeof t.status)t.then(Ja,Ja);else{if(null!==(e=oc)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw no(e=t.reason),e}throw eo=t,Ka}}var eo=null;function to(){if(null===eo)throw Error(r(459));var e=eo;return eo=null,e}function no(e){if(e===Ka||e===Ya)throw Error(r(483))}var ro=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function io(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function lo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ac){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Lr(e),Ar(e,null,n),t}return zr(e,r,t,n),Lr(e)}function so(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Pe(e,n)}}function co(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var uo=!1;function fo(){if(uo&&null!==Fa)throw Fa}function po(e,t,n,r){uo=!1;var a=e.updateQueue;ro=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?o=u:i.next=u,i=s;var d=e.alternate;null!==d&&(l=(d=d.updateQueue).lastBaseUpdate)!==i&&(null===l?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=s)}if(null!==o){var f=a.baseState;for(i=0,d=u=s=null,l=o;;){var p=-536870913&l.lane,h=p!==l.lane;if(h?(lc&p)===p:(r&p)===p){0!==p&&p===$a&&(uo=!0),null!==d&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,g=l;p=t;var b=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){f=m.call(b,f,p);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(b,f,p):m))break e;f=c({},f,p);break e;case 2:ro=!0}}null!==(p=l.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=a.callbacks)?a.callbacks=[p]:h.push(p))}else h={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===d?(u=d=h,s=f):d=d.next=h,i|=p;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(h=l).next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}null===d&&(s=f),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=d,null===o&&(a.shared.lanes=0),mc|=i,e.lanes=i,e.memoizedState=f}}function ho(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function mo(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)ho(n[e],t)}var go=U(null),bo=U(0);function yo(e,t){W(bo,e=pc),W(go,t),pc=e|t.baseLanes}function vo(){W(bo,pc),W(go,go.current)}function wo(){pc=bo.current,H(go),H(bo)}var ko=0,xo=null,So=null,Co=null,Eo=!1,_o=!1,To=!1,No=0,Po=0,Ro=null,zo=0;function jo(){throw Error(r(321))}function Oo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xn(e[n],t[n]))return!1;return!0}function Ao(e,t,n,r,a,o){return ko=o,xo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=null===e||null===e.memoizedState?Qi:Yi,To=!1,o=n(r,a),To=!1,_o&&(o=Io(t,n,r,a)),Lo(e),o}function Lo(e){I.H=Ki;var t=null!==So&&null!==So.next;if(ko=0,Co=So=xo=null,Eo=!1,Po=0,Ro=null,t)throw Error(r(300));null===e||Pl||null!==(e=e.dependencies)&&_a(e)&&(Pl=!0)}function Io(e,t,n,a){xo=e;var o=0;do{if(_o&&(Ro=null),Po=0,_o=!1,25<=o)throw Error(r(301));if(o+=1,Co=So=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}I.H=Gi,i=t(n,a)}while(_o);return i}function Do(){var e=I.H,t=e.useState()[0];return t="function"==typeof t.then?Wo(t):t,e=e.useState()[0],(null!==So?So.memoizedState:null)!==e&&(xo.flags|=1024),t}function Mo(){var e=0!==No;return No=0,e}function $o(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fo(e){if(Eo){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Eo=!1}ko=0,Co=So=xo=null,_o=!1,Po=No=0,Ro=null}function Uo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Co?xo.memoizedState=Co=e:Co=Co.next=e,Co}function Ho(){if(null===So){var e=xo.alternate;e=null!==e?e.memoizedState:null}else e=So.next;var t=null===Co?xo.memoizedState:Co.next;if(null!==t)Co=t,So=e;else{if(null===e){if(null===xo.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(So=e).memoizedState,baseState:So.baseState,baseQueue:So.baseQueue,queue:So.queue,next:null},null===Co?xo.memoizedState=Co=e:Co=Co.next=e}return Co}function Wo(e){var t=Po;return Po+=1,null===Ro&&(Ro=[]),e=Za(Ro,e,t),t=xo,null===(null===Co?t.memoizedState:Co.next)&&(t=t.alternate,I.H=null===t||null===t.memoizedState?Qi:Yi),e}function Bo(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Wo(e);if(e.$$typeof===w)return Na(e)}throw Error(r(438,String(e)))}function Vo(e){var t=null,n=xo.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=xo.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},xo.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=R;return t.index++,n}function qo(e,t){return"function"==typeof t?t(e):t}function Ko(e){return Qo(Ho(),So,e)}function Qo(e,t,n){var a=e.queue;if(null===a)throw Error(r(311));a.lastRenderedReducer=n;var o=e.baseQueue,i=a.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}t.baseQueue=o=i,a.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var s=l=null,c=null,u=t=o.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(lc&f)===f:(ko&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===$a&&(d=!0);else{if((ko&p)===p){u=u.next,p===$a&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=f,l=i):c=c.next=f,xo.lanes|=p,mc|=p}f=u.action,To&&n(i,f),i=u.hasEagerState?u.eagerState:n(i,f)}else p={lane:f,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=p,l=i):c=c.next=p,xo.lanes|=f,mc|=f;u=u.next}while(null!==u&&u!==t);if(null===c?l=i:c.next=s,!Xn(i,e.memoizedState)&&(Pl=!0,d&&null!==(n=Fa)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=c,a.lastRenderedState=i}return null===o&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Yo(e){var t=Ho(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);Xn(i,t.memoizedState)||(Pl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function Go(e,t,n){var a=xo,o=Ho(),i=la;if(i){if(void 0===n)throw Error(r(407));n=n()}else n=t();var l=!Xn((So||o).memoizedState,n);if(l&&(o.memoizedState=n,Pl=!0),o=o.queue,vi(2048,8,Zo.bind(null,a,o,e),[e]),o.getSnapshot!==t||l||null!==Co&&1&Co.memoizedState.tag){if(a.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Jo.bind(null,a,o,n,t),null),null===oc)throw Error(r(349));i||124&ko||Xo(a,t,n)}return n}function Xo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=xo.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},xo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Jo(e,t,n,r){t.value=n,t.getSnapshot=r,ei(t)&&ti(e)}function Zo(e,t,n){return n(function(){ei(t)&&ti(e)})}function ei(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xn(e,n)}catch(e){return!0}}function ti(e){var t=Or(e,2);null!==t&&Mc(t,e,2)}function ni(e){var t=Uo();if("function"==typeof e){var n=e;if(e=n(),To){he(!0);try{n()}finally{he(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},t}function ri(e,t,n,r){return e.baseState=n,Qo(e,So,"function"==typeof r?r:qo)}function ai(e,t,n,a,o){if(Bi(e))throw Error(r(485));if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==I.T?n(!0):i.isTransition=!1,a(i),null===(n=t.pending)?(i.next=t.pending=i,oi(t,i)):(i.next=n.next,t.pending=n.next=i)}}function oi(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=I.T,i={};I.T=i;try{var l=n(a,r),s=I.S;null!==s&&s(i,l),ii(e,t,l)}catch(n){si(e,t,n)}finally{I.T=o}}else try{ii(e,t,o=n(a,r))}catch(n){si(e,t,n)}}function ii(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){li(e,t,n)},function(n){return si(e,t,n)}):li(e,t,n)}function li(e,t,n){t.status="fulfilled",t.value=n,ci(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,oi(e,n)))}function si(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ci(t),t=t.next}while(t!==r)}e.action=null}function ci(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ui(e,t){return t}function di(e,t){if(la){var n=oc.formState;if(null!==n){e:{var r=xo;if(la){if(ia){t:{for(var a=ia,o=ca;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=vd(a.nextSibling))){a=null;break t}}a="F!"===(o=a.data)||"F"===o?a:null}if(a){ia=vd(a.nextSibling),r="F!"===a.data;break e}}da(r)}r=!1}r&&(t=n[0])}}return(n=Uo()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ui,lastRenderedState:t},n.queue=r,n=Ui.bind(null,xo,r),r.dispatch=n,r=ni(!1),o=Wi.bind(null,xo,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=Uo()).queue=a,n=ai.bind(null,xo,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function fi(e){return pi(Ho(),So,e)}function pi(e,t,n){if(t=Qo(e,t,ui)[0],e=Ko(qo)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Wo(t)}catch(e){if(e===Ka)throw Ya;throw e}else r=t;var a=(t=Ho()).queue,o=a.dispatch;return n!==t.memoizedState&&(xo.flags|=2048,gi(9,{destroy:void 0,resource:void 0},hi.bind(null,a,n),null)),[r,o,e]}function hi(e,t){e.action=t}function mi(e){var t=Ho(),n=So;if(null!==n)return pi(t,n,e);Ho(),t=t.memoizedState;var r=(n=Ho()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function gi(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=xo.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},xo.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function bi(){return Ho().memoizedState}function yi(e,t,n,r){var a=Uo();r=void 0===r?null:r,xo.flags|=e,a.memoizedState=gi(1|t,{destroy:void 0,resource:void 0},n,r)}function vi(e,t,n,r){var a=Ho();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==So&&null!==r&&Oo(r,So.memoizedState.deps)?a.memoizedState=gi(t,o,n,r):(xo.flags|=e,a.memoizedState=gi(1|t,o,n,r))}function wi(e,t){yi(8390656,8,e,t)}function ki(e,t){vi(2048,8,e,t)}function xi(e,t){return vi(4,2,e,t)}function Si(e,t){return vi(4,4,e,t)}function Ci(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ei(e,t,n){n=null!=n?n.concat([e]):null,vi(4,4,Ci.bind(null,t,e),n)}function _i(){}function Ti(e,t){var n=Ho();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Oo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ni(e,t){var n=Ho();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Oo(t,r[1]))return r[0];if(r=e(),To){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r}function Pi(e,t,n){return void 0===n||1073741824&ko?e.memoizedState=t:(e.memoizedState=n,e=Dc(),xo.lanes|=e,mc|=e,n)}function Ri(e,t,n,r){return Xn(n,t)?n:null!==go.current?(e=Pi(e,n,r),Xn(e,t)||(Pl=!0),e):42&ko?(e=Dc(),xo.lanes|=e,mc|=e,t):(Pl=!0,e.memoizedState=n)}function zi(e,t,n,r,a){var o=D.p;D.p=0!==o&&8>o?o:8;var i,l,s,c=I.T,u={};I.T=u,Wi(e,!1,t,n);try{var d=a(),f=I.S;null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?Hi(e,t,(i=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){s.status="fulfilled",s.value=i;for(var e=0;e<l.length;e++)(0,l[e])(i)},function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),s),Ic()):Hi(e,t,r,Ic())}catch(n){Hi(e,t,{then:function(){},status:"rejected",reason:n},Ic())}finally{D.p=o,I.T=c}}function ji(){}function Oi(e,t,n,a){if(5!==e.tag)throw Error(r(476));var o=Ai(e).queue;zi(e,o,t,M,null===n?ji:function(){return Li(e),n(a)})}function Ai(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:M,baseState:M,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:M},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Li(e){Hi(e,Ai(e).next.queue,{},Ic())}function Ii(){return Na(Gd)}function Di(){return Ho().memoizedState}function Mi(){return Ho().memoizedState}function $i(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Ic(),r=lo(t,e=io(n),n);return null!==r&&(Mc(r,t,n),so(r,t,n)),t={cache:La()},void(e.payload=t)}t=t.return}}function Fi(e,t,n){var r=Ic();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Bi(e)?Vi(t,n):null!==(n=jr(e,t,n,r))&&(Mc(n,e,r),qi(n,t,r))}function Ui(e,t,n){Hi(e,t,n,Ic())}function Hi(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bi(e))Vi(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=o(i,n);if(a.hasEagerState=!0,a.eagerState=l,Xn(l,i))return zr(e,t,a,0),null===oc&&Rr(),!1}catch(e){}if(null!==(n=jr(e,t,a,r)))return Mc(n,e,r),qi(n,t,r),!0}return!1}function Wi(e,t,n,a){if(a={lane:2,revertLane:zu(),action:a,hasEagerState:!1,eagerState:null,next:null},Bi(e)){if(t)throw Error(r(479))}else null!==(t=jr(e,n,a,2))&&Mc(t,e,2)}function Bi(e){var t=e.alternate;return e===xo||null!==t&&t===xo}function Vi(e,t){_o=Eo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qi(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Pe(e,n)}}var Ki={readContext:Na,use:Bo,useCallback:jo,useContext:jo,useEffect:jo,useImperativeHandle:jo,useLayoutEffect:jo,useInsertionEffect:jo,useMemo:jo,useReducer:jo,useRef:jo,useState:jo,useDebugValue:jo,useDeferredValue:jo,useTransition:jo,useSyncExternalStore:jo,useId:jo,useHostTransitionStatus:jo,useFormState:jo,useActionState:jo,useOptimistic:jo,useMemoCache:jo,useCacheRefresh:jo},Qi={readContext:Na,use:Bo,useCallback:function(e,t){return Uo().memoizedState=[e,void 0===t?null:t],e},useContext:Na,useEffect:wi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,yi(4194308,4,Ci.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){yi(4,2,e,t)},useMemo:function(e,t){var n=Uo();t=void 0===t?null:t;var r=e();if(To){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Uo();if(void 0!==n){var a=n(t);if(To){he(!0);try{n(t)}finally{he(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=Fi.bind(null,xo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Uo().memoizedState=e},useState:function(e){var t=(e=ni(e)).queue,n=Ui.bind(null,xo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_i,useDeferredValue:function(e,t){return Pi(Uo(),e,t)},useTransition:function(){var e=ni(!1);return e=zi.bind(null,xo,e.queue,!0,!1),Uo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=xo,o=Uo();if(la){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===oc)throw Error(r(349));124&lc||Xo(a,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,wi(Zo.bind(null,a,i,e),[e]),a.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Jo.bind(null,a,i,n,t),null),n},useId:function(){var e=Uo(),t=oc.identifierPrefix;if(la){var n=ea;t="«"+t+"R"+(n=(Zr&~(1<<32-me(Zr)-1)).toString(32)+n),0<(n=No++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=zo++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Ii,useFormState:di,useActionState:di,useOptimistic:function(e){var t=Uo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Wi.bind(null,xo,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vo,useCacheRefresh:function(){return Uo().memoizedState=$i.bind(null,xo)}},Yi={readContext:Na,use:Bo,useCallback:Ti,useContext:Na,useEffect:ki,useImperativeHandle:Ei,useInsertionEffect:xi,useLayoutEffect:Si,useMemo:Ni,useReducer:Ko,useRef:bi,useState:function(){return Ko(qo)},useDebugValue:_i,useDeferredValue:function(e,t){return Ri(Ho(),So.memoizedState,e,t)},useTransition:function(){var e=Ko(qo)[0],t=Ho().memoizedState;return["boolean"==typeof e?e:Wo(e),t]},useSyncExternalStore:Go,useId:Di,useHostTransitionStatus:Ii,useFormState:fi,useActionState:fi,useOptimistic:function(e,t){return ri(Ho(),0,e,t)},useMemoCache:Vo,useCacheRefresh:Mi},Gi={readContext:Na,use:Bo,useCallback:Ti,useContext:Na,useEffect:ki,useImperativeHandle:Ei,useInsertionEffect:xi,useLayoutEffect:Si,useMemo:Ni,useReducer:Yo,useRef:bi,useState:function(){return Yo(qo)},useDebugValue:_i,useDeferredValue:function(e,t){var n=Ho();return null===So?Pi(n,e,t):Ri(n,So.memoizedState,e,t)},useTransition:function(){var e=Yo(qo)[0],t=Ho().memoizedState;return["boolean"==typeof e?e:Wo(e),t]},useSyncExternalStore:Go,useId:Di,useHostTransitionStatus:Ii,useFormState:mi,useActionState:mi,useOptimistic:function(e,t){var n=Ho();return null!==So?ri(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vo,useCacheRefresh:Mi},Xi=null,Ji=0;function Zi(e){var t=Ji;return Ji+=1,null===Xi&&(Xi=[]),Za(Xi,e,t)}function el(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function tl(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nl(e){return(0,e._init)(e._payload)}function rl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Br(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===h?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===_&&nl(a)===t.type)?(el(t=o(t,n.props),n),t.return=e,t):(el(t=Hr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Wr(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function m(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Br(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return el(n=Hr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case p:return(t=Vr(t,e.mode,n)).return=e,t;case _:return m(e,t=(0,t._init)(t._payload),n)}if(L(t)||j(t))return(t=Wr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return m(e,Zi(t),n);if(t.$$typeof===w)return m(e,Pa(e,t),n);tl(e,t)}return null}function g(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===a?c(e,t,n,r):null;case p:return n.key===a?u(e,t,n,r):null;case _:return g(e,t,n=(a=n._init)(n._payload),r)}if(L(n)||j(n))return null!==a?null:d(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,Zi(n),r);if(n.$$typeof===w)return g(e,t,Pa(e,n),r);tl(e,n)}return null}function b(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case p:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case _:return b(e,t,n,r=(0,r._init)(r._payload),a)}if(L(r)||j(r))return d(t,e=e.get(n)||null,r,a,null);if("function"==typeof r.then)return b(e,t,n,Zi(r),a);if(r.$$typeof===w)return b(e,t,n,Pa(t,r),a);tl(t,r)}return null}function y(s,c,u,d){if("object"==typeof u&&null!==u&&u.type===h&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case f:e:{for(var v=u.key;null!==c;){if(c.key===v){if((v=u.type)===h){if(7===c.tag){n(s,c.sibling),(d=o(c,u.props.children)).return=s,s=d;break e}}else if(c.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===_&&nl(v)===c.type){n(s,c.sibling),el(d=o(c,u.props),u),d.return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}u.type===h?((d=Wr(u.props.children,s.mode,d,u.key)).return=s,s=d):(el(d=Hr(u.type,u.key,u.props,null,s.mode,d),u),d.return=s,s=d)}return l(s);case p:e:{for(v=u.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(s,c.sibling),(d=o(c,u.children||[])).return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}(d=Vr(u,s.mode,d)).return=s,s=d}return l(s);case _:return y(s,c,u=(v=u._init)(u._payload),d)}if(L(u))return function(r,o,l,s){for(var c=null,u=null,d=o,f=o=0,p=null;null!==d&&f<l.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var h=g(r,d,l[f],s);if(null===h){null===d&&(d=p);break}e&&d&&null===h.alternate&&t(r,d),o=i(h,o,f),null===u?c=h:u.sibling=h,u=h,d=p}if(f===l.length)return n(r,d),la&&ta(r,f),c;if(null===d){for(;f<l.length;f++)null!==(d=m(r,l[f],s))&&(o=i(d,o,f),null===u?c=d:u.sibling=d,u=d);return la&&ta(r,f),c}for(d=a(d);f<l.length;f++)null!==(p=b(d,r,f,l[f],s))&&(e&&null!==p.alternate&&d.delete(null===p.key?f:p.key),o=i(p,o,f),null===u?c=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return t(r,e)}),la&&ta(r,f),c}(s,c,u,d);if(j(u)){if("function"!=typeof(v=j(u)))throw Error(r(150));return function(o,l,s,c){if(null==s)throw Error(r(151));for(var u=null,d=null,f=l,p=l=0,h=null,y=s.next();null!==f&&!y.done;p++,y=s.next()){f.index>p?(h=f,f=null):h=f.sibling;var v=g(o,f,y.value,c);if(null===v){null===f&&(f=h);break}e&&f&&null===v.alternate&&t(o,f),l=i(v,l,p),null===d?u=v:d.sibling=v,d=v,f=h}if(y.done)return n(o,f),la&&ta(o,p),u;if(null===f){for(;!y.done;p++,y=s.next())null!==(y=m(o,y.value,c))&&(l=i(y,l,p),null===d?u=y:d.sibling=y,d=y);return la&&ta(o,p),u}for(f=a(f);!y.done;p++,y=s.next())null!==(y=b(f,o,p,y.value,c))&&(e&&null!==y.alternate&&f.delete(null===y.key?p:y.key),l=i(y,l,p),null===d?u=y:d.sibling=y,d=y);return e&&f.forEach(function(e){return t(o,e)}),la&&ta(o,p),u}(s,c,u=v.call(u),d)}if("function"==typeof u.then)return y(s,c,Zi(u),d);if(u.$$typeof===w)return y(s,c,Pa(s,u),d);tl(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(s,c.sibling),(d=o(c,u)).return=s,s=d):(n(s,c),(d=Br(u,s.mode,d)).return=s,s=d),l(s)):n(s,c)}return function(e,t,n,r){try{Ji=0;var a=y(e,t,n,r);return Xi=null,a}catch(t){if(t===Ka||t===Ya)throw t;var o=Mr(29,t,null,e.mode);return o.lanes=r,o.return=e,o}}}var al=rl(!0),ol=rl(!1),il=U(null),ll=null;function sl(e){var t=e.alternate;W(fl,1&fl.current),W(il,e),null===ll&&(null===t||null!==go.current||null!==t.memoizedState)&&(ll=e)}function cl(e){if(22===e.tag){if(W(fl,fl.current),W(il,e),null===ll){var t=e.alternate;null!==t&&null!==t.memoizedState&&(ll=e)}}else ul()}function ul(){W(fl,fl.current),W(il,il.current)}function dl(e){H(il),ll===e&&(ll=null),H(fl)}var fl=U(0);function pl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||yd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function hl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ml={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ic(),a=io(r);a.payload=t,null!=n&&(a.callback=n),null!==(t=lo(e,a,r))&&(Mc(t,e,r),so(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ic(),a=io(r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=lo(e,a,r))&&(Mc(t,e,r),so(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ic(),r=io(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=lo(e,r,n))&&(Mc(t,e,n),so(t,e,n))}};function gl(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!(t.prototype&&t.prototype.isPureReactComponent&&Jn(n,r)&&Jn(a,o))}function bl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ml.enqueueReplaceState(t,t.state,null)}function yl(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=c({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}var vl="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function wl(e){vl(e)}function kl(e){console.error(e)}function xl(e){vl(e)}function Sl(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Cl(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function El(e,t,n){return(n=io(n)).tag=3,n.payload={element:null},n.callback=function(){Sl(e,t)},n}function _l(e){return(e=io(e)).tag=3,e}function Tl(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){Cl(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){Cl(t,n,r),"function"!=typeof a&&(null===_c?_c=new Set([this]):_c.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Nl=Error(r(461)),Pl=!1;function Rl(e,t,n,r){t.child=null===e?ol(t,null,n,r):al(t,e.child,n,r)}function zl(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var i={};for(var l in r)"ref"!==l&&(i[l]=r[l])}else i=r;return Ta(t),r=Ao(e,t,n,i,o,a),l=Mo(),null===e||Pl?(la&&l&&ra(t),t.flags|=1,Rl(e,t,r,a),t.child):($o(e,t,a),Xl(e,t,a))}function jl(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||$r(o)||void 0!==o.defaultProps||null!==n.compare?((e=Hr(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ol(e,t,o,r,a))}if(o=e.child,!Jl(e,a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:Jn)(i,r)&&e.ref===t.ref)return Xl(e,t,a)}return t.flags|=1,(e=Fr(o,r)).ref=t.ref,e.return=t,t.child=e}function Ol(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Jn(o,r)&&e.ref===t.ref){if(Pl=!1,t.pendingProps=r=o,!Jl(e,a))return t.lanes=e.lanes,Xl(e,t,a);131072&e.flags&&(Pl=!0)}}return Dl(e,t,n,r,a)}function Al(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==o?o.baseLanes|n:n,null!==e){for(a=t.child=e.child,o=0;null!==a;)o=o|a.lanes|a.childLanes,a=a.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Ll(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Ll(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Va(0,null!==o?o.cachePool:null),null!==o?yo(t,o):vo(),cl(t)}else null!==o?(Va(0,o.cachePool),yo(t,o),ul(),t.memoizedState=null):(null!==e&&Va(0,null),vo(),ul());return Rl(e,t,a,n),t.child}function Ll(e,t,n,r){var a=Ba();return a=null===a?null:{parent:Aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Va(0,null),vo(),cl(t),null!==e&&Ea(e,t,r,!0),null}function Il(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Dl(e,t,n,r,a){return Ta(t),n=Ao(e,t,n,r,void 0,a),r=Mo(),null===e||Pl?(la&&r&&ra(t),t.flags|=1,Rl(e,t,n,a),t.child):($o(e,t,a),Xl(e,t,a))}function Ml(e,t,n,r,a,o){return Ta(t),t.updateQueue=null,n=Io(t,r,n,a),Lo(e),r=Mo(),null===e||Pl?(la&&r&&ra(t),t.flags|=1,Rl(e,t,n,o),t.child):($o(e,t,o),Xl(e,t,o))}function $l(e,t,n,r,a){if(Ta(t),null===t.stateNode){var o=Ir,i=n.contextType;"object"==typeof i&&null!==i&&(o=Na(i)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=ml,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},ao(t),i=n.contextType,o.context="object"==typeof i&&null!==i?Na(i):Ir,o.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(hl(t,n,i,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(i=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),i!==o.state&&ml.enqueueReplaceState(o,o.state,null),po(t,r,o,a),fo(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var l=t.memoizedProps,s=yl(n,l);o.props=s;var c=o.context,u=n.contextType;i=Ir,"object"==typeof u&&null!==u&&(i=Na(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,l=t.pendingProps!==l,u||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l||c!==i)&&bl(t,o,r,i),ro=!1;var f=t.memoizedState;o.state=f,po(t,r,o,a),fo(),c=t.memoizedState,l||f!==c||ro?("function"==typeof d&&(hl(t,n,d,r),c=t.memoizedState),(s=ro||gl(t,n,s,r,f,c,i))?(u||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=i,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,oo(e,t),u=yl(n,i=t.memoizedProps),o.props=u,d=t.pendingProps,f=o.context,c=n.contextType,s=Ir,"object"==typeof c&&null!==c&&(s=Na(c)),(c="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==d||f!==s)&&bl(t,o,r,s),ro=!1,f=t.memoizedState,o.state=f,po(t,r,o,a),fo();var p=t.memoizedState;i!==d||f!==p||ro||null!==e&&null!==e.dependencies&&_a(e.dependencies)?("function"==typeof l&&(hl(t,n,l,r),p=t.memoizedState),(u=ro||gl(t,n,u,r,f,p,s)||null!==e&&null!==e.dependencies&&_a(e.dependencies))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=u):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Il(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=al(t,e.child,null,a),t.child=al(t,null,n,a)):Rl(e,t,n,a),t.memoizedState=o.state,e=t.child):e=Xl(e,t,a),e}function Fl(e,t,n,r){return ma(),t.flags|=256,Rl(e,t,n,r),t.child}var Ul={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hl(e){return{baseLanes:e,cachePool:qa()}}function Wl(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=yc),e}function Bl(e,t,n){var a,o=t.pendingProps,i=!1,l=!!(128&t.flags);if((a=l)||(a=(null===e||null!==e.memoizedState)&&!!(2&fl.current)),a&&(i=!0,t.flags&=-129),a=!!(32&t.flags),t.flags&=-33,null===e){if(la){if(i?sl(t):ul(),la){var s,c=ia;if(s=c){e:{for(s=c,c=ca;8!==s.nodeType;){if(!c){c=null;break e}if(null===(s=vd(s.nextSibling))){c=null;break e}}c=s}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Jr?{id:Zr,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},(s=Mr(18,null,null,0)).stateNode=c,s.return=t,t.child=s,oa=t,ia=null,s=!0):s=!1}s||da(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return yd(c)?t.lanes=32:t.lanes=536870912,null;dl(t)}return c=o.children,o=o.fallback,i?(ul(),c=ql({mode:"hidden",children:c},i=t.mode),o=Wr(o,i,n,null),c.return=t,o.return=t,c.sibling=o,t.child=c,(i=t.child).memoizedState=Hl(n),i.childLanes=Wl(e,a,n),t.memoizedState=Ul,o):(sl(t),Vl(t,c))}if(null!==(s=e.memoizedState)&&null!==(c=s.dehydrated)){if(l)256&t.flags?(sl(t),t.flags&=-257,t=Kl(e,t,n)):null!==t.memoizedState?(ul(),t.child=e.child,t.flags|=128,t=null):(ul(),i=o.fallback,c=t.mode,o=ql({mode:"visible",children:o.children},c),(i=Wr(i,c,n,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,al(t,e.child,null,n),(o=t.child).memoizedState=Hl(n),o.childLanes=Wl(e,a,n),t.memoizedState=Ul,t=i);else if(sl(t),yd(c)){if(a=c.nextSibling&&c.nextSibling.dataset)var u=a.dgst;a=u,(o=Error(r(419))).stack="",o.digest=a,ba({value:o,source:null,stack:null}),t=Kl(e,t,n)}else if(Pl||Ea(e,t,n,!1),a=0!==(n&e.childLanes),Pl||a){if(null!==(a=oc)&&0!==(o=0!==((o=42&(o=n&-n)?1:Re(o))&(a.suspendedLanes|n))?0:o)&&o!==s.retryLane)throw s.retryLane=o,Or(e,o),Mc(a,e,o),Nl;"$?"===c.data||Yc(),t=Kl(e,t,n)}else"$?"===c.data?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,ia=vd(c.nextSibling),oa=t,la=!0,sa=null,ca=!1,null!==e&&(Gr[Xr++]=Zr,Gr[Xr++]=ea,Gr[Xr++]=Jr,Zr=e.id,ea=e.overflow,Jr=t),(t=Vl(t,o.children)).flags|=4096);return t}return i?(ul(),i=o.fallback,c=t.mode,u=(s=e.child).sibling,(o=Fr(s,{mode:"hidden",children:o.children})).subtreeFlags=65011712&s.subtreeFlags,null!==u?i=Fr(u,i):(i=Wr(i,c,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,null===(c=e.child.memoizedState)?c=Hl(n):(null!==(s=c.cachePool)?(u=Aa._currentValue,s=s.parent!==u?{parent:u,pool:u}:s):s=qa(),c={baseLanes:c.baseLanes|n,cachePool:s}),i.memoizedState=c,i.childLanes=Wl(e,a,n),t.memoizedState=Ul,o):(sl(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(a=t.deletions)?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Vl(e,t){return(t=ql({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ql(e,t){return(e=Mr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Kl(e,t,n){return al(t,e.child,null,n),(e=Vl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ql(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sa(e.return,t,n)}function Yl(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Gl(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Rl(e,t,r.children,n),2&(r=fl.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ql(e,n,t);else if(19===e.tag)Ql(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(W(fl,r),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===pl(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Yl(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===pl(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Yl(t,!0,n,null,o);break;case"together":Yl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),mc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ea(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Fr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Jl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!_a(e))}function Zl(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Pl=!0;else{if(!(Jl(e,n)||128&t.flags))return Pl=!1,function(e,t,n){switch(t.tag){case 3:Q(t,t.stateNode.containerInfo),ka(0,Aa,e.memoizedState.cache),ma();break;case 27:case 5:G(t);break;case 4:Q(t,t.stateNode.containerInfo);break;case 10:ka(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(sl(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Bl(e,t,n):(sl(t),null!==(e=Xl(e,t,n))?e.sibling:null);sl(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ea(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return Gl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),W(fl,fl.current),r)break;return null;case 22:case 23:return t.lanes=0,Al(e,t,n);case 24:ka(0,Aa,e.memoizedState.cache)}return Xl(e,t,n)}(e,t,n);Pl=!!(131072&e.flags)}else Pl=!1,la&&1048576&t.flags&&na(t,Yr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,o=a._init;if(a=o(a._payload),t.type=a,"function"!=typeof a){if(null!=a){if((o=a.$$typeof)===x){t.tag=11,t=zl(null,t,a,e,n);break e}if(o===E){t.tag=14,t=jl(null,t,a,e,n);break e}}throw t=A(a)||a,Error(r(306,t,""))}$r(a)?(e=yl(a,e),t.tag=1,t=$l(null,t,a,e,n)):(t.tag=0,t=Dl(null,t,a,e,n))}return t;case 0:return Dl(e,t,t.type,t.pendingProps,n);case 1:return $l(e,t,a=t.type,o=yl(a,t.pendingProps),n);case 3:e:{if(Q(t,t.stateNode.containerInfo),null===e)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;o=i.element,oo(e,t),po(t,a,null,n);var l=t.memoizedState;if(a=l.cache,ka(0,Aa,a),a!==i.cache&&Ca(t,[Aa],n,!0),fo(),a=l.element,i.isDehydrated){if(i={element:a,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Fl(e,t,a,n);break e}if(a!==o){ba(o=_r(Error(r(424)),t)),t=Fl(e,t,a,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ia=vd(e.firstChild),oa=t,la=!0,sa=null,ca=!0,n=ol(t,null,a,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ma(),a===o){t=Xl(e,t,n);break e}Rl(e,t,a,n)}t=t.child}return t;case 26:return Il(e,t),null===e?(n=Rd(t.type,null,t.pendingProps,null))?t.memoizedState=n:la||(n=t.type,e=t.pendingProps,(a=od(q.current).createElement(n))[Ae]=t,a[Le]=e,nd(a,n,e),Ke(a),t.stateNode=a):t.memoizedState=Rd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),null===e&&la&&(a=t.stateNode=xd(t.type,t.pendingProps,q.current),oa=t,ca=!0,o=ia,md(t.type)?(wd=o,ia=vd(a.firstChild)):ia=o),Rl(e,t,t.pendingProps.children,n),Il(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&la&&((o=a=ia)&&(null!==(a=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ue])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=vd(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,ca))?(t.stateNode=a,oa=t,ia=vd(a.firstChild),ca=!1,o=!0):o=!1),o||da(t)),G(t),o=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,a=i.children,sd(o,i)?a=null:null!==l&&sd(o,l)&&(t.flags|=32),null!==t.memoizedState&&(o=Ao(e,t,Do,null,null,n),Gd._currentValue=o),Il(e,t),Rl(e,t,a,n),t.child;case 6:return null===e&&la&&((e=n=ia)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=vd(e.nextSibling)))return null}return e}(n,t.pendingProps,ca))?(t.stateNode=n,oa=t,ia=null,e=!0):e=!1),e||da(t)),null;case 13:return Bl(e,t,n);case 4:return Q(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=al(t,null,a,n):Rl(e,t,a,n),t.child;case 11:return zl(e,t,t.type,t.pendingProps,n);case 7:return Rl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Rl(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,ka(0,t.type,a.value),Rl(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Ta(t),a=a(o=Na(o)),t.flags|=1,Rl(e,t,a,n),t.child;case 14:return jl(e,t,t.type,t.pendingProps,n);case 15:return Ol(e,t,t.type,t.pendingProps,n);case 19:return Gl(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},null===e?((n=ql(a,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Fr(e.child,a)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Al(e,t,n);case 24:return Ta(t),a=Na(Aa),null===e?(null===(o=Ba())&&(o=oc,i=La(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:a,cache:o},ao(t),ka(0,Aa,o)):(0!==(e.lanes&n)&&(oo(e,t),po(t,null,null,n),fo()),o=e.memoizedState,i=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),ka(0,Aa,a)):(a=i.cache,ka(0,Aa,a),a!==o.cache&&Ca(t,[Aa],n,!0))),Rl(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function es(e){e.flags|=4}function ts(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Wd(t)){if(null!==(t=il.current)&&((4194048&lc)===lc?null!==ll:(62914560&lc)!==lc&&!(536870912&lc)||t!==ll))throw eo=Ga,Qa;e.flags|=8192}}function ns(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ee():536870912,e.lanes|=t,vc|=t)}function rs(e,t){if(!la)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function as(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function os(e,t,n){var a=t.pendingProps;switch(aa(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return as(t),null;case 3:return n=t.stateNode,a=null,null!==e&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),xa(Aa),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ha(t)?es(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ga())),as(t),null;case 26:return n=t.memoizedState,null===e?(es(t),null!==n?(as(t),ts(t,n)):(as(t),t.flags&=-16777217)):n?n!==e.memoizedState?(es(t),as(t),ts(t,n)):(as(t),t.flags&=-16777217):(e.memoizedProps!==a&&es(t),as(t),t.flags&=-16777217),null;case 27:X(t),n=q.current;var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==a&&es(t);else{if(!a){if(null===t.stateNode)throw Error(r(166));return as(t),null}e=B.current,ha(t)?fa(t):(e=xd(o,a,n),t.stateNode=e,es(t))}return as(t),null;case 5:if(X(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&es(t);else{if(!a){if(null===t.stateNode)throw Error(r(166));return as(t),null}if(e=B.current,ha(t))fa(t);else{switch(o=od(q.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof a.is?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e="string"==typeof a.is?o.createElement(n,{is:a.is}):o.createElement(n)}}e[Ae]=t,e[Le]=a;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(nd(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&es(t)}}return as(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==a&&es(t);else{if("string"!=typeof a&&null===t.stateNode)throw Error(r(166));if(e=q.current,ha(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,null!==(o=oa))switch(o.tag){case 27:case 5:a=o.memoizedProps}e[Ae]=t,(e=!!(e.nodeValue===n||null!==a&&!0===a.suppressHydrationWarning||Ju(e.nodeValue,n)))||da(t)}else(e=od(e).createTextNode(a))[Ae]=t,t.stateNode=e}return as(t),null;case 13:if(a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=ha(t),null!==a&&null!==a.dehydrated){if(null===e){if(!o)throw Error(r(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(r(317));o[Ae]=t}else ma(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;as(t),o=!1}else o=ga(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(dl(t),t):(dl(t),null)}if(dl(t),128&t.flags)return t.lanes=n,t;if(n=null!==a,e=null!==e&&null!==e.memoizedState,n){o=null,null!==(a=t.child).alternate&&null!==a.alternate.memoizedState&&null!==a.alternate.memoizedState.cachePool&&(o=a.alternate.memoizedState.cachePool.pool);var i=null;null!==a.memoizedState&&null!==a.memoizedState.cachePool&&(i=a.memoizedState.cachePool.pool),i!==o&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ns(t,t.updateQueue),as(t),null;case 4:return Y(),null===e&&Hu(t.stateNode.containerInfo),as(t),null;case 10:return xa(t.type),as(t),null;case 19:if(H(fl),null===(o=t.memoizedState))return as(t),null;if(a=!!(128&t.flags),null===(i=o.rendering))if(a)rs(o,!1);else{if(0!==hc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=pl(e))){for(t.flags|=128,rs(o,!1),e=i.updateQueue,t.updateQueue=e,ns(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Ur(n,e),n=n.sibling;return W(fl,1&fl.current|2),t.child}e=e.sibling}null!==o.tail&&re()>Cc&&(t.flags|=128,a=!0,rs(o,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=pl(i))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ns(t,e),rs(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!la)return as(t),null}else 2*re()-o.renderingStartTime>Cc&&536870912!==n&&(t.flags|=128,a=!0,rs(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=o.last)?e.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=re(),t.sibling=null,e=fl.current,W(fl,a?1&e|2:1&e),t):(as(t),null);case 22:case 23:return dl(t),wo(),a=null!==t.memoizedState,null!==e?null!==e.memoizedState!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?!!(536870912&n)&&!(128&t.flags)&&(as(t),6&t.subtreeFlags&&(t.flags|=8192)):as(t),null!==(n=t.updateQueue)&&ns(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),a=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),null!==e&&H(Wa),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xa(Aa),as(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function is(e,t){switch(aa(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return xa(Aa),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 13:if(dl(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return H(fl),null;case 4:return Y(),null;case 10:return xa(t.type),null;case 22:case 23:return dl(t),wo(),null!==e&&H(Wa),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return xa(Aa),null;default:return null}}function ls(e,t){switch(aa(t),t.tag){case 3:xa(Aa),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 13:dl(t);break;case 19:H(fl);break;case 10:xa(t.type);break;case 22:case 23:dl(t),wo(),null!==e&&H(Wa);break;case 24:xa(Aa)}}function ss(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var o=n.create,i=n.inst;r=o(),i.destroy=r}n=n.next}while(n!==a)}}catch(e){fu(t,t.return,e)}}function cs(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var i=r.inst,l=i.destroy;if(void 0!==l){i.destroy=void 0,a=t;var s=n,c=l;try{c()}catch(e){fu(a,s,e)}}}r=r.next}while(r!==o)}}catch(e){fu(t,t.return,e)}}function us(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{mo(t,n)}catch(t){fu(e,e.return,t)}}}function ds(e,t,n){n.props=yl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){fu(e,t,n)}}function fs(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){fu(e,t,n)}}function ps(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){fu(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){fu(e,t,n)}else n.current=null}function hs(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){fu(e,e.return,t)}}function ms(e,t,n){try{var a=e.stateNode;!function(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,l=null,s=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:a.hasOwnProperty(h)||ed(e,t,h,null,a,f)}}for(var p in a){var h=a[p];if(f=n[p],a.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":o=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":l=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&ed(e,t,p,h,a,f)}}return void yt(e,l,s,c,u,d,i,o);case"select":for(i in h=l=s=p=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":h=c;default:a.hasOwnProperty(i)||ed(e,t,i,null,a,c)}for(o in a)if(i=a[o],c=n[o],a.hasOwnProperty(o)&&(null!=i||null!=c))switch(o){case"value":p=i;break;case"defaultValue":s=i;break;case"multiple":l=i;default:i!==c&&ed(e,t,o,i,a,c)}return t=s,n=l,a=h,void(null!=p?kt(e,!!n,p,!1):!!a!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(s in h=p=null,n)if(o=n[s],n.hasOwnProperty(s)&&null!=o&&!a.hasOwnProperty(s))switch(s){case"value":case"children":break;default:ed(e,t,s,null,a,o)}for(l in a)if(o=a[l],i=n[l],a.hasOwnProperty(l)&&(null!=o||null!=i))switch(l){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(r(91));break;default:o!==i&&ed(e,t,l,o,a,i)}return void xt(e,p,h);case"option":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!a.hasOwnProperty(m)&&("selected"===m?e.selected=!1:ed(e,t,m,null,a,p));for(c in a)p=a[c],h=n[c],!a.hasOwnProperty(c)||p===h||null==p&&null==h||("selected"===c?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:ed(e,t,c,p,a,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!a.hasOwnProperty(g)&&ed(e,t,g,null,a,p);for(u in a)if(p=a[u],h=n[u],a.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:ed(e,t,u,p,a,h)}return;default:if(Nt(t)){for(var b in n)p=n[b],n.hasOwnProperty(b)&&void 0!==p&&!a.hasOwnProperty(b)&&td(e,t,b,void 0,a,p);for(d in a)p=a[d],h=n[d],!a.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||td(e,t,d,p,a,h);return}}for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!a.hasOwnProperty(y)&&ed(e,t,y,null,a,p);for(f in a)p=a[f],h=n[f],!a.hasOwnProperty(f)||p===h||null==p&&null==h||ed(e,t,f,p,a,h)}(a,e.type,n,t),a[Le]=t}catch(t){fu(e,e.return,t)}}function gs(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&md(e.type)||4===e.tag}function bs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||gs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&md(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ys(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zu));else if(4!==r&&(27===r&&md(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function vs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&md(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function ws(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);nd(t,r,n),t[Ae]=e,t[Le]=n}catch(t){fu(e,e.return,t)}}var ks=!1,xs=!1,Ss=!1,Cs="function"==typeof WeakSet?WeakSet:Set,Es=null;function _s(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:$s(e,n),4&r&&ss(5,n);break;case 1:if($s(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){fu(n,n.return,e)}else{var a=yl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){fu(n,n.return,e)}}64&r&&us(n),512&r&&fs(n,n.return);break;case 3:if($s(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{mo(e,t)}catch(e){fu(n,n.return,e)}}break;case 27:null===t&&4&r&&ws(n);case 26:case 5:$s(e,n),null===t&&4&r&&hs(n),512&r&&fs(n,n.return);break;case 12:$s(e,n);break;case 13:$s(e,n),4&r&&js(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=gu.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||ks)){t=null!==t&&null!==t.memoizedState||xs,a=ks;var o=xs;ks=r,(xs=t)&&!o?Us(e,n,!!(8772&n.subtreeFlags)):$s(e,n),ks=a,xs=o}break;case 30:break;default:$s(e,n)}}function Ts(e){var t=e.alternate;null!==t&&(e.alternate=null,Ts(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&He(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ns=null,Ps=!1;function Rs(e,t,n){for(n=n.child;null!==n;)zs(e,t,n),n=n.sibling}function zs(e,t,n){if(pe&&"function"==typeof pe.onCommitFiberUnmount)try{pe.onCommitFiberUnmount(fe,n)}catch(e){}switch(n.tag){case 26:xs||ps(n,t),Rs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:xs||ps(n,t);var r=Ns,a=Ps;md(n.type)&&(Ns=n.stateNode,Ps=!1),Rs(e,t,n),Sd(n.stateNode),Ns=r,Ps=a;break;case 5:xs||ps(n,t);case 6:if(r=Ns,a=Ps,Ns=null,Rs(e,t,n),Ps=a,null!==(Ns=r))if(Ps)try{(9===Ns.nodeType?Ns.body:"HTML"===Ns.nodeName?Ns.ownerDocument.body:Ns).removeChild(n.stateNode)}catch(e){fu(n,t,e)}else try{Ns.removeChild(n.stateNode)}catch(e){fu(n,t,e)}break;case 18:null!==Ns&&(Ps?(gd(9===(e=Ns).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Rf(e)):gd(Ns,n.stateNode));break;case 4:r=Ns,a=Ps,Ns=n.stateNode.containerInfo,Ps=!0,Rs(e,t,n),Ns=r,Ps=a;break;case 0:case 11:case 14:case 15:xs||cs(2,n,t),xs||cs(4,n,t),Rs(e,t,n);break;case 1:xs||(ps(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ds(n,t,r)),Rs(e,t,n);break;case 21:Rs(e,t,n);break;case 22:xs=(r=xs)||null!==n.memoizedState,Rs(e,t,n),xs=r;break;default:Rs(e,t,n)}}function js(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Rf(e)}catch(e){fu(t,t.return,e)}}function Os(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Cs),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Cs),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){var r=bu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function As(e,t){var n=t.deletions;if(null!==n)for(var a=0;a<n.length;a++){var o=n[a],i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 27:if(md(s.type)){Ns=s.stateNode,Ps=!1;break e}break;case 5:Ns=s.stateNode,Ps=!1;break e;case 3:case 4:Ns=s.stateNode.containerInfo,Ps=!0;break e}s=s.return}if(null===Ns)throw Error(r(160));zs(i,l,o),Ns=null,Ps=!1,null!==(i=o.alternate)&&(i.return=null),o.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Is(t,e),t=t.sibling}var Ls=null;function Is(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:As(t,e),Ds(e),4&a&&(cs(3,e,e.return),ss(3,e),cs(5,e,e.return));break;case 1:As(t,e),Ds(e),512&a&&(xs||null===n||ps(n,n.return)),64&a&&ks&&null!==(e=e.updateQueue)&&null!==(a=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?a:n.concat(a));break;case 26:var o=Ls;if(As(t,e),Ds(e),512&a&&(xs||null===n||ps(n,n.return)),4&a){var i=null!==n?n.memoizedState:null;if(a=e.memoizedState,null===n)if(null===a)if(null===e.stateNode){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":(!(i=o.getElementsByTagName("title")[0])||i[Ue]||i[Ae]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(a),o.head.insertBefore(i,o.querySelector("head > title"))),nd(i,a,n),i[Ae]=e,Ke(i),a=i;break e;case"link":var l=Ud("link","href",o).get(a+(n.href||""));if(l)for(var s=0;s<l.length;s++)if((i=l[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){l.splice(s,1);break t}nd(i=o.createElement(a),a,n),o.head.appendChild(i);break;case"meta":if(l=Ud("meta","content",o).get(a+(n.content||"")))for(s=0;s<l.length;s++)if((i=l[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){l.splice(s,1);break t}nd(i=o.createElement(a),a,n),o.head.appendChild(i);break;default:throw Error(r(468,a))}i[Ae]=e,Ke(i),a=i}e.stateNode=a}else Hd(o,e.type,e.stateNode);else e.stateNode=Id(o,a,e.memoizedProps);else i!==a?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===a?Hd(o,e.type,e.stateNode):Id(o,a,e.memoizedProps)):null===a&&null!==e.stateNode&&ms(e,e.memoizedProps,n.memoizedProps)}break;case 27:As(t,e),Ds(e),512&a&&(xs||null===n||ps(n,n.return)),null!==n&&4&a&&ms(e,e.memoizedProps,n.memoizedProps);break;case 5:if(As(t,e),Ds(e),512&a&&(xs||null===n||ps(n,n.return)),32&e.flags){o=e.stateNode;try{Ct(o,"")}catch(t){fu(e,e.return,t)}}4&a&&null!=e.stateNode&&ms(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&a&&(Ss=!0);break;case 6:if(As(t,e),Ds(e),4&a){if(null===e.stateNode)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(t){fu(e,e.return,t)}}break;case 3:if(Fd=null,o=Ls,Ls=_d(t.containerInfo),As(t,e),Ls=o,Ds(e),4&a&&null!==n&&n.memoizedState.isDehydrated)try{Rf(t.containerInfo)}catch(t){fu(e,e.return,t)}Ss&&(Ss=!1,Ms(e));break;case 4:a=Ls,Ls=_d(e.stateNode.containerInfo),As(t,e),Ds(e),Ls=a;break;case 12:default:As(t,e),Ds(e);break;case 13:As(t,e),Ds(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Sc=re()),4&a&&null!==(a=e.updateQueue)&&(e.updateQueue=null,Os(e,a));break;case 22:o=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=ks,d=xs;if(ks=u||o,xs=d||c,As(t,e),xs=d,ks=u,Ds(e),8192&a)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||c||ks||xs||Fs(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,o)"function"==typeof(l=i.style).setProperty?l.setProperty("display","none","important"):l.display="none";else{s=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;s.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){fu(c,c.return,e)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=o?"":c.memoizedProps}catch(e){fu(c,c.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&a&&null!==(a=e.updateQueue)&&null!==(n=a.retryQueue)&&(a.retryQueue=null,Os(e,n));break;case 19:As(t,e),Ds(e),4&a&&null!==(a=e.updateQueue)&&(e.updateQueue=null,Os(e,a));case 30:case 21:}}function Ds(e){var t=e.flags;if(2&t){try{for(var n,a=e.return;null!==a;){if(gs(a)){n=a;break}a=a.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode;vs(e,bs(e),o);break;case 5:var i=n.stateNode;32&n.flags&&(Ct(i,""),n.flags&=-33),vs(e,bs(e),i);break;case 3:case 4:var l=n.stateNode.containerInfo;ys(e,bs(e),l);break;default:throw Error(r(161))}}catch(t){fu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ms(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ms(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function $s(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)_s(e,t.alternate,t),t=t.sibling}function Fs(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cs(4,t,t.return),Fs(t);break;case 1:ps(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ds(t,t.return,n),Fs(t);break;case 27:Sd(t.stateNode);case 26:case 5:ps(t,t.return),Fs(t);break;case 22:null===t.memoizedState&&Fs(t);break;default:Fs(t)}e=e.sibling}}function Us(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,a=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:Us(a,o,n),ss(4,o);break;case 1:if(Us(a,o,n),"function"==typeof(a=(r=o).stateNode).componentDidMount)try{a.componentDidMount()}catch(e){fu(r,r.return,e)}if(null!==(a=(r=o).updateQueue)){var l=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(null!==s)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)ho(s[a],l)}catch(e){fu(r,r.return,e)}}n&&64&i&&us(o),fs(o,o.return);break;case 27:ws(o);case 26:case 5:Us(a,o,n),n&&null===r&&4&i&&hs(o),fs(o,o.return);break;case 12:Us(a,o,n);break;case 13:Us(a,o,n),n&&4&i&&js(a,o);break;case 22:null===o.memoizedState&&Us(a,o,n),fs(o,o.return);break;case 30:break;default:Us(a,o,n)}t=t.sibling}}function Hs(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ia(n))}function Ws(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ia(e))}function Bs(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Vs(e,t,n,r),t=t.sibling}function Vs(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Bs(e,t,n,r),2048&a&&ss(9,t);break;case 1:case 13:default:Bs(e,t,n,r);break;case 3:Bs(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ia(e)));break;case 12:if(2048&a){Bs(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,l=o.onPostCommit;"function"==typeof l&&l(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){fu(t,t.return,e)}}else Bs(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,null!==t.memoizedState?2&o._visibility?Bs(e,t,n,r):Ks(e,t):2&o._visibility?Bs(e,t,n,r):(o._visibility|=2,qs(e,t,n,r,!!(10256&t.subtreeFlags))),2048&a&&Hs(i,t);break;case 24:Bs(e,t,n,r),2048&a&&Ws(t.alternate,t)}}function qs(e,t,n,r,a){for(a=a&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var o=e,i=t,l=n,s=r,c=i.flags;switch(i.tag){case 0:case 11:case 15:qs(o,i,l,s,a),ss(8,i);break;case 23:break;case 22:var u=i.stateNode;null!==i.memoizedState?2&u._visibility?qs(o,i,l,s,a):Ks(o,i):(u._visibility|=2,qs(o,i,l,s,a)),a&&2048&c&&Hs(i.alternate,i);break;case 24:qs(o,i,l,s,a),a&&2048&c&&Ws(i.alternate,i);break;default:qs(o,i,l,s,a)}t=t.sibling}}function Ks(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:Ks(n,r),2048&a&&Hs(r.alternate,r);break;case 24:Ks(n,r),2048&a&&Ws(r.alternate,r);break;default:Ks(n,r)}t=t.sibling}}var Qs=8192;function Ys(e){if(e.subtreeFlags&Qs)for(e=e.child;null!==e;)Gs(e),e=e.sibling}function Gs(e){switch(e.tag){case 26:Ys(e),e.flags&Qs&&null!==e.memoizedState&&function(e,t,n){if(null===Bd)throw Error(r(475));var a=Bd;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var o=zd(n.href),i=e.querySelector(jd(o));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(a.count++,a=qd.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=i,void Ke(i);i=e.ownerDocument||e,n=Od(n),(o=Cd.get(o))&&Md(n,o),Ke(i=i.createElement("link"));var l=i;l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),nd(i,"link",n),t.instance=i}null===a.stylesheets&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(a.count++,t=qd.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}(Ls,e.memoizedState,e.memoizedProps);break;case 5:default:Ys(e);break;case 3:case 4:var t=Ls;Ls=_d(e.stateNode.containerInfo),Ys(e),Ls=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Qs,Qs=16777216,Ys(e),Qs=t):Ys(e))}}function Xs(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Js(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Es=r,tc(r,e)}Xs(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Zs(e),e=e.sibling}function Zs(e){switch(e.tag){case 0:case 11:case 15:Js(e),2048&e.flags&&cs(9,e,e.return);break;case 3:case 12:default:Js(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,ec(e)):Js(e)}}function ec(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Es=r,tc(r,e)}Xs(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:cs(8,t,t.return),ec(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,ec(t));break;default:ec(t)}e=e.sibling}}function tc(e,t){for(;null!==Es;){var n=Es;switch(n.tag){case 0:case 11:case 15:cs(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ia(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Es=r;else e:for(n=e;null!==Es;){var a=(r=Es).sibling,o=r.return;if(Ts(r),r===n){Es=null;break e}if(null!==a){a.return=o,Es=a;break e}Es=o}}}var nc={getCacheForType:function(e){var t=Na(Aa),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},rc="function"==typeof WeakMap?WeakMap:Map,ac=0,oc=null,ic=null,lc=0,sc=0,cc=null,uc=!1,dc=!1,fc=!1,pc=0,hc=0,mc=0,gc=0,bc=0,yc=0,vc=0,wc=null,kc=null,xc=!1,Sc=0,Cc=1/0,Ec=null,_c=null,Tc=0,Nc=null,Pc=null,Rc=0,zc=0,jc=null,Oc=null,Ac=0,Lc=null;function Ic(){return 2&ac&&0!==lc?lc&-lc:null!==I.T?0!==$a?$a:zu():je()}function Dc(){0===yc&&(yc=536870912&lc&&!la?536870912:Ce());var e=il.current;return null!==e&&(e.flags|=32),yc}function Mc(e,t,n){(e!==oc||2!==sc&&9!==sc)&&null===e.cancelPendingCommit||(Vc(e,0),Hc(e,lc,yc,!1)),Te(e,n),2&ac&&e===oc||(e===oc&&(!(2&ac)&&(gc|=n),4===hc&&Hc(e,lc,yc,!1)),Cu(e))}function $c(e,t,n){if(6&ac)throw Error(r(327));for(var a=!n&&!(124&t)&&0===(t&e.expiredLanes)||xe(e,t),o=a?function(e,t){var n=ac;ac|=2;var a=Kc(),o=Qc();oc!==e||lc!==t?(Ec=null,Cc=re()+500,Vc(e,t)):dc=xe(e,t);e:for(;;)try{if(0!==sc&&null!==ic){t=ic;var i=cc;t:switch(sc){case 1:sc=0,cc=null,tu(e,t,i,1);break;case 2:case 9:if(Xa(i)){sc=0,cc=null,eu(t);break}t=function(){2!==sc&&9!==sc||oc!==e||(sc=7),Cu(e)},i.then(t,t);break e;case 3:sc=7;break e;case 4:sc=5;break e;case 7:Xa(i)?(sc=0,cc=null,eu(t)):(sc=0,cc=null,tu(e,t,i,7));break;case 5:var l=null;switch(ic.tag){case 26:l=ic.memoizedState;case 5:case 27:var s=ic;if(!l||Wd(l)){sc=0,cc=null;var c=s.sibling;if(null!==c)ic=c;else{var u=s.return;null!==u?(ic=u,nu(u)):ic=null}break t}}sc=0,cc=null,tu(e,t,i,5);break;case 6:sc=0,cc=null,tu(e,t,i,6);break;case 8:Bc(),hc=6;break e;default:throw Error(r(462))}}Jc();break}catch(t){qc(e,t)}return wa=va=null,I.H=a,I.A=o,ac=n,null!==ic?0:(oc=null,lc=0,Rr(),hc)}(e,t):Gc(e,t,!0),i=a;;){if(0===o){dc&&!a&&Hc(e,t,0,!1);break}if(n=e.current.alternate,!i||Uc(n)){if(2===o){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=0!=(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){t=l;e:{var s=e;o=wc;var c=s.current.memoizedState.isDehydrated;if(c&&(Vc(s,l).flags|=256),2!==(l=Gc(s,l,!1))){if(fc&&!c){s.errorRecoveryDisabledLanes|=i,gc|=i,o=4;break e}i=kc,kc=o,null!==i&&(null===kc?kc=i:kc.push.apply(kc,i))}o=l}if(i=!1,2!==o)continue}}if(1===o){Vc(e,0),Hc(e,t,0,!0);break}e:{switch(a=e,i=o){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Hc(a,t,yc,!uc);break e;case 2:kc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(o=Sc+300-re())){if(Hc(a,t,yc,!uc),0!==ke(a,0,!0))break e;a.timeoutHandle=ud(Fc.bind(null,a,n,kc,Ec,xc,t,yc,gc,vc,uc,i,2,-0,0),o)}else Fc(a,n,kc,Ec,xc,t,yc,gc,vc,uc,i,0,-0,0)}break}o=Gc(e,t,!1),i=!1}Cu(e)}function Fc(e,t,n,a,o,i,l,s,c,u,d,f,p,h){if(e.timeoutHandle=-1,(8192&(f=t.subtreeFlags)||!(16785408&~f))&&(Bd={stylesheets:null,count:0,unsuspend:Vd},Gs(t),null!==(f=function(){if(null===Bd)throw Error(r(475));var e=Bd;return e.stylesheets&&0===e.count&&Qd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Qd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=f(au.bind(null,e,t,i,n,a,o,l,s,c,d,1,p,h)),void Hc(e,i,l,!u);au(e,t,i,n,a,o,l,s,c)}function Uc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Xn(o(),a))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hc(e,t,n,r){t&=~bc,t&=~gc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-me(a),i=1<<o;r[o]=-1,a&=~i}0!==n&&Ne(e,n,t)}function Wc(){return!!(6&ac)||(Eu(0),!1)}function Bc(){if(null!==ic){if(0===sc)var e=ic.return;else wa=va=null,Fo(e=ic),Xi=null,Ji=0,e=ic;for(;null!==e;)ls(e.alternate,e),e=e.return;ic=null}}function Vc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,dd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Bc(),oc=e,ic=n=Fr(e.current,null),lc=t,sc=0,cc=null,uc=!1,dc=xe(e,t),fc=!1,vc=yc=bc=gc=mc=hc=0,kc=wc=null,xc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-me(r),o=1<<a;t|=e[a],r&=~o}return pc=t,Rr(),n}function qc(e,t){xo=null,I.H=Ki,t===Ka||t===Ya?(t=to(),sc=3):t===Qa?(t=to(),sc=4):sc=t===Nl?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,cc=t,null===ic&&(hc=1,Sl(e,_r(t,e.current)))}function Kc(){var e=I.H;return I.H=Ki,null===e?Ki:e}function Qc(){var e=I.A;return I.A=nc,e}function Yc(){hc=4,uc||(4194048&lc)!==lc&&null!==il.current||(dc=!0),!(134217727&mc)&&!(134217727&gc)||null===oc||Hc(oc,lc,yc,!1)}function Gc(e,t,n){var r=ac;ac|=2;var a=Kc(),o=Qc();oc===e&&lc===t||(Ec=null,Vc(e,t)),t=!1;var i=hc;e:for(;;)try{if(0!==sc&&null!==ic){var l=ic,s=cc;switch(sc){case 8:Bc(),i=6;break e;case 3:case 2:case 9:case 6:null===il.current&&(t=!0);var c=sc;if(sc=0,cc=null,tu(e,l,s,c),n&&dc){i=0;break e}break;default:c=sc,sc=0,cc=null,tu(e,l,s,c)}}Xc(),i=hc;break}catch(t){qc(e,t)}return t&&e.shellSuspendCounter++,wa=va=null,ac=r,I.H=a,I.A=o,null===ic&&(oc=null,lc=0,Rr()),i}function Xc(){for(;null!==ic;)Zc(ic)}function Jc(){for(;null!==ic&&!te();)Zc(ic)}function Zc(e){var t=Zl(e.alternate,e,pc);e.memoizedProps=e.pendingProps,null===t?nu(e):ic=t}function eu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ml(n,t,t.pendingProps,t.type,void 0,lc);break;case 11:t=Ml(n,t,t.pendingProps,t.type.render,t.ref,lc);break;case 5:Fo(t);default:ls(n,t),t=Zl(n,t=ic=Ur(t,pc),pc)}e.memoizedProps=e.pendingProps,null===t?nu(e):ic=t}function tu(e,t,n,a){wa=va=null,Fo(t),Xi=null,Ji=0;var o=t.return;try{if(function(e,t,n,a,o){if(n.flags|=32768,null!==a&&"object"==typeof a&&"function"==typeof a.then){if(null!==(t=n.alternate)&&Ea(t,n,o,!0),null!==(n=il.current)){switch(n.tag){case 13:return null===ll?Yc():null===n.alternate&&0===hc&&(hc=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Ga?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([a]):t.add(a),pu(e,a,o)),!1;case 22:return n.flags|=65536,a===Ga?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([a]):n.add(a),pu(e,a,o)),!1}throw Error(r(435,n.tag))}return pu(e,a,o),Yc(),!1}if(la)return null!==(t=il.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==ua&&ba(_r(e=Error(r(422),{cause:a}),n))):(a!==ua&&ba(_r(t=Error(r(423),{cause:a}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,a=_r(a,n),co(e,o=El(e.stateNode,a,o)),4!==hc&&(hc=2)),!1;var i=Error(r(520),{cause:a});if(i=_r(i,n),null===wc?wc=[i]:wc.push(i),4!==hc&&(hc=2),null===t)return!0;a=_r(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,co(n,e=El(n.stateNode,a,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==_c&&_c.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,Tl(o=_l(o),e,n,a),co(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,lc))return hc=1,Sl(e,_r(n,e.current)),void(ic=null)}catch(t){if(null!==o)throw ic=o,t;return hc=1,Sl(e,_r(n,e.current)),void(ic=null)}32768&t.flags?(la||1===a?e=!0:dc||536870912&lc?e=!1:(uc=e=!0,(2===a||9===a||3===a||6===a)&&null!==(a=il.current)&&13===a.tag&&(a.flags|=16384)),ru(t,e)):nu(t)}function nu(e){var t=e;do{if(32768&t.flags)return void ru(t,uc);e=t.return;var n=os(t.alternate,t,pc);if(null!==n)return void(ic=n);if(null!==(t=t.sibling))return void(ic=t);ic=t=e}while(null!==t);0===hc&&(hc=5)}function ru(e,t){do{var n=is(e.alternate,e);if(null!==n)return n.flags&=32767,void(ic=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(ic=e);ic=e=n}while(null!==e);hc=6,ic=null}function au(e,t,n,a,o,i,l,s,c){e.cancelPendingCommit=null;do{cu()}while(0!==Tc);if(6&ac)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,a,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-me(n),d=1<<u;l[u]=0,s[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ne(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(i&~t))}(e,n,i|=Pr,l,s,c),e===oc&&(ic=oc=null,lc=0),Pc=t,Nc=e,Rc=n,zc=i,jc=o,Oc=a,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,Z(le,function(){return uu(),null})):(e.callbackNode=null,e.callbackPriority=0),a=!!(13878&t.flags),13878&t.subtreeFlags||a){a=I.T,I.T=null,o=D.p,D.p=2,l=ac,ac|=4;try{!function(e,t){if(e=e.containerInfo,rd=af,rr(e=nr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(a&&0!==a.rangeCount){n=a.anchorNode;var o=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(s=l+o),f!==i||0!==a&&3!==f.nodeType||(c=l+a),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=l),p===i&&++d===a&&(c=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ad={focusedElem:e,selectionRange:n},af=!1,Es=t;null!==Es;)if(e=(t=Es).child,1024&t.subtreeFlags&&null!==e)e.return=t,Es=e;else for(;null!==Es;){switch(i=(t=Es).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,o=i.memoizedProps,i=i.memoizedState,a=n.stateNode;try{var m=yl(n.type,o,(n.elementType,n.type));e=a.getSnapshotBeforeUpdate(m,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(e){fu(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))bd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Es=e;break}Es=t.return}}(e,t)}finally{ac=l,D.p=o,I.T=a}}Tc=1,ou(),iu(),lu()}}function ou(){if(1===Tc){Tc=0;var e=Nc,t=Pc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=I.T,I.T=null;var r=D.p;D.p=2;var a=ac;ac|=4;try{Is(t,e);var o=ad,i=nr(e.containerInfo),l=o.focusedElem,s=o.selectionRange;if(i!==l&&l&&l.ownerDocument&&tr(l.ownerDocument.documentElement,l)){if(null!==s&&rr(l)){var c=s.start,u=s.end;if(void 0===u&&(u=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=l.textContent.length,m=Math.min(s.start,h),g=void 0===s.end?m:Math.min(s.end,h);!p.extend&&m>g&&(i=g,g=m,m=i);var b=er(l,m),y=er(l,g);if(b&&y&&(1!==p.rangeCount||p.anchorNode!==b.node||p.anchorOffset!==b.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var v=d.createRange();v.setStart(b.node,b.offset),p.removeAllRanges(),m>g?(p.addRange(v),p.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),p.addRange(v))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}af=!!rd,ad=rd=null}finally{ac=a,D.p=r,I.T=n}}e.current=t,Tc=2}}function iu(){if(2===Tc){Tc=0;var e=Nc,t=Pc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=I.T,I.T=null;var r=D.p;D.p=2;var a=ac;ac|=4;try{_s(e,t.alternate,t)}finally{ac=a,D.p=r,I.T=n}}Tc=3}}function lu(){if(4===Tc||3===Tc){Tc=0,ne();var e=Nc,t=Pc,n=Rc,r=Oc;10256&t.subtreeFlags||10256&t.flags?Tc=5:(Tc=0,Pc=Nc=null,su(e,e.pendingLanes));var a=e.pendingLanes;if(0===a&&(_c=null),ze(n),t=t.stateNode,pe&&"function"==typeof pe.onCommitFiberRoot)try{pe.onCommitFiberRoot(fe,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=I.T,a=D.p,D.p=2,I.T=null;try{for(var o=e.onRecoverableError,i=0;i<r.length;i++){var l=r[i];o(l.value,{componentStack:l.stack})}}finally{I.T=t,D.p=a}}3&Rc&&cu(),Cu(e),a=e.pendingLanes,4194090&n&&42&a?e===Lc?Ac++:(Ac=0,Lc=e):Ac=0,Eu(0)}}function su(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Ia(t))}function cu(e){return ou(),iu(),lu(),uu()}function uu(){if(5!==Tc)return!1;var e=Nc,t=zc;zc=0;var n=ze(Rc),a=I.T,o=D.p;try{D.p=32>n?32:n,I.T=null,n=jc,jc=null;var i=Nc,l=Rc;if(Tc=0,Pc=Nc=null,Rc=0,6&ac)throw Error(r(331));var s=ac;if(ac|=4,Zs(i.current),Vs(i,i.current,l,n),ac=s,Eu(0,!1),pe&&"function"==typeof pe.onPostCommitFiberRoot)try{pe.onPostCommitFiberRoot(fe,i)}catch(e){}return!0}finally{D.p=o,I.T=a,su(e,t)}}function du(e,t,n){t=_r(n,t),null!==(e=lo(e,t=El(e.stateNode,t,2),2))&&(Te(e,2),Cu(e))}function fu(e,t,n){if(3===e.tag)du(e,e,n);else for(;null!==t;){if(3===t.tag){du(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===_c||!_c.has(r))){e=_r(n,e),null!==(r=lo(t,n=_l(2),2))&&(Tl(n,r,t,e),Te(r,2),Cu(r));break}}t=t.return}}function pu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new rc;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(fc=!0,a.add(n),e=hu.bind(null,e,t,n),t.then(e,e))}function hu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,oc===e&&(lc&n)===n&&(4===hc||3===hc&&(62914560&lc)===lc&&300>re()-Sc?!(2&ac)&&Vc(e,0):bc|=n,vc===lc&&(vc=0)),Cu(e)}function mu(e,t){0===t&&(t=Ee()),null!==(e=Or(e,t))&&(Te(e,t),Cu(e))}function gu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mu(e,n)}function bu(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==a&&a.delete(t),mu(e,n)}var yu=null,vu=null,wu=!1,ku=!1,xu=!1,Su=0;function Cu(e){e!==vu&&null===e.next&&(null===vu?yu=vu=e:vu=vu.next=e),ku=!0,wu||(wu=!0,pd(function(){6&ac?Z(oe,_u):Tu()}))}function Eu(e,t){if(!xu&&ku){xu=!0;do{for(var n=!1,r=yu;null!==r;){if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var i=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-me(42|e)+1)-1,o=201326741&(o&=a&~(i&~l))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,Ru(r,o))}else o=lc,!(3&(o=ke(r,r===oc?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||xe(r,o)||(n=!0,Ru(r,o));r=r.next}}while(n);xu=!1}}function _u(){Tu()}function Tu(){ku=wu=!1;var e=0;0!==Su&&(function(){var e=window.event;return e&&"popstate"===e.type?e!==cd&&(cd=e,!0):(cd=null,!1)}()&&(e=Su),Su=0);for(var t=re(),n=null,r=yu;null!==r;){var a=r.next,o=Nu(r,t);0===o?(r.next=null,null===n?yu=a:n.next=a,null===a&&(vu=n)):(n=r,(0!==e||3&o)&&(ku=!0)),r=a}Eu(e)}function Nu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var i=31-me(o),l=1<<i,s=a[i];-1===s?0!==(l&n)&&0===(l&r)||(a[i]=Se(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(n=lc,n=ke(e,e===(t=oc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===sc||9===sc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||xe(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ee(r),ze(n)){case 2:case 8:n=ie;break;case 32:default:n=le;break;case 268435456:n=ce}return r=Pu.bind(null,e),n=Z(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ee(r),e.callbackPriority=2,e.callbackNode=null,2}function Pu(e,t){if(0!==Tc&&5!==Tc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cu()&&e.callbackNode!==n)return null;var r=lc;return 0===(r=ke(e,e===oc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:($c(e,r,t),Nu(e,re()),null!=e.callbackNode&&e.callbackNode===n?Pu.bind(null,e):null)}function Ru(e,t){if(cu())return null;$c(e,t,!0)}function zu(){return 0===Su&&(Su=Ce()),Su}function ju(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:zt(""+e)}function Ou(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Au=0;Au<Sr.length;Au++){var Lu=Sr[Au];Cr(Lu.toLowerCase(),"on"+(Lu[0].toUpperCase()+Lu.slice(1)))}Cr(mr,"onAnimationEnd"),Cr(gr,"onAnimationIteration"),Cr(br,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(yr,"onTransitionRun"),Cr(vr,"onTransitionStart"),Cr(wr,"onTransitionCancel"),Cr(kr,"onTransitionEnd"),Xe("onMouseEnter",["mouseout","mouseover"]),Xe("onMouseLeave",["mouseout","mouseover"]),Xe("onPointerEnter",["pointerout","pointerover"]),Xe("onPointerLeave",["pointerout","pointerover"]),Ge("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ge("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ge("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ge("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Iu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Du=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Iu));function Mu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==o&&a.isPropagationStopped())break e;o=l,a.currentTarget=c;try{o(a)}catch(e){vl(e)}a.currentTarget=null,o=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==o&&a.isPropagationStopped())break e;o=l,a.currentTarget=c;try{o(a)}catch(e){vl(e)}a.currentTarget=null,o=s}}}}function $u(e,t){var n=t[De];void 0===n&&(n=t[De]=new Set);var r=e+"__bubble";n.has(r)||(Wu(t,e,2,!1),n.add(r))}function Fu(e,t,n){var r=0;t&&(r|=4),Wu(n,e,r,t)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function Hu(e){if(!e[Uu]){e[Uu]=!0,Qe.forEach(function(t){"selectionchange"!==t&&(Du.has(t)||Fu(t,!1,e),Fu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Uu]||(t[Uu]=!0,Fu("selectionchange",!1,t))}}function Wu(e,t,n,r){switch(ff(t)){case 2:var a=of;break;case 8:a=lf;break;default:a=sf}n=a.bind(null,t,n,e),a=void 0,!Ut||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Bu(e,t,n,r,a){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var s=r.stateNode.containerInfo;if(s===a)break;if(4===l)for(l=r.return;null!==l;){var c=l.tag;if((3===c||4===c)&&l.stateNode.containerInfo===a)return;l=l.return}for(;null!==s;){if(null===(l=We(s)))return;if(5===(c=l.tag)||6===c||26===c||27===c){r=i=l;continue e}s=s.parentNode}}r=r.return}Mt(function(){var r=i,a=Ot(n),l=[];e:{var s=xr.get(e);if(void 0!==s){var c=tn,u=e;switch(e){case"keypress":if(0===Kt(n))break e;case"keydown":case"keyup":c=bn;break;case"focusin":u="focus",c=sn;break;case"focusout":u="blur",c=sn;break;case"beforeblur":case"afterblur":c=sn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=on;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=vn;break;case mr:case gr:case br:c=cn;break;case kr:c=wn;break;case"scroll":case"scrollend":c=rn;break;case"wheel":c=kn;break;case"copy":case"cut":case"paste":c=un;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=yn;break;case"toggle":case"beforetoggle":c=xn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===p||null!=(g=$t(m,p))&&d.push(Vu(m,g,h)),f)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,a),l.push({event:s,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===jt||!(u=n.relatedTarget||n.fromElement)||!We(u)&&!u[Ie])&&(c||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?We(u):null)&&(f=o(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=on,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=yn,g="onPointerLeave",p="onPointerEnter",m="pointer"),f=null==c?s:Ve(c),h=null==u?s:Ve(u),(s=new d(g,m+"leave",c,n,a)).target=f,s.relatedTarget=h,g=null,We(a)===r&&((d=new d(p,m+"enter",u,n,a)).target=h,d.relatedTarget=f,g=d),f=g,c&&u)e:{for(p=u,m=0,h=d=c;h;h=Ku(h))m++;for(h=0,g=p;g;g=Ku(g))h++;for(;0<m-h;)d=Ku(d),m--;for(;0<h-m;)p=Ku(p),h--;for(;m--;){if(d===p||null!==p&&d===p.alternate)break e;d=Ku(d),p=Ku(p)}d=null}else d=null;null!==c&&Qu(l,s,c,d,!1),null!==u&&null!==f&&Qu(l,f,u,d,!0)}if("select"===(c=(s=r?Ve(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var b=Fn;else if(An(s))if(Un)b=Gn;else{b=Qn;var y=Kn}else!(c=s.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Nt(r.elementType)&&(b=Fn):b=Yn;switch(b&&(b=b(e,r))?Ln(l,b,n,a):(y&&y(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&wt(s,"number",s.value)),y=r?Ve(r):window,e){case"focusin":(An(y)||"true"===y.contentEditable)&&(or=y,ir=r,lr=null);break;case"focusout":lr=ir=or=null;break;case"mousedown":sr=!0;break;case"contextmenu":case"mouseup":case"dragend":sr=!1,cr(l,n,a);break;case"selectionchange":if(ar)break;case"keydown":case"keyup":cr(l,n,a)}var v;if(Cn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else jn?Rn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Tn&&"ko"!==n.locale&&(jn||"onCompositionStart"!==w?"onCompositionEnd"===w&&jn&&(v=qt()):(Bt="value"in(Wt=a)?Wt.value:Wt.textContent,jn=!0)),0<(y=qu(r,w)).length&&(w=new dn(w,e,null,n,a),l.push({event:w,listeners:y}),(v||null!==(v=zn(n)))&&(w.data=v))),(v=_n?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Pn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Pn?null:e;default:return null}}(e,n):function(e,t){if(jn)return"compositionend"===e||!Cn&&Rn(e,t)?(e=qt(),Vt=Bt=Wt=null,jn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Tn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(w=qu(r,"onBeforeInput")).length&&(y=new dn("onBeforeInput","beforeinput",null,n,a),l.push({event:y,listeners:w}),y.data=v),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=ju((a[Le]||null).action),i=r.submitter;i&&null!==(t=(t=i[Le]||null)?ju(t.formAction):i.getAttribute("formAction"))&&(o=t,i=null);var l=new tn("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Su){var e=i?Ou(a,i):new FormData(a);Oi(n,{pending:!0,data:e,method:a.method,action:o},null,e)}}else"function"==typeof o&&(l.preventDefault(),e=i?Ou(a,i):new FormData(a),Oi(n,{pending:!0,data:e,method:a.method,action:o},o,e))},currentTarget:a}]})}}(l,e,r,n,a)}Mu(l,t)})}function Vu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qu(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=$t(e,n))&&r.unshift(Vu(e,a,o)),null!=(a=$t(e,t))&&r.push(Vu(e,a,o))),3===e.tag)return r;e=e.return}return[]}function Ku(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Qu(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===c||(s=c,a?null!=(c=$t(n,o))&&i.unshift(Vu(n,c,s)):a||null!=(c=$t(n,o))&&i.push(Vu(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Yu=/\r\n?/g,Gu=/\u0000|\uFFFD/g;function Xu(e){return("string"==typeof e?e:""+e).replace(Yu,"\n").replace(Gu,"")}function Ju(e,t){return t=Xu(t),Xu(e)===t}function Zu(){}function ed(e,t,n,a,o,i){switch(n){case"children":"string"==typeof a?"body"===t||"textarea"===t&&""===a||Ct(e,a):("number"==typeof a||"bigint"==typeof a)&&"body"!==t&&Ct(e,""+a);break;case"className":at(e,"class",a);break;case"tabIndex":at(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":at(e,n,a);break;case"style":Tt(e,a,i);break;case"data":if("object"!==t){at(e,"data",a);break}case"src":case"href":if(""===a&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==a||"function"==typeof a||"symbol"==typeof a||"boolean"==typeof a){e.removeAttribute(n);break}a=zt(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if("function"==typeof a){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&ed(e,t,"name",o.name,o,null),ed(e,t,"formEncType",o.formEncType,o,null),ed(e,t,"formMethod",o.formMethod,o,null),ed(e,t,"formTarget",o.formTarget,o,null)):(ed(e,t,"encType",o.encType,o,null),ed(e,t,"method",o.method,o,null),ed(e,t,"target",o.target,o,null))),null==a||"symbol"==typeof a||"boolean"==typeof a){e.removeAttribute(n);break}a=zt(""+a),e.setAttribute(n,a);break;case"onClick":null!=a&&(e.onclick=Zu);break;case"onScroll":null!=a&&$u("scroll",e);break;case"onScrollEnd":null!=a&&$u("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!=typeof a||!("__html"in a))throw Error(r(61));if(null!=(n=a.__html)){if(null!=o.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&"function"!=typeof a&&"symbol"!=typeof a;break;case"muted":e.muted=a&&"function"!=typeof a&&"symbol"!=typeof a;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==a||"function"==typeof a||"boolean"==typeof a||"symbol"==typeof a){e.removeAttribute("xlink:href");break}n=zt(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===a?e.setAttribute(n,""):!1!==a&&null!=a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":null==a||"function"==typeof a||"symbol"==typeof a||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":$u("beforetoggle",e),$u("toggle",e),rt(e,"popover",a);break;case"xlinkActuate":ot(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ot(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ot(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ot(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ot(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ot(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ot(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ot(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ot(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":rt(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&rt(e,n=Pt.get(n)||n,a)}}function td(e,t,n,a,o,i){switch(n){case"style":Tt(e,a,i);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!=typeof a||!("__html"in a))throw Error(r(61));if(null!=(n=a.__html)){if(null!=o.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof a?Ct(e,a):("number"==typeof a||"bigint"==typeof a)&&Ct(e,""+a);break;case"onScroll":null!=a&&$u("scroll",e);break;case"onScrollEnd":null!=a&&$u("scrollend",e);break;case"onClick":null!=a&&(e.onclick=Zu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ye.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Le]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!=typeof a)?n in e?e[n]=a:!0===a?e.setAttribute(n,""):rt(e,n,a):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o)))}}function nd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$u("error",e),$u("load",e);var a,o=!1,i=!1;for(a in n)if(n.hasOwnProperty(a)){var l=n[a];if(null!=l)switch(a){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,a,l,n,null)}}return i&&ed(e,t,"srcSet",n.srcSet,n,null),void(o&&ed(e,t,"src",n.src,n,null));case"input":$u("invalid",e);var s=a=l=i=null,c=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":i=d;break;case"type":l=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":a=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:ed(e,t,o,d,n,null)}}return vt(e,a,s,c,u,l,i,!1),void pt(e);case"select":for(i in $u("invalid",e),o=l=a=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":a=s;break;case"defaultValue":l=s;break;case"multiple":o=s;default:ed(e,t,i,s,n,null)}return t=a,n=l,e.multiple=!!o,void(null!=t?kt(e,!!o,t,!1):null!=n&&kt(e,!!o,n,!0));case"textarea":for(l in $u("invalid",e),a=i=o=null,n)if(n.hasOwnProperty(l)&&null!=(s=n[l]))switch(l){case"value":o=s;break;case"defaultValue":i=s;break;case"children":a=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(r(91));break;default:ed(e,t,l,s,n,null)}return St(e,o,i,a),void pt(e);case"option":for(c in n)n.hasOwnProperty(c)&&null!=(o=n[c])&&("selected"===c?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:ed(e,t,c,o,n,null));return;case"dialog":$u("beforetoggle",e),$u("toggle",e),$u("cancel",e),$u("close",e);break;case"iframe":case"object":$u("load",e);break;case"video":case"audio":for(o=0;o<Iu.length;o++)$u(Iu[o],e);break;case"image":$u("error",e),$u("load",e);break;case"details":$u("toggle",e);break;case"embed":case"source":case"link":$u("error",e),$u("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,u,o,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(o=n[d])&&td(e,t,d,o,n,void 0);return}}for(s in n)n.hasOwnProperty(s)&&null!=(o=n[s])&&ed(e,t,s,o,n,null)}var rd=null,ad=null;function od(e){return 9===e.nodeType?e:e.ownerDocument}function id(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ld(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function sd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cd=null,ud="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,fd="function"==typeof Promise?Promise:void 0,pd="function"==typeof queueMicrotask?queueMicrotask:void 0!==fd?function(e){return fd.resolve(null).then(e).catch(hd)}:ud;function hd(e){setTimeout(function(){throw e})}function md(e){return"head"===e}function gd(e,t){var n=t,r=0,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(1&n&&Sd(i.documentElement),2&n&&Sd(i.body),4&n)for(Sd(n=i.head),i=n.firstChild;i;){var l=i.nextSibling,s=i.nodeName;i[Ue]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=l}}if(0===a)return e.removeChild(o),void Rf(t);a--}else"$"===n||"$?"===n||"$!"===n?a++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);Rf(t)}function bd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":bd(n),He(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function yd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function vd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var wd=null;function kd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function xd(e,t,n){switch(t=od(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);He(e)}var Cd=new Map,Ed=new Set;function _d(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Td=D.d;D.d={f:function(){var e=Td.f(),t=Wc();return e||t},r:function(e){var t=Be(e);null!==t&&5===t.tag&&"form"===t.type?Li(t):Td.r(e)},D:function(e){Td.D(e),Pd("dns-prefetch",e,null)},C:function(e,t){Td.C(e,t),Pd("preconnect",e,t)},L:function(e,t,n){Td.L(e,t,n);var r=Nd;if(r&&e&&t){var a='link[rel="preload"][as="'+bt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+bt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+bt(n.imageSizes)+'"]')):a+='[href="'+bt(e)+'"]';var o=a;switch(t){case"style":o=zd(e);break;case"script":o=Ad(e)}Cd.has(o)||(e=c({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Cd.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(jd(o))||"script"===t&&r.querySelector(Ld(o))||(nd(t=r.createElement("link"),"link",e),Ke(t),r.head.appendChild(t)))}},m:function(e,t){Td.m(e,t);var n=Nd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+bt(r)+'"][href="'+bt(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Ad(e)}if(!Cd.has(o)&&(e=c({rel:"modulepreload",href:e},t),Cd.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ld(o)))return}nd(r=n.createElement("link"),"link",e),Ke(r),n.head.appendChild(r)}}},X:function(e,t){Td.X(e,t);var n=Nd;if(n&&e){var r=qe(n).hoistableScripts,a=Ad(e),o=r.get(a);o||((o=n.querySelector(Ld(a)))||(e=c({src:e,async:!0},t),(t=Cd.get(a))&&$d(e,t),Ke(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){Td.S(e,t,n);var r=Nd;if(r&&e){var a=qe(r).hoistableStyles,o=zd(e);t=t||"default";var i=a.get(o);if(!i){var l={loading:0,preload:null};if(i=r.querySelector(jd(o)))l.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Cd.get(o))&&Md(e,n);var s=i=r.createElement("link");Ke(s),nd(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Dd(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:l},a.set(o,i)}}},M:function(e,t){Td.M(e,t);var n=Nd;if(n&&e){var r=qe(n).hoistableScripts,a=Ad(e),o=r.get(a);o||((o=n.querySelector(Ld(a)))||(e=c({src:e,async:!0,type:"module"},t),(t=Cd.get(a))&&$d(e,t),Ke(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var Nd="undefined"==typeof document?null:document;function Pd(e,t,n){var r=Nd;if(r&&"string"==typeof t&&t){var a=bt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),Ed.has(a)||(Ed.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(nd(t=r.createElement("link"),"link",e),Ke(t),r.head.appendChild(t)))}}function Rd(e,t,n,a){var o,i,l,s,c=(c=q.current)?_d(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=zd(n.href),(a=(n=qe(c).hoistableStyles).get(t))||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=zd(n.href);var u=qe(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(jd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Cd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cd.set(e,n),u||(o=c,i=e,l=n,s=d.state,o.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=o.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),nd(i,"link",l),Ke(i),o.head.appendChild(i))))),t&&null===a)throw Error(r(528,""));return d}if(t&&null!==a)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Ad(n),(a=(n=qe(c).hoistableScripts).get(t))||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function zd(e){return'href="'+bt(e)+'"'}function jd(e){return'link[rel="stylesheet"]['+e+"]"}function Od(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function Ad(e){return'[src="'+bt(e)+'"]'}function Ld(e){return"script[async]"+e}function Id(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+bt(n.href)+'"]');if(a)return t.instance=a,Ke(a),a;var o=c({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ke(a=(e.ownerDocument||e).createElement("style")),nd(a,"style",o),Dd(a,n.precedence,e),t.instance=a;case"stylesheet":o=zd(n.href);var i=e.querySelector(jd(o));if(i)return t.state.loading|=4,t.instance=i,Ke(i),i;a=Od(n),(o=Cd.get(o))&&Md(a,o),Ke(i=(e.ownerDocument||e).createElement("link"));var l=i;return l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),nd(i,"link",a),t.state.loading|=4,Dd(i,n.precedence,e),t.instance=i;case"script":return i=Ad(n.src),(o=e.querySelector(Ld(i)))?(t.instance=o,Ke(o),o):(a=n,(o=Cd.get(i))&&$d(a=c({},n),o),Ke(o=(e=e.ownerDocument||e).createElement("script")),nd(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(a=t.instance,t.state.loading|=4,Dd(a,n.precedence,e));return t.instance}function Dd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,i=0;i<r.length;i++){var l=r[i];if(l.dataset.precedence===t)o=l;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Md(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function $d(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Fd=null;function Ud(e,t,n){if(null===Fd){var r=new Map,a=Fd=new Map;a.set(n,r)}else(r=(a=Fd).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Ue]||o[Ae]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var i=o.getAttribute(t)||"";i=e+i;var l=r.get(i);l?l.push(o):r.set(i,[o])}}return r}function Hd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Wd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Bd=null;function Vd(){}function qd(){if(this.count--,0===this.count)if(this.stylesheets)Qd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Kd=null;function Qd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Kd=new Map,t.forEach(Yd,e),Kd=null,qd.call(e))}function Yd(e,t){if(!(4&t.state.loading)){var n=Kd.get(e);if(n)var r=n.get(null);else{n=new Map,Kd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var i=a[o];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(a=t.instance).getAttribute("data-precedence"),(o=n.get(i)||r)===r&&n.set(null,a),n.set(i,a),this.count++,r=qd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var Gd={$$typeof:w,Provider:null,Consumer:null,_currentValue:M,_currentValue2:M,_threadCount:0};function Xd(e,t,n,r,a,o,i,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_e(0),this.hiddenUpdates=_e(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function Jd(e,t,n,r,a,o,i,l,s,c,u,d){return e=new Xd(e,t,n,i,l,s,c,d),t=1,!0===o&&(t|=24),o=Mr(3,null,null,t),e.current=o,o.stateNode=e,(t=La()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},ao(o),e}function Zd(e){return e?e=Ir:Ir}function ef(e,t,n,r,a,o){a=Zd(a),null===r.context?r.context=a:r.pendingContext=a,(r=io(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=lo(e,r,t))&&(Mc(n,0,t),so(n,e,t))}function tf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nf(e,t){tf(e,t),(e=e.alternate)&&tf(e,t)}function rf(e){if(13===e.tag){var t=Or(e,67108864);null!==t&&Mc(t,0,67108864),nf(e,67108864)}}var af=!0;function of(e,t,n,r){var a=I.T;I.T=null;var o=D.p;try{D.p=2,sf(e,t,n,r)}finally{D.p=o,I.T=a}}function lf(e,t,n,r){var a=I.T;I.T=null;var o=D.p;try{D.p=8,sf(e,t,n,r)}finally{D.p=o,I.T=a}}function sf(e,t,n,r){if(af){var a=cf(r);if(null===a)Bu(e,t,r,uf,n),kf(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return hf=xf(hf,e,t,n,r,a),!0;case"dragenter":return mf=xf(mf,e,t,n,r,a),!0;case"mouseover":return gf=xf(gf,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return bf.set(o,xf(bf.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,yf.set(o,xf(yf.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(kf(e,r),4&t&&-1<wf.indexOf(e)){for(;null!==a;){var o=Be(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var i=we(o.pendingLanes);if(0!==i){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-me(i);l.entanglements[1]|=s,i&=~s}Cu(o),!(6&ac)&&(Cc=re()+500,Eu(0))}}break;case 13:null!==(l=Or(o,2))&&Mc(l,0,2),Wc(),nf(o,2)}if(null===(o=cf(r))&&Bu(e,t,r,uf,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Bu(e,t,r,null,n)}}function cf(e){return df(e=Ot(e))}var uf=null;function df(e){if(uf=null,null!==(e=We(e))){var t=o(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=i(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uf=e,null}function ff(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ae()){case oe:return 2;case ie:return 8;case le:case se:return 32;case ce:return 268435456;default:return 32}default:return 32}}var pf=!1,hf=null,mf=null,gf=null,bf=new Map,yf=new Map,vf=[],wf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kf(e,t){switch(e){case"focusin":case"focusout":hf=null;break;case"dragenter":case"dragleave":mf=null;break;case"mouseover":case"mouseout":gf=null;break;case"pointerover":case"pointerout":bf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yf.delete(t.pointerId)}}function xf(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&null!==(t=Be(t))&&rf(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Sf(e){var t=We(e.target);if(null!==t){var n=o(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=i(n)))return e.blockedOn=t,void function(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}(e.priority,function(){if(13===n.tag){var e=Ic();e=Re(e);var t=Or(n,e);null!==t&&Mc(t,0,e),nf(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Cf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=cf(e.nativeEvent);if(null!==n)return null!==(t=Be(n))&&rf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);jt=r,n.target.dispatchEvent(r),jt=null,t.shift()}return!0}function Ef(e,t,n){Cf(e)&&n.delete(t)}function _f(){pf=!1,null!==hf&&Cf(hf)&&(hf=null),null!==mf&&Cf(mf)&&(mf=null),null!==gf&&Cf(gf)&&(gf=null),bf.forEach(Ef),yf.forEach(Ef)}function Tf(t,n){t.blockedOn===n&&(t.blockedOn=null,pf||(pf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,_f)))}var Nf=null;function Pf(t){Nf!==t&&(Nf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Nf===t&&(Nf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],a=t[e+2];if("function"!=typeof r){if(null===df(r||n))continue;break}var o=Be(n);null!==o&&(t.splice(e,3),e-=3,Oi(o,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Rf(e){function t(t){return Tf(t,e)}null!==hf&&Tf(hf,e),null!==mf&&Tf(mf,e),null!==gf&&Tf(gf,e),bf.forEach(t),yf.forEach(t);for(var n=0;n<vf.length;n++){var r=vf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<vf.length&&null===(n=vf[0]).blockedOn;)Sf(n),null===n.blockedOn&&vf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],i=a[Le]||null;if("function"==typeof o)i||Pf(n);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(a=o,i=o[Le]||null)l=i.formAction;else if(null!==df(a))continue}else l=i.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),Pf(n)}}}function zf(e){this._internalRoot=e}function jf(e){this._internalRoot=e}jf.prototype.render=zf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));ef(t.current,Ic(),e,t,null,null)},jf.prototype.unmount=zf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ef(e.current,2,null,e,null,null),Wc(),t[Ie]=null}},jf.prototype.unstable_scheduleHydration=function(e){if(e){var t=je();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vf.length&&0!==t&&t<vf[n].priority;n++);vf.splice(n,0,e),0===n&&Sf(e)}};var Of=t.version;if("19.1.1"!==Of)throw Error(r(527,Of,"19.1.1"));D.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=o(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(a=i.return)){n=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return l(i),e;if(s===a)return l(i),t;s=s.sibling}throw Error(r(188))}if(n.return!==a.return)n=i,a=s;else{for(var c=!1,u=i.child;u;){if(u===n){c=!0,n=i,a=s;break}if(u===a){c=!0,a=i,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,a=i;break}if(u===a){c=!0,a=s,n=i;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?s(e):null)?null:e.stateNode};var Af={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Lf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lf.isDisabled&&Lf.supportsFiber)try{fe=Lf.inject(Af),pe=Lf}catch(e){}}return b.createRoot=function(e,t){if(!a(e))throw Error(r(299));var n=!1,o="",i=wl,l=kl,s=xl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(l=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Jd(e,1,!1,null,0,n,o,i,l,s,0,null),e[Ie]=t.current,Hu(e),new zf(t)},b.hydrateRoot=function(e,t,n){if(!a(e))throw Error(r(299));var o=!1,i="",l=wl,s=kl,c=xl,u=null;return null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(l=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Jd(e,1,!0,t,0,o,i,l,s,c,0,u)).context=Zd(null),n=t.current,(i=io(o=Re(o=Ic()))).callback=null,lo(n,i,o),n=o,t.current.lanes=n,Te(t,n),Cu(t),e[Ie]=t.current,Hu(e),new jf(t)},b.version="19.1.1",b}()):g.exports=(R||(R=1,"production"!==process.env.NODE_ENV&&function(){function e(e,t){for(e=e.memoizedState;null!==e&&0<t;)e=e.next,t--;return e}function t(e,n,r,a){if(r>=n.length)return a;var o=n[r],i=Vu(e)?e.slice():_u({},e);return i[o]=t(e[o],n,r+1,a),i}function n(e,t,n){if(t.length===n.length){for(var a=0;a<n.length-1;a++)if(t[a]!==n[a])return void console.warn("copyWithRename() expects paths to be the same except for the deepest key");return r(e,t,n,0)}console.warn("copyWithRename() expects paths of the same length")}function r(e,t,n,a){var o=t[a],i=Vu(e)?e.slice():_u({},e);return a+1===t.length?(i[n[a]]=i[o],Vu(i)?i.splice(o,1):delete i[o]):i[o]=r(e[o],t,n,a+1),i}function a(e,t,n){var r=t[n],o=Vu(e)?e.slice():_u({},e);return n+1===t.length?(Vu(o)?o.splice(r,1):delete o[r],o):(o[r]=a(e[r],t,n+1),o)}function o(){return!1}function i(){return null}function l(){}function s(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function c(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function d(){}function f(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(", ")}function p(e,t,n,r){return new wn(e,t,n,r)}function h(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function g(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function b(e){if(m(e)!==e)throw Error("Unable to find node on an unmounted component.")}function y(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=y(e)))return t;e=e.sibling}return null}function v(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Wu&&e[Wu]||e["@@iterator"])?e:null}function w(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Bu?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ru:return"Fragment";case ju:return"Profiler";case zu:return"StrictMode";case Du:return"Suspense";case Mu:return"SuspenseList";case Uu:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Pu:return"Portal";case Lu:return(e.displayName||"Context")+".Provider";case Au:return(e._context.displayName||"Context")+".Consumer";case Iu:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $u:return null!==(t=e.displayName||null)?t:w(e.type)||"Memo";case Fu:t=e._payload,e=e._init;try{return w(e(t))}catch(e){}}return null}function x(e){return"number"==typeof e.tag?S(e):"string"==typeof e.name?e.name:null}function S(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return w(t);case 8:return t===zu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;break;case 29:if(null!=(t=e._debugInfo))for(var n=t.length-1;0<=n;n--)if("string"==typeof t[n].name)return t[n].name;if(null!==e.return)return S(e.return)}return null}function C(e){return{current:e}}function E(e,t){0>Xu?console.error("Unexpected pop."):(t!==Gu[Xu]&&console.error("Unexpected Fiber popped."),e.current=Yu[Xu],Yu[Xu]=null,Gu[Xu]=null,Xu--)}function _(e,t,n){Xu++,Yu[Xu]=e.current,Gu[Xu]=n,e.current=t}function T(e){return null===e&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function N(e,t){_(ed,t,e),_(Zu,e,e),_(Ju,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=9===n?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Xs(t):Lv;break;default:if(n=t.tagName,t=t.namespaceURI)t=Js(t=Xs(t),n);else switch(n){case"svg":t=Iv;break;case"math":t=Dv;break;default:t=Lv}}n={context:t,ancestorInfo:n=ht(null,n=n.toLowerCase())},E(Ju,e),_(Ju,n,e)}function R(e){E(Ju,e),E(Zu,e),E(ed,e)}function z(){return T(Ju.current)}function O(e){null!==e.memoizedState&&_(td,e,e);var t=T(Ju.current),n=e.type,r=Js(t.context,n);t!==(r={context:r,ancestorInfo:n=ht(t.ancestorInfo,n)})&&(_(Zu,e,e),_(Ju,r,e))}function A(e){Zu.current===e&&(E(Ju,e),E(Zu,e)),td.current===e&&(E(td,e),bw._currentValue=gw)}function L(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function I(e){try{return D(e),!1}catch(e){return!0}}function D(e){return""+e}function M(e,t){if(I(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,L(e)),D(e)}function $(e,t){if(I(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,L(e)),D(e)}function F(e){if(I(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",L(e)),D(e)}function U(e){if("function"==typeof hd&&md(e),bd&&"function"==typeof bd.setStrictMode)try{bd.setStrictMode(gd,e)}catch(e){vd||(vd=!0,console.error("React instrumentation encountered an error: %s",e))}}function H(){null!==yd&&"function"==typeof yd.markCommitStopped&&yd.markCommitStopped()}function W(e){null!==yd&&"function"==typeof yd.markComponentRenderStarted&&yd.markComponentRenderStarted(e)}function B(){null!==yd&&"function"==typeof yd.markComponentRenderStopped&&yd.markComponentRenderStopped()}function V(e){null!==yd&&"function"==typeof yd.markRenderStarted&&yd.markRenderStarted(e)}function q(){null!==yd&&"function"==typeof yd.markRenderStopped&&yd.markRenderStopped()}function K(e,t){null!==yd&&"function"==typeof yd.markStateUpdateScheduled&&yd.markStateUpdateScheduled(e,t)}function Q(e){return 1&e?"SyncHydrationLane":2&e?"Sync":4&e?"InputContinuousHydration":8&e?"InputContinuous":16&e?"DefaultHydration":32&e?"Default":128&e?"TransitionHydration":4194048&e?"Transition":62914560&e?"Retry":67108864&e?"SelectiveHydration":134217728&e?"IdleHydration":268435456&e?"Idle":536870912&e?"Offscreen":1073741824&e?"Deferred":void 0}function Y(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function G(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~o)?a=Y(r):0!==(i&=l)?a=Y(i):n||0!==(n=l&~e)&&(a=Y(n)):0!==(l=r&~o)?a=Y(l):0!==i?a=Y(i):n||0!==(n=r&~e)&&(a=Y(n)),0===a?0:0!==t&&t!==a&&0===(t&o)&&((o=a&-a)>=(n=t&-t)||32===o&&4194048&n)?t:a}function X(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function J(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Z(){var e=Cd;return!(4194048&(Cd<<=1))&&(Cd=256),e}function ee(){var e=Ed;return!(62914560&(Ed<<=1))&&(Ed=4194304),e}function te(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ne(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function re(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-kd(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function ae(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kd(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function oe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ie(e,t,n){if(wd)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-kd(n),a=1<<r;e[r].add(t),n&=~a}}function le(e,t){if(wd)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var a=31-kd(t);e=1<<a,0<(a=n[a]).size&&(a.forEach(function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)}),a.clear()),t&=~e}}function se(e){return _d<(e&=-e)?Td<e?134217727&e?Nd:Pd:Td:_d}function ce(){var e=Ku.p;return 0!==e?e:void 0===(e=window.event)?Nd:ru(e.type)}function ue(e){delete e[zd],delete e[jd],delete e[Ad],delete e[Ld],delete e[Id]}function de(e){var t=e[zd];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Od]||n[zd]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=vc(e);null!==e;){if(n=e[zd])return n;e=vc(e)}return t}n=(e=n).parentNode}return null}function fe(e){if(e=e[zd]||e[Od]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function pe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function he(e){var t=e[Dd];return t||(t=e[Dd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function me(e){e[Md]=!0}function ge(e,t){be(e,t),be(e+"Capture",t)}function be(e,t){Fd[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Fd[e]=t;var n=e.toLowerCase();for(Ud[n]=e,"onDoubleClick"===e&&(Ud.ondblclick=e),e=0;e<t.length;e++)$d.add(t[e])}function ye(e,t){Hd[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||("select"===e?console.error("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 `onChange`."):console.error("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||null==t.checked||console.error("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 ve(e){return!!nd.call(Vd,e)||!nd.call(Bd,e)&&(Wd.test(e)?Vd[e]=!0:(Bd[e]=!0,console.error("Invalid attribute name: `%s`",e),!1))}function we(e,t,n){if(ve(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":case"function":return n;case"boolean":if(!1===n)return n}return void 0===n?void 0:null}return""===(e=e.getAttribute(t))&&!0===n||(M(n,t),e===""+n?n:e)}}function ke(e,t,n){if(ve(t))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}M(n,t),e.setAttribute(t,""+n)}}function xe(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}M(n,t),e.setAttribute(t,""+n)}}function Se(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}M(r,n),e.setAttributeNS(t,n,""+r)}}function Ce(){}function Ee(e){if(void 0===Kd)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Kd=t&&t[1]||"",Qd=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Kd+e+Qd}function _e(e,t){if(!e||Yd)return"";var n,r=Gd.get(e);if(void 0!==r)return r;Yd=!0,r=Error.prepareStackTrace,Error.prepareStackTrace=void 0,n=qu.H,qu.H=null,function(){if(0===qd){gu=console.log,bu=console.info,yu=console.warn,vu=console.error,wu=console.group,ku=console.groupCollapsed,xu=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}qd++}();try{var a={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),l=i[0],s=i[1];if(l&&s){var c=l.split("\n"),u=s.split("\n");for(i=o=0;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(o===c.length||i===u.length)for(o=c.length-1,i=u.length-1;1<=o&&0<=i&&c[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(c[o]!==u[i]){if(1!==o||1!==i)do{if(o--,0>--i||c[o]!==u[i]){var d="\n"+c[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Gd.set(e,d),d}}while(1<=o&&0<=i);break}}}finally{Yd=!1,qu.H=n,function(){if(0===--qd){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_u({},e,{value:gu}),info:_u({},e,{value:bu}),warn:_u({},e,{value:yu}),error:_u({},e,{value:vu}),group:_u({},e,{value:wu}),groupCollapsed:_u({},e,{value:ku}),groupEnd:_u({},e,{value:xu})})}0>qd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=r}return c=(c=e?e.displayName||e.name:"")?Ee(c):"","function"==typeof e&&Gd.set(e,c),c}function Te(e){var t=Error.prepareStackTrace;return Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith("Error: react-stack-top-frame\n")&&(e=e.slice(29)),-1!==(t=e.indexOf("\n"))&&(e=e.slice(t+1)),-1!==(t=e.indexOf("react_stack_bottom_frame"))&&(t=e.lastIndexOf("\n",t)),-1===t?"":e=e.slice(0,t)}function Ne(e){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee("Lazy");case 13:return Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return Ee("Activity");default:return""}}function Pe(e){try{var t="";do{t+=Ne(e);var n=e._debugInfo;if(n)for(var r=n.length-1;0<=r;r--){var a=n[r];if("string"==typeof a.name){var o=t,i=a.env;t=o+Ee(a.name+(i?" ["+i+"]":""))}}e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function Re(e){return(e=e?e.displayName||e.name:"")?Ee(e):""}function ze(){if(null===Xd)return null;var e=Xd._debugOwner;return null!=e?x(e):null}function je(){if(null===Xd)return"";var e=Xd;try{var t="";switch(6===e.tag&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Ee(e.type);break;case 13:t+=Ee("Suspense");break;case 19:t+=Ee("SuspenseList");break;case 31:t+=Ee("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||""!==t||(t+=Re(e.type));break;case 11:e._debugOwner||""!==t||(t+=Re(e.type.render))}for(;e;)if("number"==typeof e.tag){var n=e;e=n._debugOwner;var r=n._debugStack;e&&r&&("string"!=typeof r&&(n._debugStack=r=Te(r)),""!==r&&(t+="\n"+r))}else{if(null==e.debugStack)break;var a=e.debugStack;(e=e.owner)&&a&&(t+="\n"+Te(a))}var o=t}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return o}function Oe(e,t,n,r,a,o,i){var l=Xd;Ae(e);try{return null!==e&&e._debugTask?e._debugTask.run(t.bind(null,n,r,a,o,i)):t(n,r,a,o,i)}finally{Ae(l)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ae(e){qu.getCurrentStack=null===e?null:je,Jd=!1,Xd=e}function Le(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return F(e),e;default:return""}}function Ie(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function De(e){e._valueTracker||(e._valueTracker=function(e){var t=Ie(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);F(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){F(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){F(e),r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Me(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ie(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $e(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Fe(e){return e.replace(Zd,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ue(e,t){void 0===t.checked||void 0===t.defaultChecked||tf||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ze()||"A component",t.type),tf=!0),void 0===t.value||void 0===t.defaultValue||ef||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ze()||"A component",t.type),ef=!0)}function He(e,t,n,r,a,o,i,l){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?(M(i,"type"),e.type=i):e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+Le(t)):e.value!==""+Le(t)&&(e.value=""+Le(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?Be(e,i,Le(t)):null!=n?Be(e,i,Le(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?(M(l,"name"),e.name=""+Le(l)):e.removeAttribute("name")}function We(e,t,n,r,a,o,i,l){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(M(o,"type"),e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+Le(n):"",t=null!=t?""+Le(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(M(i,"name"),e.name=i)}function Be(e,t,n){"number"===t&&$e(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ve(e,t){null==t.value&&("object"==typeof t.children&&null!==t.children?Cu.Children.forEach(t.children,function(e){null==e||"string"==typeof e||"number"==typeof e||"bigint"==typeof e||rf||(rf=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):null==t.dangerouslySetInnerHTML||af||(af=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),null==t.selected||nf||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),nf=!0)}function qe(){var e=ze();return e?"\n\nCheck the render method of `"+e+"`.":""}function Ke(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Le(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Qe(e,t){for(e=0;e<lf.length;e++){var n=lf[e];if(null!=t[n]){var r=Vu(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,qe()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,qe())}}void 0===t.value||void 0===t.defaultValue||of||(console.error("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://react.dev/link/controlled-components"),of=!0)}function Ye(e,t){void 0===t.value||void 0===t.defaultValue||sf||(console.error("%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://react.dev/link/controlled-components",ze()||"A component"),sf=!0),null!=t.children&&null==t.value&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Ge(e,t,n){null==t||((t=""+Le(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+Le(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Xe(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Vu(r)){if(1<r.length)throw Error("<textarea> can only have at most one child.");r=r[0]}n=r}null==n&&(n=""),t=n}n=Le(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function Je(e,t){return void 0===e.serverProps&&0===e.serverTail.length&&1===e.children.length&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Je(e.children[0],t):e}function Ze(e){return" "+" ".repeat(e)}function et(e){return"+ "+" ".repeat(e)}function tt(e){return"- "+" ".repeat(e)}function nt(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:case 1:return(e=e.type).displayName||e.name||null;case 11:return(e=e.type.render).displayName||e.name||null;default:return null}}function rt(e,t){return cf.test(e)?(e=JSON.stringify(e)).length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}":e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function at(e,t,n){var r=120-2*n;if(null===t)return et(n)+rt(e,r)+"\n";if("string"==typeof t){for(var a=0;a<t.length&&a<e.length&&t.charCodeAt(a)===e.charCodeAt(a);a++);return a>r-8&&10<a&&(e="..."+e.slice(a-8),t="..."+t.slice(a-8)),et(n)+rt(e,r)+"\n"+tt(n)+rt(t,r)+"\n"}return Ze(n)+rt(e,r)+"\n"}function ot(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function it(e,t){switch(typeof e){case"string":return(e=JSON.stringify(e)).length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(null===e)return"null";if(Vu(e))return"[...]";if(e.$$typeof===Nu)return(t=w(e.type))?"<"+t+">":"<...>";var n=ot(e);if("Object"===n){for(var r in n="",t-=2,e)if(e.hasOwnProperty(r)){var a=JSON.stringify(r);if(a!=='"'+r+'"'&&(r=a),t-=r.length-2,0>(t-=(a=it(e[r],15>t?t:15)).length)){n+=""===n?"...":", ...";break}n+=(""===n?"":",")+r+":"+a}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function lt(e,t){return"string"!=typeof e||cf.test(e)?"{"+it(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function st(e,t,n){var r,a=120-n.length-e.length,o=[];for(r in t)if(t.hasOwnProperty(r)&&"children"!==r){var i=lt(t[r],120-n.length-r.length-1);a-=r.length+i.length+2,o.push(r+"="+i)}return 0===o.length?n+"<"+e+">\n":0<a?n+"<"+e+" "+o.join(" ")+">\n":n+"<"+e+"\n"+n+" "+o.join("\n"+n+" ")+"\n"+n+">\n"}function ct(e,t,n){var r,a="",o=_u({},t);for(r in e)if(e.hasOwnProperty(r)){delete o[r];var i=120-2*n-r.length-2,l=it(e[r],i);t.hasOwnProperty(r)?(i=it(t[r],i),a+=et(n)+r+": "+l+"\n",a+=tt(n)+r+": "+i+"\n"):a+=et(n)+r+": "+l+"\n"}for(var s in o)o.hasOwnProperty(s)&&(e=it(o[s],120-2*n-s.length-2),a+=tt(n)+s+": "+e+"\n");return a}function ut(e,t){var n=nt(e);if(null===n){for(n="",e=e.child;e;)n+=ut(e,t),e=e.sibling;return n}return Ze(t)+"<"+n+">\n"}function dt(e,t){var n=Je(e,t);if(n!==e&&(1!==e.children.length||e.children[0]!==n))return Ze(t)+"...\n"+dt(n,t+1);n="";var r=e.fiber._debugInfo;if(r)for(var a=0;a<r.length;a++){var o=r[a].name;"string"==typeof o&&(n+=Ze(t)+"<"+o+">\n",t++)}if(r="",a=e.fiber.pendingProps,6===e.fiber.tag)r=at(a,e.serverProps,t),t++;else if(null!==(o=nt(e.fiber)))if(void 0===e.serverProps){var i=120-2*(r=t)-o.length-2,l="";for(c in a)if(a.hasOwnProperty(c)&&"children"!==c){var s=lt(a[c],15);if(0>(i-=c.length+s.length+2)){l+=" ...";break}l+=" "+c+"="+s}r=Ze(r)+"<"+o+l+">\n",t++}else null===e.serverProps?(r=st(o,a,et(t)),t++):"string"==typeof e.serverProps?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(r=function(e,t,n,r){var a="",o=new Map;for(c in n)n.hasOwnProperty(c)&&o.set(c.toLowerCase(),c);if(1===o.size&&o.has("children"))a+=st(e,t,Ze(r));else{for(var i in t)if(t.hasOwnProperty(i)&&"children"!==i){var l=120-2*(r+1)-i.length-1,s=o.get(i.toLowerCase());if(void 0!==s){o.delete(i.toLowerCase());var c=t[i];s=n[s];var u=lt(c,l);l=lt(s,l),"object"==typeof c&&null!==c&&"object"==typeof s&&null!==s&&"Object"===ot(c)&&"Object"===ot(s)&&(2<Object.keys(c).length||2<Object.keys(s).length||-1<u.indexOf("...")||-1<l.indexOf("..."))?a+=Ze(r+1)+i+"={{\n"+ct(c,s,r+2)+Ze(r+1)+"}}\n":(a+=et(r+1)+i+"="+u+"\n",a+=tt(r+1)+i+"="+l+"\n")}else a+=Ze(r+1)+i+"="+lt(t[i],l)+"\n"}o.forEach(function(e){if("children"!==e){var t=120-2*(r+1)-e.length-1;a+=tt(r+1)+e+"="+lt(n[e],t)+"\n"}}),a=""===a?Ze(r)+"<"+e+">\n":Ze(r)+"<"+e+"\n"+a+Ze(r)+">\n"}return e=n.children,t=t.children,"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(o="","string"!=typeof t&&"number"!=typeof t&&"bigint"!=typeof t||(o=""+t),a+=at(o,""+e,r+1)):"string"!=typeof t&&"number"!=typeof t&&"bigint"!=typeof t||(a=null==e?a+at(""+t,null,r+1):a+at(""+t,void 0,r+1)),a}(o,a,e.serverProps,t),t++);var c="";for(a=e.fiber.child,o=0;a&&o<e.children.length;)(i=e.children[o]).fiber===a?(c+=dt(i,t),o++):c+=ut(a,t),a=a.sibling;for(a&&0<e.children.length&&(c+=Ze(t)+"...\n"),a=e.serverTail,null===e.serverProps&&t--,e=0;e<a.length;e++)c="string"==typeof(o=a[e])?c+(tt(t)+rt(o,120-2*t)+"\n"):c+st(o.type,o.props,tt(t));return n+r+c}function ft(e){try{return"\n\n"+dt(e,0)}catch(e){return""}}function pt(e,t,n){for(var r=t,a=null,o=0;r;)r===e&&(o=0),a={fiber:r,children:null!==a?[a]:[],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:o},o++,r=r.return;return null!==a?ft(a).replaceAll(/^[+-]/gm,">"):""}function ht(e,t){var n=_u({},e||hf),r={tag:t};return-1!==df.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==ff.indexOf(t)&&(n.pTagInButtonScope=null),-1!==uf.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),"#document"===t||"html"===t?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=r),null!==e||"#document"!==t&&"html"!==t&&"body"!==t?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function mt(e,t,n){switch(t){case"select":return"hr"===e||"option"===e||"optgroup"===e||"script"===e||"template"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":if(n)break;return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":if(!n)return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===pf.indexOf(t);case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t;case"head":return n||null===t;case"html":return n&&"#document"===t||null===t;case"body":return n&&("#document"===t||"html"===t)||null===t}return!0}function gt(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function bt(e,t){var n=(t=t||hf).current;if(t=(n=mt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,t),!(t=n||t))return!0;var r=t.tag;if(t=String(!!n)+"|"+e+"|"+r,mf[t])return!1;mf[t]=!0;var a=(t=Xd)?gt(t.return,r):null,o=null!==t&&null!==a?pt(a,t,null):"",i="<"+e+">";return n?(n="","table"===r&&"tr"===e&&(n+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error("In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s",i,r,n,o)):console.error("In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s",i,r,o),t&&(e=t.return,null===a||null===e||a===e&&e._debugOwner===t._debugOwner||Oe(a,function(){console.error("<%s> cannot contain a nested %s.\nSee this log for the ancestor stack trace.",r,i)})),!1}function yt(e,t,n){if(n||mt("#text",t,!1))return!0;if(mf[n="#text|"+t])return!1;mf[n]=!0;var r=(n=Xd)?gt(n,t):null;return n=null!==n&&null!==r?pt(r,n,6!==n.tag?{children:null}:null):"",/\S/.test(e)?console.error("In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s",t,n):console.error("In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s",t,n),!1}function vt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function wt(e,t,n){var r=0===t.indexOf("--");r||(-1<t.indexOf("-")?Sf.hasOwnProperty(t)&&Sf[t]||(Sf[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,t.replace(wf,"ms-").replace(kf,function(e,t){return t.toUpperCase()}))):vf.test(t)?Sf.hasOwnProperty(t)&&Sf[t]||(Sf[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!xf.test(n)||Cf.hasOwnProperty(n)&&Cf[n]||(Cf[n]=!0,console.error('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',t,n.replace(xf,""))),"number"==typeof n&&(isNaN(n)?Ef||(Ef=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||_f||(_f=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Tf.has(t)?"float"===t?e.cssFloat=n:($(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function kt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,null!=n){if(t){var r={};if(n)for(var a in n)if(n.hasOwnProperty(a)&&!t.hasOwnProperty(a))for(var o=gf[a]||[a],i=0;i<o.length;i++)r[o[i]]=a;for(var l in t)if(t.hasOwnProperty(l)&&(!n||n[l]!==t[l]))for(a=gf[l]||[l],o=0;o<a.length;o++)r[a[o]]=l;for(var s in l={},t)for(a=gf[s]||[s],o=0;o<a.length;o++)l[a[o]]=s;for(var c in s={},r)if(a=r[c],(o=l[c])&&a!==o&&!s[i=a+","+o]){s[i]=!0,i=console;var u=t[a];i.error.call(i,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==u||"boolean"==typeof u||""===u?"Removing":"Updating",a,o)}}for(var d in n)!n.hasOwnProperty(d)||null!=t&&t.hasOwnProperty(d)||(0===d.indexOf("--")?e.setProperty(d,""):"float"===d?e.cssFloat="":e[d]="");for(var f in t)c=t[f],t.hasOwnProperty(f)&&n[f]!==c&&wt(e,f,c)}else for(r in t)t.hasOwnProperty(r)&&wt(e,r,t[r])}function xt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function St(e){return Rf.get(e)||e}function Ct(e,t){if(nd.call(Of,t)&&Of[t])return!0;if(Lf.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),null==(e=jf.hasOwnProperty(e)?e:null))return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Of[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Of[t]=!0}if(Af.test(t)){if(e=t.toLowerCase(),null==(e=jf.hasOwnProperty(e)?e:null))return Of[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Of[t]=!0)}return!0}function Et(e,t,n,r){if(nd.call(Df,t)&&Df[t])return!0;var a=t.toLowerCase();if("onfocusin"===a||"onfocusout"===a)return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Df[t]=!0;if("function"==typeof n&&("form"===e&&"action"===t||"input"===e&&"formAction"===t||"button"===e&&"formAction"===t))return!0;if(null!=r){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(null!=(r=e.hasOwnProperty(a)?e[a]:null))return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Df[t]=!0;if(Mf.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Df[t]=!0}else if(Mf.test(t))return $f.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Df[t]=!0;if(Ff.test(t)||Uf.test(t))return!0;if("innerhtml"===a)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Df[t]=!0;if("aria"===a)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Df[t]=!0;if("is"===a&&null!=n&&"string"!=typeof n)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Df[t]=!0;if("number"==typeof n&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Df[t]=!0;if(zf.hasOwnProperty(a)){if((a=zf[a])!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,a),Df[t]=!0}else if(t!==a)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,a),Df[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return"data-"===(a=t.toLowerCase().slice(0,5))||"aria-"===a||(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),Df[t]=!0)}case"function":case"symbol":return Df[t]=!0,!1;case"string":if("false"===n||"true"===n){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),Df[t]=!0}}return!0}function _t(e){return Hf.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Tt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Nt(e){var t=fe(e);if(t&&(e=t.stateNode)){var n=e[jd]||null;e:switch(e=t.stateNode,t.type){case"input":if(He(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(M(t,"name"),n=n.querySelectorAll('input[name="'+Fe(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[jd]||null;if(!a)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");He(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&Me(r)}break e;case"textarea":Ge(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&Ke(e,!!n.multiple,t,!1)}}}function Pt(e,t,n){if(qf)return e(t,n);qf=!0;try{return e(t)}finally{if(qf=!1,(null!==Bf||null!==Vf)&&(_l(),Bf&&(t=Bf,e=Vf,Vf=Bf=null,Nt(t),e)))for(t=0;t<e.length;t++)Nt(e[t])}}function Rt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[jd]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function zt(){if(tp)return tp;var e,t,n=ep,r=n.length,a="value"in Zf?Zf.value:Zf.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return tp=a.slice(e,1<t?1-t:void 0)}function jt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Ot(){return!0}function At(){return!1}function Lt(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Ot:At,this.isPropagationStopped=At,this}return _u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ot)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ot)},persist:function(){},isPersistent:Ot}),t}function It(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=gp[e])&&!!t[e]}function Dt(){return It}function Mt(e,t){switch(e){case"keyup":return-1!==Sp.indexOf(t.keyCode);case"keydown":return t.keyCode!==Cp;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $t(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function Ft(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Op[e.type]:"textarea"===t}function Ut(e,t,n,r){Bf?Vf?Vf.push(r):Vf=[r]:Bf=r,0<(t=Ns(t,"onChange")).length&&(n=new rp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}function Ht(e){ks(e,0)}function Wt(e){if(Me(pe(e)))return e}function Bt(e,t){if("change"===e)return t}function Vt(){Ap&&(Ap.detachEvent("onpropertychange",qt),Lp=Ap=null)}function qt(e){if("value"===e.propertyName&&Wt(Lp)){var t=[];Ut(t,Lp,e,Tt(e)),Pt(Ht,t)}}function Kt(e,t,n){"focusin"===e?(Vt(),Lp=n,(Ap=t).attachEvent("onpropertychange",qt)):"focusout"===e&&Vt()}function Qt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wt(Lp)}function Yt(e,t){if("click"===e)return Wt(t)}function Gt(e,t){if("input"===e||"change"===e)return Wt(t)}function Xt(e,t){if(Dp(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!nd.call(t,a)||!Dp(e[a],t[a]))return!1}return!0}function Jt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zt(e,t){var n,r=Jt(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Jt(r)}}function en(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?en(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tn(e){for(var t=$e((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=$e((e=t.contentWindow).document)}return t}function nn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function rn(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Hp||null==$p||$p!==$e(r)||(r="selectionStart"in(r=$p)&&nn(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Up&&Xt(Up,r)||(Up=r,0<(r=Ns(Fp,"onSelect")).length&&(t=new rp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$p)))}function an(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function on(e){if(Bp[e])return Bp[e];if(!Wp[e])return e;var t,n=Wp[e];for(t in n)if(n.hasOwnProperty(t)&&t in Vp)return Bp[e]=n[t];return e}function ln(e,t){Zp.set(e,t),ge(t,[e])}function sn(e,t){if("object"==typeof e&&null!==e){var n=th.get(e);return void 0!==n?n:(t={value:e,source:t,stack:Pe(t)},th.set(e,t),t)}return{value:e,source:t,stack:Pe(t)}}function cn(){for(var e=oh,t=ih=oh=0;t<e;){var n=ah[t];ah[t++]=null;var r=ah[t];ah[t++]=null;var a=ah[t];ah[t++]=null;var o=ah[t];if(ah[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==o&&pn(n,a,o)}}function un(e,t,n,r){ah[oh++]=e,ah[oh++]=t,ah[oh++]=n,ah[oh++]=r,ih|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function dn(e,t,n,r){return un(e,t,n,r),hn(e)}function fn(e,t){return un(e,null,null,t),hn(e)}function pn(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||e._visibility&nh||(a=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,a&&null!==t&&(a=31-kd(n),null===(r=(e=o.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),o):null}function hn(e){if(Hy>Uy)throw Ky=Hy=0,Qy=Wy=null,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.");Ky>qy&&(Ky=0,Qy=null,console.error("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.")),null===e.alternate&&4098&e.flags&&is(e);for(var t=e,n=t.return;null!==n;)null===t.alternate&&!!(4098&t.flags)&&is(e),n=(t=n).return;return 3===t.tag?t.stateNode:null}function mn(e){if(null===sh)return e;var t=sh(e);return void 0===t?e:t.current}function gn(e){if(null===sh)return e;var t=sh(e);return void 0===t?null!=e&&"function"==typeof e.render&&(t=mn(e.render),e.render!==t)?(t={$$typeof:Iu,render:t},void 0!==e.displayName&&(t.displayName=e.displayName),t):e:t.current}function bn(e,t){if(null===sh)return!1;var n=e.elementType,r=!1,a="object"==typeof(t=t.type)&&null!==t?t.$$typeof:null;switch(e.tag){case 1:"function"==typeof t&&(r=!0);break;case 0:("function"==typeof t||a===Fu)&&(r=!0);break;case 11:(a===Iu||a===Fu)&&(r=!0);break;case 14:case 15:(a===$u||a===Fu)&&(r=!0);break;default:return!1}return!(!r||(e=sh(n),void 0===e||e!==sh(t)))}function yn(e){null!==sh&&"function"==typeof WeakSet&&(null===ch&&(ch=new WeakSet),ch.add(e))}function vn(e,t,n){var r=e.alternate,a=e.child,o=e.sibling,i=e.tag,l=e.type,s=null;switch(i){case 0:case 15:case 1:s=l;break;case 11:s=l.render}if(null===sh)throw Error("Expected resolveFamily to be set during hot reload.");var c=!1;l=!1,null!==s&&void 0!==(s=sh(s))&&(n.has(s)?l=!0:t.has(s)&&(1===i?l=!0:c=!0)),null!==ch&&(ch.has(e)||null!==r&&ch.has(r))&&(l=!0),l&&(e._debugNeedsRemount=!0),(l||c)&&null!==(r=fn(e,2))&&kl(r,e,2),null===a||l||vn(a,t,n),null!==o&&vn(o,t,n)}function wn(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,gh||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}function kn(e){return!(!(e=e.prototype)||!e.isReactComponent)}function xn(e,t){var n=e.alternate;switch(null===n?((n=p(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:case 1:n.type=mn(e.type);break;case 11:n.type=gn(e.type)}return n}function Sn(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function Cn(e,t,n,r,a,o){var i=0,l=e;if("function"==typeof e)kn(e)&&(i=1),l=mn(l);else if("string"==typeof e)i=function(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===Iv||null!=t.itemProp)return!r||null==t.itemProp||"meta"!==e&&"title"!==e&&"style"!==e&&"link"!==e&&"script"!==e||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError){if("stylesheet"===t.rel&&"string"==typeof t.precedence){e=t.href;var a=t.onError,o=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),a&&n.push("`onError`"),null!=o&&n.push("`disabled`"),a=function(e){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" and "+e[1];default:return e.slice(0,-1).join(", ")+", and "+e[e.length-1]}}(n),a+=1===n.length?" prop":" props",o=1===n.length?"an "+a:"the "+a,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,o,a)}r&&("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return"stylesheet"!==t.rel||(e=t.precedence,t=t.disabled,"string"!=typeof e&&r&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),"string"==typeof e&&null==t);case"script":if(!(e=t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async)||t.onLoad||t.onError||!t.src||"string"!=typeof t.src){r&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":r&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}(e,n,i=z())?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case Uu:return(t=p(31,n,t,a)).elementType=Uu,t.lanes=o,t;case Ru:return _n(n.children,a,o,t);case zu:i=8,a|=ph,a|=hh;break;case ju:return r=a,"string"!=typeof(e=n).id&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),(t=p(12,e,t,r|fh)).elementType=ju,t.lanes=o,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Du:return(t=p(13,n,t,a)).elementType=Du,t.lanes=o,t;case Mu:return(t=p(19,n,t,a)).elementType=Mu,t.lanes=o,t;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ou:case Lu:i=10;break e;case Au:i=9;break e;case Iu:i=11,l=gn(l);break e;case $u:i=14;break e;case Fu:i=16,l=null;break e}l="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?n="null":Vu(e)?n="array":void 0!==e&&e.$$typeof===Nu?(n="<"+(w(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(i=r?x(r):null)&&(l+="\n\nCheck the render method of `"+i+"`."),i=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+n+"."+l),l=null}return(t=p(i,n,t,a)).elementType=e,t.type=l,t.lanes=o,t._debugOwner=r,t}function En(e,t,n){return(t=Cn(e.type,e.key,e.props,e._owner,t,n))._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function _n(e,t,n,r){return(e=p(7,e,r,t)).lanes=n,e}function Tn(e,t,n){return(e=p(6,e,null,t)).lanes=n,e}function Nn(e,t,n){return(t=p(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pn(e,t){On(),bh[yh++]=wh,bh[yh++]=vh,vh=e,wh=t}function Rn(e,t,n){On(),kh[xh++]=Ch,kh[xh++]=Eh,kh[xh++]=Sh,Sh=e;var r=Ch;e=Eh;var a=32-kd(r)-1;r&=~(1<<a),n+=1;var o=32-kd(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ch=1<<32-kd(t)+a|n<<a|r,Eh=o+e}else Ch=1<<o|n<<a|r,Eh=e}function zn(e){On(),null!==e.return&&(Pn(e,1),Rn(e,1,0))}function jn(e){for(;e===vh;)vh=bh[--yh],bh[yh]=null,wh=bh[--yh],bh[yh]=null;for(;e===Sh;)Sh=kh[--xh],kh[xh]=null,Eh=kh[--xh],kh[xh]=null,Ch=kh[--xh],kh[xh]=null}function On(){Nh||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function An(e,t){if(null===e.return){if(null===Rh)Rh={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Rh.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Rh.distanceFromLeaf>t&&(Rh.distanceFromLeaf=t)}return Rh}var n=An(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?((n=n[n.length-1]).distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function Ln(e,t){Ph||((e=An(e,0)).serverProps=null,null!==t&&(t=gc(t),e.serverTail.push(t)))}function In(e){var t="",n=Rh;throw null!==n&&(Rh=null,t=ft(n)),Hn(sn(Error("Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch"+t),e)),Oh}function Dn(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[zd]=e,t[jd]=r,zs(n,r),n){case"dialog":xs("cancel",t),xs("close",t);break;case"iframe":case"object":case"embed":xs("load",t);break;case"video":case"audio":for(n=0;n<lv.length;n++)xs(lv[n],t);break;case"source":xs("error",t);break;case"img":case"image":case"link":xs("error",t),xs("load",t);break;case"details":xs("toggle",t);break;case"input":ye("input",r),xs("invalid",t),Ue(0,r),We(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),De(t);break;case"option":Ve(0,r);break;case"select":ye("select",r),xs("invalid",t),Qe(t,r);break;case"textarea":ye("textarea",r),xs("invalid",t),Ye(0,r),Xe(t,r.value,r.defaultValue,r.children),De(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Is(t.textContent,n)?(null!=r.popover&&(xs("beforetoggle",t),xs("toggle",t)),null!=r.onScroll&&xs("scroll",t),null!=r.onScrollEnd&&xs("scrollend",t),null!=r.onClick&&(t.onclick=Ds),t=!0):t=!1,t||In(e)}function Mn(e){for(_h=e.return;_h;)switch(_h.tag){case 5:case 13:return void(jh=!1);case 27:case 3:return void(jh=!0);default:_h=_h.return}}function $n(e){if(e!==_h)return!1;if(!Nh)return Mn(e),Nh=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Zs(e.type,e.memoizedProps)),t=!t),t&&Th){for(t=Th;t;){var r=An(e,0),a=gc(t);r.serverTail.push(a),t="Suspense"===a.type?yc(t):mc(t.nextSibling)}In(e)}if(Mn(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Th=yc(e)}else 27===n?(n=Th,oc(e.type)?(e=Kv,Kv=null,Th=e):Th=n):Th=_h?mc(e.stateNode.nextSibling):null;return!0}function Fn(){Th=_h=null,Ph=Nh=!1}function Un(){var e=zh;return null!==e&&(null===by?by=e:by.push.apply(by,e),zh=null),e}function Hn(e){null===zh?zh=[e]:zh.push(e)}function Wn(){var e=Rh;if(null!==e){Rh=null;for(var t=ft(e);0<e.children.length;)e=e.children[0];Oe(e.fiber,function(){console.error("A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s","https://react.dev/link/hydration-mismatch",t)})}}function Bn(){Hh=Uh=null,Wh=!1}function Vn(e,t,n){_(Mh,t._currentValue,e),t._currentValue=n,_($h,t._currentRenderer,e),void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==Fh&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Fh}function qn(e,t){e._currentValue=Mh.current;var n=$h.current;E($h,t),e._currentRenderer=n,E(Mh,t)}function Kn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}e!==n&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Qn(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var o=a.dependencies;if(null!==o){var i=a.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=a;for(var s=0;s<t.length;s++)if(l.context===t[s]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Kn(o.return,n,e),r||(i=null);break e}o=l.next}}else if(18===a.tag){if(null===(i=a.return))throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");i.lanes|=n,null!==(o=i.alternate)&&(o.lanes|=n),Kn(i,n,e),i=null}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===e){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}}function Yn(e,t,n,r){e=null;for(var a=t,o=!1;null!==a;){if(!o)if(524288&a.flags)o=!0;else if(262144&a.flags)break;if(10===a.tag){var i=a.alternate;if(null===i)throw Error("Should have a current fiber. This is a bug in React.");if(null!==(i=i.memoizedProps)){var l=a.type;Dp(a.pendingProps.value,i.value)||(null!==e?e.push(l):e=[l])}}else if(a===td.current){if(null===(i=a.alternate))throw Error("Should have a current fiber. This is a bug in React.");i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(bw):e=[bw])}a=a.return}null!==e&&Qn(t,e,n,r),t.flags|=262144}function Gn(e){for(e=e.firstContext;null!==e;){if(!Dp(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xn(e){Uh=e,Hh=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Jn(e){return Wh&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),er(Uh,e)}function Zn(e,t){return null===Uh&&Xn(e),er(e,t)}function er(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Hh){if(null===e)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Hh=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Hh=Hh.next=t;return n}function tr(){return{controller:new Bh,data:new Map,refCount:0}}function nr(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function rr(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),0===e.refCount&&Vh(qh,function(){e.controller.abort()})}function ar(){var e=Jh;return Jh=0,e}function or(e){var t=Jh;return Jh=e,t}function ir(e){var t=Jh;return Jh+=e,t}function lr(e){Xh=Qh(),0>e.actualStartTime&&(e.actualStartTime=Xh)}function sr(e){if(0<=Xh){var t=Qh()-Xh;e.actualDuration+=t,e.selfBaseDuration=t,Xh=-1}}function cr(e){if(0<=Xh){var t=Qh()-Xh;e.actualDuration+=t,Xh=-1}}function ur(){if(0<=Xh){var e=Qh()-Xh;Xh=-1,Jh+=e}}function dr(){Xh=Qh()}function fr(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function pr(){if(0===--nm&&null!==tm){null!==am&&(am.status="fulfilled");var e=tm;tm=null,rm=0,am=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hr(){var e=im.current;return null!==e?e:Vb.pooledCache}function mr(e,t){_(im,null===t?im.current:t.pool,e)}function gr(){var e=hr();return null===e?null:{parent:Kh._currentValue,pool:e}}function br(e){return"fulfilled"===(e=e.status)||"rejected"===e}function yr(){}function vr(e,t,n){null!==qu.actQueue&&(qu.didUsePromise=!0);var r=e.thenables;switch(void 0===(n=r[n])?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(yr,yr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw kr(e=t.reason),e;default:if("string"==typeof t.status)t.then(yr,yr);else{if(null!==(e=Vb)&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw kr(e=t.reason),e}throw xm=t,Sm=!0,ym}}function wr(){if(null===xm)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=xm;return xm=null,Sm=!1,e}function kr(e){if(e===ym||e===wm)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function xr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Cr(e){return{lane:e,tag:Pm,payload:null,callback:null,next:null}}function Er(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,Lm===r&&!Am){var a=S(e);console.error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s",a),Am=!0}return(Bb&Lb)!==Ab?(null===(a=r.pending)?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=hn(e),pn(e,null,n),t):(un(e,r,t,n),hn(e))}function _r(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ae(e,n)}}function Tr(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Nr(){if(Im&&null!==am)throw am}function Pr(e,t,n,r){Im=!1;var a=e.updateQueue;Om=!1,Lm=a.shared;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?o=c:i.next=c,i=s;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s)}if(null!==o){var d=a.baseState;for(i=0,u=c=s=null,l=o;;){var f=-536870913&l.lane,p=f!==l.lane;if(p?(Kb&f)===f:(r&f)===f){0!==f&&f===rm&&(Im=!0),null!==u&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{f=e;var h=l,m=t,g=n;switch(h.tag){case Rm:if("function"==typeof(h=h.payload)){Wh=!0;var b=h.call(g,d,m);if(f.mode&ph){U(!0);try{h.call(g,d,m)}finally{U(!1)}}Wh=!1,d=b;break e}d=h;break e;case jm:f.flags=-65537&f.flags|128;case Pm:if("function"==typeof(b=h.payload)){if(Wh=!0,h=b.call(g,d,m),f.mode&ph){U(!0);try{b.call(g,d,m)}finally{U(!1)}}Wh=!1}else h=b;if(null==h)break e;d=_u({},d,h);break e;case zm:Om=!0}}null!==(f=l.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=a.callbacks)?a.callbacks=[f]:p.push(f))}else p={lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,i|=f;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(p=l).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}null===u&&(s=d),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null===o&&(a.shared.lanes=0),dy|=i,e.lanes=i,e.memoizedState=d}Lm=null}function Rr(e,t){if("function"!=typeof e)throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function zr(e,t){var n=e.shared.hiddenCallbacks;if(null!==n)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Rr(n[e],t)}function jr(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Rr(n[e],t)}function Or(e,t){var n=cy;_(Mm,n,e),_(Dm,t,e),cy=n|t.baseLanes}function Ar(e){_(Mm,cy,e),_(Dm,Dm.current,e)}function Lr(e){cy=Mm.current,E(Dm,e),E(Mm,e)}function Ir(){var e=tg;null===ng?ng=[e]:ng.push(e)}function Dr(){var e=tg;if(null!==ng&&(rg++,ng[rg]!==e)){var t=S(Bm);if(!$m.has(t)&&($m.add(t),null!==ng)){for(var n="",r=0;r<=rg;r++){var a=ng[r],o=r===rg?e:a;for(a=r+1+". "+a;30>a.length;)a+=" ";n+=a+=o+"\n"}console.error("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://react.dev/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}}function Mr(e){null==e||Vu(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",tg,typeof e)}function $r(){var e=S(Bm);Hm.has(e)||(Hm.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Fr(){throw 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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.")}function Ur(e,t){if(ag)return!1;if(null===t)return console.error("%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.",tg),!1;e.length!==t.length&&console.error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",tg,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Dp(e[n],t[n]))return!1;return!0}function Hr(e,t,n,r,a,o){Wm=o,Bm=t,ng=null!==e?e._debugHookTypes:null,rg=-1,ag=null!==e&&e.type!==t.type,"[object AsyncFunction]"!==Object.prototype.toString.call(n)&&"[object AsyncGeneratorFunction]"!==Object.prototype.toString.call(n)||(o=S(Bm),Um.has(o)||(Um.add(o),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",null===o?"An unknown Component":"<"+o+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,qu.H=null!==e&&null!==e.memoizedState?sg:null!==ng?lg:ig,Ym=o=(t.mode&ph)!==uh;var i=mg(n,r,a);if(Ym=!1,Qm&&(i=Br(t,n,r,a)),o){U(!0);try{i=Br(t,n,r,a)}finally{U(!1)}}return Wr(e,t),i}function Wr(e,t){t._debugHookTypes=ng,null===t.dependencies?null!==Jm&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Jm}):t.dependencies._debugThenableState=Jm,qu.H=og;var n=null!==Vm&&null!==Vm.next;if(Wm=0,ng=tg=qm=Vm=Bm=null,rg=-1,null!==e&&(65011712&e.flags)!=(65011712&t.flags)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Km=!1,Xm=0,Jm=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");null===e||sb||null!==(e=e.dependencies)&&Gn(e)&&(sb=!0),Sm?(Sm=!1,e=!0):e=!1,e&&(t=S(t)||"Unknown",Fm.has(t)||Um.has(t)||(Fm.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Br(e,t,n,r){Bm=e;var a=0;do{if(Qm&&(Jm=null),Xm=0,Qm=!1,a>=eg)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a+=1,ag=!1,qm=Vm=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}rg=-1,qu.H=cg,o=mg(t,n,r)}while(Qm);return o}function Vr(){var e=qu.H,t=e.useState()[0];return t="function"==typeof t.then?Xr(t):t,e=e.useState()[0],(null!==Vm?Vm.memoizedState:null)!==e&&(Bm.flags|=1024),t}function qr(){var e=0!==Gm;return Gm=0,e}function Kr(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&hh)!==uh?-402655237&t.flags:-2053&t.flags,e.lanes&=~n}function Qr(e){if(Km){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Km=!1}Wm=0,ng=qm=Vm=Bm=null,rg=-1,tg=null,Qm=!1,Xm=Gm=0,Jm=null}function Yr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qm?Bm.memoizedState=qm=e:qm=qm.next=e,qm}function Gr(){if(null===Vm){var e=Bm.alternate;e=null!==e?e.memoizedState:null}else e=Vm.next;var t=null===qm?Bm.memoizedState:qm.next;if(null!==t)qm=t,Vm=e;else{if(null===e){if(null===Bm.alternate)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}e={memoizedState:(Vm=e).memoizedState,baseState:Vm.baseState,baseQueue:Vm.baseQueue,queue:Vm.queue,next:null},null===qm?Bm.memoizedState=qm=e:qm=qm.next=e}return qm}function Xr(e){var t=Xm;return Xm+=1,null===Jm&&(Jm={didWarnAboutUncachedPromise:!1,thenables:[]}),e=vr(Jm,e,t),t=Bm,null===(null===qm?t.memoizedState:qm.next)&&(t=t.alternate,qu.H=null!==t&&null!==t.memoizedState?sg:ig),e}function Jr(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Xr(e);if(e.$$typeof===Lu)return Jn(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Zr(e){var t=null,n=Bm.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Bm.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Bm.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index])||ag)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Hu;else n.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",n.length,e);return t.index++,n}function ea(e,t){return"function"==typeof t?t(e):t}function ta(e,t,n){var r=Yr();if(void 0!==n){var a=n(t);if(Ym){U(!0);try{n(t)}finally{U(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=oo.bind(null,Bm,e),[r.memoizedState,e]}function na(e){return ra(Gr(),Vm,e)}function ra(e,t,n){var r=e.queue;if(null===r)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(null!==o){if(null!==a){var i=a.next;a.next=o.next,o.next=i}t.baseQueue!==a&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=a=o,r.pending=null}if(o=e.baseState,null===a)e.memoizedState=o;else{var l=i=null,s=null,c=t=a.next,u=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(Kb&d)===d:(Wm&d)===d){var f=c.revertLane;if(0===f)null!==s&&(s=s.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===rm&&(u=!0);else{if((Wm&f)===f){c=c.next,f===rm&&(u=!0);continue}d={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(l=s=d,i=o):s=s.next=d,Bm.lanes|=f,dy|=f}d=c.action,Ym&&n(o,d),o=c.hasEagerState?c.eagerState:n(o,d)}else f={lane:d,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(l=s=f,i=o):s=s.next=f,Bm.lanes|=d,dy|=d;c=c.next}while(null!==c&&c!==t);if(null===s?i=o:s.next=l,!Dp(o,e.memoizedState)&&(sb=!0,u&&null!==(n=am)))throw n;e.memoizedState=o,e.baseState=i,e.baseQueue=s,r.lastRenderedState=o}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function aa(e){var t=Gr(),n=t.queue;if(null===n)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{o=e(o,i.action),i=i.next}while(i!==a);Dp(o,t.memoizedState)||(sb=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function oa(e,t,n){var r=Bm,a=Yr();if(Nh){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var o=n();bm||o===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),bm=!0)}else{if(o=t(),bm||(n=t(),Dp(o,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),bm=!0)),null===Vb)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");124&Kb||la(r,t,o)}return a.memoizedState=o,n={value:o,getSnapshot:t},a.queue=n,Aa(ca.bind(null,r,n,e),[e]),r.flags|=2048,Ra(Em|Nm,{destroy:void 0,resource:void 0},sa.bind(null,r,n,o,t),null),o}function ia(e,t,n){var r=Bm,a=Gr(),o=Nh;if(o){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!bm){var i=t();Dp(n,i)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),bm=!0)}(i=!Dp((Vm||a).memoizedState,n))&&(a.memoizedState=n,sb=!0),a=a.queue;var l=ca.bind(null,r,a,e);if(Oa(2048,Nm,l,[e]),a.getSnapshot!==t||i||null!==qm&&qm.memoizedState.tag&Em){if(r.flags|=2048,Ra(Em|Nm,{destroy:void 0,resource:void 0},sa.bind(null,r,a,n,t),null),null===Vb)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");o||124&Wm||la(r,t,n)}return n}function la(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Bm.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Bm.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function sa(e,t,n,r){t.value=n,t.getSnapshot=r,ua(t)&&da(e)}function ca(e,t,n){return n(function(){ua(t)&&da(e)})}function ua(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dp(e,n)}catch(e){return!0}}function da(e){var t=fn(e,2);null!==t&&kl(t,e,2)}function fa(e){var t=Yr();if("function"==typeof e){var n=e;if(e=n(),Ym){U(!0);try{n()}finally{U(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:e},t}function pa(e){var t=(e=fa(e)).queue,n=io.bind(null,Bm,t);return t.dispatch=n,[e.memoizedState,n]}function ha(e){var t=Yr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=so.bind(null,Bm,!0,n),n.dispatch=t,[e,t]}function ma(e,t){return ga(Gr(),0,e,t)}function ga(e,t,n,r){return e.baseState=n,ra(e,Vm,"function"==typeof r?r:ea)}function ba(e,t){var n=Gr();return null!==Vm?ga(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])}function ya(e,t,n,r,a){if(co(e))throw Error("Cannot update form state while rendering.");if(null!==(e=t.action)){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==qu.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,va(t,o)):(o.next=n.next,t.pending=n.next=o)}}function va(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=qu.T,i={};qu.T=i,qu.T._updatedFibers=new Set;try{var l=n(a,r),s=qu.S;null!==s&&s(i,l),wa(e,t,l)}catch(n){xa(e,t,n)}finally{qu.T=o,null===o&&i._updatedFibers&&(e=i._updatedFibers.size,i._updatedFibers.clear(),10<e&&console.warn("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."))}}else try{wa(e,t,i=n(a,r))}catch(n){xa(e,t,n)}}function wa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?(n.then(function(n){ka(e,t,n)},function(n){return xa(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):ka(e,t,n)}function ka(e,t,n){t.status="fulfilled",t.value=n,Sa(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,va(e,n)))}function xa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Sa(t),t=t.next}while(t!==r)}e.action=null}function Sa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ca(e,t){return t}function Ea(e,t){if(Nh){var n=Vb.formState;if(null!==n){e:{var r=Bm;if(Nh){if(Th){t:{for(var a=Th,o=jh;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=mc(a.nextSibling))){a=null;break t}}a=(o=a.data)===zv||o===jv?a:null}if(a){Th=mc(a.nextSibling),r=a.data===zv;break e}}In(r)}r=!1}r&&(t=n[0])}}return(n=Yr()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:t},n.queue=r,n=io.bind(null,Bm,r),r.dispatch=n,r=fa(!1),o=so.bind(null,Bm,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=Yr()).queue=a,n=ya.bind(null,Bm,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function _a(e){return Ta(Gr(),Vm,e)}function Ta(e,t,n){if(t=ra(e,t,Ca)[0],e=na(ea)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Xr(t)}catch(e){if(e===ym)throw wm;throw e}else r=t;var a=(t=Gr()).queue,o=a.dispatch;return n!==t.memoizedState&&(Bm.flags|=2048,Ra(Em|Nm,{destroy:void 0,resource:void 0},Na.bind(null,a,n),null)),[r,o,e]}function Na(e,t){e.action=t}function Pa(e){var t=Gr(),n=Vm;if(null!==n)return Ta(t,n,e);Gr(),t=t.memoizedState;var r=(n=Gr()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ra(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Bm.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Bm.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(e){return e={current:e},Yr().memoizedState=e}function ja(e,t,n,r){var a=Yr();r=void 0===r?null:r,Bm.flags|=e,a.memoizedState=Ra(Em|t,{destroy:void 0,resource:void 0},n,r)}function Oa(e,t,n,r){var a=Gr();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==Vm&&null!==r&&Ur(r,Vm.memoizedState.deps)?a.memoizedState=Ra(t,o,n,r):(Bm.flags|=e,a.memoizedState=Ra(Em|t,o,n,r))}function Aa(e,t){(Bm.mode&hh)!==uh&&(Bm.mode&mh)===uh?ja(276826112,Nm,e,t):ja(8390656,Nm,e,t)}function La(e,t){var n=4194308;return(Bm.mode&hh)!==uh&&(n|=134217728),ja(n,Tm,e,t)}function Ia(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Da(e,t,n){"function"!=typeof t&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null"),n=null!=n?n.concat([e]):null;var r=4194308;(Bm.mode&hh)!==uh&&(r|=134217728),ja(r,Tm,Ia.bind(null,t,e),n)}function Ma(e,t,n){"function"!=typeof t&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null"),n=null!=n?n.concat([e]):null,Oa(4,Tm,Ia.bind(null,t,e),n)}function $a(e,t){return Yr().memoizedState=[e,void 0===t?null:t],e}function Fa(e,t){var n=Gr();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ur(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ua(e,t){var n=Yr();t=void 0===t?null:t;var r=e();if(Ym){U(!0);try{e()}finally{U(!1)}}return n.memoizedState=[r,t],r}function Ha(e,t){var n=Gr();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ur(t,r[1]))return r[0];if(r=e(),Ym){U(!0);try{e()}finally{U(!1)}}return n.memoizedState=[r,t],r}function Wa(e,t){return qa(Yr(),e,t)}function Ba(e,t){return Ka(Gr(),Vm.memoizedState,e,t)}function Va(e,t){var n=Gr();return null===Vm?qa(n,e,t):Ka(n,Vm.memoizedState,e,t)}function qa(e,t,n){return void 0===n||1073741824&Wm?e.memoizedState=t:(e.memoizedState=n,e=wl(),Bm.lanes|=e,dy|=e,n)}function Ka(e,t,n,r){return Dp(n,t)?n:null!==Dm.current?(e=qa(e,n,r),Dp(e,t)||(sb=!0),e):42&Wm?(e=wl(),Bm.lanes|=e,dy|=e,t):(sb=!0,e.memoizedState=n)}function Qa(e,t,n,r,a){var o=Ku.p;Ku.p=0!==o&&o<Td?o:Td;var i,l,s,c=qu.T,u={};qu.T=u,so(e,!1,t,n),u._updatedFibers=new Set;try{var d=a(),f=qu.S;null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?lo(e,t,(i=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){s.status="fulfilled",s.value=i;for(var e=0;e<l.length;e++)(0,l[e])(i)},function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),s),vl(e)):lo(e,t,r,vl(e))}catch(n){lo(e,t,{then:function(){},status:"rejected",reason:n},vl(e))}finally{Ku.p=o,qu.T=c,null===c&&u._updatedFibers&&(e=u._updatedFibers.size,u._updatedFibers.clear(),10<e&&console.warn("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."))}}function Ya(e,t,n,r){if(5!==e.tag)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var a=Ga(e).queue;Qa(e,a,t,gw,null===n?d:function(){return Xa(e),n(r)})}function Ga(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:gw,baseState:gw,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:gw},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Xa(e){null===qu.T&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition."),lo(e,Ga(e).next.queue,{},vl(e))}function Ja(){var e=fa(!1);return e=Qa.bind(null,Bm,e.queue,!0,!1),Yr().memoizedState=e,[!1,e]}function Za(){var e=na(ea)[0],t=Gr().memoizedState;return["boolean"==typeof e?e:Xr(e),t]}function eo(){var e=aa(ea)[0],t=Gr().memoizedState;return["boolean"==typeof e?e:Xr(e),t]}function to(){return Jn(bw)}function no(){var e=Yr(),t=Vb.identifierPrefix;if(Nh){var n=Eh;t="«"+t+"R"+(n=(Ch&~(1<<32-kd(Ch)-1)).toString(32)+n),0<(n=Gm++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Zm++).toString(32)+"»";return e.memoizedState=t}function ro(){return Yr().memoizedState=ao.bind(null,Bm)}function ao(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 24:case 3:var r=vl(n),a=Er(n,e=Cr(r),r);return null!==a&&(kl(a,n,r),_r(a,n,r)),n=tr(),null!=t&&null!==a&&console.error("The seed argument is not enabled outside experimental channels."),void(e.payload={cache:n})}n=n.return}}function oo(e,t,n){var r=arguments;"function"==typeof r[3]&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a={lane:r=vl(e),revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};co(e)?uo(t,a):null!==(a=dn(e,t,a,r))&&(kl(a,e,r),fo(a,t,r)),K(e,r)}function io(e,t,n){var r=arguments;"function"==typeof r[3]&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),lo(e,t,n,r=vl(e)),K(e,r)}function lo(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(co(e))uo(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer)){var i=qu.H;qu.H=dg;try{var l=t.lastRenderedState,s=o(l,n);if(a.hasEagerState=!0,a.eagerState=s,Dp(s,l))return un(e,t,a,0),null===Vb&&cn(),!1}catch(e){}finally{qu.H=i}}if(null!==(n=dn(e,t,a,r)))return kl(n,e,r),fo(n,t,r),!0}return!1}function so(e,t,n,r){if(null===qu.T&&0===rm&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),r={lane:2,revertLane:bs(),action:r,hasEagerState:!1,eagerState:null,next:null},co(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else null!==(t=dn(e,n,r,2))&&kl(t,e,2);K(e,2)}function co(e){var t=e.alternate;return e===Bm||null!==t&&t===Bm}function uo(e,t){Qm=Km=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fo(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ae(e,n)}}function po(e){var t=Ag;return null!=e&&(Ag=null===t?e:t.concat(e)),t}function ho(e,t,n){for(var r=Object.keys(e.props),a=0;a<r.length;a++){var o=r[a];if("children"!==o&&"key"!==o){null===t&&((t=En(e,n.mode,0))._debugInfo=Ag,t.return=n),Oe(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},o);break}}}function mo(e){var t=Og;return Og+=1,null===jg&&(jg={didWarnAboutUncachedPromise:!1,thenables:[]}),vr(jg,e,t)}function go(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function bo(e,t){if(t.$$typeof===Tu)throw Error('A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the "react" package is used.\n- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n- A compiler tries to "inline" JSX instead of using the runtime.');throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function yo(e,t){var n=S(e)||"Component";Dg[n]||(Dg[n]=!0,t=t.displayName||t.name||"Component",3===e.tag?console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n root.render(%s)",t,t,t):console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n <%s>{%s}</%s>",t,t,n,t,n))}function vo(e,t){var n=S(e)||"Component";Mg[n]||(Mg[n]=!0,t=String(t),3===e.tag?console.error("Symbols are not valid as a React child.\n root.render(%s)",t):console.error("Symbols are not valid as a React child.\n <%s>%s</%s>",n,t,n))}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=xn(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Tn(n,e.mode,r)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Ag,t):((t=a(t,n)).return=e,t._debugInfo=Ag,t)}function c(e,t,n,r){var o=n.type;return o===Ru?(ho(n,t=d(e,t,n.props.children,r,n.key),e),t):null!==t&&(t.elementType===o||bn(t,n)||"object"==typeof o&&null!==o&&o.$$typeof===Fu&&zg(o)===t.type)?(go(t=a(t,n.props),n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Ag,t):(go(t=En(n,e.mode,r),n),t.return=e,t._debugInfo=Ag,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nn(n,e.mode,r)).return=e,t._debugInfo=Ag,t):((t=a(t,n.children||[])).return=e,t._debugInfo=Ag,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=_n(n,e.mode,r,o)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Ag,t):((t=a(t,n)).return=e,t._debugInfo=Ag,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Tn(""+t,e.mode,n)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Ag,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Nu:return go(n=En(t,e.mode,n),t),n.return=e,e=po(t._debugInfo),n._debugInfo=Ag,Ag=e,n;case Pu:return(t=Nn(t,e.mode,n)).return=e,t._debugInfo=Ag,t;case Fu:var r=po(t._debugInfo);return e=f(e,t=zg(t),n),Ag=r,e}if(Vu(t)||v(t))return(n=_n(t,e.mode,n,null)).return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=po(t._debugInfo),n._debugInfo=Ag,Ag=e,n;if("function"==typeof t.then)return r=po(t._debugInfo),e=f(e,mo(t),n),Ag=r,e;if(t.$$typeof===Lu)return f(e,Zn(e,t),n);bo(e,t)}return"function"==typeof t&&yo(e,t),"symbol"==typeof t&&vo(e,t),null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Nu:return n.key===a?(a=po(n._debugInfo),e=c(e,t,n,r),Ag=a,e):null;case Pu:return n.key===a?u(e,t,n,r):null;case Fu:return a=po(n._debugInfo),e=h(e,t,n=zg(n),r),Ag=a,e}if(Vu(n)||v(n))return null!==a?null:(a=po(n._debugInfo),e=d(e,t,n,r,null),Ag=a,e);if("function"==typeof n.then)return a=po(n._debugInfo),e=h(e,t,mo(n),r),Ag=a,e;if(n.$$typeof===Lu)return h(e,t,Zn(e,n),r);bo(e,n)}return"function"==typeof n&&yo(e,n),"symbol"==typeof n&&vo(e,n),null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Nu:return n=e.get(null===r.key?n:r.key)||null,e=po(r._debugInfo),t=c(t,n,r,a),Ag=e,t;case Pu:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case Fu:var o=po(r._debugInfo);return t=m(e,t,n,r=zg(r),a),Ag=o,t}if(Vu(r)||v(r))return n=e.get(n)||null,e=po(r._debugInfo),t=d(t,n,r,a,null),Ag=e,t;if("function"==typeof r.then)return o=po(r._debugInfo),t=m(e,t,n,mo(r),a),Ag=o,t;if(r.$$typeof===Lu)return m(e,t,n,Zn(t,r),a);bo(t,r)}return"function"==typeof r&&yo(t,r),"symbol"==typeof r&&vo(t,r),null}function g(e,t,n,r){if("object"!=typeof n||null===n)return r;switch(n.$$typeof){case Nu:case Pu:l(e,t,n);var a=n.key;if("string"!=typeof a)break;if(null===r){(r=new Set).add(a);break}if(!r.has(a)){r.add(a);break}Oe(t,function(){console.error("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.",a)});break;case Fu:g(e,t,n=zg(n),r)}return r}function b(l,s,c,u){if("object"==typeof c&&null!==c&&c.type===Ru&&null===c.key&&(ho(c,null,l),c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case Nu:var d=po(c._debugInfo);e:{for(var p=c.key;null!==s;){if(s.key===p){if((p=c.type)===Ru){if(7===s.tag){n(l,s.sibling),(u=a(s,c.props.children)).return=l,u._debugOwner=c._owner,u._debugInfo=Ag,ho(c,u,l),l=u;break e}}else if(s.elementType===p||bn(s,c)||"object"==typeof p&&null!==p&&p.$$typeof===Fu&&zg(p)===s.type){n(l,s.sibling),go(u=a(s,c.props),c),u.return=l,u._debugOwner=c._owner,u._debugInfo=Ag,l=u;break e}n(l,s);break}t(l,s),s=s.sibling}c.type===Ru?((u=_n(c.props.children,l.mode,u,c.key)).return=l,u._debugOwner=l,u._debugTask=l._debugTask,u._debugInfo=Ag,ho(c,u,l),l=u):(go(u=En(c,l.mode,u),c),u.return=l,u._debugInfo=Ag,l=u)}return l=i(l),Ag=d,l;case Pu:e:{for(c=(d=c).key;null!==s;){if(s.key===c){if(4===s.tag&&s.stateNode.containerInfo===d.containerInfo&&s.stateNode.implementation===d.implementation){n(l,s.sibling),(u=a(s,d.children||[])).return=l,l=u;break e}n(l,s);break}t(l,s),s=s.sibling}(u=Nn(d,l.mode,u)).return=l,l=u}return i(l);case Fu:return d=po(c._debugInfo),l=b(l,s,c=zg(c),u),Ag=d,l}if(Vu(c))return d=po(c._debugInfo),l=function(a,i,l,s){for(var c=null,u=null,d=null,p=i,b=i=0,y=null;null!==p&&b<l.length;b++){p.index>b?(y=p,p=null):y=p.sibling;var v=h(a,p,l[b],s);if(null===v){null===p&&(p=y);break}c=g(a,v,l[b],c),e&&p&&null===v.alternate&&t(a,p),i=o(v,i,b),null===d?u=v:d.sibling=v,d=v,p=y}if(b===l.length)return n(a,p),Nh&&Pn(a,b),u;if(null===p){for(;b<l.length;b++)null!==(p=f(a,l[b],s))&&(c=g(a,p,l[b],c),i=o(p,i,b),null===d?u=p:d.sibling=p,d=p);return Nh&&Pn(a,b),u}for(p=r(p);b<l.length;b++)null!==(y=m(p,a,b,l[b],s))&&(c=g(a,y,l[b],c),e&&null!==y.alternate&&p.delete(null===y.key?b:y.key),i=o(y,i,b),null===d?u=y:d.sibling=y,d=y);return e&&p.forEach(function(e){return t(a,e)}),Nh&&Pn(a,b),u}(l,s,c,u),Ag=d,l;if(v(c)){if(d=po(c._debugInfo),"function"!=typeof(p=v(c)))throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var y=p.call(c);return y===c?0===l.tag&&"[object GeneratorFunction]"===Object.prototype.toString.call(l.type)&&"[object Generator]"===Object.prototype.toString.call(y)||(Lg||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Lg=!0):c.entries!==p||pg||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pg=!0),l=function(a,i,l,s){if(null==l)throw Error("An iterable object provided no iterator.");for(var c=null,u=null,d=i,p=i=0,b=null,y=null,v=l.next();null!==d&&!v.done;p++,v=l.next()){d.index>p?(b=d,d=null):b=d.sibling;var w=h(a,d,v.value,s);if(null===w){null===d&&(d=b);break}y=g(a,w,v.value,y),e&&d&&null===w.alternate&&t(a,d),i=o(w,i,p),null===u?c=w:u.sibling=w,u=w,d=b}if(v.done)return n(a,d),Nh&&Pn(a,p),c;if(null===d){for(;!v.done;p++,v=l.next())null!==(d=f(a,v.value,s))&&(y=g(a,d,v.value,y),i=o(d,i,p),null===u?c=d:u.sibling=d,u=d);return Nh&&Pn(a,p),c}for(d=r(d);!v.done;p++,v=l.next())null!==(b=m(d,a,p,v.value,s))&&(y=g(a,b,v.value,y),e&&null!==b.alternate&&d.delete(null===b.key?p:b.key),i=o(b,i,p),null===u?c=b:u.sibling=b,u=b);return e&&d.forEach(function(e){return t(a,e)}),Nh&&Pn(a,p),c}(l,s,y,u),Ag=d,l}if("function"==typeof c.then)return d=po(c._debugInfo),l=b(l,s,mo(c),u),Ag=d,l;if(c.$$typeof===Lu)return b(l,s,Zn(l,c),u);bo(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(d=""+c,null!==s&&6===s.tag?(n(l,s.sibling),(u=a(s,d)).return=l,l=u):(n(l,s),(u=Tn(d,l.mode,u)).return=l,u._debugOwner=l,u._debugTask=l._debugTask,u._debugInfo=Ag,l=u),i(l)):("function"==typeof c&&yo(l,c),"symbol"==typeof c&&vo(l,c),n(l,s))}return function(e,t,n,r){var a=Ag;Ag=null;try{Og=0;var o=b(e,t,n,r);return jg=null,o}catch(t){if(t===ym||t===wm)throw t;var i=p(29,t,null,e.mode);i.lanes=r,i.return=e;var l=i._debugInfo=Ag;if(i._debugOwner=e._debugOwner,i._debugTask=e._debugTask,null!=l)for(var s=l.length-1;0<=s;s--)if("string"==typeof l[s].stack){i._debugOwner=l[s],i._debugTask=l[s].debugTask;break}return i}finally{Ag=a}}}function ko(e){var t=e.alternate;_(Vg,Vg.current&Wg,e),_(Ug,e,e),null===Hg&&(null===t||null!==Dm.current||null!==t.memoizedState)&&(Hg=e)}function xo(e){if(22===e.tag){if(_(Vg,Vg.current,e),_(Ug,e,e),null===Hg){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Hg=e)}}else So(e)}function So(e){_(Vg,Vg.current,e),_(Ug,Ug.current,e)}function Co(e){E(Ug,e),Hg===e&&(Hg=null),E(Vg,e)}function Eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===_v||hc(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function _o(e){if(null!==e&&"function"!=typeof e){var t=String(e);nb.has(t)||(nb.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function To(e,t,n,r){var a=e.memoizedState,o=n(r,a);if(e.mode&ph){U(!0);try{o=n(r,a)}finally{U(!1)}}void 0===o&&(t=w(t)||"Component",Jg.has(t)||(Jg.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),a=null==o?a:_u({},a,o),e.memoizedState=a,0===e.lanes&&(e.updateQueue.baseState=a)}function No(e,t,n,r,a,o,i){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){if(n=l.shouldComponentUpdate(r,o,i),e.mode&ph){U(!0);try{n=l.shouldComponentUpdate(r,o,i)}finally{U(!1)}}return void 0===n&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",w(t)||"Component"),n}return!(t.prototype&&t.prototype.isPureReactComponent&&Xt(n,r)&&Xt(a,o))}function Po(e,t,n,r){var a=t.state;"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==a&&(e=S(e)||"Component",Kg.has(e)||(Kg.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),rb.enqueueReplaceState(t,t.state,null))}function Ro(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=_u({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}function zo(e){ab(e),console.warn("%s\n\n%s\n",ob?"An error occurred in the <"+ob+"> component.":"An error occurred in one of your React components.","Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.")}function jo(e){var t=ob?"The above error occurred in the <"+ob+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+(ib||"Anonymous")+".";if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var r=e.environmentName;"string"==typeof(e=["%o\n\n%s\n\n%s\n",e,t,n].slice(0))[0]?e.splice(0,1,yw+e[0],vw,kw+r+kw,ww):e.splice(0,0,yw,vw,kw+r+kw,ww),e.unshift(console),(r=xw.apply(console.error,e))()}else console.error("%o\n\n%s\n\n%s\n",e,t,n)}function Oo(e){ab(e)}function Ao(e,t){try{ob=t.source?S(t.source):null,ib=null;var n=t.value;null!==qu.actQueue?qu.thrownErrors.push(n):(0,e.onUncaughtError)(n,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Lo(e,t,n){try{ob=n.source?S(n.source):null,ib=S(t),(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Io(e,t,n){return(n=Cr(n)).tag=jm,n.payload={element:null},n.callback=function(){Oe(t.source,Ao,e,t)},n}function Do(e){return(e=Cr(e)).tag=jm,e}function Mo(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){yn(n),Oe(r.source,Lo,t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){yn(n),Oe(r.source,Lo,t,n,r),"function"!=typeof a&&(null===Cy?Cy=new Set([this]):Cy.add(this)),Sg(this,r),"function"==typeof a||!(2&n.lanes)&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",S(n)||"Unknown")})}function $o(e,t,n,r){t.child=null===e?Fg(t,null,n,r):$g(t,e.child,n,r)}function Fo(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var i={};for(var l in r)"ref"!==l&&(i[l]=r[l])}else i=r;return Xn(t),W(t),r=Hr(e,t,n,i,o,a),l=qr(),B(),null===e||sb?(Nh&&l&&zn(t),t.flags|=1,$o(e,t,r,a),t.child):(Kr(e,t,a),li(e,t,a))}function Uo(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||kn(o)||void 0!==o.defaultProps||null!==n.compare?((e=Cn(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(n=mn(o),t.tag=15,t.type=n,Go(t,o),Ho(e,t,n,r,a))}if(o=e.child,!si(e,a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:Xt)(i,r)&&e.ref===t.ref)return li(e,t,a)}return t.flags|=1,(e=xn(o,r)).ref=t.ref,e.return=t,t.child=e}function Ho(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Xt(o,r)&&e.ref===t.ref&&t.type===e.type){if(sb=!1,t.pendingProps=r=o,!si(e,a))return t.lanes=e.lanes,li(e,t,a);131072&e.flags&&(sb=!0)}}return qo(e,t,n,r,a)}function Wo(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==o?o.baseLanes|n:n,null!==e){for(a=t.child=e.child,o=0;null!==a;)o=o|a.lanes|a.childLanes,a=a.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Bo(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Bo(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&mr(t,null!==o?o.cachePool:null),null!==o?Or(t,o):Ar(t),xo(t)}else null!==o?(mr(t,o.cachePool),Or(t,o),So(t),t.memoizedState=null):(null!==e&&mr(t,null),Ar(t),So(t));return $o(e,t,a,n),t.child}function Bo(e,t,n,r){var a=hr();return a=null===a?null:{parent:Kh._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&mr(t,null),Ar(t),xo(t),null!==e&&Yn(e,t,r,!0),null}function Vo(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");null!==e&&e.ref===n||(t.flags|=4194816)}}function qo(e,t,n,r,a){if(n.prototype&&"function"==typeof n.prototype.render){var o=w(n)||"Unknown";cb[o]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",o,o),cb[o]=!0)}return t.mode&ph&&lm.recordLegacyContextWarning(t,null),null===e&&(Go(t,t.type),n.contextTypes&&(o=w(n)||"Unknown",db[o]||(db[o]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",o)))),Xn(t),W(t),n=Hr(e,t,n,r,void 0,a),r=qr(),B(),null===e||sb?(Nh&&r&&zn(t),t.flags|=1,$o(e,t,n,a),t.child):(Kr(e,t,a),li(e,t,a))}function Ko(e,t,n,r,a,o){return Xn(t),W(t),rg=-1,ag=null!==e&&e.type!==t.type,t.updateQueue=null,n=Br(t,r,n,a),Wr(e,t),r=qr(),B(),null===e||sb?(Nh&&r&&zn(t),t.flags|=1,$o(e,t,n,o),t.child):(Kr(e,t,o),li(e,t,o))}function Qo(e,t,n,r,a){switch(i(t)){case!1:var o=t.stateNode,l=new t.type(t.memoizedProps,o.context).state;o.updater.enqueueSetState(o,l,null);break;case!0:t.flags|=128,t.flags|=65536,o=Error("Simulated error coming from DevTools");var s=a&-a;if(t.lanes|=s,null===(l=Vb))throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Mo(s=Do(s),l,t,sn(o,t)),Tr(t,s)}if(Xn(t),null===t.stateNode){if(l=lh,o=n.contextType,"contextType"in n&&null!==o&&(void 0===o||o.$$typeof!==Lu)&&!tb.has(n)&&(tb.add(n),s=void 0===o?" 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.":"object"!=typeof o?" However, it is set to a "+typeof o+".":o.$$typeof===Au?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",w(n)||"Component",s)),"object"==typeof o&&null!==o&&(l=Jn(o)),o=new n(r,l),t.mode&ph){U(!0);try{o=new n(r,l)}finally{U(!1)}}if(l=t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=rb,t.stateNode=o,o._reactInternals=t,o._reactInternalInstance=qg,"function"==typeof n.getDerivedStateFromProps&&null===l&&(l=w(n)||"Component",Qg.has(l)||(Qg.add(l),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",l,null===o.state?"null":"undefined",l))),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate){var c=s=l=null;if("function"==typeof o.componentWillMount&&!0!==o.componentWillMount.__suppressDeprecationWarning?l="componentWillMount":"function"==typeof o.UNSAFE_componentWillMount&&(l="UNSAFE_componentWillMount"),"function"==typeof o.componentWillReceiveProps&&!0!==o.componentWillReceiveProps.__suppressDeprecationWarning?s="componentWillReceiveProps":"function"==typeof o.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof o.componentWillUpdate&&!0!==o.componentWillUpdate.__suppressDeprecationWarning?c="componentWillUpdate":"function"==typeof o.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==l||null!==s||null!==c){o=w(n)||"Component";var u="function"==typeof n.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Gg.has(o)||(Gg.add(o),console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles",o,u,null!==l?"\n "+l:"",null!==s?"\n "+s:"",null!==c?"\n "+c:""))}}o=t.stateNode,l=w(n)||"Component",o.render||(n.prototype&&"function"==typeof n.prototype.render?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",l):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",l)),!o.getInitialState||o.getInitialState.isReactClassApproved||o.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",l),o.getDefaultProps&&!o.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",l),o.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",l),n.childContextTypes&&!eb.has(n)&&(eb.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",l)),n.contextTypes&&!Zg.has(n)&&(Zg.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",l)),"function"==typeof o.componentShouldUpdate&&console.error("%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.",l),n.prototype&&n.prototype.isPureReactComponent&&void 0!==o.shouldComponentUpdate&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",w(n)||"A pure component"),"function"==typeof o.componentDidUnmount&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",l),"function"==typeof o.componentDidReceiveProps&&console.error("%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().",l),"function"==typeof o.componentWillRecieveProps&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",l),"function"==typeof o.UNSAFE_componentWillRecieveProps&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",l),s=o.props!==r,void 0!==o.props&&s&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",l),o.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",l,l),"function"!=typeof o.getSnapshotBeforeUpdate||"function"==typeof o.componentDidUpdate||Yg.has(n)||(Yg.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",w(n))),"function"==typeof o.getDerivedStateFromProps&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",l),"function"==typeof o.getDerivedStateFromError&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",l),"function"==typeof n.getSnapshotBeforeUpdate&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",l),(s=o.state)&&("object"!=typeof s||Vu(s))&&console.error("%s.state: must be set to an object or null",l),"function"==typeof o.getChildContext&&"object"!=typeof n.childContextTypes&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",l),(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},xr(t),l=n.contextType,o.context="object"==typeof l&&null!==l?Jn(l):lh,o.state===r&&(l=w(n)||"Component",Xg.has(l)||(Xg.add(l),console.error("%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))),t.mode&ph&&lm.recordLegacyContextWarning(t,o),lm.recordUnsafeLifecycleWarnings(t,o),o.state=t.memoizedState,"function"==typeof(l=n.getDerivedStateFromProps)&&(To(t,n,l,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(l=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),l!==o.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",S(t)||"Component"),rb.enqueueReplaceState(o,o.state,null)),Pr(t,r,o,a),Nr(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&hh)!==uh&&(t.flags|=134217728),o=!0}else if(null===e){o=t.stateNode;var d=t.memoizedProps;s=Ro(n,d),o.props=s;var f=o.context;c=n.contextType,l=lh,"object"==typeof c&&null!==c&&(l=Jn(c)),c="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate,d=t.pendingProps!==d,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(d||f!==l)&&Po(t,o,r,l),Om=!1;var p=t.memoizedState;o.state=p,Pr(t,r,o,a),Nr(),f=t.memoizedState,d||p!==f||Om?("function"==typeof u&&(To(t,n,u,r),f=t.memoizedState),(s=Om||No(t,n,s,r,p,f,l))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&hh)!==uh&&(t.flags|=134217728)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&hh)!==uh&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,o=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&hh)!==uh&&(t.flags|=134217728),o=!1)}else{o=t.stateNode,Sr(e,t),c=Ro(n,l=t.memoizedProps),o.props=c,u=t.pendingProps,p=o.context,f=n.contextType,s=lh,"object"==typeof f&&null!==f&&(s=Jn(f)),(f="function"==typeof(d=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==u||p!==s)&&Po(t,o,r,s),Om=!1,p=t.memoizedState,o.state=p,Pr(t,r,o,a),Nr();var h=t.memoizedState;l!==u||p!==h||Om||null!==e&&null!==e.dependencies&&Gn(e.dependencies)?("function"==typeof d&&(To(t,n,d,r),h=t.memoizedState),(c=Om||No(t,n,c,r,p,h,s)||null!==e&&null!==e.dependencies&&Gn(e.dependencies))?(f||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,o=c):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}if(s=o,Vo(e,t),l=!!(128&t.flags),s||l){if(s=t.stateNode,Ae(t),l&&"function"!=typeof n.getDerivedStateFromError)n=null,Xh=-1;else{if(W(t),n=bg(s),t.mode&ph){U(!0);try{bg(s)}finally{U(!1)}}B()}t.flags|=1,null!==e&&l?(t.child=$g(t,e.child,null,a),t.child=$g(t,null,n,a)):$o(e,t,n,a),t.memoizedState=s.state,e=t.child}else e=li(e,t,a);return a=t.stateNode,o&&a.props!==r&&(pb||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",S(t)||"a component"),pb=!0),e}function Yo(e,t,n,r){return Fn(),t.flags|=256,$o(e,t,n,r),t.child}function Go(e,t){t&&t.childContextTypes&&console.error("childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",t.displayName||t.name||"Component"),"function"==typeof t.getDerivedStateFromProps&&(e=w(t)||"Unknown",fb[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),fb[e]=!0)),"object"==typeof t.contextType&&null!==t.contextType&&(t=w(t)||"Unknown",ub[t]||(console.error("%s: Function components do not support contextType.",t),ub[t]=!0))}function Xo(e){return{baseLanes:e,cachePool:gr()}}function Jo(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=hy),e}function Zo(e,t,n){var r,a=t.pendingProps;o(t)&&(t.flags|=128);var i=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(Vg.current&Bg)),r&&(i=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(Nh){if(i?ko(t):So(t),Nh){var s,c=Th;if(!(s=!c)){e:{var u=c;for(s=jh;8!==u.nodeType;){if(!s){s=null;break e}if(null===(u=mc(u.nextSibling))){s=null;break e}}s=u}null!==s?(On(),t.memoizedState={dehydrated:s,treeContext:null!==Sh?{id:Ch,overflow:Eh}:null,retryLane:536870912,hydrationErrors:null},(u=p(18,null,null,uh)).stateNode=s,u.return=t,t.child=u,_h=t,Th=null,s=!0):s=!1,s=!s}s&&(Ln(t,c),In(t))}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return hc(c)?t.lanes=32:t.lanes=536870912,null;Co(t)}return c=a.children,a=a.fallback,i?(So(t),c=ti({mode:"hidden",children:c},i=t.mode),a=_n(a,i,n,null),c.return=t,a.return=t,c.sibling=a,t.child=c,(i=t.child).memoizedState=Xo(n),i.childLanes=Jo(e,r,n),t.memoizedState=gb,a):(ko(t),ei(t,c))}var d=e.memoizedState;if(null!==d&&null!==(c=d.dehydrated)){if(l)256&t.flags?(ko(t),t.flags&=-257,t=ni(e,t,n)):null!==t.memoizedState?(So(t),t.child=e.child,t.flags|=128,t=null):(So(t),i=a.fallback,c=t.mode,a=ti({mode:"visible",children:a.children},c),(i=_n(i,c,n,null)).flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,$g(t,e.child,null,n),(a=t.child).memoizedState=Xo(n),a.childLanes=Jo(e,r,n),t.memoizedState=gb,t=i);else if(ko(t),Nh&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),hc(c)){if(r=c.nextSibling&&c.nextSibling.dataset){s=r.dgst;var f=r.msg;u=r.stck;var h=r.cstck}r=s,a=u,s=i=h,(i=(c=f)?Error(c):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")).stack=a||"",i.digest=r,a={value:i,source:null,stack:r=void 0===s?null:s},"string"==typeof r&&th.set(i,a),Hn(a),t=ni(e,t,n)}else if(sb||Yn(e,t,n,!1),r=0!==(n&e.childLanes),sb||r){if(null!==(r=Vb)&&0!==(a=0!==((a=42&(a=n&-n)?1:oe(a))&(r.suspendedLanes|n))?0:a)&&a!==d.retryLane)throw d.retryLane=a,fn(e,a),kl(r,e,a),lb;c.data===_v||jl(),t=ni(e,t,n)}else c.data===_v?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,Th=mc(c.nextSibling),_h=t,Nh=!0,zh=null,Ph=!1,Rh=null,jh=!1,null!==e&&(On(),kh[xh++]=Ch,kh[xh++]=Eh,kh[xh++]=Sh,Ch=e.id,Eh=e.overflow,Sh=t),(t=ei(t,a.children)).flags|=4096);return t}return i?(So(t),i=a.fallback,c=t.mode,u=(s=e.child).sibling,(a=xn(s,{mode:"hidden",children:a.children})).subtreeFlags=65011712&s.subtreeFlags,null!==u?i=xn(u,i):(i=_n(i,c,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,null===(c=e.child.memoizedState)?c=Xo(n):(null!==(s=c.cachePool)?(u=Kh._currentValue,s=s.parent!==u?{parent:u,pool:u}:s):s=gr(),c={baseLanes:c.baseLanes|n,cachePool:s}),i.memoizedState=c,i.childLanes=Jo(e,r,n),t.memoizedState=gb,a):(ko(t),e=(n=e.child).sibling,(n=xn(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function ei(e,t){return(t=ti({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ti(e,t){return(e=p(22,e,null,t)).lanes=0,e.stateNode={_visibility:nh,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ni(e,t,n){return $g(t,e.child,null,n),(e=ei(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ri(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Kn(e.return,t,n)}function ai(e,t){var n=Vu(e);return e=!n&&"function"==typeof v(e),!n&&!e||(n=n?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",n,t,n),!1)}function oi(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function ii(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(r=r.children,void 0!==a&&"forwards"!==a&&"backwards"!==a&&"together"!==a&&!hb[a])if(hb[a]=!0,"string"==typeof a)switch(a.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',a,a.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',a,a.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',a)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',a);void 0===o||mb[o]||("collapsed"!==o&&"hidden"!==o?(mb[o]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',o)):"forwards"!==a&&"backwards"!==a&&(mb[o]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',o)));e:if(("forwards"===a||"backwards"===a)&&null!=r&&!1!==r)if(Vu(r)){for(var i=0;i<r.length;i++)if(!ai(r[i],i))break e}else if(i=v(r),"function"==typeof i){if(i=i.call(r))for(var l=i.next(),s=0;!l.done;l=i.next()){if(!ai(l.value,s))break e;s++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a);if($o(e,t,r,n),0!==((r=Vg.current)&Bg))r=r&Wg|Bg,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ri(e,n,t);else if(19===e.tag)ri(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=Wg}switch(_(Vg,r,t),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Eo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),oi(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Eo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}oi(t,!0,n,null,o);break;case"together":oi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function li(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Xh=-1,dy|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Yn(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==t.child){for(n=xn(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=xn(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function si(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Gn(e))}function ci(e,t,n){if(t._debugNeedsRemount&&null!==e){(n=Cn(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes))._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(null===r)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var a=r.child;if(null===a)throw Error("Expected parent to have a child.");for(;a.sibling!==t;)if(null===(a=a.sibling))throw Error("Expected to find the previous sibling.");a.sibling=n}return null===(t=r.deletions)?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(null!==e)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)sb=!0;else{if(!(si(e,n)||128&t.flags))return sb=!1,function(e,t,n){switch(t.tag){case 3:N(t,t.stateNode.containerInfo),Vn(t,Kh,e.memoizedState.cache),Fn();break;case 27:case 5:O(t);break;case 4:N(t,t.stateNode.containerInfo);break;case 10:Vn(t,t.type,t.memoizedProps.value);break;case 12:0!==(n&t.childLanes)&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ko(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Zo(e,t,n):(ko(t),null!==(e=li(e,t,n))?e.sibling:null);ko(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Yn(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return ii(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),_(Vg,Vg.current,t),r)break;return null;case 22:case 23:return t.lanes=0,Wo(e,t,n);case 24:Vn(t,Kh,e.memoizedState.cache)}return li(e,t,n)}(e,t,n);sb=!!(131072&e.flags)}else sb=!1,(r=Nh)&&(On(),r=!!(1048576&t.flags)),r&&(r=t.index,On(),Rn(t,wh,r));switch(t.lanes=0,t.tag){case 16:e:{if(r=t.pendingProps,e=zg(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){if((a=e.$$typeof)===Iu){t.tag=11,t.type=e=gn(e),t=Fo(null,t,e,r,n);break e}if(a===$u){t.tag=14,t=Uo(null,t,e,r,n);break e}}throw t="",null!==e&&"object"==typeof e&&e.$$typeof===Fu&&(t=" Did you wrap a component in React.lazy() more than once?"),e=w(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}kn(e)?(r=Ro(e,r),t.tag=1,t.type=e=mn(e),t=Qo(null,t,e,r,n)):(t.tag=0,Go(t,e),t.type=e=mn(e),t=qo(null,t,e,r,n))}return t;case 0:return qo(e,t,t.type,t.pendingProps,n);case 1:return Qo(e,t,r=t.type,a=Ro(r,t.pendingProps),n);case 3:e:{if(N(t,t.stateNode.containerInfo),null===e)throw Error("Should have a current fiber. This is a bug in React.");r=t.pendingProps;var o=t.memoizedState;a=o.element,Sr(e,t),Pr(t,r,null,n);var i=t.memoizedState;if(r=i.cache,Vn(t,Kh,r),r!==o.cache&&Qn(t,[Kh],n,!0),Nr(),r=i.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Yo(e,t,r,n);break e}if(r!==a){Hn(a=sn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t)),t=Yo(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,Th=mc(e.firstChild),_h=t,Nh=!0,zh=null,Ph=!1,Rh=null,jh=!0,e=Fg(t,null,r,n),t.child=e;e;)e.flags=-3&e.flags|4096,e=e.sibling}else{if(Fn(),r===a){t=li(e,t,n);break e}$o(e,t,r,n)}t=t.child}return t;case 26:return Vo(e,t),null===e?(e=Tc(t.type,null,t.pendingProps,null))?t.memoizedState=e:Nh||(e=t.type,n=t.pendingProps,(r=Gs(r=T(ed.current)).createElement(e))[zd]=t,r[jd]=n,Fs(r,e,n),me(r),t.stateNode=r):t.memoizedState=Tc(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return O(t),null===e&&Nh&&(r=T(ed.current),a=z(),r=t.stateNode=xc(t.type,t.pendingProps,r,a,!1),Ph||null!==(a=Ys(r,t.type,t.pendingProps,a))&&(An(t,0).serverProps=a),_h=t,jh=!0,a=Th,oc(t.type)?(Kv=a,Th=mc(r.firstChild)):Th=a),$o(e,t,t.pendingProps.children,n),Vo(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&Nh&&(o=z(),r=bt(t.type,o.ancestorInfo),(i=!(a=Th))||(null!==(i=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Md])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;M(a.name,"name");var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=mc(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,jh))?(t.stateNode=i,Ph||null!==(o=Ys(i,t.type,t.pendingProps,o))&&(An(t,0).serverProps=o),_h=t,Th=mc(i.firstChild),jh=!1,o=!0):o=!1,i=!o),i&&(r&&Ln(t,a),In(t))),O(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,r=o.children,Zs(a,o)?r=null:null!==i&&Zs(a,i)&&(t.flags|=32),null!==t.memoizedState&&(a=Hr(e,t,Vr,null,null,n),bw._currentValue=a),Vo(e,t),$o(e,t,r,n),t.child;case 6:return null===e&&Nh&&(e=t.pendingProps,e=null==(r=(n=z()).ancestorInfo.current)||yt(e,r.tag,n.ancestorInfo.implicitRootScope),(r=!(n=Th))||(null!==(r=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=mc(e.nextSibling)))return null}return e}(n,t.pendingProps,jh))?(t.stateNode=r,_h=t,Th=null,r=!0):r=!1,r=!r),r&&(e&&Ln(t,n),In(t))),null;case 13:return Zo(e,t,n);case 4:return N(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=$g(t,null,r,n):$o(e,t,r,n),t.child;case 11:return Fo(e,t,t.type,t.pendingProps,n);case 7:return $o(e,t,t.pendingProps,n),t.child;case 8:return $o(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,(r=t.stateNode).effectDuration=-0,r.passiveEffectDuration=-0,$o(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,o=(a=t.pendingProps).value,"value"in a||bb||(bb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Vn(t,r,o),$o(e,t,a.children,n),t.child;case 9:return a=t.type._context,"function"!=typeof(r=t.pendingProps.children)&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Xn(t),a=Jn(a),W(t),r=mg(r,a,void 0),B(),t.flags|=1,$o(e,t,r,n),t.child;case 14:return Uo(e,t,t.type,t.pendingProps,n);case 15:return Ho(e,t,t.type,t.pendingProps,n);case 19:return ii(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((e=ti(r,n)).ref=t.ref,t.child=e,e.return=t,t=e):((e=xn(e.child,r)).ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return Wo(e,t,n);case 24:return Xn(t),r=Jn(Kh),null===e?(null===(a=hr())&&(a=Vb,o=tr(),a.pooledCache=o,nr(o),null!==o&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},xr(t),Vn(t,Kh,a)):(0!==(e.lanes&n)&&(Sr(e,t),Pr(t,null,null,n),Nr()),a=e.memoizedState,o=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Vn(t,Kh,r)):(r=o.cache,Vn(t,Kh,r),r!==a.cache&&Qn(t,[Kh],n,!0))),$o(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ui(e){e.flags|=4}function di(e,t){if("stylesheet"!==t.type||(t.state.loading&Jv)!==Qv)e.flags&=-16777217;else if(e.flags|=16777216,!Fc(t)){if(null!==(t=Ug.current)&&((4194048&Kb)===Kb?null!==Hg:(62914560&Kb)!==Kb&&!(536870912&Kb)||t!==Hg))throw xm=km,vm;e.flags|=8192}}function fi(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?ee():536870912,e.lanes|=t,my|=t)}function pi(e,t){if(!Nh)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&fh)!==uh){for(var a=e.selfBaseDuration,o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,a+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=a}else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else if((e.mode&fh)!==uh){a=e.actualDuration,o=e.selfBaseDuration;for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,a+=i.actualDuration,o+=i.treeBaseDuration,i=i.sibling;e.actualDuration=a,e.treeBaseDuration=o}else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mi(e,t,n){var r=t.pendingProps;switch(jn(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hi(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qn(Kh,t),R(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||($n(t)?(Wn(),ui(t)):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,Un())),hi(t),null;case 26:return n=t.memoizedState,null===e?(ui(t),null!==n?(hi(t),di(t,n)):(hi(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ui(t),hi(t),di(t,n)):(hi(t),t.flags&=-16777217):(e.memoizedProps!==r&&ui(t),hi(t),t.flags&=-16777217),null;case 27:A(t),n=T(ed.current);var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ui(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return hi(t),null}e=z(),$n(t)?Dn(t):(e=xc(a,r,n,e,!0),t.stateNode=e,ui(t))}return hi(t),null;case 5:if(A(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ui(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return hi(t),null}if(a=z(),$n(t))Dn(t);else{switch(e=T(ed.current),bt(n,a.ancestorInfo),a=a.context,e=Gs(e),a){case Iv:e=e.createElementNS(Pf,n);break;case Dv:e=e.createElementNS(Nf,n);break;default:switch(n){case"svg":e=e.createElementNS(Pf,n);break;case"math":e=e.createElementNS(Nf,n);break;case"script":(e=e.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?e.createElement("select",{is:r.is}):e.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?e.createElement(n,{is:r.is}):e.createElement(n),-1===n.indexOf("-")&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),"[object HTMLUnknownElement]"!==Object.prototype.toString.call(e)||nd.call(Fv,n)||(Fv[n]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)))}}e[zd]=t,e[jd]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(Fs(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ui(t)}}return hi(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ui(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=T(ed.current),n=z(),$n(t)){e=t.stateNode,n=t.memoizedProps,a=!Ph,r=null;var o=_h;if(null!==o)switch(o.tag){case 3:a&&null!==(a=bc(e,n,r))&&(An(t,0).serverProps=a);break;case 27:case 5:r=o.memoizedProps,a&&null!==(a=bc(e,n,r))&&(An(t,0).serverProps=a)}e[zd]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Is(e.nodeValue,n)))||In(t)}else null!=(a=n.ancestorInfo.current)&&yt(r,a.tag,n.ancestorInfo.implicitRootScope),(e=Gs(e).createTextNode(r))[zd]=t,t.stateNode=e}return hi(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=$n(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");a[zd]=t,hi(t),(t.mode&fh)!==uh&&null!==r&&null!==(a=t.child)&&(t.treeBaseDuration-=a.treeBaseDuration)}else Wn(),Fn(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4,hi(t),(t.mode&fh)!==uh&&null!==r&&null!==(a=t.child)&&(t.treeBaseDuration-=a.treeBaseDuration);a=!1}else a=Un(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(Co(t),t):(Co(t),null)}return Co(t),128&t.flags?(t.lanes=n,(t.mode&fh)!==uh&&fr(t),t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fi(t,t.updateQueue),hi(t),(t.mode&fh)!==uh&&n&&null!==(e=t.child)&&(t.treeBaseDuration-=e.treeBaseDuration),null);case 4:return R(t),null===e&&Cs(t.stateNode.containerInfo),hi(t),null;case 10:return qn(t.type,t),hi(t),null;case 19:if(E(Vg,t),null===(a=t.memoizedState))return hi(t),null;if(r=!!(128&t.flags),null===(o=a.rendering))if(r)pi(a,!1);else{if(uy!==Db||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=Eo(e))){for(t.flags|=128,pi(a,!1),e=o.updateQueue,t.updateQueue=e,fi(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Sn(n,e),n=n.sibling;return _(Vg,Vg.current&Wg|Bg,t),t.child}e=e.sibling}null!==a.tail&&ld()>ky&&(t.flags|=128,r=!0,pi(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Eo(o))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,fi(t,e),pi(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!Nh)return hi(t),null}else 2*ld()-a.renderingStartTime>ky&&536870912!==n&&(t.flags|=128,r=!0,pi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=a.last)?e.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ld(),e.sibling=null,n=Vg.current,_(Vg,n=r?n&Wg|Bg:n&Wg,t),e):(hi(t),null);case 22:case 23:return Co(t),Lr(t),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(hi(t),6&t.subtreeFlags&&(t.flags|=8192)):hi(t),null!==(n=t.updateQueue)&&fi(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&E(im,t),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qn(Kh,t),hi(t),null;case 25:case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function gi(e,t){switch(jn(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&fh)!==uh&&fr(t),t):null;case 3:return qn(Kh,t),R(t),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return A(t),null;case 13:if(Co(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Fn()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&fh)!==uh&&fr(t),t):null;case 19:return E(Vg,t),null;case 4:return R(t),null;case 10:return qn(t.type,t),null;case 22:case 23:return Co(t),Lr(t),null!==e&&E(im,t),65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&fh)!==uh&&fr(t),t):null;case 24:return qn(Kh,t),null;default:return null}}function bi(e,t){switch(jn(t),t.tag){case 3:qn(Kh,t),R(t);break;case 26:case 27:case 5:A(t);break;case 4:R(t);break;case 13:Co(t);break;case 19:E(Vg,t);break;case 10:qn(t.type,t);break;case 22:case 23:Co(t),Lr(t),null!==e&&E(im,t);break;case 24:qn(Kh,t)}}function yi(e){return(e.mode&fh)!==uh}function vi(e,t){yi(e)?(dr(),ki(t,e),ur()):ki(t,e)}function wi(e,t,n){yi(e)?(dr(),xi(n,e,t),ur()):xi(n,e,t)}function ki(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{var o;(n.tag&e)===e&&((e&Nm)!==Cm?null!==yd&&"function"==typeof yd.markComponentPassiveEffectMountStarted&&yd.markComponentPassiveEffectMountStarted(t):(e&Tm)!==Cm&&null!==yd&&"function"==typeof yd.markComponentLayoutEffectMountStarted&&yd.markComponentLayoutEffectMountStarted(t),r=void 0,(e&_m)!==Cm&&(Yy=!0),r=Oe(t,Tg,n),(e&_m)!==Cm&&(Yy=!1),(e&Nm)!==Cm?null!==yd&&"function"==typeof yd.markComponentPassiveEffectMountStopped&&yd.markComponentPassiveEffectMountStopped():(e&Tm)!==Cm&&null!==yd&&"function"==typeof yd.markComponentLayoutEffectMountStopped&&yd.markComponentLayoutEffectMountStopped(),void 0!==r&&"function"!=typeof r)&&Oe(t,function(e,t){console.error("%s must not return anything besides a function, which is used for clean-up.%s",e,t)},o=0!==(n.tag&Tm)?"useLayoutEffect":0!==(n.tag&_m)?"useInsertionEffect":"useEffect",null===r?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof r.then?"\n\nIt looks like you wrote "+o+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+o+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching":" You returned: "+r),n=n.next}while(n!==a)}}catch(e){Xl(t,t.return,e)}}function xi(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var i=r.inst,l=i.destroy;void 0!==l&&(i.destroy=void 0,(e&Nm)!==Cm?null!==yd&&"function"==typeof yd.markComponentPassiveEffectUnmountStarted&&yd.markComponentPassiveEffectUnmountStarted(t):(e&Tm)!==Cm&&null!==yd&&"function"==typeof yd.markComponentLayoutEffectUnmountStarted&&yd.markComponentLayoutEffectUnmountStarted(t),(e&_m)!==Cm&&(Yy=!0),Oe(a=t,Pg,a,n,l),(e&_m)!==Cm&&(Yy=!1),(e&Nm)!==Cm?null!==yd&&"function"==typeof yd.markComponentPassiveEffectUnmountStopped&&yd.markComponentPassiveEffectUnmountStopped():(e&Tm)!==Cm&&null!==yd&&"function"==typeof yd.markComponentLayoutEffectUnmountStopped&&yd.markComponentLayoutEffectUnmountStopped())}r=r.next}while(r!==o)}}catch(e){Xl(t,t.return,e)}}function Si(e,t){yi(e)?(dr(),ki(t,e),ur()):ki(t,e)}function Ci(e,t,n){yi(e)?(dr(),xi(n,e,t),ur()):xi(n,e,t)}function Ei(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||pb||(n.props!==e.memoizedProps&&console.error("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.",S(e)||"instance"),n.state!==e.memoizedState&&console.error("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.",S(e)||"instance"));try{Oe(e,jr,t,n)}catch(t){Xl(e,e.return,t)}}}function _i(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Ti(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||pb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",S(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",S(e)||"instance"));try{var a=Ro(e.type,n,(e.elementType,e.type)),o=Oe(e,_i,t,a,r);n=yb,void 0!==o||n.has(e.type)||(n.add(e.type),Oe(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",S(e))})),t.__reactInternalSnapshotBeforeUpdate=o}catch(t){Xl(e,e.return,t)}}function Ni(e,t,n){n.props=Ro(e.type,e.memoizedProps),n.state=e.memoizedState,yi(e)?(dr(),Oe(e,Eg,e,t,n),ur()):Oe(e,Eg,e,t,n)}function Pi(e){var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;default:n=e.stateNode}if("function"==typeof t)if(yi(e))try{dr(),e.refCleanup=t(n)}finally{ur()}else e.refCleanup=t(n);else"string"==typeof t?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",S(e)),t.current=n}}function Ri(e,t){try{Oe(e,Pi,e)}catch(n){Xl(e,t,n)}}function zi(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{if(yi(e))try{dr(),Oe(e,r)}finally{ur()}else Oe(e,r)}catch(n){Xl(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{if(yi(e))try{dr(),Oe(e,n,null)}finally{ur()}else Oe(e,n,null)}catch(n){Xl(e,t,n)}else n.current=null}function ji(e,t,n,r){var a=e.memoizedProps,o=a.id,i=a.onCommit;a=a.onRender,t=null===t?"mount":"update",Zh&&(t="nested-update"),"function"==typeof a&&a(o,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),"function"==typeof i&&i(e.memoizedProps.id,t,r,n)}function Oi(e,t,n,r){var a=e.memoizedProps;e=a.id,a=a.onPostCommit,t=null===t?"mount":"update",Zh&&(t="nested-update"),"function"==typeof a&&a(e,t,r,n)}function Ai(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{Oe(e,tc,r,t,n,e)}catch(t){Xl(e,e.return,t)}}function Li(e,t,n){try{Oe(e,nc,e.stateNode,e.type,n,t,e)}catch(t){Xl(e,e.return,t)}}function Ii(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&oc(e.type)||4===e.tag}function Di(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ii(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&oc(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Mi(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Ds));else if(4!==r&&(27===r&&oc(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Mi(e,t,n),e=e.sibling;null!==e;)Mi(e,t,n),e=e.sibling}function $i(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&oc(e.type)&&(n=e.stateNode),null!==(e=e.child)))for($i(e,t,n),e=e.sibling;null!==e;)$i(e,t,n),e=e.sibling}function Fi(e){for(var t,n=e.return;null!==n;){if(Ii(n)){t=n;break}n=n.return}if(null==t)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,$i(e,n=Di(e),t);break;case 5:n=t.stateNode,32&t.flags&&(rc(n),t.flags&=-33),$i(e,t=Di(e),n);break;case 3:case 4:t=t.stateNode.containerInfo,Mi(e,n=Di(e),t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Ui(e){var t=e.stateNode,n=e.memoizedProps;try{Oe(e,Sc,e.type,n,t,e)}catch(t){Xl(e,e.return,t)}}function Hi(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ji(e,n),4&r&&vi(n,Tm|Em);break;case 1:if(Ji(e,n),4&r)if(e=n.stateNode,null===t)n.type.defaultProps||"ref"in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("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.",S(n)||"instance"),e.state!==n.memoizedState&&console.error("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.",S(n)||"instance")),yi(n)?(dr(),Oe(n,vg,n,e),ur()):Oe(n,vg,n,e);else{var a=Ro(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("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.",S(n)||"instance"),e.state!==n.memoizedState&&console.error("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.",S(n)||"instance")),yi(n)?(dr(),Oe(n,kg,n,e,a,t,e.__reactInternalSnapshotBeforeUpdate),ur()):Oe(n,kg,n,e,a,t,e.__reactInternalSnapshotBeforeUpdate)}64&r&&Ei(n),512&r&&Ri(n,n.return);break;case 3:if(t=ar(),Ji(e,n),64&r&&null!==(r=n.updateQueue)){if(a=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:a=n.child.stateNode}try{Oe(n,jr,r,a)}catch(e){Xl(n,n.return,e)}}e.effectDuration+=or(t);break;case 27:null===t&&4&r&&Ui(n);case 26:case 5:Ji(e,n),null===t&&4&r&&Ai(n),512&r&&Ri(n,n.return);break;case 12:if(4&r){r=ar(),Ji(e,n),(e=n.stateNode).effectDuration+=ir(r);try{Oe(n,ji,n,t,Gh,e.effectDuration)}catch(e){Xl(n,n.return,e)}}else Ji(e,n);break;case 13:Ji(e,n),4&r&&qi(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if(e.data!==_v||n.readyState===Ov)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=ts.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||vb)){t=null!==t&&null!==t.memoizedState||wb,a=vb;var o=wb;vb=r,(wb=t)&&!o?nl(e,n,!!(8772&n.subtreeFlags)):Ji(e,n),vb=a,wb=o}break;case 30:break;default:Ji(e,n)}}function Wi(e){var t=e.alternate;null!==t&&(e.alternate=null,Wi(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&ue(t),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Bi(e,t,n){for(n=n.child;null!==n;)Vi(e,t,n),n=n.sibling}function Vi(e,t,n){if(bd&&"function"==typeof bd.onCommitFiberUnmount)try{bd.onCommitFiberUnmount(gd,n)}catch(e){vd||(vd=!0,console.error("React instrumentation encountered an error: %s",e))}switch(n.tag){case 26:wb||zi(n,t),Bi(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:wb||zi(n,t);var r=_b,a=Tb;oc(n.type)&&(_b=n.stateNode,Tb=!1),Bi(e,t,n),Oe(n,Cc,n.stateNode),_b=r,Tb=a;break;case 5:wb||zi(n,t);case 6:if(r=_b,a=Tb,_b=null,Bi(e,t,n),Tb=a,null!==(_b=r))if(Tb)try{Oe(n,lc,_b,n.stateNode)}catch(e){Xl(n,t,e)}else try{Oe(n,ic,_b,n.stateNode)}catch(e){Xl(n,t,e)}break;case 18:null!==_b&&(Tb?(sc(9===(e=_b).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),fu(e)):sc(_b,n.stateNode));break;case 4:r=_b,a=Tb,_b=n.stateNode.containerInfo,Tb=!0,Bi(e,t,n),_b=r,Tb=a;break;case 0:case 11:case 14:case 15:wb||xi(_m,n,t),wb||wi(n,t,Tm),Bi(e,t,n);break;case 1:wb||(zi(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&Ni(n,t,r)),Bi(e,t,n);break;case 21:Bi(e,t,n);break;case 22:wb=(r=wb)||null!==n.memoizedState,Bi(e,t,n),wb=r;break;default:Bi(e,t,n)}}function qi(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Oe(t,kc,e)}catch(e){Xl(t,t.return,e)}}function Ki(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new xb),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new xb),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}(e);t.forEach(function(t){var r=ns.bind(null,e,t);if(!n.has(t)){if(n.add(t),wd){if(null===Cb||null===Eb)throw Error("Expected finished root and lanes to be set. This is a bug in React.");ls(Eb,Cb)}t.then(r,r)}})}function Qi(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=e,o=t,i=n[r],l=o;e:for(;null!==l;){switch(l.tag){case 27:if(oc(l.type)){_b=l.stateNode,Tb=!1;break e}break;case 5:_b=l.stateNode,Tb=!1;break e;case 3:case 4:_b=l.stateNode.containerInfo,Tb=!0;break e}l=l.return}if(null===_b)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Vi(a,o,i),_b=null,Tb=!1,null!==(o=(a=i).alternate)&&(o.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Yi(t,e),t=t.sibling}function Yi(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Qi(t,e),Gi(e),4&r&&(xi(_m|Em,e,e.return),ki(_m|Em,e),wi(e,e.return,Tm|Em));break;case 1:Qi(t,e),Gi(e),512&r&&(wb||null===n||zi(n,n.return)),64&r&&vb&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var a=Nb;if(Qi(t,e),Gi(e),512&r&&(wb||null===n||zi(n,n.return)),4&r)if(t=null!==n?n.memoizedState:null,r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,t=a.ownerDocument||a;t:switch(r){case"title":(!(a=t.getElementsByTagName("title")[0])||a[Md]||a[zd]||a.namespaceURI===Pf||a.hasAttribute("itemprop"))&&(a=t.createElement(r),t.head.insertBefore(a,t.querySelector("head > title"))),Fs(a,r,n),a[zd]=e,me(a),r=a;break e;case"link":var o=Mc("link","href",t).get(r+(n.href||""));if(o)for(var i=0;i<o.length;i++)if((a=o[i]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(i,1);break t}Fs(a=t.createElement(r),r,n),t.head.appendChild(a);break;case"meta":if(o=Mc("meta","content",t).get(r+(n.content||"")))for(i=0;i<o.length;i++)if(a=o[i],M(n.content,"content"),a.getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(i,1);break t}Fs(a=t.createElement(r),r,n),t.head.appendChild(a);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+r+'". This is a bug in React.')}a[zd]=e,me(a),r=a}e.stateNode=r}else $c(a,e.type,e.stateNode);else e.stateNode=Ac(a,r,e.memoizedProps);else t!==r?(null===t?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):t.count--,null===r?$c(a,e.type,e.stateNode):Ac(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Li(e,e.memoizedProps,n.memoizedProps);break;case 27:Qi(t,e),Gi(e),512&r&&(wb||null===n||zi(n,n.return)),null!==n&&4&r&&Li(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Qi(t,e),Gi(e),512&r&&(wb||null===n||zi(n,n.return)),32&e.flags){t=e.stateNode;try{Oe(e,rc,t)}catch(t){Xl(e,e.return,t)}}4&r&&null!=e.stateNode&&Li(e,t=e.memoizedProps,null!==n?n.memoizedProps:t),1024&r&&(kb=!0,"form"!==e.type&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Qi(t,e),Gi(e),4&r){if(null===e.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");r=e.memoizedProps,n=null!==n?n.memoizedProps:r,t=e.stateNode;try{Oe(e,ac,t,n,r)}catch(t){Xl(e,e.return,t)}}break;case 3:if(a=ar(),fw=null,o=Nb,Nb=Ec(t.containerInfo),Qi(t,e),Nb=o,Gi(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Oe(e,wc,t.containerInfo)}catch(t){Xl(e,e.return,t)}kb&&(kb=!1,Xi(e)),t.effectDuration+=or(a);break;case 4:r=Nb,Nb=Ec(e.stateNode.containerInfo),Qi(t,e),Gi(e),Nb=r;break;case 12:r=ar(),Qi(t,e),Gi(e),e.stateNode.effectDuration+=ir(r);break;case 13:Qi(t,e),Gi(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(vy=ld()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ki(e,r));break;case 22:a=null!==e.memoizedState;var l=null!==n&&null!==n.memoizedState,s=vb,c=wb;if(vb=s||a,wb=c||l,Qi(t,e),wb=c,vb=s,Gi(e),8192&r)e:for(t=e.stateNode,t._visibility=a?t._visibility&~nh:t._visibility|nh,a&&(null===n||l||vb||wb||el(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){l=n=t;try{o=l.stateNode,a?Oe(l,cc,o):Oe(l,dc,l.stateNode,l.memoizedProps)}catch(e){Xl(l,l.return,e)}}}else if(6===t.tag){if(null===n){l=t;try{i=l.stateNode,a?Oe(l,uc,i):Oe(l,fc,i,l.memoizedProps)}catch(e){Xl(l,l.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Ki(e,n));break;case 19:Qi(t,e),Gi(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ki(e,r));break;case 30:case 21:break;default:Qi(t,e),Gi(e)}}function Gi(e){var t=e.flags;if(2&t){try{Oe(e,Fi,e)}catch(t){Xl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Xi(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Xi(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ji(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Hi(e,t.alternate,t),t=t.sibling}function Zi(e){switch(e.tag){case 0:case 11:case 14:case 15:wi(e,e.return,Tm),el(e);break;case 1:zi(e,e.return);var t=e.stateNode;"function"==typeof t.componentWillUnmount&&Ni(e,e.return,t),el(e);break;case 27:Oe(e,Cc,e.stateNode);case 26:case 5:zi(e,e.return),el(e);break;case 22:null===e.memoizedState&&el(e);break;default:el(e)}}function el(e){for(e=e.child;null!==e;)Zi(e),e=e.sibling}function tl(e,t,n,r){var a=n.flags;switch(n.tag){case 0:case 11:case 15:nl(e,n,r),vi(n,Tm);break;case 1:if(nl(e,n,r),"function"==typeof(t=n.stateNode).componentDidMount&&Oe(n,vg,n,t),null!==(t=n.updateQueue)){e=n.stateNode;try{Oe(n,zr,t,e)}catch(e){Xl(n,n.return,e)}}r&&64&a&&Ei(n),Ri(n,n.return);break;case 27:Ui(n);case 26:case 5:nl(e,n,r),r&&null===t&&4&a&&Ai(n),Ri(n,n.return);break;case 12:if(r&&4&a){a=ar(),nl(e,n,r),(r=n.stateNode).effectDuration+=ir(a);try{Oe(n,ji,n,t,Gh,r.effectDuration)}catch(e){Xl(n,n.return,e)}}else nl(e,n,r);break;case 13:nl(e,n,r),r&&4&a&&qi(e,n);break;case 22:null===n.memoizedState&&nl(e,n,r),Ri(n,n.return);break;case 30:break;default:nl(e,n,r)}}function nl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;)tl(e,t.alternate,t,n),t=t.sibling}function rl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&nr(e),null!=n&&rr(n))}function al(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(nr(t),null!=e&&rr(e))}function ol(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)il(e,t,n,r),t=t.sibling}function il(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:ol(e,t,n,r),2048&a&&Si(t,Nm|Em);break;case 1:case 13:default:ol(e,t,n,r);break;case 3:var o=ar();ol(e,t,n,r),2048&a&&(n=null,null!==t.alternate&&(n=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==n&&(nr(t),null!=n&&rr(n))),e.passiveEffectDuration+=or(o);break;case 12:if(2048&a){a=ar(),ol(e,t,n,r),(e=t.stateNode).passiveEffectDuration+=ir(a);try{Oe(t,Oi,t,t.alternate,Gh,e.passiveEffectDuration)}catch(e){Xl(t,t.return,e)}}else ol(e,t,n,r);break;case 23:break;case 22:o=t.stateNode;var i=t.alternate;null!==t.memoizedState?o._visibility&rh?ol(e,t,n,r):cl(e,t):o._visibility&rh?ol(e,t,n,r):(o._visibility|=rh,ll(e,t,n,r,!!(10256&t.subtreeFlags))),2048&a&&rl(i,t);break;case 24:ol(e,t,n,r),2048&a&&al(t.alternate,t)}}function ll(e,t,n,r,a){for(a=a&&!!(10256&t.subtreeFlags),t=t.child;null!==t;)sl(e,t,n,r,a),t=t.sibling}function sl(e,t,n,r,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:ll(e,t,n,r,a),Si(t,Nm);break;case 23:break;case 22:var i=t.stateNode;null!==t.memoizedState?i._visibility&rh?ll(e,t,n,r,a):cl(e,t):(i._visibility|=rh,ll(e,t,n,r,a)),a&&2048&o&&rl(t.alternate,t);break;case 24:ll(e,t,n,r,a),a&&2048&o&&al(t.alternate,t);break;default:ll(e,t,n,r,a)}}function cl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:cl(n,r),2048&a&&rl(r.alternate,r);break;case 24:cl(n,r),2048&a&&al(r.alternate,r);break;default:cl(n,r)}t=t.sibling}}function ul(e){if(e.subtreeFlags&Pb)for(e=e.child;null!==e;)dl(e),e=e.sibling}function dl(e){switch(e.tag){case 26:ul(e),e.flags&Pb&&null!==e.memoizedState&&function(e,t,n){if(null===pw)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var r=pw;if("stylesheet"===t.type&&("string"!=typeof n.media||!1!==matchMedia(n.media).matches)&&(t.state.loading&Jv)===Qv){if(null===t.instance){var a=Pc(n.href),o=e.querySelector(Rc(a));if(o)return null!==(e=o._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=Hc.bind(r),e.then(r,r)),t.state.loading|=Jv,t.instance=o,void me(o);o=e.ownerDocument||e,n=zc(n),(a=Zv.get(a))&&Ic(n,a),me(o=o.createElement("link"));var i=o;i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),Fs(o,"link",n),t.instance=o}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&Xv)===Qv&&(r.count++,t=Hc.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Nb,e.memoizedState,e.memoizedProps);break;case 5:default:ul(e);break;case 3:case 4:var t=Nb;Nb=Ec(e.stateNode.containerInfo),ul(e),Nb=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Pb,Pb=16777216,ul(e),Pb=t):ul(e))}}function fl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function pl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Sb=r,bl(r,e)}fl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)hl(e),e=e.sibling}function hl(e){switch(e.tag){case 0:case 11:case 15:pl(e),2048&e.flags&&Ci(e,e.return,Nm|Em);break;case 3:var t=ar();pl(e),e.stateNode.passiveEffectDuration+=or(t);break;case 12:t=ar(),pl(e),e.stateNode.passiveEffectDuration+=ir(t);break;case 22:t=e.stateNode,null!==e.memoizedState&&t._visibility&rh&&(null===e.return||13!==e.return.tag)?(t._visibility&=~rh,ml(e)):pl(e);break;default:pl(e)}}function ml(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Sb=r,bl(r,e)}fl(e)}for(e=e.child;null!==e;)gl(e),e=e.sibling}function gl(e){switch(e.tag){case 0:case 11:case 15:Ci(e,e.return,Nm),ml(e);break;case 22:var t=e.stateNode;t._visibility&rh&&(t._visibility&=~rh,ml(e));break;default:ml(e)}}function bl(e,t){for(;null!==Sb;){var n=Sb,r=n;switch(r.tag){case 0:case 11:case 15:Ci(r,t,Nm);break;case 23:case 22:null!==r.memoizedState&&null!==r.memoizedState.cachePool&&null!=(r=r.memoizedState.cachePool.pool)&&nr(r);break;case 24:rr(r.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Sb=r;else e:for(n=e;null!==Sb;){var a=(r=Sb).sibling,o=r.return;if(Wi(r),r===n){Sb=null;break e}if(null!==a){a.return=o,Sb=a;break e}Sb=o}}}function yl(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===qu.actQueue||console.error("The current testing environment is not configured to support act(...)"),e}function vl(e){if((Bb&Lb)!==Ab&&0!==Kb)return Kb&-Kb;var t=qu.T;return null!==t?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),0!==(e=rm)?e:bs()):ce()}function wl(){0===hy&&(hy=536870912&Kb&&!Nh?536870912:Z());var e=Ug.current;return null!==e&&(e.flags|=32),hy}function kl(e,t,n){if(Yy&&console.error("useInsertionEffect must not schedule updates."),By&&(Vy=!0),(e!==Vb||ay!==Gb&&ay!==ry)&&null===e.cancelPendingCommit||(Nl(e,0),El(e,Kb,hy,!1)),ne(e,n),0!==(Bb&Lb)&&e===Vb){if(Jd)switch(t.tag){case 0:case 11:case 15:e=qb&&S(qb)||"Unknown",Jy.has(e)||(Jy.add(e),t=S(t)||"Unknown",console.error("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://react.dev/link/setstate-in-render",t,e,e));break;case 1:Xy||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Xy=!0)}}else wd&&ie(e,t,n),function(e){yl()&&null===qu.actQueue&&Oe(e,function(){console.error("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act",S(e))})}(t),e===Vb&&((Bb&Lb)===Ab&&(fy|=n),uy===Ub&&El(e,Kb,hy,!1)),ss(e)}function xl(e,t,n){if((Bb&(Lb|Ib))!==Ab)throw Error("Should not already be working.");for(var r=!n&&!(124&t)&&0===(t&e.expiredLanes)||X(e,t),a=r?function(e,t){var n=Bb;Bb|=Lb;var r=Rl(),a=zl();if(Vb!==e||Kb!==t){if(wd){var o=e.memoizedUpdaters;0<o.size&&(ls(e,Kb),o.clear()),le(e,t)}Sy=null,ky=ld()+xy,Nl(e,t)}else ly=X(e,t);V(t);e:for(;;)try{if(ay!==Qb&&null!==qb)t:switch(t=qb,o=oy,ay){case Yb:ay=Qb,oy=null,$l(e,t,o,Yb);break;case Gb:case ry:if(br(o)){ay=Qb,oy=null,Dl(t);break}t=function(){ay!==Gb&&ay!==ry||Vb!==e||(ay=ty),ss(e)},o.then(t,t);break e;case Xb:ay=ty;break e;case Jb:ay=Zb;break e;case ty:br(o)?(ay=Qb,oy=null,Dl(t)):(ay=Qb,oy=null,$l(e,t,o,ty));break;case Zb:var i=null;switch(qb.tag){case 26:i=qb.memoizedState;case 5:case 27:var l=qb;if(!i||Fc(i)){ay=Qb,oy=null;var s=l.sibling;if(null!==s)qb=s;else{var c=l.return;null!==c?(qb=c,Fl(c)):qb=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ay=Qb,oy=null,$l(e,t,o,Zb);break;case ey:ay=Qb,oy=null,$l(e,t,o,ey);break;case ny:Tl(),uy=Hb;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}null!==qu.actQueue?Al():Ll();break}catch(t){Pl(e,t)}return Bn(),qu.H=r,qu.A=a,Bb=n,null!==qb?(null!==yd&&"function"==typeof yd.markRenderYielded&&yd.markRenderYielded(),Db):(q(),Vb=null,Kb=0,cn(),uy)}(e,t):Ol(e,t,!0),o=r;;){if(a===Db){ly&&!r&&El(e,t,0,!1);break}if(n=e.current.alternate,!o||Cl(n)){if(a===$b){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=0!=(i=-536870913&e.pendingLanes)?i:536870912&i?536870912:0;if(0!==i){t=i;e:{var l=i;i=gy;var s=(a=e).current.memoizedState.isDehydrated;if(s&&(Nl(a,l).flags|=256),(l=Ol(a,l,!1))!==$b){if(sy&&!s){a.errorRecoveryDisabledLanes|=o,fy|=o,a=Ub;break e}a=by,by=i,null!==a&&(null===by?by=a:by.push.apply(by,a))}a=l}if(o=!1,a!==$b)continue}}if(a===Mb){Nl(e,0),El(e,t,0,!0);break}e:{switch(r=e,a){case Db:case Mb:throw Error("Root did not complete. This is a bug in React.");case Ub:if((4194048&t)!==t)break;case Hb:El(r,t,hy,!iy);break e;case $b:by=null;break;case Fb:case Wb:break;default:throw Error("Unknown root exit status.")}if(null!==qu.actQueue)Hl(r,n,t,by,Sy,yy,hy,fy,my);else{if((62914560&t)===t&&10<(o=vy+wy-ld())){if(El(r,t,hy,!iy),0!==G(r,0,!0))break e;r.timeoutHandle=Hv(Sl.bind(null,r,n,by,Sy,yy,t,hy,fy,my,iy,a,Ty,Yh,0),o);break e}Sl(r,n,by,Sy,yy,t,hy,fy,my,iy,a,Ey,Yh,0)}}break}a=Ol(e,t,!1),o=!1}ss(e)}function Sl(e,t,n,r,a,o,i,l,s,c,u,d,f,p){if(e.timeoutHandle=Bv,(8192&(d=t.subtreeFlags)||!(16785408&~d))&&(pw={stylesheets:null,count:0,unsuspend:Uc},dl(t),null!==(d=function(){if(null===pw)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=pw;return e.stylesheets&&0===e.count&&Wc(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Wc(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=d(Hl.bind(null,e,t,o,n,r,a,i,l,s,u,_y,f,p)),void El(e,o,i,!c);Hl(e,t,o,n,r,a,i,l,s)}function Cl(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Dp(o(),a))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function El(e,t,n,r){t&=~py,t&=~fy,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-kd(a),i=1<<o;r[o]=-1,a&=~i}0!==n&&re(e,n,t)}function _l(){return(Bb&(Lb|Ib))!==Ab||(cs(0),!1)}function Tl(){if(null!==qb){if(ay===Qb)var e=qb.return;else e=qb,Bn(),Qr(e),jg=null,Og=0,e=qb;for(;null!==e;)bi(e.alternate,e),e=e.return;qb=null}}function Nl(e,t){var n=e.timeoutHandle;n!==Bv&&(e.timeoutHandle=Bv,Wv(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Tl(),Vb=e,qb=n=xn(e.current,null),Kb=t,ay=Qb,oy=null,iy=!1,ly=X(e,t),sy=!1,uy=Db,my=hy=py=fy=dy=0,by=gy=null,yy=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-kd(r),o=1<<a;t|=e[a],r&=~o}return cy=t,cn(),1e3<(t=Ih())-Ah&&(qu.recentlyCreatedOwnerStacks=0,Ah=t),lm.discardPendingWarnings(),n}function Pl(e,t){Bm=null,qu.H=og,qu.getCurrentStack=null,Jd=!1,Xd=null,t===ym||t===wm?(t=wr(),ay=Xb):t===vm?(t=wr(),ay=Jb):ay=t===lb?ny:null!==t&&"object"==typeof t&&"function"==typeof t.then?ey:Yb,oy=t;var n=qb;if(null===n)uy=Mb,Ao(e,sn(t,e.current));else switch(n.mode&fh&&sr(n),B(),ay){case Yb:null!==yd&&"function"==typeof yd.markComponentErrored&&yd.markComponentErrored(n,t,Kb);break;case Gb:case ry:case Xb:case ey:case ty:null!==yd&&"function"==typeof yd.markComponentSuspended&&yd.markComponentSuspended(n,t,Kb)}}function Rl(){var e=qu.H;return qu.H=og,null===e?og:e}function zl(){var e=qu.A;return qu.A=Rb,e}function jl(){uy=Ub,iy||(4194048&Kb)!==Kb&&null!==Ug.current||(ly=!0),!(134217727&dy)&&!(134217727&fy)||null===Vb||El(Vb,Kb,hy,!1)}function Ol(e,t,n){var r=Bb;Bb|=Lb;var a=Rl(),o=zl();if(Vb!==e||Kb!==t){if(wd){var i=e.memoizedUpdaters;0<i.size&&(ls(e,Kb),i.clear()),le(e,t)}Sy=null,Nl(e,t)}V(t),t=!1,i=uy;e:for(;;)try{if(ay!==Qb&&null!==qb){var l=qb,s=oy;switch(ay){case ny:Tl(),i=Hb;break e;case Xb:case Gb:case ry:case ey:null===Ug.current&&(t=!0);var c=ay;if(ay=Qb,oy=null,$l(e,l,s,c),n&&ly){i=Db;break e}break;default:c=ay,ay=Qb,oy=null,$l(e,l,s,c)}}Al(),i=uy;break}catch(t){Pl(e,t)}return t&&e.shellSuspendCounter++,Bn(),Bb=r,qu.H=a,qu.A=o,q(),null===qb&&(Vb=null,Kb=0,cn()),i}function Al(){for(;null!==qb;)Il(qb)}function Ll(){for(;null!==qb&&!od();)Il(qb)}function Il(e){var t=e.alternate;(e.mode&fh)!==uh?(lr(e),t=Oe(e,ci,t,e,cy),sr(e)):t=Oe(e,ci,t,e,cy),e.memoizedProps=e.pendingProps,null===t?Fl(e):qb=t}function Dl(e){var t=Oe(e,Ml,e);e.memoizedProps=e.pendingProps,null===t?Fl(e):qb=t}function Ml(e){var t=e.alternate,n=(e.mode&fh)!==uh;switch(n&&lr(e),e.tag){case 15:case 0:t=Ko(t,e,e.pendingProps,e.type,void 0,Kb);break;case 11:t=Ko(t,e,e.pendingProps,e.type.render,e.ref,Kb);break;case 5:Qr(e);default:bi(t,e),t=ci(t,e=qb=Sn(e,cy),cy)}return n&&sr(e),t}function $l(e,t,n,r){Bn(),Qr(t),jg=null,Og=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,wd&&ls(e,a),null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Yn(t,n,a,!0),Nh&&(Ph=!0),null!==(n=Ug.current)){switch(n.tag){case 13:return null===Hg?jl():null===n.alternate&&uy===Db&&(uy=Fb),n.flags&=-257,n.flags|=65536,n.lanes=a,r===km?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Jl(e,r,a)),!1;case 22:return n.flags|=65536,r===km?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Jl(e,r,a)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return Jl(e,r,a),jl(),!1}if(Nh)return Ph=!0,null!==(t=Ug.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Oh&&Hn(sn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:r}),n))):(r!==Oh&&Hn(sn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=sn(r,n),Tr(e,a=Io(e.stateNode,r,a)),uy!==Ub&&(uy=$b)),!1;var o=sn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:r}),n);if(null===gy?gy=[o]:gy.push(o),uy!==Ub&&(uy=$b),null===t)return!0;r=sn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,Tr(n,e=Io(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==Cy&&Cy.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,Mo(a=Do(a),e,n,r),Tr(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,Kb))return uy=Mb,Ao(e,sn(n,e.current)),void(qb=null)}catch(t){if(null!==a)throw qb=a,t;return uy=Mb,Ao(e,sn(n,e.current)),void(qb=null)}32768&t.flags?(Nh||r===Yb?e=!0:ly||536870912&Kb?e=!1:(iy=e=!0,(r===Gb||r===ry||r===Xb||r===ey)&&null!==(r=Ug.current)&&13===r.tag&&(r.flags|=16384)),Ul(t,e)):Fl(t)}function Fl(e){var t=e;do{if(32768&t.flags)return void Ul(t,iy);var n=t.alternate;if(e=t.return,lr(t),n=Oe(t,mi,n,t,cy),(t.mode&fh)!==uh&&cr(t),null!==n)return void(qb=n);if(null!==(t=t.sibling))return void(qb=t);qb=t=e}while(null!==t);uy===Db&&(uy=Wb)}function Ul(e,t){do{var n=gi(e.alternate,e);if(null!==n)return n.flags&=32767,void(qb=n);if((e.mode&fh)!==uh){cr(e),n=e.actualDuration;for(var r=e.child;null!==r;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(qb=e);qb=e=n}while(null!==e);uy=Hb,qb=null}function Hl(e,t,n,r,a,o,i,l,s){e.cancelPendingCommit=null;do{Ql()}while(Ay!==Ny);if(lm.flushLegacyContextWarning(),lm.flushPendingUnsafeLifecycleWarnings(),(Bb&(Lb|Ib))!==Ab)throw Error("Should not already be working.");if(null!==yd&&"function"==typeof yd.markCommitStarted&&yd.markCommitStarted(n),null===t)H();else{if(0===n&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(o=t.lanes|t.childLanes,function(e,t,n,r,a,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-kd(n),d=1<<u;l[u]=0,s[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&re(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(i&~t))}(e,n,o|=ih,i,l,s),e===Vb&&(qb=Vb=null,Kb=0),Iy=t,Ly=e,Dy=n,My=o,$y=a,Fy=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,c=dd,u=function(){return Yl(),null},null!==(d=qu.actQueue)?d.push(u):rd(c,u)):(e.callbackNode=null,e.callbackPriority=0),Gh=Qh(),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=qu.T,qu.T=null,a=Ku.p,Ku.p=_d,i=Bb,Bb|=Ib;try{!function(e,t){if(e=e.containerInfo,Mv=Ew,nn(e=tn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==a&&3!==d.nodeType||(l=i+a),d!==o||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===a&&(l=i),f===o&&++u===r&&(s=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for($v={focusedElem:e,selectionRange:n},Ew=!1,Sb=t;null!==Sb;)if(e=(t=Sb).child,1024&t.subtreeFlags&&null!==e)e.return=t,Sb=e;else for(;null!==Sb;){switch(n=(e=t=Sb).alternate,a=e.flags,e.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:1024&a&&null!==n&&Ti(e,n);break;case 3:if(1024&a)if(9===(n=(e=e.stateNode.containerInfo).nodeType))pc(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pc(e);break;default:e.textContent=""}break;default:if(1024&a)throw 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.")}if(null!==(e=t.sibling)){e.return=t.return,Sb=e;break}Sb=t.return}}(e,t)}finally{Bb=i,Ku.p=a,qu.T=r}}Ay=Py,Wl(),Bl(),Vl()}var c,u,d}function Wl(){if(Ay===Py){Ay=Ny;var e=Ly,t=Iy,n=Dy,r=!!(13878&t.flags);if(13878&t.subtreeFlags||r){r=qu.T,qu.T=null;var a=Ku.p;Ku.p=_d;var o=Bb;Bb|=Ib;try{Cb=n,Eb=e,Yi(t,e),Eb=Cb=null,n=$v;var i=tn(e.containerInfo),l=n.focusedElem,s=n.selectionRange;if(i!==l&&l&&l.ownerDocument&&en(l.ownerDocument.documentElement,l)){if(null!==s&&nn(l)){var c=s.start,u=s.end;if(void 0===u&&(u=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=l.textContent.length,m=Math.min(s.start,h),g=void 0===s.end?m:Math.min(s.end,h);!p.extend&&m>g&&(i=g,g=m,m=i);var b=Zt(l,m),y=Zt(l,g);if(b&&y&&(1!==p.rangeCount||p.anchorNode!==b.node||p.anchorOffset!==b.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var v=d.createRange();v.setStart(b.node,b.offset),p.removeAllRanges(),m>g?(p.addRange(v),p.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),p.addRange(v))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Ew=!!Mv,$v=Mv=null}finally{Bb=o,Ku.p=a,qu.T=r}}e.current=t,Ay=Ry}}function Bl(){if(Ay===Ry){Ay=Ny;var e=Ly,t=Iy,n=Dy,r=!!(8772&t.flags);if(8772&t.subtreeFlags||r){r=qu.T,qu.T=null;var a=Ku.p;Ku.p=_d;var o=Bb;Bb|=Ib;try{null!==yd&&"function"==typeof yd.markLayoutEffectsStarted&&yd.markLayoutEffectsStarted(n),Cb=n,Eb=e,Hi(e,t.alternate,t),Eb=Cb=null,null!==yd&&"function"==typeof yd.markLayoutEffectsStopped&&yd.markLayoutEffectsStopped()}finally{Bb=o,Ku.p=a,qu.T=r}}Ay=zy}}function Vl(){if(Ay===jy||Ay===zy){Ay=Ny,id();var e=Ly,t=Iy,n=Dy,r=Fy,a=!!(10256&t.subtreeFlags)||!!(10256&t.flags);a?Ay=Oy:(Ay=Ny,Iy=Ly=null,Kl(e,e.pendingLanes),Ky=0,Qy=null);var o=e.pendingLanes;if(0===o&&(Cy=null),a||os(e),a=se(n),t=t.stateNode,bd&&"function"==typeof bd.onCommitFiberRoot)try{var i=!(128&~t.current.flags);switch(a){case _d:var l=cd;break;case Td:l=ud;break;case Nd:l=dd;break;case Pd:l=pd;break;default:l=dd}bd.onCommitFiberRoot(gd,t,l,i)}catch(e){vd||(vd=!0,console.error("React instrumentation encountered an error: %s",e))}if(wd&&e.memoizedUpdaters.clear(),jb.forEach(function(e){return e()}),null!==r){i=qu.T,l=Ku.p,Ku.p=_d,qu.T=null;try{var s=e.onRecoverableError;for(t=0;t<r.length;t++){var c=r[t],u=ql(c.stack);Oe(c.source,s,c.value,u)}}finally{qu.T=i,Ku.p=l}}3&Dy&&Ql(),ss(e),o=e.pendingLanes,4194090&n&&42&o?(em=!0,e===Wy?Hy++:(Hy=0,Wy=e)):Hy=0,cs(0),H()}}function ql(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Kl(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,rr(t))}function Ql(e){return Wl(),Bl(),Vl(),Yl()}function Yl(){if(Ay!==Oy)return!1;var e=Ly,t=My;My=0;var n=se(Dy),r=Nd>n?Nd:n;n=qu.T;var a=Ku.p;try{Ku.p=r,qu.T=null,r=$y,$y=null;var o=Ly,i=Dy;if(Ay=Ny,Iy=Ly=null,Dy=0,(Bb&(Lb|Ib))!==Ab)throw Error("Cannot flush passive effects while already rendering.");By=!0,Vy=!1,null!==yd&&"function"==typeof yd.markPassiveEffectsStarted&&yd.markPassiveEffectsStarted(i);var l=Bb;if(Bb|=Ib,hl(o.current),il(o,o.current,i,r),null!==yd&&"function"==typeof yd.markPassiveEffectsStopped&&yd.markPassiveEffectsStopped(),os(o),Bb=l,cs(0),Vy?o===Qy?Ky++:(Ky=0,Qy=o):Ky=0,Vy=By=!1,bd&&"function"==typeof bd.onPostCommitFiberRoot)try{bd.onPostCommitFiberRoot(gd,o)}catch(e){vd||(vd=!0,console.error("React instrumentation encountered an error: %s",e))}var s=o.current.stateNode;return s.effectDuration=0,s.passiveEffectDuration=0,!0}finally{Ku.p=a,qu.T=n,Kl(e,t)}}function Gl(e,t,n){t=sn(n,t),null!==(e=Er(e,t=Io(e.stateNode,t,2),2))&&(ne(e,2),ss(e))}function Xl(e,t,n){if(Yy=!1,3===e.tag)Gl(e,e,n);else{for(;null!==t;){if(3===t.tag)return void Gl(t,e,n);if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Cy||!Cy.has(r)))return e=sn(n,e),void(null!==(r=Er(t,n=Do(2),2))&&(Mo(n,r,t,e),ne(r,2),ss(r)))}t=t.return}console.error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}}function Jl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ob;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(sy=!0,a.add(n),r=Zl.bind(null,e,t,n),wd&&ls(e,n),t.then(r,r))}function Zl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,yl()&&null===qu.actQueue&&console.error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act"),Vb===e&&(Kb&n)===n&&(uy===Ub||uy===Fb&&(62914560&Kb)===Kb&&ld()-vy<wy?(Bb&Lb)===Ab&&Nl(e,0):py|=n,my===Kb&&(my=0)),ss(e)}function es(e,t){0===t&&(t=ee()),null!==(e=fn(e,t))&&(ne(e,t),ss(e))}function ts(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),es(e,n)}function ns(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(t),es(e,n)}function rs(e,t,n){if(67117056&t.subtreeFlags)for(t=t.child;null!==t;){var r=e,a=t,o=a.type===zu;o=n||o,22!==a.tag?67108864&a.flags?o&&Oe(a,as,r,a,(a.mode&mh)===uh):rs(r,a,o):null===a.memoizedState&&(o&&8192&a.flags?Oe(a,as,r,a):67108864&a.subtreeFlags&&Oe(a,rs,r,a,o)),t=t.sibling}}function as(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];U(!0);try{Zi(t),n&&gl(t),tl(e,t.alternate,t,!1),n&&sl(e,t,0,null,!1)}finally{U(!1)}}function os(e){var t=!0;e.current.mode&(ph|hh)||(t=!1),rs(e,e.current,t)}function is(e){if((Bb&Lb)===Ab){var t=e.tag;if(3===t||1===t||0===t||11===t||14===t||15===t){if(t=S(e)||"ReactComponent",null!==Gy){if(Gy.has(t))return;Gy.add(t)}else Gy=new Set([t]);Oe(e,function(){console.error("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.")})}}}function ls(e,t){wd&&e.memoizedUpdaters.forEach(function(n){ie(e,n,t)})}function ss(e){e!==ev&&null===e.next&&(null===ev?Zy=ev=e:ev=ev.next=e),rv=!0,null!==qu.actQueue?nv||(nv=!0,gs()):tv||(tv=!0,gs())}function cs(e,t){if(!av&&rv){av=!0;do{for(var n=!1,r=Zy;null!==r;){if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var i=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-kd(42|e)+1)-1,o=201326741&(o&=a&~(i&~l))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,hs(r,o))}else o=Kb,!(3&(o=G(r,r===Vb?o:0,null!==r.cancelPendingCommit||r.timeoutHandle!==Bv)))||X(r,o)||(n=!0,hs(r,o));r=r.next}}while(n);av=!1}}function us(){ds()}function ds(){rv=nv=tv=!1;var e=0;0!==ov&&(function(){var e=window.event;return e&&"popstate"===e.type?e!==Uv&&(Uv=e,!0):(Uv=null,!1)}()&&(e=ov),ov=0);for(var t=ld(),n=null,r=Zy;null!==r;){var a=r.next,o=fs(r,t);0===o?(r.next=null,null===n?Zy=a:n.next=a,null===a&&(ev=n)):(n=r,(0!==e||3&o)&&(rv=!0)),r=a}cs(e)}function fs(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var i=31-kd(o),l=1<<i,s=a[i];-1===s?0!==(l&n)&&0===(l&r)||(a[i]=J(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(n=Kb,n=G(e,e===(t=Vb)?n:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Bv),r=e.callbackNode,0===n||e===t&&(ay===Gb||ay===ry)||null!==e.cancelPendingCommit)return null!==r&&ms(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||X(e,n)){if((t=n&-n)===e.callbackPriority&&(null===qu.actQueue||r===iv))return t;switch(ms(r),se(n)){case _d:case Td:n=ud;break;case Nd:n=dd;break;case Pd:n=pd;break;default:n=dd}return r=ps.bind(null,e),null!==qu.actQueue?(qu.actQueue.push(r),n=iv):n=rd(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&ms(r),e.callbackPriority=2,e.callbackNode=null,2}function ps(e,t){if(em=Zh=!1,Ay!==Ny&&Ay!==Oy)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ql()&&e.callbackNode!==n)return null;var r=Kb;return 0===(r=G(e,e===Vb?r:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Bv))?null:(xl(e,r,t),fs(e,ld()),null!=e.callbackNode&&e.callbackNode===n?ps.bind(null,e):null)}function hs(e,t){if(Ql())return null;Zh=em,em=!1,xl(e,t,!0)}function ms(e){e!==iv&&null!==e&&ad(e)}function gs(){null!==qu.actQueue&&qu.actQueue.push(function(){return ds(),null}),qv(function(){(Bb&(Lb|Ib))!==Ab?rd(cd,us):ds()})}function bs(){return 0===ov&&(ov=Z()),ov}function ys(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:(M(e,"action"),_t(""+e))}function vs(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function ws(e,t,n){e.currentTarget=n;try{t(e)}catch(e){ab(e)}e.currentTarget=null}function ks(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n];e:{var a=void 0,o=r.event;if(r=r.listeners,t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;null!==s?Oe(s,ws,o,l,c):ws(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;null!==s?Oe(s,ws,o,l,c):ws(o,l,c),a=s}}}}function xs(e,t){sv.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[Ad];void 0===n&&(n=t[Ad]=new Set);var r=e+"__bubble";n.has(r)||(Es(t,e,2,!1),n.add(r))}function Ss(e,t,n){sv.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),Es(n,e,r,t)}function Cs(e){if(!e[cv]){e[cv]=!0,$d.forEach(function(t){"selectionchange"!==t&&(sv.has(t)||Ss(t,!1,e),Ss(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[cv]||(t[cv]=!0,Ss("selectionchange",!1,t))}}function Es(e,t,n,r){switch(ru(t)){case _d:var a=Jc;break;case Td:a=Zc;break;default:a=eu}n=a.bind(null,t,n,e),a=void 0,!Qf||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function _s(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===a)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&i.stateNode.containerInfo===a)return;i=i.return}for(;null!==l;){if(null===(i=de(l)))return;if(5===(s=i.tag)||6===s||26===s||27===s){r=o=i;continue e}l=l.parentNode}}r=r.return}Pt(function(){var r=o,a=Tt(n),i=[];e:{var l=Zp.get(e);if(void 0!==l){var s=rp,c=e;switch(e){case"keypress":if(0===jt(n))break e;case"keydown":case"keyup":s=bp;break;case"focusin":c="focus",s=cp;break;case"focusout":c="blur",s=cp;break;case"beforeblur":case"afterblur":s=cp;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=lp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=sp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=vp;break;case qp:case Kp:case Qp:s=up;break;case Jp:s=wp;break;case"scroll":case"scrollend":s=op;break;case"wheel":s=kp;break;case"copy":case"cut":case"paste":s=dp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=yp;break;case"toggle":case"beforetoggle":s=xp}var u=!!(4&t),d=!u&&("scroll"===e||"scrollend"===e),f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var g=h;if(p=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===p||null===f||null!=(g=Rt(h,f))&&u.push(Ts(h,g,p)),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,a),i.push({event:l,listeners:u}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Wf||!(c=n.relatedTarget||n.fromElement)||!de(c)&&!c[Od])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?de(c):null)&&(d=m(c),u=c.tag,c!==d||5!==u&&27!==u&&6!==u)&&(c=null)):(s=null,c=r),s!==c)){if(u=lp,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=yp,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:pe(s),p=null==c?l:pe(c),(l=new u(g,h+"leave",s,n,a)).target=d,l.relatedTarget=p,g=null,de(a)===r&&((u=new u(f,h+"enter",c,n,a)).target=p,u.relatedTarget=d,g=u),d=g,s&&c)e:{for(f=c,h=0,p=u=s;p;p=Ps(p))h++;for(p=0,g=f;g;g=Ps(g))p++;for(;0<h-p;)u=Ps(u),h--;for(;0<p-h;)f=Ps(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Ps(u),f=Ps(f)}u=null}else u=null;null!==s&&Rs(i,l,s,u,!1),null!==c&&null!==d&&Rs(i,d,c,u,!0)}if("select"===(s=(l=r?pe(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var b=Bt;else if(Ft(l))if(Ip)b=Gt;else{b=Qt;var y=Kt}else!(s=l.nodeName)||"input"!==s.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&xt(r.elementType)&&(b=Bt):b=Yt;switch(b&&(b=b(e,r))?Ut(i,b,n,a):(y&&y(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&Be(l,"number",l.value)),y=r?pe(r):window,e){case"focusin":(Ft(y)||"true"===y.contentEditable)&&($p=y,Fp=r,Up=null);break;case"focusout":Up=Fp=$p=null;break;case"mousedown":Hp=!0;break;case"contextmenu":case"mouseup":case"dragend":Hp=!1,rn(i,n,a);break;case"selectionchange":if(Mp)break;case"keydown":case"keyup":rn(i,n,a)}var v;if(Ep)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else jp?Mt(e,n)&&(w="onCompositionEnd"):"keydown"===e&&n.keyCode===Cp&&(w="onCompositionStart");w&&(Np&&"ko"!==n.locale&&(jp||"onCompositionStart"!==w?"onCompositionEnd"===w&&jp&&(v=zt()):(ep="value"in(Zf=a)?Zf.value:Zf.textContent,jp=!0)),0<(y=Ns(r,w)).length&&(w=new fp(w,e,null,n,a),i.push({event:w,listeners:y}),(v||null!==(v=$t(n)))&&(w.data=v))),(v=Tp?function(e,t){switch(e){case"compositionend":return $t(t);case"keypress":return t.which!==Pp?null:(zp=!0,Rp);case"textInput":return(e=t.data)===Rp&&zp?null:e;default:return null}}(e,n):function(e,t){if(jp)return"compositionend"===e||!Ep&&Mt(e,t)?(e=zt(),tp=ep=Zf=null,jp=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Np&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(w=Ns(r,"onBeforeInput")).length&&(y=new pp("onBeforeInput","beforeinput",null,n,a),i.push({event:y,listeners:w}),y.data=v),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=ys((a[jd]||null).action),i=r.submitter;i&&null!==(t=(t=i[jd]||null)?ys(t.formAction):i.getAttribute("formAction"))&&(o=t,i=null);var l=new rp("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==ov){var e=i?vs(a,i):new FormData(a),t={pending:!0,data:e,method:a.method,action:o};Object.freeze(t),Ya(n,t,null,e)}}else"function"==typeof o&&(l.preventDefault(),t={pending:!0,data:e=i?vs(a,i):new FormData(a),method:a.method,action:o},Object.freeze(t),Ya(n,t,o,e))},currentTarget:a}]})}}(i,e,r,n,a)}ks(i,t)})}function Ts(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ns(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=Rt(e,n))&&r.unshift(Ts(e,a,o)),null!=(a=Rt(e,t))&&r.push(Ts(e,a,o))),3===e.tag)return r;e=e.return}return[]}function Ps(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Rs(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===c||(s=c,a?null!=(c=Rt(n,o))&&i.unshift(Ts(n,c,s)):a||null!=(c=Rt(n,o))&&i.push(Ts(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function zs(e,t){!function(e,t){var n,r=[];for(n in t)Ct(e,n)||r.push(n);t=r.map(function(e){return"`"+e+"`"}).join(", "),1===r.length?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<r.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}(e,t),"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||If||(If=!0,"select"===e&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Fd,possibleRegistrationNames:Ud};xt(e)||"string"==typeof t.is||function(e,t,n){var r,a=[];for(r in t)Et(e,r,t[r],n)||a.push(r);t=a.map(function(e){return"`"+e+"`"}).join(", "),1===a.length?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<a.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&null!=t.children&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function js(e,t,n,r){t!==n&&(n=Ls(n),Ls(t)!==n&&(r[e]=t))}function Os(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function As(e,t){return(e=e.namespaceURI===Nf||e.namespaceURI===Pf?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName)).innerHTML=t,e.innerHTML}function Ls(e){return I(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",L(e)),D(e)),("string"==typeof e?e:""+e).replace(yv,"\n").replace(vv,"")}function Is(e,t){return t=Ls(t),Ls(e)===t}function Ds(){}function Ms(e,t,n,r,a,o){switch(n){case"children":"string"==typeof r?(yt(r,t,!1),"body"===t||"textarea"===t&&""===r||vt(e,r)):"number"!=typeof r&&"bigint"!=typeof r||(yt(""+r,t,!1),"body"!==t&&vt(e,""+r));break;case"className":xe(e,"class",r);break;case"tabIndex":xe(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":xe(e,n,r);break;case"style":kt(e,r,o);break;case"data":if("object"!==t){xe(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){"src"===n?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}M(r,n),r=_t(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(null!=r&&("form"===t?"formAction"===n?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):"function"==typeof r&&(null==a.encType&&null==a.method||mv||(mv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),null==a.target||hv||(hv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):"input"===t||"button"===t?"action"===n?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):"input"!==t||"submit"===a.type||"image"===a.type||fv?"button"!==t||null==a.type||"submit"===a.type||fv?"function"==typeof r&&(null==a.name||pv||(pv=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),null==a.formEncType&&null==a.formMethod||mv||(mv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),null==a.formTarget||hv||(hv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(fv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(fv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):"action"===n?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),"function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&Ms(e,t,"name",a.name,a,null),Ms(e,t,"formEncType",a.formEncType,a,null),Ms(e,t,"formMethod",a.formMethod,a,null),Ms(e,t,"formTarget",a.formTarget,a,null)):(Ms(e,t,"encType",a.encType,a,null),Ms(e,t,"method",a.method,a,null),Ms(e,t,"target",a.target,a,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}M(r,n),r=_t(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&("function"!=typeof r&&Os(n,r),e.onclick=Ds);break;case"onScroll":null!=r&&("function"!=typeof r&&Os(n,r),xs("scroll",e));break;case"onScrollEnd":null!=r&&("function"!=typeof r&&Os(n,r),xs("scrollend",e));break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(n=r.__html)){if(null!=a.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}M(r,n),n=_t(""+r),e.setAttributeNS(wv,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(M(r,n),e.setAttribute(n,""+r)):e.removeAttribute(n);break;case"inert":""!==r||bv[n]||(bv[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(M(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?(M(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):(M(r,n),e.setAttribute(n,r));break;case"popover":xs("beforetoggle",e),xs("toggle",e),ke(e,"popover",r);break;case"xlinkActuate":Se(e,wv,"xlink:actuate",r);break;case"xlinkArcrole":Se(e,wv,"xlink:arcrole",r);break;case"xlinkRole":Se(e,wv,"xlink:role",r);break;case"xlinkShow":Se(e,wv,"xlink:show",r);break;case"xlinkTitle":Se(e,wv,"xlink:title",r);break;case"xlinkType":Se(e,wv,"xlink:type",r);break;case"xmlBase":Se(e,kv,"xml:base",r);break;case"xmlLang":Se(e,kv,"xml:lang",r);break;case"xmlSpace":Se(e,kv,"xml:space",r);break;case"is":null!=o&&console.error('Cannot update the "is" prop after it has been initialized.'),ke(e,"is",r);break;case"innerText":case"textContent":break;case"popoverTarget":gv||null==r||"object"!=typeof r||(gv=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]?ke(e,n=St(n),r):Fd.hasOwnProperty(n)&&null!=r&&"function"!=typeof r&&Os(n,r)}}function $s(e,t,n,r,a,o){switch(n){case"style":kt(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(n=r.__html)){if(null!=a.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":"string"==typeof r?vt(e,r):("number"==typeof r||"bigint"==typeof r)&&vt(e,""+r);break;case"onScroll":null!=r&&("function"!=typeof r&&Os(n,r),xs("scroll",e));break;case"onScrollEnd":null!=r&&("function"!=typeof r&&Os(n,r),xs("scrollend",e));break;case"onClick":null!=r&&("function"!=typeof r&&Os(n,r),e.onclick=Ds);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Fd.hasOwnProperty(n)?null!=r&&"function"!=typeof r&&Os(n,r):"o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(o=null!=(o=e[jd]||null)?o[n]:null)&&e.removeEventListener(t,o,a),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):ke(e,n,r):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a))}}function Fs(e,t,n){switch(zs(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xs("error",e),xs("load",e);var r,a=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var i=n[r];if(null!=i)switch(r){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ms(e,t,r,i,n,null)}}return o&&Ms(e,t,"srcSet",n.srcSet,n,null),void(a&&Ms(e,t,"src",n.src,n,null));case"input":ye("input",n),xs("invalid",e);var l=r=i=o=null,s=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var u=n[a];if(null!=u)switch(a){case"name":o=u;break;case"type":i=u;break;case"checked":s=u;break;case"defaultChecked":c=u;break;case"value":r=u;break;case"defaultValue":l=u;break;case"children":case"dangerouslySetInnerHTML":if(null!=u)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ms(e,t,a,u,n,null)}}return Ue(0,n),We(e,r,l,s,c,i,o,!1),void De(e);case"select":for(o in ye("select",n),xs("invalid",e),a=i=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":i=l;break;case"multiple":a=l;default:Ms(e,t,o,l,n,null)}return Qe(e,n),t=r,n=i,e.multiple=!!a,void(null!=t?Ke(e,!!a,t,!1):null!=n&&Ke(e,!!a,n,!0));case"textarea":for(i in ye("textarea",n),xs("invalid",e),r=o=a=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":a=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Ms(e,t,i,l,n,null)}return Ye(0,n),Xe(e,a,o,r),void De(e);case"option":for(s in Ve(0,n),n)n.hasOwnProperty(s)&&null!=(a=n[s])&&("selected"===s?e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a:Ms(e,t,s,a,n,null));return;case"dialog":xs("beforetoggle",e),xs("toggle",e),xs("cancel",e),xs("close",e);break;case"iframe":case"object":xs("load",e);break;case"video":case"audio":for(a=0;a<lv.length;a++)xs(lv[a],e);break;case"image":xs("error",e),xs("load",e);break;case"details":xs("toggle",e);break;case"embed":case"source":case"link":xs("error",e),xs("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ms(e,t,c,a,n,null)}return;default:if(xt(t)){for(u in n)n.hasOwnProperty(u)&&void 0!==(a=n[u])&&$s(e,t,u,a,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(a=n[l])&&Ms(e,t,l,a,n,null)}function Us(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Hs(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Ws(e,t,n){if(null!=t&&"object"!=typeof t)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,a,o=r="";for(a in t)if(t.hasOwnProperty(a)){var i=t[a];null!=i&&"boolean"!=typeof i&&""!==i&&(0===a.indexOf("--")?($(i,a),r+=o+a+":"+(""+i).trim()):"number"!=typeof i||0===i||Tf.has(a)?($(i,a),r+=o+a.replace(bf,"-$1").toLowerCase().replace(yf,"-ms-")+":"+(""+i).trim()):r+=o+a.replace(bf,"-$1").toLowerCase().replace(yf,"-ms-")+":"+i+"px",o=";")}r=r||null,(t=e.getAttribute("style"))!==r&&(r=Ls(r),Ls(t)!==r&&(n.style=Hs(e)))}}function Bs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(M(r,t),e===""+r)return}js(t,e,r,o)}function Vs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n))){switch(typeof r){case"function":case"symbol":return}if(!r)return}else switch(typeof r){case"function":case"symbol":break;default:if(r)return}js(t,e,r,o)}function qs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":return}else if(null!=r)switch(typeof r){case"function":case"symbol":break;default:if(M(r,n),e===""+r)return}js(t,e,r,o)}function Ks(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(r))return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(!isNaN(r)&&(M(r,t),e===""+r))return}js(t,e,r,o)}function Qs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(M(r,t),e===(n=_t(""+r)))return}js(t,e,r,o)}function Ys(e,t,n,r){for(var a={},o=new Set,i=e.attributes,l=0;l<i.length;l++)switch(i[l].name.toLowerCase()){case"value":case"checked":case"selected":break;default:o.add(i[l].name)}if(xt(t)){for(var s in n)if(n.hasOwnProperty(s)){var c=n[s];if(null!=c)if(Fd.hasOwnProperty(s))"function"!=typeof c&&Os(s,c);else if(!0!==n.suppressHydrationWarning)switch(s){case"children":"string"!=typeof c&&"number"!=typeof c||js("children",e.textContent,c,a);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":i=e.innerHTML,null!=(c=c?c.__html:void 0)&&js(s,i,c=As(e,c),a);continue;case"style":o.delete(s),Ws(e,c,a);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":o.delete(s.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",s);continue;case"className":o.delete("class"),js("className",i=we(e,"class",c),c,a);continue;default:r.context===Lv&&"svg"!==t&&"math"!==t?o.delete(s.toLowerCase()):o.delete(s),js(s,i=we(e,s,c),c,a)}}}else for(c in n)if(n.hasOwnProperty(c)&&null!=(s=n[c]))if(Fd.hasOwnProperty(c))"function"!=typeof s&&Os(c,s);else if(!0!==n.suppressHydrationWarning)switch(c){case"children":"string"!=typeof s&&"number"!=typeof s||js("children",e.textContent,s,a);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":i=e.innerHTML,null!=(s=s?s.__html:void 0)&&i!==(s=As(e,s))&&(a[c]={__html:i});continue;case"className":Bs(e,c,"class",s,o,a);continue;case"tabIndex":Bs(e,c,"tabindex",s,o,a);continue;case"style":o.delete(c),Ws(e,s,a);continue;case"multiple":o.delete(c),js(c,e.multiple,s,a);continue;case"muted":o.delete(c),js(c,e.muted,s,a);continue;case"autoFocus":o.delete("autofocus"),js(c,e.autofocus,s,a);continue;case"data":if("object"!==t){o.delete(c),js(c,i=e.getAttribute("data"),s,a);continue}case"src":case"href":if(!(""!==s||"a"===t&&"href"===c||"object"===t&&"data"===c)){"src"===c?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c);continue}Qs(e,c,c,s,o,a);continue;case"action":case"formAction":if(i=e.getAttribute(c),"function"==typeof s){o.delete(c.toLowerCase()),"formAction"===c?(o.delete("name"),o.delete("formenctype"),o.delete("formmethod"),o.delete("formtarget")):(o.delete("enctype"),o.delete("method"),o.delete("target"));continue}if(i===xv){o.delete(c.toLowerCase()),js(c,"function",s,a);continue}Qs(e,c,c.toLowerCase(),s,o,a);continue;case"xlinkHref":Qs(e,c,"xlink:href",s,o,a);continue;case"contentEditable":qs(e,c,"contenteditable",s,o,a);continue;case"spellCheck":qs(e,c,"spellcheck",s,o,a);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":qs(e,c,c,s,o,a);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Vs(e,c,c.toLowerCase(),s,o,a);continue;case"capture":case"download":e:{l=e;var u=i=c,d=a;if(o.delete(u),null===(l=l.getAttribute(u)))switch(typeof s){case"undefined":case"function":case"symbol":break e;default:if(!1===s)break e}else if(null!=s)switch(typeof s){case"function":case"symbol":break;case"boolean":if(!0===s&&""===l)break e;break;default:if(M(s,i),l===""+s)break e}js(i,l,s,d)}continue;case"cols":case"rows":case"size":case"span":e:{if(l=e,u=i=c,d=a,o.delete(u),null===(l=l.getAttribute(u)))switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(s)||1>s)break e}else if(null!=s)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(s)||1>s)&&(M(s,i),l===""+s))break e}js(i,l,s,d)}continue;case"rowSpan":Ks(e,c,"rowspan",s,o,a);continue;case"start":Ks(e,c,c,s,o,a);continue;case"xHeight":Bs(e,c,"x-height",s,o,a);continue;case"xlinkActuate":Bs(e,c,"xlink:actuate",s,o,a);continue;case"xlinkArcrole":Bs(e,c,"xlink:arcrole",s,o,a);continue;case"xlinkRole":Bs(e,c,"xlink:role",s,o,a);continue;case"xlinkShow":Bs(e,c,"xlink:show",s,o,a);continue;case"xlinkTitle":Bs(e,c,"xlink:title",s,o,a);continue;case"xlinkType":Bs(e,c,"xlink:type",s,o,a);continue;case"xmlBase":Bs(e,c,"xml:base",s,o,a);continue;case"xmlLang":Bs(e,c,"xml:lang",s,o,a);continue;case"xmlSpace":Bs(e,c,"xml:space",s,o,a);continue;case"inert":""!==s||bv[c]||(bv[c]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",c)),Vs(e,c,c,s,o,a);continue;default:if(!(2<c.length)||"o"!==c[0]&&"O"!==c[0]||"n"!==c[1]&&"N"!==c[1]){l=St(c),i=!1,r.context===Lv&&"svg"!==t&&"math"!==t?o.delete(l.toLowerCase()):(u=c.toLowerCase(),null!==(u=zf.hasOwnProperty(u)&&zf[u]||null)&&u!==c&&(i=!0,o.delete(u)),o.delete(l));e:if(u=e,d=l,l=s,ve(d))if(u.hasAttribute(d))u=u.getAttribute(d),M(l,d),l=u===""+l?l:u;else{switch(typeof l){case"function":case"symbol":break e;case"boolean":if("data-"!==(u=d.toLowerCase().slice(0,5))&&"aria-"!==u)break e}l=void 0===l?void 0:null}else l=void 0;i||js(c,l,s,a)}}return 0<o.size&&!0!==n.suppressHydrationWarning&&function(e,t,n){t.forEach(function(t){n[Us(t)]="style"===t?Hs(e):e.getAttribute(t)})}(e,o,a),0===Object.keys(a).length?null:a}function Gs(e){return 9===e.nodeType?e:e.ownerDocument}function Xs(e){switch(e){case Pf:return Iv;case Nf:return Dv;default:return Lv}}function Js(e,t){if(e===Lv)switch(t){case"svg":return Iv;case"math":return Dv;default:return Lv}return e===Iv&&"foreignObject"===t?Lv:e}function Zs(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function ec(e){setTimeout(function(){throw e})}function tc(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function nc(e,t,n,r){!function(e,t,n,r){switch(zs(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,i=null,l=null,s=null,c=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&null!=d)switch(p){case"checked":case"value":break;case"defaultValue":s=d;default:r.hasOwnProperty(p)||Ms(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(null!=p||null!=d))switch(f){case"type":o=p;break;case"name":a=p;break;case"checked":c=p;break;case"defaultChecked":u=p;break;case"value":i=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&Ms(e,t,f,p,r,d)}}return t="checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value,r="checkbox"===r.type||"radio"===r.type?null!=r.checked:null!=r.value,t||!r||dv||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),dv=!0),!t||r||uv||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),uv=!0),void He(e,i,l,s,c,u,o,a);case"select":for(o in p=i=l=f=null,n)if(s=n[o],n.hasOwnProperty(o)&&null!=s)switch(o){case"value":break;case"multiple":p=s;default:r.hasOwnProperty(o)||Ms(e,t,o,null,r,s)}for(a in r)if(o=r[a],s=n[a],r.hasOwnProperty(a)&&(null!=o||null!=s))switch(a){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":i=o;default:o!==s&&Ms(e,t,a,o,r,s)}return r=l,t=i,n=p,void(null!=f?Ke(e,!!t,f,!1):!!n!=!!t&&(null!=r?Ke(e,!!t,r,!0):Ke(e,!!t,t?[]:"",!1)));case"textarea":for(l in p=f=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:Ms(e,t,l,null,r,a)}for(i in r)if(a=r[i],o=n[i],r.hasOwnProperty(i)&&(null!=a||null!=o))switch(i){case"value":f=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:a!==o&&Ms(e,t,i,a,r,o)}return void Ge(e,f,p);case"option":for(var h in n)f=n[h],n.hasOwnProperty(h)&&null!=f&&!r.hasOwnProperty(h)&&("selected"===h?e.selected=!1:Ms(e,t,h,null,r,f));for(s in r)f=r[s],p=n[s],!r.hasOwnProperty(s)||f===p||null==f&&null==p||("selected"===s?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:Ms(e,t,s,f,r,p));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m)&&Ms(e,t,m,null,r,f);for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(null!=f||null!=p))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ms(e,t,c,f,r,p)}return;default:if(xt(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&void 0!==f&&!r.hasOwnProperty(g)&&$s(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||void 0===f&&void 0===p||$s(e,t,u,f,r,p);return}}for(var b in n)f=n[b],n.hasOwnProperty(b)&&null!=f&&!r.hasOwnProperty(b)&&Ms(e,t,b,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||null==f&&null==p||Ms(e,t,d,f,r,p)}(e,t,n,r),e[jd]=r}function rc(e){vt(e,"")}function ac(e,t,n){e.nodeValue=n}function oc(e){return"head"===e}function ic(e,t){e.removeChild(t)}function lc(e,t){(9===e.nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).removeChild(t)}function sc(e,t){var n=t,r=0,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if((n=o.data)===Ev){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(n&Nv&&Cc(i.documentElement),n&Pv&&Cc(i.body),n&Rv)for(Cc(n=i.head),i=n.firstChild;i;){var l=i.nextSibling,s=i.nodeName;i[Md]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=l}}if(0===a)return e.removeChild(o),void fu(t);a--}else n===Cv||n===_v||n===Tv?a++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);fu(t)}function cc(e){"function"==typeof(e=e.style).setProperty?e.setProperty("display","none","important"):e.display="none"}function uc(e){e.nodeValue=""}function dc(e,t){t=null!=(t=t[Av])&&t.hasOwnProperty("display")?t.display:null,e.style.display=null==t||"boolean"==typeof t?"":(""+t).trim()}function fc(e,t){e.nodeValue=t}function pc(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":pc(n),ue(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function hc(e){return e.data===Tv||e.data===_v&&e.ownerDocument.readyState===Ov}function mc(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if((t=e.data)===Cv||t===Tv||t===_v||t===zv||t===jv)break;if(t===Ev)return null}}return e}function gc(e){if(1===e.nodeType){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,a=0;a<r.length;a++){var o=r[a];n[Us(o.name)]="style"===o.name.toLowerCase()?Hs(e):o.value}return{type:t,props:n}}return 8===e.nodeType?{type:"Suspense",props:{}}:e.nodeValue}function bc(e,t,n){return null===n||!0!==n[Sv]?(e.nodeValue===t?e=null:(t=Ls(t),e=Ls(e.nodeValue)===t?null:e.nodeValue),e):null}function yc(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Ev){if(0===t)return mc(e.nextSibling);t--}else n!==Cv&&n!==Tv&&n!==_v||t++}e=e.nextSibling}return null}function vc(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Cv||n===Tv||n===_v){if(0===t)return e;t--}else n===Ev&&t++}e=e.previousSibling}return null}function wc(e){fu(e)}function kc(e){fu(e)}function xc(e,t,n,r,a){switch(a&&bt(e,r.ancestorInfo),t=Gs(n),e){case"html":if(!(e=t.documentElement))throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(!(e=t.head))throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(!(e=t.body))throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Sc(e,t,n,r){if(!n[Od]&&fe(n)){var a=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",a,a,a)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Fs(n,e,t),n[zd]=r,n[jd]=t}function Cc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ue(e)}function Ec(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}function _c(e,t,n){var r=dw;if(r&&"string"==typeof t&&t){var a=Fe(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),ew.has(a)||(ew.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(Fs(t=r.createElement("link"),"link",e),me(t),r.head.appendChild(t)))}}function Tc(e,t,n,r){var a=(a=ed.current)?Ec(a):null;if(!a)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(n=Pc(n.href),(r=(t=he(a).hoistableStyles).get(n))||(r={type:"style",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Pc(n.href);var o=he(a).hoistableStyles,i=o.get(e);if(!i&&(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:Qv,preload:null}},o.set(e,i),(o=a.querySelector(Rc(e)))&&!o._p&&(i.instance=o,i.state.loading=Yv|Jv),!Zv.has(e))){var l={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};Zv.set(e,l),o||function(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=Yv:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=Yv}),t.addEventListener("error",function(){return r.loading|=Gv}),Fs(t,"link",n),me(t),e.head.appendChild(t))}(a,e,l,i.state)}if(t&&null===r)throw n="\n\n - "+Nc(t)+"\n + "+Nc(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return i}if(t&&null!==r)throw n="\n\n - "+Nc(t)+"\n + "+Nc(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(n=jc(n),(r=(t=he(a).hoistableScripts).get(n))||(r={type:"script",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Nc(e){var t=0,n="<link";return"string"==typeof e.rel?(t++,n+=' rel="'+e.rel+'"'):nd.call(e,"rel")&&(t++,n+=' rel="'+(null===e.rel?"null":"invalid type "+typeof e.rel)+'"'),"string"==typeof e.href?(t++,n+=' href="'+e.href+'"'):nd.call(e,"href")&&(t++,n+=' href="'+(null===e.href?"null":"invalid type "+typeof e.href)+'"'),"string"==typeof e.precedence?(t++,n+=' precedence="'+e.precedence+'"'):nd.call(e,"precedence")&&(t++,n+=" precedence={"+(null===e.precedence?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Pc(e){return'href="'+Fe(e)+'"'}function Rc(e){return'link[rel="stylesheet"]['+e+"]"}function zc(e){return _u({},e,{"data-precedence":e.precedence,precedence:null})}function jc(e){return'[src="'+Fe(e)+'"]'}function Oc(e){return"script[async]"+e}function Ac(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Fe(n.href)+'"]');if(r)return t.instance=r,me(r),r;var a=_u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return me(r=(e.ownerDocument||e).createElement("style")),Fs(r,"style",a),Lc(r,n.precedence,e),t.instance=r;case"stylesheet":a=Pc(n.href);var o=e.querySelector(Rc(a));if(o)return t.state.loading|=Jv,t.instance=o,me(o),o;r=zc(n),(a=Zv.get(a))&&Ic(r,a),me(o=(e.ownerDocument||e).createElement("link"));var i=o;return i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),Fs(o,"link",r),t.state.loading|=Jv,Lc(o,n.precedence,e),t.instance=o;case"script":return o=jc(n.src),(a=e.querySelector(Oc(o)))?(t.instance=a,me(a),a):(r=n,(a=Zv.get(o))&&Dc(r=_u({},n),a),me(a=(e=e.ownerDocument||e).createElement("script")),Fs(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else"stylesheet"===t.type&&(t.state.loading&Jv)===Qv&&(r=t.instance,t.state.loading|=Jv,Lc(r,n.precedence,e));return t.instance}function Lc(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,i=0;i<r.length;i++){var l=r[i];if(l.dataset.precedence===t)o=l;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Ic(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Dc(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}function Mc(e,t,n){if(null===fw){var r=new Map,a=fw=new Map;a.set(n,r)}else(r=(a=fw).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Md]||o[zd]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&o.namespaceURI!==Pf){var i=o.getAttribute(t)||"";i=e+i;var l=r.get(i);l?l.push(o):r.set(i,[o])}}return r}function $c(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Fc(e){return"stylesheet"!==e.type||(e.state.loading&Xv)!==Qv}function Uc(){}function Hc(){if(this.count--,0===this.count)if(this.stylesheets)Wc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}function Wc(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,mw=new Map,t.forEach(Bc,e),mw=null,Hc.call(e))}function Bc(e,t){if(!(t.state.loading&Jv)){var n=mw.get(e);if(n)var r=n.get(hw);else{n=new Map,mw.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var i=a[o];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(hw,r)}i=(a=t.instance).getAttribute("data-precedence"),(o=n.get(i)||r)===r&&n.set(hw,a),n.set(i,a),this.count++,r=Hc.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=Jv}}function Vc(e,t,n,r,a,o,i,l){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Bv,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=te(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=te(0),this.hiddenUpdates=te(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?"hydrateRoot()":"createRoot()"}function qc(e,t,n,r,a,o,i,l,s,c,u,d){return e=new Vc(e,t,n,i,l,s,c,d),t=dh,!0===o&&(t|=ph|hh),wd&&(t|=fh),o=p(3,null,null,t),e.current=o,o.stateNode=e,nr(t=tr()),e.pooledCache=t,nr(t),o.memoizedState={element:r,isDehydrated:n,cache:t},xr(o),e}function Kc(e){return e?e=lh:lh}function Qc(e,t,n,r,a,o){if(bd&&"function"==typeof bd.onScheduleFiberRoot)try{bd.onScheduleFiberRoot(gd,r,n)}catch(e){vd||(vd=!0,console.error("React instrumentation encountered an error: %s",e))}null!==yd&&"function"==typeof yd.markRenderScheduled&&yd.markRenderScheduled(t),a=Kc(a),null===r.context?r.context=a:r.pendingContext=a,Jd&&null!==Xd&&!Sw&&(Sw=!0,console.error("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",S(Xd)||"Unknown")),(r=Cr(t)).payload={element:n},null!==(o=void 0===o?null:o)&&("function"!=typeof o&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",o),r.callback=o),null!==(n=Er(e,r,t))&&(kl(n,e,t),_r(n,e,t))}function Yc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gc(e,t){Yc(e,t),(e=e.alternate)&&Yc(e,t)}function Xc(e){if(13===e.tag){var t=fn(e,67108864);null!==t&&kl(t,e,67108864),Gc(e,67108864)}}function Jc(e,t,n,r){var a=qu.T;qu.T=null;var o=Ku.p;try{Ku.p=_d,eu(e,t,n,r)}finally{Ku.p=o,qu.T=a}}function Zc(e,t,n,r){var a=qu.T;qu.T=null;var o=Ku.p;try{Ku.p=Td,eu(e,t,n,r)}finally{Ku.p=o,qu.T=a}}function eu(e,t,n,r){if(Ew){var a=tu(r);if(null===a)_s(e,t,r,_w,n),au(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Nw=ou(Nw,e,t,n,r,a),!0;case"dragenter":return Pw=ou(Pw,e,t,n,r,a),!0;case"mouseover":return Rw=ou(Rw,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return zw.set(o,ou(zw.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,jw.set(o,ou(jw.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(au(e,r),4&t&&-1<Aw.indexOf(e)){for(;null!==a;){var o=fe(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var i=Y(o.pendingLanes);if(0!==i){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-kd(i);l.entanglements[1]|=s,i&=~s}ss(o),(Bb&(Lb|Ib))===Ab&&(ky=ld()+xy,cs(0))}}break;case 13:null!==(l=fn(o,2))&&kl(l,o,2),_l(),Gc(o,2)}if(null===(o=tu(r))&&_s(e,t,r,_w,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else _s(e,t,r,null,n)}}function tu(e){return nu(e=Tt(e))}function nu(e){if(_w=null,null!==(e=de(e))){var t=m(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=g(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _w=e,null}function ru(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return _d;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Td;case"message":switch(sd()){case cd:return _d;case ud:return Td;case dd:case fd:return Nd;case pd:return Pd;default:return Nd}default:return Nd}}function au(e,t){switch(e){case"focusin":case"focusout":Nw=null;break;case"dragenter":case"dragleave":Pw=null;break;case"mouseover":case"mouseout":Rw=null;break;case"pointerover":case"pointerout":zw.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jw.delete(t.pointerId)}}function ou(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&null!==(t=fe(t))&&Xc(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function iu(e){var t=de(e.target);if(null!==t){var n=m(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=g(n)))return e.blockedOn=t,void function(e,t){var n=Ku.p;try{return Ku.p=e,t()}finally{Ku.p=n}}(e.priority,function(){if(13===n.tag){var e=vl(n);e=oe(e);var t=fn(n,e);null!==t&&kl(t,n,e),Gc(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function lu(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=tu(e.nativeEvent);if(null!==n)return null!==(t=fe(n))&&Xc(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n),a=r;null!==Wf&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Wf=a,n.target.dispatchEvent(r),null===Wf&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Wf=null,t.shift()}return!0}function su(e,t,n){lu(e)&&n.delete(t)}function cu(){Tw=!1,null!==Nw&&lu(Nw)&&(Nw=null),null!==Pw&&lu(Pw)&&(Pw=null),null!==Rw&&lu(Rw)&&(Rw=null),zw.forEach(su),jw.forEach(su)}function uu(e,t){e.blockedOn===t&&(e.blockedOn=null,Tw||(Tw=!0,Su.unstable_scheduleCallback(Su.unstable_NormalPriority,cu)))}function du(e){Lw!==e&&(Lw=e,Su.unstable_scheduleCallback(Su.unstable_NormalPriority,function(){Lw===e&&(Lw=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!=typeof r){if(null===nu(r||n))continue;break}var o=fe(n);null!==o&&(e.splice(t,3),t-=3,n={pending:!0,data:a,method:n.method,action:r},Object.freeze(n),Ya(o,n,r,a))}}))}function fu(e){function t(t){return uu(t,e)}null!==Nw&&uu(Nw,e),null!==Pw&&uu(Pw,e),null!==Rw&&uu(Rw,e),zw.forEach(t),jw.forEach(t);for(var n=0;n<Ow.length;n++){var r=Ow[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ow.length&&null===(n=Ow[0]).blockedOn;)iu(n),null===n.blockedOn&&Ow.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],i=a[jd]||null;if("function"==typeof o)i||du(n);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(a=o,i=o[jd]||null)l=i.formAction;else if(null!==nu(a))continue}else l=i.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),du(n)}}}function pu(e){this._internalRoot=e}function hu(e){this._internalRoot=e}function mu(e){e[Od]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("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."))}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var gu,bu,yu,vu,wu,ku,xu,Su=k(),Cu=u(),Eu=P(),_u=Object.assign,Tu=Symbol.for("react.element"),Nu=Symbol.for("react.transitional.element"),Pu=Symbol.for("react.portal"),Ru=Symbol.for("react.fragment"),zu=Symbol.for("react.strict_mode"),ju=Symbol.for("react.profiler"),Ou=Symbol.for("react.provider"),Au=Symbol.for("react.consumer"),Lu=Symbol.for("react.context"),Iu=Symbol.for("react.forward_ref"),Du=Symbol.for("react.suspense"),Mu=Symbol.for("react.suspense_list"),$u=Symbol.for("react.memo"),Fu=Symbol.for("react.lazy"),Uu=Symbol.for("react.activity"),Hu=Symbol.for("react.memo_cache_sentinel"),Wu=Symbol.iterator,Bu=Symbol.for("react.client.reference"),Vu=Array.isArray,qu=Cu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ku=Eu.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qu=Object.freeze({pending:!1,data:null,method:null,action:null}),Yu=[],Gu=[],Xu=-1,Ju=C(null),Zu=C(null),ed=C(null),td=C(null),nd=Object.prototype.hasOwnProperty,rd=Su.unstable_scheduleCallback,ad=Su.unstable_cancelCallback,od=Su.unstable_shouldYield,id=Su.unstable_requestPaint,ld=Su.unstable_now,sd=Su.unstable_getCurrentPriorityLevel,cd=Su.unstable_ImmediatePriority,ud=Su.unstable_UserBlockingPriority,dd=Su.unstable_NormalPriority,fd=Su.unstable_LowPriority,pd=Su.unstable_IdlePriority,hd=Su.log,md=Su.unstable_setDisableYieldValue,gd=null,bd=null,yd=null,vd=!1,wd="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__,kd=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(xd(e)/Sd|0)|0},xd=Math.log,Sd=Math.LN2,Cd=256,Ed=4194304,_d=2,Td=8,Nd=32,Pd=268435456,Rd=Math.random().toString(36).slice(2),zd="__reactFiber$"+Rd,jd="__reactProps$"+Rd,Od="__reactContainer$"+Rd,Ad="__reactEvents$"+Rd,Ld="__reactListeners$"+Rd,Id="__reactHandles$"+Rd,Dd="__reactResources$"+Rd,Md="__reactMarker$"+Rd,$d=new Set,Fd={},Ud={},Hd={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Wd=RegExp("^[: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][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Bd={},Vd={},qd=0;Ce.__reactDisabledLog=!0;var Kd,Qd,Yd=!1,Gd=new("function"==typeof WeakMap?WeakMap:Map),Xd=null,Jd=!1,Zd=/[\n"\\]/g,ef=!1,tf=!1,nf=!1,rf=!1,af=!1,of=!1,lf=["value","defaultValue"],sf=!1,cf=/["'&<>\n\t]|^\s|\s$/,uf="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),df="applet caption html table td th marquee object template foreignObject desc title".split(" "),ff=df.concat(["button"]),pf="dd dt li option optgroup p rp rt".split(" "),hf={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},mf={},gf={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},bf=/([A-Z])/g,yf=/^ms-/,vf=/^(?:webkit|moz|o)[A-Z]/,wf=/^-ms-/,kf=/-(.)/g,xf=/;\s*$/,Sf={},Cf={},Ef=!1,_f=!1,Tf=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Nf="http://www.w3.org/1998/Math/MathML",Pf="http://www.w3.org/2000/svg",Rf=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zf={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},jf={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Of={},Af=RegExp("^(aria)-[: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Lf=RegExp("^(aria)[A-Z][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),If=!1,Df={},Mf=/^on./,$f=/^on[^A-Z]/,Ff=RegExp("^(aria)-[: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Uf=RegExp("^(aria)[A-Z][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Hf=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Wf=null,Bf=null,Vf=null,qf=!1,Kf=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Qf=!1;if(Kf)try{var Yf={};Object.defineProperty(Yf,"passive",{get:function(){Qf=!0}}),window.addEventListener("test",Yf,Yf),window.removeEventListener("test",Yf,Yf)}catch(e){Qf=!1}var Gf,Xf,Jf,Zf=null,ep=null,tp=null,np={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rp=Lt(np),ap=_u({},np,{view:0,detail:0}),op=Lt(ap),ip=_u({},ap,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dt,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jf&&(Jf&&"mousemove"===e.type?(Gf=e.screenX-Jf.screenX,Xf=e.screenY-Jf.screenY):Xf=Gf=0,Jf=e),Gf)},movementY:function(e){return"movementY"in e?e.movementY:Xf}}),lp=Lt(ip),sp=Lt(_u({},ip,{dataTransfer:0})),cp=Lt(_u({},ap,{relatedTarget:0})),up=Lt(_u({},np,{animationName:0,elapsedTime:0,pseudoElement:0})),dp=Lt(_u({},np,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),fp=Lt(_u({},np,{data:0})),pp=fp,hp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},bp=Lt(_u({},ap,{key:function(e){if(e.key){var t=hp[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=jt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dt,charCode:function(e){return"keypress"===e.type?jt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?jt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yp=Lt(_u({},ip,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vp=Lt(_u({},ap,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dt})),wp=Lt(_u({},np,{propertyName:0,elapsedTime:0,pseudoElement:0})),kp=Lt(_u({},ip,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),xp=Lt(_u({},np,{newState:0,oldState:0})),Sp=[9,13,27,32],Cp=229,Ep=Kf&&"CompositionEvent"in window,_p=null;Kf&&"documentMode"in document&&(_p=document.documentMode);var Tp=Kf&&"TextEvent"in window&&!_p,Np=Kf&&(!Ep||_p&&8<_p&&11>=_p),Pp=32,Rp=String.fromCharCode(Pp),zp=!1,jp=!1,Op={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Ap=null,Lp=null,Ip=!1;Kf&&(Ip=function(e){if(!Kf)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}("input")&&(!document.documentMode||9<document.documentMode));var Dp="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Mp=Kf&&"documentMode"in document&&11>=document.documentMode,$p=null,Fp=null,Up=null,Hp=!1,Wp={animationend:an("Animation","AnimationEnd"),animationiteration:an("Animation","AnimationIteration"),animationstart:an("Animation","AnimationStart"),transitionrun:an("Transition","TransitionRun"),transitionstart:an("Transition","TransitionStart"),transitioncancel:an("Transition","TransitionCancel"),transitionend:an("Transition","TransitionEnd")},Bp={},Vp={};Kf&&(Vp=document.createElement("div").style,"AnimationEvent"in window||(delete Wp.animationend.animation,delete Wp.animationiteration.animation,delete Wp.animationstart.animation),"TransitionEvent"in window||delete Wp.transitionend.transition);var qp=on("animationend"),Kp=on("animationiteration"),Qp=on("animationstart"),Yp=on("transitionrun"),Gp=on("transitionstart"),Xp=on("transitioncancel"),Jp=on("transitionend"),Zp=new Map,eh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");eh.push("scrollEnd");var th=new WeakMap,nh=1,rh=2,ah=[],oh=0,ih=0,lh={};Object.freeze(lh);var sh=null,ch=null,uh=0,dh=1,fh=2,ph=8,hh=16,mh=64,gh=!1;try{Object.preventExtensions({})}catch(e){gh=!0}var bh=[],yh=0,vh=null,wh=0,kh=[],xh=0,Sh=null,Ch=1,Eh="",_h=null,Th=null,Nh=!1,Ph=!1,Rh=null,zh=null,jh=!1,Oh=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Ah=0;if("object"==typeof performance&&"function"==typeof performance.now)var Lh=performance,Ih=function(){return Lh.now()};else{var Dh=Date;Ih=function(){return Dh.now()}}var Mh=C(null),$h=C(null),Fh={},Uh=null,Hh=null,Wh=!1,Bh="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Vh=Su.unstable_scheduleCallback,qh=Su.unstable_NormalPriority,Kh={$$typeof:Lu,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Qh=Su.unstable_now,Yh=-0,Gh=-0,Xh=-1.1,Jh=-0,Zh=!1,em=!1,tm=null,nm=0,rm=0,am=null,om=qu.S;qu.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===tm){var n=tm=[];nm=0,rm=bs(),am={status:"pending",value:void 0,then:function(e){n.push(e)}}}nm++,t.then(pr,pr)}(0,t),null!==om&&om(e,t)};var im=C(null),lm={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},sm=[],cm=[],um=[],dm=[],fm=[],pm=[],hm=new Set;lm.recordUnsafeLifecycleWarnings=function(e,t){hm.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&sm.push(e),e.mode&ph&&"function"==typeof t.UNSAFE_componentWillMount&&cm.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&um.push(e),e.mode&ph&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&dm.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&fm.push(e),e.mode&ph&&"function"==typeof t.UNSAFE_componentWillUpdate&&pm.push(e))},lm.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<sm.length&&(sm.forEach(function(t){e.add(S(t)||"Component"),hm.add(t.type)}),sm=[]);var t=new Set;0<cm.length&&(cm.forEach(function(e){t.add(S(e)||"Component"),hm.add(e.type)}),cm=[]);var n=new Set;0<um.length&&(um.forEach(function(e){n.add(S(e)||"Component"),hm.add(e.type)}),um=[]);var r=new Set;0<dm.length&&(dm.forEach(function(e){r.add(S(e)||"Component"),hm.add(e.type)}),dm=[]);var a=new Set;0<fm.length&&(fm.forEach(function(e){a.add(S(e)||"Component"),hm.add(e.type)}),fm=[]);var o=new Set;if(0<pm.length&&(pm.forEach(function(e){o.add(S(e)||"Component"),hm.add(e.type)}),pm=[]),0<t.size){var i=f(t);console.error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",i)}0<r.size&&(i=f(r),console.error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* 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://react.dev/link/derived-state\n\nPlease update the following components: %s",i)),0<o.size&&(i=f(o),console.error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",i)),0<e.size&&(i=f(e),console.warn("componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* 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.\n\nPlease update the following components: %s",i)),0<n.size&&(i=f(n),console.warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* 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://react.dev/link/derived-state\n* 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.\n\nPlease update the following components: %s",i)),0<a.size&&(i=f(a),console.warn("componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* 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.\n\nPlease update the following components: %s",i))};var mm=new Map,gm=new Set;lm.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;null!==r;)r.mode&ph&&(n=r),r=r.return;null===n?console.error("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."):!gm.has(e.type)&&(r=mm.get(n),null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],mm.set(n,r)),r.push(e))},lm.flushLegacyContextWarning=function(){mm.forEach(function(e){if(0!==e.length){var t=e[0],n=new Set;e.forEach(function(e){n.add(S(e)||"Component"),gm.add(e.type)});var r=f(n);Oe(t,function(){console.error("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context",r)})}})},lm.discardPendingWarnings=function(){sm=[],cm=[],um=[],dm=[],fm=[],pm=[],mm=new Map};var bm,ym=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),vm=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),wm=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),km={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},xm=null,Sm=!1,Cm=0,Em=1,_m=2,Tm=4,Nm=8,Pm=0,Rm=1,zm=2,jm=3,Om=!1,Am=!1,Lm=null,Im=!1,Dm=C(null),Mm=C(0),$m=new Set,Fm=new Set,Um=new Set,Hm=new Set,Wm=0,Bm=null,Vm=null,qm=null,Km=!1,Qm=!1,Ym=!1,Gm=0,Xm=0,Jm=null,Zm=0,eg=25,tg=null,ng=null,rg=-1,ag=!1,og={readContext:Jn,use:Jr,useCallback:Fr,useContext:Fr,useEffect:Fr,useImperativeHandle:Fr,useLayoutEffect:Fr,useInsertionEffect:Fr,useMemo:Fr,useReducer:Fr,useRef:Fr,useState:Fr,useDebugValue:Fr,useDeferredValue:Fr,useTransition:Fr,useSyncExternalStore:Fr,useId:Fr,useHostTransitionStatus:Fr,useFormState:Fr,useActionState:Fr,useOptimistic:Fr,useMemoCache:Fr,useCacheRefresh:Fr},ig=null,lg=null,sg=null,cg=null,ug=null,dg=null,fg=null;ig={readContext:function(e){return Jn(e)},use:Jr,useCallback:function(e,t){return tg="useCallback",Ir(),Mr(t),$a(e,t)},useContext:function(e){return tg="useContext",Ir(),Jn(e)},useEffect:function(e,t){return tg="useEffect",Ir(),Mr(t),Aa(e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",Ir(),Mr(n),Da(e,t,n)},useInsertionEffect:function(e,t){tg="useInsertionEffect",Ir(),Mr(t),ja(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",Ir(),Mr(t),La(e,t)},useMemo:function(e,t){tg="useMemo",Ir(),Mr(t);var n=qu.H;qu.H=ug;try{return Ua(e,t)}finally{qu.H=n}},useReducer:function(e,t,n){tg="useReducer",Ir();var r=qu.H;qu.H=ug;try{return ta(e,t,n)}finally{qu.H=r}},useRef:function(e){return tg="useRef",Ir(),za(e)},useState:function(e){tg="useState",Ir();var t=qu.H;qu.H=ug;try{return pa(e)}finally{qu.H=t}},useDebugValue:function(){tg="useDebugValue",Ir()},useDeferredValue:function(e,t){return tg="useDeferredValue",Ir(),Wa(e,t)},useTransition:function(){return tg="useTransition",Ir(),Ja()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",Ir(),oa(e,t,n)},useId:function(){return tg="useId",Ir(),no()},useFormState:function(e,t){return tg="useFormState",Ir(),$r(),Ea(e,t)},useActionState:function(e,t){return tg="useActionState",Ir(),Ea(e,t)},useOptimistic:function(e){return tg="useOptimistic",Ir(),ha(e)},useHostTransitionStatus:to,useMemoCache:Zr,useCacheRefresh:function(){return tg="useCacheRefresh",Ir(),ro()}},lg={readContext:function(e){return Jn(e)},use:Jr,useCallback:function(e,t){return tg="useCallback",Dr(),$a(e,t)},useContext:function(e){return tg="useContext",Dr(),Jn(e)},useEffect:function(e,t){return tg="useEffect",Dr(),Aa(e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",Dr(),Da(e,t,n)},useInsertionEffect:function(e,t){tg="useInsertionEffect",Dr(),ja(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",Dr(),La(e,t)},useMemo:function(e,t){tg="useMemo",Dr();var n=qu.H;qu.H=ug;try{return Ua(e,t)}finally{qu.H=n}},useReducer:function(e,t,n){tg="useReducer",Dr();var r=qu.H;qu.H=ug;try{return ta(e,t,n)}finally{qu.H=r}},useRef:function(e){return tg="useRef",Dr(),za(e)},useState:function(e){tg="useState",Dr();var t=qu.H;qu.H=ug;try{return pa(e)}finally{qu.H=t}},useDebugValue:function(){tg="useDebugValue",Dr()},useDeferredValue:function(e,t){return tg="useDeferredValue",Dr(),Wa(e,t)},useTransition:function(){return tg="useTransition",Dr(),Ja()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",Dr(),oa(e,t,n)},useId:function(){return tg="useId",Dr(),no()},useActionState:function(e,t){return tg="useActionState",Dr(),Ea(e,t)},useFormState:function(e,t){return tg="useFormState",Dr(),$r(),Ea(e,t)},useOptimistic:function(e){return tg="useOptimistic",Dr(),ha(e)},useHostTransitionStatus:to,useMemoCache:Zr,useCacheRefresh:function(){return tg="useCacheRefresh",Dr(),ro()}},sg={readContext:function(e){return Jn(e)},use:Jr,useCallback:function(e,t){return tg="useCallback",Dr(),Fa(e,t)},useContext:function(e){return tg="useContext",Dr(),Jn(e)},useEffect:function(e,t){tg="useEffect",Dr(),Oa(2048,Nm,e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",Dr(),Ma(e,t,n)},useInsertionEffect:function(e,t){return tg="useInsertionEffect",Dr(),Oa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",Dr(),Oa(4,Tm,e,t)},useMemo:function(e,t){tg="useMemo",Dr();var n=qu.H;qu.H=dg;try{return Ha(e,t)}finally{qu.H=n}},useReducer:function(e,t,n){tg="useReducer",Dr();var r=qu.H;qu.H=dg;try{return na(e)}finally{qu.H=r}},useRef:function(){return tg="useRef",Dr(),Gr().memoizedState},useState:function(){tg="useState",Dr();var e=qu.H;qu.H=dg;try{return na(ea)}finally{qu.H=e}},useDebugValue:function(){tg="useDebugValue",Dr()},useDeferredValue:function(e,t){return tg="useDeferredValue",Dr(),Ba(e,t)},useTransition:function(){return tg="useTransition",Dr(),Za()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",Dr(),ia(e,t,n)},useId:function(){return tg="useId",Dr(),Gr().memoizedState},useFormState:function(e){return tg="useFormState",Dr(),$r(),_a(e)},useActionState:function(e){return tg="useActionState",Dr(),_a(e)},useOptimistic:function(e,t){return tg="useOptimistic",Dr(),ma(e,t)},useHostTransitionStatus:to,useMemoCache:Zr,useCacheRefresh:function(){return tg="useCacheRefresh",Dr(),Gr().memoizedState}},cg={readContext:function(e){return Jn(e)},use:Jr,useCallback:function(e,t){return tg="useCallback",Dr(),Fa(e,t)},useContext:function(e){return tg="useContext",Dr(),Jn(e)},useEffect:function(e,t){tg="useEffect",Dr(),Oa(2048,Nm,e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",Dr(),Ma(e,t,n)},useInsertionEffect:function(e,t){return tg="useInsertionEffect",Dr(),Oa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",Dr(),Oa(4,Tm,e,t)},useMemo:function(e,t){tg="useMemo",Dr();var n=qu.H;qu.H=fg;try{return Ha(e,t)}finally{qu.H=n}},useReducer:function(e,t,n){tg="useReducer",Dr();var r=qu.H;qu.H=fg;try{return aa(e)}finally{qu.H=r}},useRef:function(){return tg="useRef",Dr(),Gr().memoizedState},useState:function(){tg="useState",Dr();var e=qu.H;qu.H=fg;try{return aa(ea)}finally{qu.H=e}},useDebugValue:function(){tg="useDebugValue",Dr()},useDeferredValue:function(e,t){return tg="useDeferredValue",Dr(),Va(e,t)},useTransition:function(){return tg="useTransition",Dr(),eo()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",Dr(),ia(e,t,n)},useId:function(){return tg="useId",Dr(),Gr().memoizedState},useFormState:function(e){return tg="useFormState",Dr(),$r(),Pa(e)},useActionState:function(e){return tg="useActionState",Dr(),Pa(e)},useOptimistic:function(e,t){return tg="useOptimistic",Dr(),ba(e,t)},useHostTransitionStatus:to,useMemoCache:Zr,useCacheRefresh:function(){return tg="useCacheRefresh",Dr(),Gr().memoizedState}},ug={readContext:function(e){return c(),Jn(e)},use:function(e){return s(),Jr(e)},useCallback:function(e,t){return tg="useCallback",s(),Ir(),$a(e,t)},useContext:function(e){return tg="useContext",s(),Ir(),Jn(e)},useEffect:function(e,t){return tg="useEffect",s(),Ir(),Aa(e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",s(),Ir(),Da(e,t,n)},useInsertionEffect:function(e,t){tg="useInsertionEffect",s(),Ir(),ja(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",s(),Ir(),La(e,t)},useMemo:function(e,t){tg="useMemo",s(),Ir();var n=qu.H;qu.H=ug;try{return Ua(e,t)}finally{qu.H=n}},useReducer:function(e,t,n){tg="useReducer",s(),Ir();var r=qu.H;qu.H=ug;try{return ta(e,t,n)}finally{qu.H=r}},useRef:function(e){return tg="useRef",s(),Ir(),za(e)},useState:function(e){tg="useState",s(),Ir();var t=qu.H;qu.H=ug;try{return pa(e)}finally{qu.H=t}},useDebugValue:function(){tg="useDebugValue",s(),Ir()},useDeferredValue:function(e,t){return tg="useDeferredValue",s(),Ir(),Wa(e,t)},useTransition:function(){return tg="useTransition",s(),Ir(),Ja()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",s(),Ir(),oa(e,t,n)},useId:function(){return tg="useId",s(),Ir(),no()},useFormState:function(e,t){return tg="useFormState",s(),Ir(),Ea(e,t)},useActionState:function(e,t){return tg="useActionState",s(),Ir(),Ea(e,t)},useOptimistic:function(e){return tg="useOptimistic",s(),Ir(),ha(e)},useMemoCache:function(e){return s(),Zr(e)},useHostTransitionStatus:to,useCacheRefresh:function(){return tg="useCacheRefresh",Ir(),ro()}},dg={readContext:function(e){return c(),Jn(e)},use:function(e){return s(),Jr(e)},useCallback:function(e,t){return tg="useCallback",s(),Dr(),Fa(e,t)},useContext:function(e){return tg="useContext",s(),Dr(),Jn(e)},useEffect:function(e,t){tg="useEffect",s(),Dr(),Oa(2048,Nm,e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",s(),Dr(),Ma(e,t,n)},useInsertionEffect:function(e,t){return tg="useInsertionEffect",s(),Dr(),Oa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",s(),Dr(),Oa(4,Tm,e,t)},useMemo:function(e,t){tg="useMemo",s(),Dr();var n=qu.H;qu.H=dg;try{return Ha(e,t)}finally{qu.H=n}},useReducer:function(e,t,n){tg="useReducer",s(),Dr();var r=qu.H;qu.H=dg;try{return na(e)}finally{qu.H=r}},useRef:function(){return tg="useRef",s(),Dr(),Gr().memoizedState},useState:function(){tg="useState",s(),Dr();var e=qu.H;qu.H=dg;try{return na(ea)}finally{qu.H=e}},useDebugValue:function(){tg="useDebugValue",s(),Dr()},useDeferredValue:function(e,t){return tg="useDeferredValue",s(),Dr(),Ba(e,t)},useTransition:function(){return tg="useTransition",s(),Dr(),Za()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",s(),Dr(),ia(e,t,n)},useId:function(){return tg="useId",s(),Dr(),Gr().memoizedState},useFormState:function(e){return tg="useFormState",s(),Dr(),_a(e)},useActionState:function(e){return tg="useActionState",s(),Dr(),_a(e)},useOptimistic:function(e,t){return tg="useOptimistic",s(),Dr(),ma(e,t)},useMemoCache:function(e){return s(),Zr(e)},useHostTransitionStatus:to,useCacheRefresh:function(){return tg="useCacheRefresh",Dr(),Gr().memoizedState}},fg={readContext:function(e){return c(),Jn(e)},use:function(e){return s(),Jr(e)},useCallback:function(e,t){return tg="useCallback",s(),Dr(),Fa(e,t)},useContext:function(e){return tg="useContext",s(),Dr(),Jn(e)},useEffect:function(e,t){tg="useEffect",s(),Dr(),Oa(2048,Nm,e,t)},useImperativeHandle:function(e,t,n){return tg="useImperativeHandle",s(),Dr(),Ma(e,t,n)},useInsertionEffect:function(e,t){return tg="useInsertionEffect",s(),Dr(),Oa(4,_m,e,t)},useLayoutEffect:function(e,t){return tg="useLayoutEffect",s(),Dr(),Oa(4,Tm,e,t)},useMemo:function(e,t){tg="useMemo",s(),Dr();var n=qu.H;qu.H=dg;try{return Ha(e,t)}finally{qu.H=n}},useReducer:function(e,t,n){tg="useReducer",s(),Dr();var r=qu.H;qu.H=dg;try{return aa(e)}finally{qu.H=r}},useRef:function(){return tg="useRef",s(),Dr(),Gr().memoizedState},useState:function(){tg="useState",s(),Dr();var e=qu.H;qu.H=dg;try{return aa(ea)}finally{qu.H=e}},useDebugValue:function(){tg="useDebugValue",s(),Dr()},useDeferredValue:function(e,t){return tg="useDeferredValue",s(),Dr(),Va(e,t)},useTransition:function(){return tg="useTransition",s(),Dr(),eo()},useSyncExternalStore:function(e,t,n){return tg="useSyncExternalStore",s(),Dr(),ia(e,t,n)},useId:function(){return tg="useId",s(),Dr(),Gr().memoizedState},useFormState:function(e){return tg="useFormState",s(),Dr(),Pa(e)},useActionState:function(e){return tg="useActionState",s(),Dr(),Pa(e)},useOptimistic:function(e,t){return tg="useOptimistic",s(),Dr(),ba(e,t)},useMemoCache:function(e){return s(),Zr(e)},useHostTransitionStatus:to,useCacheRefresh:function(){return tg="useCacheRefresh",Dr(),Gr().memoizedState}};var pg,hg={react_stack_bottom_frame:function(e,t,n){var r=Jd;Jd=!0;try{return e(t,n)}finally{Jd=r}}},mg=hg.react_stack_bottom_frame.bind(hg),gg={react_stack_bottom_frame:function(e){var t=Jd;Jd=!0;try{return e.render()}finally{Jd=t}}},bg=gg.react_stack_bottom_frame.bind(gg),yg={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){Xl(e,e.return,t)}}},vg=yg.react_stack_bottom_frame.bind(yg),wg={react_stack_bottom_frame:function(e,t,n,r,a){try{t.componentDidUpdate(n,r,a)}catch(t){Xl(e,e.return,t)}}},kg=wg.react_stack_bottom_frame.bind(wg),xg={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:null!==n?n:""})}},Sg=xg.react_stack_bottom_frame.bind(xg),Cg={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){Xl(e,t,n)}}},Eg=Cg.react_stack_bottom_frame.bind(Cg),_g={react_stack_bottom_frame:function(e){null!=e.resourceKind&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Tg=_g.react_stack_bottom_frame.bind(_g),Ng={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){Xl(e,t,n)}}},Pg=Ng.react_stack_bottom_frame.bind(Ng),Rg={react_stack_bottom_frame:function(e){return(0,e._init)(e._payload)}},zg=Rg.react_stack_bottom_frame.bind(Rg),jg=null,Og=0,Ag=null,Lg=pg=!1,Ig={},Dg={},Mg={};l=function(e,t,n){if(null!==n&&"object"==typeof n&&n._store&&(!n._store.validated&&null==n.key||2===n._store.validated)){if("object"!=typeof n._store)throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=1;var r=S(e),a=r||"null";if(!Ig[a]){Ig[a]=!0,n=n._owner,e=e._debugOwner;var o="";e&&"number"==typeof e.tag&&(a=S(e))&&(o="\n\nCheck the render method of `"+a+"`."),o||r&&(o="\n\nCheck the top-level render call using <"+r+">.");var i="";null!=n&&e!==n&&(r=null,"number"==typeof n.tag?r=S(n):"string"==typeof n.name&&(r=n.name),r&&(i=" It was passed a child from "+r+".")),Oe(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',o,i)})}}};var $g=wo(!0),Fg=wo(!1),Ug=C(null),Hg=null,Wg=1,Bg=2,Vg=C(0),qg={},Kg=new Set,Qg=new Set,Yg=new Set,Gg=new Set,Xg=new Set,Jg=new Set,Zg=new Set,eb=new Set,tb=new Set,nb=new Set;Object.freeze(qg);var rb={enqueueSetState:function(e,t,n){var r=vl(e=e._reactInternals),a=Cr(r);a.payload=t,null!=n&&(_o(n),a.callback=n),null!==(t=Er(e,a,r))&&(kl(t,e,r),_r(t,e,r)),K(e,r)},enqueueReplaceState:function(e,t,n){var r=vl(e=e._reactInternals),a=Cr(r);a.tag=Rm,a.payload=t,null!=n&&(_o(n),a.callback=n),null!==(t=Er(e,a,r))&&(kl(t,e,r),_r(t,e,r)),K(e,r)},enqueueForceUpdate:function(e,t){var n=vl(e=e._reactInternals),r=Cr(n);r.tag=zm,null!=t&&(_o(t),r.callback=t),null!==(t=Er(e,r,n))&&(kl(t,e,n),_r(t,e,n)),null!==yd&&"function"==typeof yd.markForceUpdateScheduled&&yd.markForceUpdateScheduled(e,n)}},ab="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},ob=null,ib=null,lb=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),sb=!1,cb={},ub={},db={},fb={},pb=!1,hb={},mb={},gb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},bb=!1,yb=null;yb=new Set;var vb=!1,wb=!1,kb=!1,xb="function"==typeof WeakSet?WeakSet:Set,Sb=null,Cb=null,Eb=null,_b=null,Tb=!1,Nb=null,Pb=8192,Rb={getCacheForType:function(e){var t=Jn(Kh),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},getOwner:function(){return Xd}};if("function"==typeof Symbol&&Symbol.for){var zb=Symbol.for;zb("selector.component"),zb("selector.has_pseudo_class"),zb("selector.role"),zb("selector.test_id"),zb("selector.text")}var jb=[],Ob="function"==typeof WeakMap?WeakMap:Map,Ab=0,Lb=2,Ib=4,Db=0,Mb=1,$b=2,Fb=3,Ub=4,Hb=6,Wb=5,Bb=Ab,Vb=null,qb=null,Kb=0,Qb=0,Yb=1,Gb=2,Xb=3,Jb=4,Zb=5,ey=6,ty=7,ny=8,ry=9,ay=Qb,oy=null,iy=!1,ly=!1,sy=!1,cy=0,uy=Db,dy=0,fy=0,py=0,hy=0,my=0,gy=null,by=null,yy=!1,vy=0,wy=300,ky=1/0,xy=500,Sy=null,Cy=null,Ey=0,_y=1,Ty=2,Ny=0,Py=1,Ry=2,zy=3,jy=4,Oy=5,Ay=0,Ly=null,Iy=null,Dy=0,My=0,$y=null,Fy=null,Uy=50,Hy=0,Wy=null,By=!1,Vy=!1,qy=50,Ky=0,Qy=null,Yy=!1,Gy=null,Xy=!1,Jy=new Set,Zy=null,ev=null,tv=!1,nv=!1,rv=!1,av=!1,ov=0,iv={};!function(){for(var e=0;e<eh.length;e++){var t=eh[e];ln(t.toLowerCase(),"on"+(t=t[0].toUpperCase()+t.slice(1)))}ln(qp,"onAnimationEnd"),ln(Kp,"onAnimationIteration"),ln(Qp,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(Yp,"onTransitionRun"),ln(Gp,"onTransitionStart"),ln(Xp,"onTransitionCancel"),ln(Jp,"onTransitionEnd")}(),be("onMouseEnter",["mouseout","mouseover"]),be("onMouseLeave",["mouseout","mouseover"]),be("onPointerEnter",["pointerout","pointerover"]),be("onPointerLeave",["pointerout","pointerover"]),ge("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ge("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ge("onBeforeInput",["compositionend","keypress","textInput","paste"]),ge("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ge("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ge("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lv="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lv)),cv="_reactListening"+Math.random().toString(36).slice(2),uv=!1,dv=!1,fv=!1,pv=!1,hv=!1,mv=!1,gv=!1,bv={},yv=/\r\n?/g,vv=/\u0000|\uFFFD/g,wv="http://www.w3.org/1999/xlink",kv="http://www.w3.org/XML/1998/namespace",xv="javascript:throw new Error('React form unexpectedly submitted.')",Sv="suppressHydrationWarning",Cv="$",Ev="/$",_v="$?",Tv="$!",Nv=1,Pv=2,Rv=4,zv="F!",jv="F",Ov="complete",Av="style",Lv=0,Iv=1,Dv=2,Mv=null,$v=null,Fv={dialog:!0,webview:!0},Uv=null,Hv="function"==typeof setTimeout?setTimeout:void 0,Wv="function"==typeof clearTimeout?clearTimeout:void 0,Bv=-1,Vv="function"==typeof Promise?Promise:void 0,qv="function"==typeof queueMicrotask?queueMicrotask:void 0!==Vv?function(e){return Vv.resolve(null).then(e).catch(ec)}:Hv,Kv=null,Qv=0,Yv=1,Gv=2,Xv=3,Jv=4,Zv=new Map,ew=new Set,tw=Ku.d;Ku.d={f:function(){var e=tw.f(),t=_l();return e||t},r:function(e){var t=fe(e);null!==t&&5===t.tag&&"form"===t.type?Xa(t):tw.r(e)},D:function(e){tw.D(e),_c("dns-prefetch",e,null)},C:function(e,t){tw.C(e,t),_c("preconnect",e,t)},L:function(e,t,n){tw.L(e,t,n);var r=dw;if(r&&e&&t){var a='link[rel="preload"][as="'+Fe(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Fe(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+Fe(n.imageSizes)+'"]')):a+='[href="'+Fe(e)+'"]';var o=a;switch(t){case"style":o=Pc(e);break;case"script":o=jc(e)}Zv.has(o)||(e=_u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Zv.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(Rc(o))||"script"===t&&r.querySelector(Oc(o))||(Fs(t=r.createElement("link"),"link",e),me(t),r.head.appendChild(t)))}},m:function(e,t){tw.m(e,t);var n=dw;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+Fe(r)+'"][href="'+Fe(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=jc(e)}if(!Zv.has(o)&&(e=_u({rel:"modulepreload",href:e},t),Zv.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Oc(o)))return}Fs(r=n.createElement("link"),"link",e),me(r),n.head.appendChild(r)}}},X:function(e,t){tw.X(e,t);var n=dw;if(n&&e){var r=he(n).hoistableScripts,a=jc(e),o=r.get(a);o||((o=n.querySelector(Oc(a)))||(e=_u({src:e,async:!0},t),(t=Zv.get(a))&&Dc(e,t),me(o=n.createElement("script")),Fs(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){tw.S(e,t,n);var r=dw;if(r&&e){var a=he(r).hoistableStyles,o=Pc(e);t=t||"default";var i=a.get(o);if(!i){var l={loading:Qv,preload:null};if(i=r.querySelector(Rc(o)))l.loading=Yv|Jv;else{e=_u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zv.get(o))&&Ic(e,n);var s=i=r.createElement("link");me(s),Fs(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){l.loading|=Yv}),s.addEventListener("error",function(){l.loading|=Gv}),l.loading|=Jv,Lc(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:l},a.set(o,i)}}},M:function(e,t){tw.M(e,t);var n=dw;if(n&&e){var r=he(n).hoistableScripts,a=jc(e),o=r.get(a);o||((o=n.querySelector(Oc(a)))||(e=_u({src:e,async:!0,type:"module"},t),(t=Zv.get(a))&&Dc(e,t),me(o=n.createElement("script")),Fs(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var nw,rw,aw,ow,iw,lw,sw,cw,uw,dw="undefined"==typeof document?null:document,fw=null,pw=null,hw=null,mw=null,gw=Qu,bw={$$typeof:Lu,Provider:null,Consumer:null,_currentValue:gw,_currentValue2:gw,_threadCount:0},yw="%c%s%c ",vw="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",ww="",kw=" ",xw=Function.prototype.bind,Sw=!1;nw=function(n,r,a,o){null!==(r=e(n,r))&&(a=t(r.memoizedState,a,0,o),r.memoizedState=a,r.baseState=a,n.memoizedProps=_u({},n.memoizedProps),null!==(a=fn(n,2))&&kl(a,n,2))},rw=function(t,n,r){null!==(n=e(t,n))&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,t.memoizedProps=_u({},t.memoizedProps),null!==(r=fn(t,2))&&kl(r,t,2))},aw=function(t,r,a,o){null!==(r=e(t,r))&&(a=n(r.memoizedState,a,o),r.memoizedState=a,r.baseState=a,t.memoizedProps=_u({},t.memoizedProps),null!==(a=fn(t,2))&&kl(a,t,2))},ow=function(e,n,r){e.pendingProps=t(e.memoizedProps,n,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(n=fn(e,2))&&kl(n,e,2)},iw=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=fn(e,2))&&kl(t,e,2)},lw=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=fn(e,2))&&kl(t,e,2)},sw=function(e){var t=fn(e,2);null!==t&&kl(t,e,2)},cw=function(e){i=e},uw=function(e){o=e};var Cw,Ew=!0,_w=null,Tw=!1,Nw=null,Pw=null,Rw=null,zw=new Map,jw=new Map,Ow=[],Aw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Lw=null;if(hu.prototype.render=pu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error("Cannot update an unmounted root.");var n=arguments;"function"==typeof n[1]?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):h(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==n[1]&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var r=t.current;Qc(r,vl(r),n,t,null,null)},hu.prototype.unmount=pu.prototype.unmount=function(){var e=arguments;if("function"==typeof e[0]&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),null!==(e=this._internalRoot)){this._internalRoot=null;var t=e.containerInfo;(Bb&(Lb|Ib))!==Ab&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Qc(e.current,2,null,e,null,null),_l(),t[Od]=null}},hu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ce();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ow.length&&0!==t&&t<Ow[n].priority;n++);Ow.splice(n,0,e),0===n&&iu(e)}},function(){var e=Cu.version;if("19.1.1"!==e)throw Error('Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: '+e+"\n - react-dom: 19.1.1\nLearn more: https://react.dev/warnings/version-mismatch")}(),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Ku.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=function(e){var t=e.alternate;if(!t){if(null===(t=m(e)))throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return b(a),e;if(o===r)return b(a),t;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==r.return)n=a,r=o;else{for(var i=!1,l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==n.tag)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}(t),null===(e=null!==e?y(e):null)?null:e.stateNode},(Cw={bundleType:1,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:qu,reconcilerVersion:"19.1.1"}).overrideHookState=nw,Cw.overrideHookStateDeletePath=rw,Cw.overrideHookStateRenamePath=aw,Cw.overrideProps=ow,Cw.overridePropsDeletePath=iw,Cw.overridePropsRenamePath=lw,Cw.scheduleUpdate=sw,Cw.setErrorHandler=cw,Cw.setSuspenseHandler=uw,Cw.scheduleRefresh=function(e,t){if(null!==sh){var n=t.staleFamilies;t=t.updatedFamilies,Ql(),vn(e.current,t,n),_l()}},Cw.scheduleRoot=function(e,t){e.context===lh&&(Qc(e.current,2,t,e,null,null),_l())},Cw.setRefreshHandler=function(e){sh=e},Cw.getCurrentFiber=function(){return Xd},Cw.getLaneLabelMap=function(){for(var e=new Map,t=1,n=0;31>n;n++){var r=Q(t);e.set(t,r),t*=2}return e},Cw.injectProfilingHooks=function(e){yd=e},!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{gd=t.inject(e),bd=t}catch(e){console.error("React instrumentation encountered an error: %s.",e)}return!!t.checkDCE}(Cw)&&Kf&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Edge")||-1<navigator.userAgent.indexOf("Firefox"))){var Iw=window.location.protocol;/^(https?|file):$/.test(Iw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+("file:"===Iw?"\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq":""),"font-weight:bold")}j.createRoot=function(e,t){if(!h(e))throw Error("Target container is not a DOM element.");mu(e);var n=!1,r="",a=zo,o=jo,i=Oo;return null!=t&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===Nu&&console.error("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(i=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=qc(e,1,!1,null,0,n,r,a,o,i,0,null),e[Od]=t.current,Cs(e),new pu(t)},j.hydrateRoot=function(e,t,n){if(!h(e))throw Error("Target container is not a DOM element.");mu(e),void 0===t&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=!1,a="",o=zo,i=jo,l=Oo,s=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(i=n.onCaughtError),void 0!==n.onRecoverableError&&(l=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(s=n.formState)),(t=qc(e,1,!0,t,0,r,a,o,i,l,0,s)).context=Kc(null),(a=Cr(r=oe(r=vl(n=t.current)))).callback=null,Er(n,a,r),n=r,t.current.lanes=n,ne(t,n),ss(t),e[Od]=t.current,Cs(e),new hu(t)},j.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),j)),g.exports),D={exports:{}},M={},$={};var F=(L||(L=1,"production"===process.env.NODE_ENV?D.exports=function(){if(O)return M;O=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==n.key&&(a=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:a,ref:void 0!==n?n:null,props:r}}return M.Fragment=t,M.jsx=n,M.jsxs=n,M}():D.exports=(A||(A=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===C?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case p:return"Fragment";case m:return"Profiler";case h:return"StrictMode";case v:return"Suspense";case w:return"SuspenseList";case S:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case f:return"Portal";case b:return(t.displayName||"Context")+".Provider";case g:return(t._context.displayName||"Context")+".Consumer";case y:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case k:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case x:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}function t(e){return""+e}function n(e){try{t(e);var n=!1}catch(e){n=!0}if(n){var r=(n=console).error,a="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),t(e)}}function r(t){if(t===p)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===x)return"<...>";try{var n=e(t);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function a(){return Error("react-stack-top-frame")}function o(){var t=e(this.type);return P[t]||(P[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function i(t,r,a,i,c,u,f,p){var h,m=r.children;if(void 0!==m)if(i)if(T(m)){for(i=0;i<m.length;i++)l(m[i]);Object.freeze&&Object.freeze(m)}else console.error("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 l(m);if(_.call(r,"key")){m=e(t);var g=Object.keys(r).filter(function(e){return"key"!==e});i=0<g.length?"{key: someKey, "+g.join(": ..., ")+": ...}":"{key: someKey}",j[m+i]||(g=0<g.length?"{"+g.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,m,g,m),j[m+i]=!0)}if(m=null,void 0!==a&&(n(a),m=""+a),function(e){if(_.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(n(r.key),m=""+r.key),"key"in r)for(var b in a={},r)"key"!==b&&(a[b]=r[b]);else a=r;return m&&function(e,t){function n(){s||(s=!0,console.error("%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://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,n,r,a,i,l,s){return n=i.ref,e={$$typeof:d,type:e,key:t,props:i,_owner:a},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:o}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,m,u,0,null===(h=E.A)?null:h.getOwner(),a,f,p)}function l(e){"object"==typeof e&&null!==e&&e.$$typeof===d&&e._store&&(e._store.validated=1)}var s,c=u(),d=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),b=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),E=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=Object.prototype.hasOwnProperty,T=Array.isArray,N=console.createTask?console.createTask:function(){return null},P={},R=(c={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(c,a)(),z=N(r(a)),j={};$.Fragment=p,$.jsx=function(e,t,n,a,o){var l=1e4>E.recentlyCreatedOwnerStacks++;return i(e,t,n,!1,0,o,l?Error("react-stack-top-frame"):R,l?N(r(e)):z)},$.jsxs=function(e,t,n,a,o){var l=1e4>E.recentlyCreatedOwnerStacks++;return i(e,t,n,!0,0,o,l?Error("react-stack-top-frame"):R,l?N(r(e)):z)}}()),$)),D.exports);const U=new class{constructor(){this.supportsContainerQueries=this.detectContainerQueries(),this.init()}detectContainerQueries(){if("undefined"==typeof window)return!1;try{if("CSS"in window&&"supports"in window.CSS)return window.CSS.supports("container-type","inline-size");const e=document.createElement("div");return e.style.containerType="inline-size","inline-size"===e.style.containerType}catch{return!1}}init(){"undefined"!=typeof window&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>this.applyClasses()):this.applyClasses())}applyClasses(){document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.supportsContainerQueries?(e.classList.add("container-queries-supported"),e.classList.remove("container-queries-fallback")):(e.classList.add("container-queries-fallback"),e.classList.remove("container-queries-supported"))}),this.supportsContainerQueries?(document.body.classList.add("container-queries-supported"),document.body.classList.remove("container-queries-fallback")):(document.body.classList.add("container-queries-fallback"),document.body.classList.remove("container-queries-supported"))}getContainerWidth(e){if(!e)return window.innerWidth;let t=e.closest(".limbo-component-container-wrapper");return t||(t=e.closest(".limbo-modal-content")),t||(t=e.closest(".limbo-modal")),t||(t=document.body),t.offsetWidth||t.clientWidth}shouldUseMobileStyles(e,t=768){return this.getContainerWidth(e)<=t}applyResponsiveClasses(e){if(this.supportsContainerQueries)return;const t=this.shouldUseMobileStyles(e),n=this.shouldUseMobileStyles(e,1024)&&!t;e.classList.toggle("limbo-mobile-fallback",t),e.classList.toggle("limbo-tablet-fallback",n),e.classList.toggle("limbo-desktop-fallback",!t&&!n)}observeResize(){if(!this.supportsContainerQueries)if("ResizeObserver"in window){const e=new ResizeObserver(e=>{e.forEach(e=>{this.applyResponsiveClasses(e.target)})});document.querySelectorAll(".limbo-component-container-wrapper").forEach(t=>{e.observe(t)})}else window.addEventListener("resize",()=>{document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.applyResponsiveClasses(e)})})}};function H(e={}){const{useContainerQuery:t=!1,containerElement:n=null}=e,[r,a]=d.useState(()=>{const e=t&&n?U.getContainerWidth(n):"undefined"!=typeof window?window.innerWidth:0,r="undefined"!=typeof window&&(e<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),a="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0);return{isMobile:r,isTouch:a,isTablet:"undefined"!=typeof window&&e>768&&e<=1024&&a,orientation:"undefined"!=typeof window?window.innerHeight>window.innerWidth?"portrait":"landscape":"portrait",viewport:{width:"undefined"!=typeof window?window.innerWidth:0,height:"undefined"!=typeof window?window.innerHeight:0},container:{width:e,supportsContainerQueries:U.supportsContainerQueries}}});d.useEffect(()=>{if("undefined"==typeof window)return;const e=()=>{const e=window.innerWidth,r=window.innerHeight,o=t&&n?U.getContainerWidth(n):e,i=o<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),l="ontouchstart"in window||navigator.maxTouchPoints>0;a({isMobile:i,isTouch:l,isTablet:o>768&&o<=1024&&l,orientation:r>e?"portrait":"landscape",viewport:{width:e,height:r},container:{width:o,supportsContainerQueries:U.supportsContainerQueries}})};let r;const o=()=>{clearTimeout(r),r=setTimeout(e,150)};return window.addEventListener("resize",o),window.addEventListener("orientationchange",()=>{setTimeout(e,100)}),()=>{clearTimeout(r),window.removeEventListener("resize",o),window.removeEventListener("orientationchange",e)}},[t,n]);const o="portrait"===r.orientation,i="landscape"===r.orientation,l=r.isMobile||r.isTablet&&o;return{...r,isPortrait:o,isLandscape:i,isCompactMode:l,isMobileSize:r.viewport.width<=640,isTabletSize:r.viewport.width>640&&r.viewport.width<=1024,isDesktopSize:r.viewport.width>1024,deviceClass:r.isMobile?"mobile":r.isTablet?"tablet":"desktop"}}function W({tabs:e,active:t,onChange:n}){const{isMobile:r,isTouch:a}=H();return F.jsx("div",{className:"limbo-tabs "+(r?"limbo-tabs--mobile":""),role:"tablist","aria-label":"Opciones de navegación",style:{...r&&{overflowX:"auto",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"}},children:e.map(o=>{const i=t===o.id;return!i&&o.hideNonActive?null:F.jsx("button",{"data-tab-id":o.id,onClick:()=>n(o.id),onKeyDown:t=>((t,r)=>{const a=e.findIndex(e=>e.id===r);let o=a;switch(t.key){case"ArrowLeft":case"ArrowUp":t.preventDefault(),o=a>0?a-1:e.length-1;break;case"ArrowRight":case"ArrowDown":t.preventDefault(),o=a<e.length-1?a+1:0;break;case"Home":t.preventDefault(),o=0;break;case"End":t.preventDefault(),o=e.length-1;break;case"Enter":case" ":return t.preventDefault(),void n(r);default:return}const i=e[o];i&&!i.hideNonActive&&(n(i.id),setTimeout(()=>{const e=document.querySelector(`[data-tab-id="${i.id}"]`);e&&e.focus()},0))})(t,o.id),className:`limbo-tab ${i?"active":""} ${r?"limbo-tab--mobile":""}`,role:"tab","aria-selected":i,"aria-controls":`tabpanel-${o.id}`,tabIndex:i?0:-1,id:`tab-${o.id}`,style:{...r&&{minWidth:"120px",minHeight:"44px",padding:"12px 16px",flexShrink:0,fontSize:"16px"},...a&&{touchAction:"manipulation",WebkitTapHighlightColor:"transparent"}},children:o.label},o.id)})})}let B={publicKey:null,token:null,authMode:null,tokenEndpoint:null,prod:!1};function V({prod:e=!1}={}){return e?"https://limbo.lefebvre.com":"http://localhost"}async function q({endpoint:e,method:t="GET",body:n=null,prod:r=!1,basePath:a="",customHeaders:o={},isFormData:i=!1,useJWT:l=!0}){try{const s=r||B.prod,c=await async function({isFormData:e=!1,useJWT:t=!0,customHeaders:n={}}={}){const r={};if(e||(r["Content-Type"]="application/json"),t){let e=B.token;if("session"===B.authMode&&!e)try{const t=V(B),n=B.tokenEndpoint||"/auth/token",r=await fetch(`${t}${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({public_key:B.publicKey}),credentials:"include"});if(!r.ok)throw new Error(`Session auth failed: ${r.status}`);e=(await r.json()).token,B.token=e}catch(e){throw console.error("❌ Session authentication failed:",e),new Error("Failed to authenticate with session. User must be logged in.")}e?r.Authorization=`Bearer ${e}`:console.warn("⚠️ No JWT token available:",{authMode:B.authMode,hasPublicKey:!!B.publicKey})}return e&&delete r["Content-Type"],{...r,...n}}({isFormData:i,useJWT:l,customHeaders:o});"GET"===t&&!n&&c["Content-Type"]&&delete c["Content-Type"];const u=await fetch(`${V({prod:s})}${a}${e}`,{method:t,headers:c,body:n?i?n:JSON.stringify(n):void 0,credentials:"include"});if(!u.ok){let e=`HTTP ${u.status}: ${u.statusText}`,t=null;try{const n=await u.json();t=n,n.error?e=`${n.error.code}: ${n.error.message}`:n.message&&(e=n.message)}catch{}throw 401===u.status&&t&&("token_expired"===t.error||t.message&&t.message.includes("expired")||t.message&&t.message.includes("caducado")||t.error&&t.error.includes("expired"))&&window.dispatchEvent(new CustomEvent("tokenExpiredError",{detail:{error:{response:{status:401,data:t}}}})),new Error(e)}return u.json()}catch(e){throw new Error(`API Error: ${e.message}`)}}function K(){const e={...B};return e?.prod?"https://limbo.lefebvre.com":"http://localhost"}function Q(e){return e?.id?`${K()}/api/assets/${e.id}/download`:null}function Y(e){return e?e.startsWith("http://")||e.startsWith("https://")?e:e.startsWith("/")?`${K()}${e}`:e:null}function G(e){if(e.message&&!e.message.includes("API Error:"))return e;let t=e.message||"Unknown API error";return t.startsWith("API Error: ")&&(t=t.substring(11)),new Error(t)}const X="/api";function J(){const[e,t]=d.useState({}),[n,r]=d.useState({}),[a,o]=d.useState({}),i=d.useCallback(async a=>{if(a&&!n[a]){if(e[a])return e[a];r(e=>({...e,[a]:!0})),o(e=>({...e,[a]:null}));try{const e=await async function(e){try{const n=await q({endpoint:`/assets/${e}/variants`,method:"GET",basePath:X,useJWT:!0});return t=n,t?.success&&Array.isArray(t?.data?.variants)?{result:t.data.variants.map(e=>({id:e.id,name:e.filename||e.name||`Variante ${e.id}`,filename:e.filename,mime_type:e.mime_type,format:e.output_format||e.format||(e.mime_type?e.mime_type.split("/")[1]:"jpg"),file_size:e.file_size,width:e.width,height:e.height,upload_date:e.upload_date||e.created_at,processing_status:e.processing_status||e.status,url:Y(e.master_url||e.master?.url_signed||e.urls?.original||e.url)||Q(e),webp_available:e.webp_available||!!e.webp_url,metadata:e.metadata||{},crop_data:e.crop_data||{},crop_params:e.crop_params||e.crop_data||{},parent_asset_id:e.parent_asset_id||t.data.asset_id,variant_type:e.variant_type||"crop"}))}:{result:[]}}catch(e){throw G(e)}var t}(a),n=e?.result||[];return t(e=>({...e,[a]:n})),n}catch(e){return console.error("Error loading variants:",e),o(t=>({...t,[a]:e.message})),[]}finally{r(e=>({...e,[a]:!1}))}}},[e,n]),l=d.useCallback(t=>e[t]||[],[e]),s=d.useCallback(e=>n[e]||!1,[n]),c=d.useCallback(e=>a[e]||null,[a]),u=d.useCallback(e=>{t(t=>{const n={...t};return delete n[e],n}),r(t=>{const n={...t};return delete n[e],n}),o(t=>{const n={...t};return delete n[e],n})},[]),f=d.useCallback(async e=>(u(e),await i(e)),[u,i]),p=d.useCallback(async(e,n)=>{try{return await async function(e,t){try{return await q({endpoint:`/assets/${e}/variants/${t}`,method:"DELETE",basePath:X,useJWT:!0})}catch(e){throw G(e)}}(e,n),t(t=>{const r=t[e]||[];return{...t,[e]:r.filter(e=>e.id!==n)}}),{success:!0}}catch(e){return console.error("Error deleting variant:",e),{success:!1,error:e.message}}},[]);return{loadVariants:i,getVariants:l,isLoading:s,getError:c,clearVariants:u,refreshVariants:f,removeVariant:p}}function Z({image:e,isOpen:t,onClose:n,onSelect:r,onDelete:a,onCrop:o,onVariantDeleted:i,allowedActions:l={select:!0,download:!0,copy:!0,delete:!0,crop:!0}}){const{loadVariants:s,getVariants:c,isLoading:u,getError:p,removeVariant:h}=J(),m=window.limboCore?.accessibilityManager,[g,b]=f.useState(null),[y,v]=f.useState(null),w=(window.limboCore?.config?.getGlobal()||{}).interaction||{allowSelection:!1,allowCropping:!0},k=w.allowSelection&&l.select&&r,x=w.allowCropping&&l.crop&&o,S=l.copy,C=l.download,E=l.delete,[_,T]=f.useState(new Set),N=f.useMemo(()=>e?.variants||[],[e?.variants]),P=c(e?.id),R=N.length>0?N:P,z=0===N.length&&u(e?.id),j=0===N.length?p(e?.id):null;return d.useEffect(()=>{!t||!e?.id||e?.variants&&0!==e.variants.length||s(e.id)},[t,e?.id,e?.variants,s]),f.useEffect(()=>{t&&T(new Set)},[t]),t?F.jsx("div",{className:"limbo-modal-overlay",onClick:n,role:"dialog","aria-modal":"true","aria-labelledby":"variants-modal-title",children:F.jsxs("div",{className:"limbo-modal-content limbo-variants-modal",onClick:e=>e.stopPropagation(),children:[F.jsxs("div",{className:"limbo-modal-header",children:[F.jsxs("h2",{id:"variants-modal-title",children:["Variantes de ",e?.filename]}),F.jsx("button",{className:"limbo-modal-close",onClick:n,"aria-label":"Cerrar modal de variantes",children:"✕"})]}),g&&F.jsx("div",{className:`limbo-variants-message limbo-variants-message--${y} mt-1`,role:"alert",style:{padding:"12px 20px",margin:"0 20px 15px 20px",borderRadius:"4px",backgroundColor:"success"===y?"#d4edda":"#f8d7da",color:"success"===y?"#155724":"#721c24",border:"1px solid "+("success"===y?"#c3e6cb":"#f5c6cb")},children:g}),F.jsx("div",{className:"limbo-modal-body",children:z?F.jsxs("div",{className:"limbo-variants-loading",children:[F.jsx("div",{className:"limbo-loader"}),F.jsx("p",{children:"Cargando variantes..."})]}):j?F.jsxs("div",{className:"limbo-variants-error",children:[F.jsxs("p",{children:["Error al cargar variantes: ",j]}),F.jsx("button",{onClick:()=>s(e.id),className:"btn btn-primary",children:"Reintentar"})]}):0===R.length?F.jsxs("div",{className:"limbo-variants-empty",children:[F.jsx("p",{children:"Esta imagen no tiene variantes aún."}),F.jsx("small",{children:"Las variantes aparecerán aquí después de hacer recortes o redimensionados."})]}):F.jsxs(F.Fragment,{children:[F.jsxs("div",{className:"limbo-variant-section",children:[F.jsx("h3",{children:"Imagen original"}),F.jsxs("div",{onClick:()=>{m?.announce(`Abriendo imagen original ${e.filename} en nueva pestaña`),window.open(e.url,"_blank")},className:"limbo-variant-card limbo-variant-original cursor-pointer",children:[F.jsx("div",{className:"limbo-variant-preview",children:F.jsx("img",{src:e.url,alt:e.filename,loading:"lazy"})}),F.jsxs("div",{className:"limbo-variant-info",children:[F.jsx("div",{className:"limbo-variant-name",children:e.filename}),F.jsxs("div",{className:"limbo-variant-meta",children:[F.jsxs("span",{children:[e.width,"×",e.height]}),F.jsxs("span",{children:[Math.round(e.file_size/1024)," KB"]})]})]}),F.jsxs("div",{className:"limbo-variant-actions",children:[k&&F.jsx("button",{className:"btn btn-success btn-sm",onClick:t=>{t.stopPropagation(),r?.(e),n?.()},title:"Seleccionar original",children:"Seleccionar"}),x&&F.jsx("button",{className:"btn btn-crop btn-sm",onClick:t=>{t.stopPropagation(),o&&(m?.announce(`Abriendo herramienta de recorte para ${e.filename}`),o(e),n?.())},title:"Recortar imagen",children:F.jsx("span",{className:"icon icon-scissors-white icon--sm"})}),S&&F.jsx("button",{className:"btn btn-secondary btn-sm",onClick:t=>{t.stopPropagation(),(async()=>{try{await navigator.clipboard.writeText(e.url),m?.announce("URL de imagen original copiada")}catch(e){console.error("Error copying original URL:",e),m?.announceError("Error al copiar URL")}})()},title:"Copiar URL",children:F.jsx("span",{className:"icon icon-copy-white icon--sm"})}),C&&F.jsx("button",{className:"btn btn-primary btn-sm",onClick:t=>{t.stopPropagation(),(()=>{m?.announce(`Descargando imagen original ${e.filename}`);const t=document.createElement("a");t.href=e.url,t.download=e.filename,document.body.appendChild(t),t.click(),document.body.removeChild(t)})()},title:"Descargar",children:F.jsx("span",{className:"icon icon-download-white icon--sm"})}),E&&a&&F.jsx("button",{className:"btn btn-danger btn-sm",onClick:t=>{t.stopPropagation(),(async()=>{a&&window.confirm(`¿Estás seguro de que deseas eliminar "${e.filename}"? Esta acción también eliminará todas sus variantes.`)&&(m?.announce(`Eliminando imagen ${e.filename}`),await a(e.id),n?.())})()},title:"Eliminar imagen",children:F.jsx("span",{className:"icon icon-close-small-white icon--sm m-[0!important]"})})]})]})]}),F.jsxs("div",{className:"limbo-variant-section",children:[F.jsxs("h3",{children:["Variantes (",R.length,")"]}),F.jsx("div",{className:"limbo-variants-grid",children:R.map(t=>{const a=_.has(t.id);return F.jsxs("div",{className:"limbo-variant-card "+(a?"":"cursor-pointer"),onClick:a?void 0:()=>(e=>{m?.announce(`Abriendo variante ${e.name} en nueva pestaña`),window.open(e.url,"_blank")})(t),children:[F.jsxs("div",{className:"limbo-variant-preview",children:[F.jsx("img",{src:t.url,alt:t.name||t.filename||`Variante ${t.id}`,loading:"lazy",onError:()=>{return e=t.id,void T(t=>new Set([...t,e]));var e},style:{display:a?"none":"block"}}),a&&F.jsx("div",{className:"limbo-variant-error",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px",backgroundColor:"#f5f5f5",color:"#666"},children:F.jsx("span",{children:"Error al cargar preview"})})]}),F.jsxs("div",{className:"limbo-variant-info",children:[F.jsx("div",{className:"limbo-variant-name",children:t.name||t.filename||`Variante ${t.id}`}),F.jsxs("div",{className:"limbo-variant-meta",children:[F.jsxs("span",{children:[t.width,"×",t.height]}),F.jsx("span",{children:(t.format||"jpg").toUpperCase()}),F.jsxs("span",{children:[Math.round((t.file_size||0)/1024)," KB"]})]}),t.crop_params&&F.jsxs("div",{className:"limbo-variant-crop-badge",children:[F.jsx("span",{className:"icon icon-scissors icon--xs"})," ","Recortada"]})]}),F.jsxs("div",{className:"limbo-variant-actions",children:[k&&F.jsx("button",{className:"btn btn-success btn-sm",onClick:a=>{a.stopPropagation(),(t=>{const a={id:t.id,filename:`${e.filename}_${t.name}`,url:t.url,width:t.width,height:t.height,mime_type:`image/${t.format}`,file_size:t.file_size,upload_date:t.created_at,processing_status:"completed",is_variant:!0,parent_asset_id:e.id,variant_info:t};m?.announce(`Variante seleccionada: ${t.name}`),r?.(a),n?.()})(t)},title:`Seleccionar variante ${t.name||t.filename||t.id}`,children:"Seleccionar"}),S&&F.jsx("button",{className:"btn btn-secondary btn-sm",onClick:e=>{e.stopPropagation(),(async e=>{try{await navigator.clipboard.writeText(e.url),m?.announce(`URL de variante ${e.name} copiada`)}catch(e){console.error("Error copying variant URL:",e),m?.announceError("Error al copiar URL de variante")}})(t)},title:"Copiar URL",children:F.jsx("span",{className:"icon icon-copy-white icon--sm"})}),C&&F.jsx("button",{className:"btn btn-primary btn-sm",onClick:n=>{n.stopPropagation(),(t=>{m?.announce(`Descargando variante ${t.name}`);const n=document.createElement("a");n.href=t.url,n.download=`${e.filename}_${t.name}.${t.format}`,document.body.appendChild(n),n.click(),document.body.removeChild(n)})(t)},title:"Descargar",children:F.jsx("span",{className:"icon icon-download-white icon--sm"})}),E&&F.jsx("button",{className:"btn btn-danger btn-sm",onClick:n=>{n.stopPropagation(),(async t=>{if(window.confirm(`¿Estás seguro de que deseas eliminar la variante "${t.name||t.filename}"?`)){m?.announce(`Eliminando variante ${t.name||t.filename}`);const n=await h(e.id,t.id);n.success?(b("Variante eliminada correctamente"),v("success"),m?.announce("Variante eliminada correctamente"),i?.(),setTimeout(()=>{b(null),v(null)},3e3)):(b(`Error al eliminar variante: ${n.error}`),v("error"),m?.announceError(`Error al eliminar variante: ${n.error}`),setTimeout(()=>{b(null),v(null)},5e3))}})(t)},title:"Eliminar variante",children:F.jsx("span",{className:"icon icon-close-small-white icon--sm m-[0!important]"})})]})]},t.id)})})]})]})})]})}):null}function ee({image:e,onDelete:t,onCrop:n,onSelect:r,thumbnailSize:a=32,isDeleting:o=!1,allowedActions:i={select:!0,download:!0,copy:!0,delete:!0,crop:!0,variants:!0}}){const[l,s]=d.useState(!1),[c,u]=d.useState(!1),[p,h]=d.useState(e.variants_count||0),{isMobile:m,isTouch:g}=H(),b=window.limboCore?.accessibilityManager,y=(window.limboCore?.config?.getGlobal()||{}).interaction||{allowSelection:!1,allowCropping:!0},v=n=>{n.stopPropagation(),b?.announce(`Eliminando imagen ${e.filename}`,"assertive"),t?.(e)},w=async t=>{t.stopPropagation();let n=e.url||e.path;try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(n);else{const e=document.createElement("textarea");e.value=n,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),document.body.removeChild(e)}s(!0),b?.announce(`URL de ${e.filename} copiada al portapapeles. Nota: La URL puede tener un tiempo de validez limitado.`),setTimeout(()=>s(!1),2e3)}catch(t){console.error("Error al copiar URL:",t),b?.announce(`Error al copiar URL de ${e.filename}. Inténtalo de nuevo.`),alert(`Error al copiar URL de ${e.filename}. Por favor, inténtalo de nuevo.`)}},k=t=>{t.preventDefault(),t.stopPropagation(),b?.announce(`Descargando ${e.filename}`),fetch(e.url||e.path,{mode:"cors"}).then(e=>e.blob()).then(t=>{const n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e.filename||"imagen.jpg",document.body.appendChild(r),r.click(),setTimeout(()=>{window.URL.revokeObjectURL(n),document.body.removeChild(r)},100)})},x=t=>{t.stopPropagation(),b?.announce(`Editando imagen ${e.filename}`),n?.(e)},S=e.variants&&e.variants.length>0||p>0,C=p,E=f.useCallback(()=>{h(e=>Math.max(0,e-1))},[]);f.useEffect(()=>{h(e.variants_count||0)},[e.variants_count]);const _=t=>{t.stopPropagation(),b?.announce(`Mostrando variantes de ${e.filename}`),u(!0)},T=y.allowSelection&&i.select&&r,N=y.allowCropping&&i.crop&&n,P=S&&!1!==i.variants,R=()=>{window.open(e.url||e.path,"_blank")};return F.jsxs(F.Fragment,{children:[F.jsxs("div",{className:`limbo-image-card flex flex-col items-center cursor-pointer relative transition ${o?"opacity-50":""} ${m?"limbo-image-card--mobile":""}`,onClick:R,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),R();break;case"d":case"D":i.download&&(e.preventDefault(),k(e));break;case"c":case"C":i.copy&&(e.preventDefault(),w(e));break;case"Delete":case"Backspace":i.delete&&t&&(e.preventDefault(),v(e));break;case"x":case"X":i.crop&&n&&(e.preventDefault(),x(e));break;case"v":case"V":i.variants&&(e.preventDefault(),_(e))}},title:m?"Toque para ver imagen":"Haga click en la imagen para ver preview en nueva pestaña (Enter/Space para abrir, D descargar, C copiar, Delete eliminar, X recortar)",role:"button",tabIndex:0,"aria-label":`Imagen ${e.filename}. ${e.width}x${e.height} px`,style:{...g&&{touchAction:"manipulation",WebkitTapHighlightColor:"transparent"}},children:[F.jsxs("div",{className:"limbo-image-actions "+(m?"limbo-image-actions--mobile":""),children:[i.copy&&F.jsx("button",{type:"button",title:l?"¡Copiado!":"Copiar URL",className:"btn btn-copy border border-brand-blue-050/50 "+(m?"btn--touch":""),onClick:w,tabIndex:-1,style:{...m&&{width:"40px",height:"40px"}},children:F.jsx("span",{className:`icon ${l?"icon-copied-white":"icon-copy-white"} icon--sm`,"aria-hidden":"true"})}),T&&F.jsx("button",{type:"button",title:"Seleccionar imagen",className:"btn btn-success border border-brand-blue-050/50 "+(m?"btn--touch":""),onClick:t=>{t.stopPropagation(),b?.announce(`Seleccionando ${e.filename} para el portal`),r?.(e)},tabIndex:-1,style:{...m&&{width:"40px",height:"40px"}},children:F.jsx("span",{className:"icon icon-tick-white icon--sm","aria-hidden":"true"})}),N&&F.jsx("button",{type:"button",title:"Editar imagen",className:"btn btn-crop border border-brand-blue-050/50 "+(m?"btn--touch":""),onClick:x,tabIndex:-1,style:{...m&&{width:"40px",height:"40px"}},children:F.jsx("span",{className:"icon icon-scissors-white icon--sm","aria-hidden":"true"})}),P&&F.jsxs("button",{type:"button",title:`Ver ${C} variante${1!==C?"s":""}`,className:"btn btn-variants border border-brand-blue-050/50 "+(m?"btn--touch":""),onClick:_,tabIndex:-1,style:{...m&&{width:"40px",height:"40px"},position:"relative"},children:[F.jsx("span",{className:"icon icon-album-menu-white icon--sm","aria-hidden":"true"}),C>0&&F.jsx("span",{className:"variants-count-badge",style:{position:"absolute",top:"-8px",right:"-8px",background:"#dc2626",color:"white",borderRadius:"50%",minWidth:"20px",height:"20px",fontSize:"12px",fontWeight:"700",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"1",border:"2px solid white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.4)",zIndex:"999"},children:C})]}),i.download&&F.jsx("button",{type:"button",title:"Descargar",className:"btn btn-download border border-brand-blue-050/50 "+(m?"btn--touch":""),onClick:k,tabIndex:-1,style:{...m&&{width:"40px",height:"40px"}},children:F.jsx("span",{className:"icon icon-download-white icon--sm","aria-hidden":"true"})}),i.delete&&t&&F.jsx("button",{onClick:v,disabled:o,className:"btn btn-delete border border-brand-blue-050/50 "+(m?"btn--touch":""),title:"Eliminar imagen",tabIndex:-1,style:{...m&&{width:"40px",height:"40px"}},children:o?"…":F.jsx("span",{className:"icon icon-close-small-white icon--sm","aria-hidden":"true"})})]}),F.jsx("img",{src:e.url||e.path,alt:e.filename,className:"w-full object-cover rounded aspect-square",sizes:`height: ${6*a}px,width: ${6*a}px`,draggable:!1,style:{...m&&{minHeight:`${Math.max(3*a,80)}px`,height:"auto",aspectRatio:"1 / 1",objectFit:"cover"}}}),F.jsx("span",{className:"text-xs mt-1 truncate w-full text-center limbo-image-card-name "+(m?"limbo-image-card-name--mobile":""),style:{...m&&{fontSize:"0.75rem",lineHeight:"1.2",maxWidth:"100%",padding:"2px 4px",backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:"4px",color:"#333",fontWeight:"500"}},children:e.filename})]}),F.jsx(Z,{image:e,isOpen:c,onClose:()=>u(!1),onSelect:r,onDelete:t,onCrop:n,onVariantDeleted:E,allowedActions:{select:i.select,download:i.download,copy:i.copy,delete:i.delete,crop:i.crop}})]})}function te({text:e="Cargando..."}){return F.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-gray-600",role:"status","aria-live":"polite","aria-label":e,children:[F.jsxs("svg",{className:"animate-spin h-6 w-6 mb-2 text-blue-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[F.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),F.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8H4z"})]}),F.jsx("p",{className:"text-sm",id:"loader-text",children:e})]})}const ne=new Map;function re({apiKey:e,prod:t,onSelect:n,onCrop:r,onDelete:a,deletingId:o,images:i,loading:l,error:s,allowedActions:c={select:!0,download:!0,copy:!0,delete:!0,crop:!0,variants:!0}}){const[u,f]=d.useState({search:"",dateFrom:"",dateTo:"",originPortal:"",uploadedBy:""}),p=d.useRef(null),h=function(){const[e,t]=d.useState(null),[n,r]=d.useState(!0),[a,o]=d.useState(null);return d.useEffect(()=>{const e="auth-status",n=ne.get(e),a=Date.now();if(n&&a-n.timestamp<3e5)return t(n.data),void r(!1);let i=!0;return(async()=>{try{const n=!0;if(!i)return;ne.set(e,{data:n,timestamp:Date.now()}),t(n)}catch(e){i&&(o(e.message),t(!1))}finally{i&&r(!1)}})(),()=>{i=!1}},[]),{allowed:e,loading:n,error:a,invalidateCache:()=>{ne.delete("auth-status")}}}(),m=window.limboCore?.accessibilityManager;d.useEffect(()=>{if(p.current&&window.limboCore?.keyboardManager){const e="gallery-grid";p.current.setAttribute("data-grid-id",e),window.limboCore.keyboardManager.setupGridNavigation(p.current,{itemSelector:".limbo-image-card",gridId:e,columns:"auto"})}},[i]),d.useEffect(()=>{l?m?.announceLoading(!0,"galería"):l||s?s&&m?.announceError(s,"galería"):(m?.announceLoading(!1,"galería"),i.length>0&&m?.announce(`Se encontraron ${i.length} imágenes en la galería`))},[l,s,i.length,m]);const g=e=>{const{name:t,value:n}=e.target;f(e=>({...e,[t]:n}))};return F.jsxs("div",{className:"w-full",children:[F.jsx("div",{className:"limbo-card mb-6 p-4 bg-brand-blue-050 shadow-md",children:F.jsxs("form",{className:"limbo-form-grid flex flex-col sm:flex-row flex-wrap gap-4 items-start sm:items-end justify-between",onSubmit:e=>e.preventDefault(),"aria-label":"Filtrar imágenes",children:[F.jsxs("div",{className:"flex flex-col w-full sm:min-w-[180px] sm:flex-1",children:[F.jsx("label",{htmlFor:"search",className:"form-label mb-1",children:"Nombre"}),F.jsx("input",{type:"text",name:"search",id:"search",placeholder:"Buscar por nombre...",value:u.search,onChange:g,className:"form-control",autoComplete:"off"})]}),F.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap gap-2 justify-between items-start sm:items-end w-full sm:w-auto",children:[F.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[F.jsx("label",{htmlFor:"dateFrom",className:"form-label mb-1",children:"Desde"}),F.jsx("input",{type:"date",name:"dateFrom",id:"dateFrom",value:u.dateFrom,onChange:g,className:"form-control"})]}),F.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[F.jsx("label",{htmlFor:"dateTo",className:"form-label mb-1",children:"Hasta"}),F.jsx("input",{type:"date",name:"dateTo",id:"dateTo",value:u.dateTo,onChange:g,className:"form-control"})]}),h&&F.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[F.jsx("label",{htmlFor:"originPortal",className:"form-label mb-1",children:"Portal de origen"}),F.jsx("input",{type:"text",name:"originPortal",id:"originPortal",placeholder:"Portal de origen",value:u.originPortal,onChange:g,className:"form-control"})]}),F.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[F.jsx("label",{htmlFor:"uploadedBy",className:"form-label mb-1",children:"Subido por"}),F.jsx("input",{type:"text",name:"uploadedBy",id:"uploadedBy",placeholder:"Subido por",value:u.uploadedBy,onChange:g,className:"form-control"})]})]})]})}),l?F.jsx(te,{text:"Cargando imágenes..."}):s?F.jsx("div",{className:"alert alert-danger text-center",children:s}):F.jsx("div",{ref:p,className:"limbo-gallery mt-4","data-limbo-responsive":!0,"data-grid-id":"gallery-grid",role:"grid","aria-label":"Galería de imágenes. Use las flechas para navegar entre imágenes",children:i.length>0?i.map((e,t)=>F.jsx("div",{role:"gridcell","aria-posinset":t+1,"aria-setsize":i.length,children:F.jsx(ee,{image:e,onSelect:n,onCrop:r,onDelete:c.delete&&a?()=>a(e.id):null,thumbnailSize:32,isDeleting:o===e.id,allowedActions:c})},e.id)):F.jsx("div",{className:"col-span-full text-center text-gray-500 py-8",role:"status","aria-live":"polite",children:F.jsx("p",{children:"No se han encontrado imágenes"})})})]})}function ae({file:e,setFile:t,previewUrl:n,setPreviewUrl:r,fileInputRef:a,onUpload:o,disabled:i}){return F.jsxs("form",{onSubmit:n=>{n.preventDefault(),e&&!i&&(o(e),t(null),r(null),a.current&&(a.current.value=""))},className:"flex flex-col items-center gap-6","aria-label":"Subir imagen desde dispositivo",children:[F.jsxs("label",{htmlFor:"file-input",className:"w-full flex flex-col items-center justify-center border-2 border-dashed border-brand-blue-200 rounded-xl p-8 cursor-pointer hover:border-brand-blue-1000 hover:to-bright-blue-200 hover:from-brand-blue-050 focus-within:border-brand-blue-800 from-bright-blue-050 to-brand-blue-050 bg-linear-to-br transition",tabIndex:0,style:{outline:"none"},children:[F.jsx("span",{className:"icon icon-upload icon--lg mb-2","aria-hidden":"true"}),F.jsx("span",{className:"font-medium text-brand-blue-1000 mb-1",children:"Haz clic o arrastra una imagen aquí"}),F.jsx("span",{className:"text-sm text-neutral-700",children:"Formatos permitidos: JPG, PNG, GIF, SVG, WebP"}),F.jsx("input",{id:"file-input",ref:a,type:"file",accept:"image/jpeg,image/png,image/svg,image/webp,image/gif",onChange:e=>{const n=e.target.files[0];if(t(n),n){const e=URL.createObjectURL(n);r(e)}else r(null)},disabled:i,className:"sr-only","aria-label":"Seleccionar imagen"})]}),n&&F.jsxs("div",{className:"w-full flex flex-col items-center gap-2",children:[F.jsx("img",{src:n,alt:e?.name||"Previsualización",className:"rounded-lg shadow-md border border-brand-blue-200 max-h-64 object-contain bg-white",style:{maxWidth:"100%"}}),F.jsxs("div",{className:"text-sm text-neutral-800 bg-brand-blue-050 p-2 rounded w-full text-center",children:[F.jsxs("p",{children:[F.jsx("span",{className:"font-medium",children:"Archivo:"})," ",e?.name]}),F.jsxs("p",{children:[F.jsx("span",{className:"font-medium",children:"Tamaño:"})," ",e?(e.size/1024/1024).toFixed(2):"--"," MB"]}),F.jsxs("p",{children:[F.jsx("span",{className:"font-medium",children:"Tipo:"})," ",e?.type]})]})]}),F.jsx("button",{type:"submit",disabled:!e||i,title:e?"Subir imagen a la galeria":"Proporcione una imagen antes de continuar",className:"limbo-btn w-full mt-2 "+(e?"limbo-btn-primary":"cursor-not-allowed limbo-btn-disabled"),style:{minHeight:44},children:i?"Subiendo...":"Subir imagen"})]})}const oe="/api",ie=new Map;const le=new Map;function se(e=!1){const[t,n]=d.useState(null),[r,a]=d.useState(!1),[o,i]=d.useState(null);return{params:t,loading:r,error:o,fetchParams:async t=>{a(!0),i(null);const r=`${e}-${t}`,o=Date.now(),l=le.get(r);if(l&&o-l.timestamp<864e5)return n(l.data),a(!1),l.data;try{const a=await function({services:e=null,form:t=!1}={},n=!1){const r={};return e&&(r.services=e),!1!==t&&(r.form=t),q({endpoint:"/ai/params"+(Object.keys(r).length?"?"+new URLSearchParams(r).toString():""),method:"GET",prod:n,basePath:"/api/atenea"})}({services:t,form:!1},e),i=a?.result?.data||a?.data||a?.result||a;return n(i),le.set(r,{data:i,timestamp:o}),i}catch(e){return i(e.message),n(null),null}finally{a(!1)}},reset:()=>{i(null),n(null)}}}function ce({prod:e,disabled:t,onSelected:n,onGenerated:r}){const a=function(e=!1){const[t,n]=d.useState([]),[r,a]=d.useState(!0),[o,i]=d.useState(null);return d.useEffect(()=>{const t=`ai-services-${e}`,r=ie.get(t),o=Date.now();if(r&&o-r.timestamp<864e5)return n(r.data),void a(!1);let l=!0;return(async()=>{try{const r=await function(e=!1){return q({endpoint:"/ai/services",prod:e,basePath:oe})}(e);if(!l)return;const a=r?.data?.images||[];n(a),ie.set(t,{data:a,timestamp:o})}catch(e){l&&i(e.message)}finally{l&&a(!1)}})(),()=>{l=!1}},[e]),{services:t,loading:r,error:o,invalidateCache:()=>{ie.delete(`ai-services-${e}`)}}}(e),o=se(e),[i,l]=d.useState(""),[s,c]=d.useState({}),[u,p]=d.useState(!1),[h,m]=d.useState(null),[g,b]=d.useState(null),y={"dall-e-2":"Dalle2","dall-e-3":"Dalle3","freepik-classic":"Freepik Classic","freepik-mystic":"Freepik Mystic","freepik-google":"Freepik Google","freepik-flux":"Freepik Flux",shutterstock:"Shutterstock",freepikstock:"Freepik"},v=e=>y[e]||e;f.useEffect(()=>{if(!a.loading&&1===a.services.length){const e=a.services[0];l(e),o.fetchParams(e,!0)}},[a.loading,a.services]),f.useEffect(()=>{if(!i)return;const e=o.params?.[i]?.parameters;if(e){const t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.default??""]));t.service=i,c(t)}},[i,o.params]);const w=e=>{const{name:t,value:n}=e.target;c(e=>({...e,[t]:n}))},k=async t=>{t.preventDefault(),p(!0),m(null),b(null);try{const t=await function(e,t=!1){return q({endpoint:"/ai/generate",method:"POST",body:e,prod:t,basePath:oe})}(s,e);let n=null;if(t?.data?.images&&Array.isArray(t.data.images)&&t.data.images.length>0?n=t.data.images[0]:t?.result?.images&&Array.isArray(t.result.images)&&t.result.images.length>0?n=t.result.images[0]:Array.isArray(t)&&t.length>0?n=t[0]:"string"==typeof t&&(n=t),!n||!r)throw new Error("No se pudo extraer la imagen de la respuesta");if(n.startsWith("http"))try{const e=await fetch(n);if(!e.ok)throw new Error(`Failed to download image: ${e.status}`);const t=await e.blob(),a=new File([t],"ai-image.png",{type:t.type||"image/png"});r(a)}catch(e){throw new Error(`Error downloading image: ${e.message}`)}else{const e=n.replace(/^data:image\/\w+;base64,/,""),t=atob(e),a=new Array(t.length);for(let e=0;e<t.length;e++)a[e]=t.charCodeAt(e);const o=new Uint8Array(a),i=new File([o],"ai-image.webp",{type:"image/webp"});r(i)}b(t?.data?.images||t?.result?.images||null)}catch(e){m(e.message||"Error al generar la imagen")}finally{p(!1)}};return a.loading?F.jsxs("div",{className:"flex items-center justify-center py-8",children:[F.jsx("span",{className:"limbo-loader mr-2"})," Cargando servicios IA..."]}):a.services.length?F.jsxs("div",{className:"flex flex-col gap-4",children:[F.jsx("h3",{id:"aiSelectDescription",className:"text-lg font-semibold text-brand-blue-1000",children:1===a.services.length?`Generación con ${v(i)}`:"Selecciona el modelo IA"}),a.services.length>1&&F.jsxs("select",{name:"aiService","aria-describedby":"aiSelectDescription",title:"Selecciona el servicio IA",value:i,onChange:async e=>{const t=e.target.value;l(t),c({}),b(null),t&&await o.fetchParams(t,!0)},disabled:a.loading||t,className:"limbo-input",children:[F.jsx("option",{value:"",children:"-- Selecciona --"}),a.services.map(e=>F.jsx("option",{value:e,children:v(e)},e))]}),a.error&&F.jsx("div",{className:"alert alert-danger",children:a.error}),o.loading&&F.jsx("div",{children:"Cargando parámetros..."}),o.error&&F.jsx("div",{className:"alert alert-danger",children:o.error}),i&&(()=>{const e=o.params?.[i]?.parameters;if(!e)return null;const n=Object.entries(e).filter(([e,t])=>!t.disabled),r=n.length>3;return F.jsxs("form",{onSubmit:k,"data-type":"ai",className:"flex flex-col gap-3 mt-4 border-t-1 pt-4 border-brand-blue-200","aria-label":"Formulario generación IA",children:[F.jsx("div",{className:r?"grid grid-cols-1 md:grid-cols-2 gap-3":"flex flex-col gap-3",children:n.map(([e,n])=>{let r=n.placeholder||"";return r||(r="integer"===n.type?n.minValue&&n.maxValue?`Entre ${n.minValue} y ${n.maxValue}`:n.minValue?`Mínimo ${n.minValue}`:n.maxValue?`Máximo ${n.maxValue}`:"Introduce un número":e.toLowerCase().includes("prompt")?"Describe la imagen que deseas generar...":e.toLowerCase().includes("negative")?"Elementos a evitar en la imagen...":`Introduce ${(n.label||e).toLowerCase()}`),F.jsxs("div",{className:"flex flex-col gap-1",children:[F.jsxs("label",{htmlFor:`ai-${e}`,className:"text-xs font-medium text-brand-blue-900",children:[n.label||e,n.required&&F.jsx("span",{className:"text-red-600 ml-1",children:"*"})]}),n.options?F.jsx("select",{id:`ai-${e}`,name:e,value:s[e]??"",onChange:w,className:"limbo-input",disabled:t,title:n.label||e,children:n.options.map(e=>F.jsx("option",{value:e,children:e},e))}):F.jsx("input",{id:`ai-${e}`,type:"integer"===n.type?"number":"text",name:e,value:s[e]??"",onChange:w,className:"limbo-input",disabled:t,required:n.required,min:n.minValue,max:n.maxValue,placeholder:r,title:n.label||e})]},e)})}),F.jsx("button",{type:"submit",disabled:u||t,title:u?"Generando imagen...":"Generar imagen",className:"limbo-btn w-full mt-2 "+(u?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:u?"Generando...":"Generar imagen"})]})})(),h&&F.jsx("div",{className:"alert alert-danger",children:h}),g&&g.map((e,t)=>F.jsxs("div",{className:"mt-6 text-center",children:[F.jsx("img",{src:e.contains("http")?e:`data:image/png;base64, ${e}`,alt:"Imagen generada con IA",className:"rounded-lg shadow-md border border-brand-blue-200 max-h-72 mx-auto"}),F.jsx("button",{className:"limbo-btn limbo-btn-primary mt-4",children:"Aceptar y subir"})]},"img-"+t))]}):F.jsx("div",{className:"alert alert-warning",children:"No hay servicios IA disponibles."})}const ue="/api",de=new Map;function fe({prod:e,disabled:t,onSelected:n}){const r=function(e=!1){const[t,n]=d.useState([]),[r,a]=d.useState(!0),[o,i]=d.useState(null);return d.useEffect(()=>{const t=`stock-services-${e}`,r=de.get(t),o=Date.now();if(r&&o-r.timestamp<864e5)return n(r.data),void a(!1);let l=!0;return(async()=>{try{const r=await function(e=!1){return q({endpoint:"/stock/services",prod:e,basePath:ue})}(e);if(!l)return;const a=r?.data?.images||[];n(a),de.set(t,{data:a,timestamp:o})}catch(e){l&&i(e.message)}finally{l&&a(!1)}})(),()=>{l=!1}},[e]),{services:t,loading:r,error:o,invalidateCache:()=>{de.delete(`stock-services-${e}`)}}}(e),a=se(e),[o,i]=d.useState(""),[l,s]=d.useState({}),[c,u]=d.useState(!1),[p,h]=d.useState(null),[m,g]=d.useState([]),[b,y]=d.useState(1),[v,w]=d.useState(null),k={shutterstock:"Shutterstock",freepikstock:"Freepik"},x=e=>k[e]||e;f.useEffect(()=>{if(!r.loading&&1===r.services.length){const e=r.services[0];i(e),a.fetchParams(e,!0)}},[r.loading,r.services]),f.useEffect(()=>{if(!o)return;const e=a.params?.[o]?.parameters;if(e){const t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.default??""]));t.service=o,s(t)}},[o,a.params]);const S=e=>{const{name:t,value:n}=e.target;s(e=>({...e,[t]:n}))},C=async(t=1)=>{u(!0),h(null),1===t&&g([]);try{const n=a.params?.[o]?.parameters,r={...l};Object.entries(n||{}).forEach(([e,t])=>{e in r||(r[e]=t.default??"")}),r.service=o,r.page=t;const i=await function(e,t=!1){return q({endpoint:"/stock/search",method:"POST",body:e,prod:t,basePath:ue})}(r,e),s=i?.result?.data||[];g(Array.isArray(s)?s:[]),y(t)}catch(e){h(e.message||"Error al buscar imágenes")}finally{u(!1)}},E=async e=>{e.preventDefault(),(l.query||l.search||l.term||"").trim().length<5?h("La búsqueda debe tener al menos 5 caracteres"):await C(1)},_=e=>{e<1||C(e)},T=async t=>{w(t.id),h(null);try{const r={service:o,image_id:t.id},a=await function(e,t=!1){return q({endpoint:"/stock/download",method:"POST",body:e,prod:t,basePath:ue})}(r,e);if(!a?.result?.url&&!a?.result?.download_url)throw new Error("No se pudo obtener la URL de descarga");{const e=a.result.url||a.result.download_url,r=await fetch(e),o=await r.blob(),i=a.result.filename||`stock-${t.id}.jpg`,l=new File([o],i,{type:o.type||"image/jpeg"});n&&n(l)}}catch(e){h(e.message||"No se pudo recuperar la imagen seleccionada")}finally{w(null)}};return r.loading?F.jsxs("div",{className:"flex items-center justify-center py-8",children:[F.jsx("span",{className:"limbo-loader mr-2"})," Cargando servicios de Stock..."]}):r.services.length?F.jsxs("div",{className:"flex flex-col gap-4",children:[F.jsx("h3",{className:"text-lg font-semibold text-brand-blue-1000",children:1===r.services.length?`Búsqueda en ${x(o)}`:"Selecciona el servicio de Stock"}),r.services.length>1&&F.jsxs("select",{value:o,onChange:async e=>{const t=e.target.value;i(t),s({}),g([]),y(1),t&&await a.fetchParams(t,!0)},disabled:r.loading||t,className:"limbo-input",children:[F.jsx("option",{value:"",children:"-- Selecciona --"}),r.services.map(e=>F.jsx("option",{value:e,children:x(e)},e))]}),r.error&&F.jsx("div",{className:"alert alert-danger",children:r.error}),a.loading&&F.jsx("div",{children:"Cargando parámetros..."}),a.error&&F.jsx("div",{className:"alert alert-danger",children:a.error}),o&&(()=>{const e=a.params?.[o]?.parameters;if(!e)return null;const n=Object.entries(e).filter(([e,t])=>!t.disabled),r=n.length>3;return F.jsxs("form",{onSubmit:E,"data-type":"stock",className:"flex flex-col gap-3 mt-4 border-t-1 pt-4 border-brand-blue-200","aria-label":"Formulario búsqueda de imágenes de Stock",children:[F.jsx("div",{className:r?"grid grid-cols-1 md:grid-cols-2 gap-3":"flex flex-col gap-3",children:n.map(([e,n])=>{let r=n.placeholder||"";return r||(r="integer"===n.type?n.minValue&&n.maxValue?`Entre ${n.minValue} y ${n.maxValue}`:n.minValue?`Mínimo ${n.minValue}`:n.maxValue?`Máximo ${n.maxValue}`:"Introduce un número":e.toLowerCase().includes("query")||e.toLowerCase().includes("search")||e.toLowerCase().includes("term")?"Buscar imágenes...":`Introduce ${(n.label||e).toLowerCase()}`),F.jsxs("div",{className:"flex flex-col gap-1",children:[F.jsxs("label",{htmlFor:`stock-${e}`,className:"text-xs font-medium text-brand-blue-900",children:[n.label||e,n.required&&F.jsx("span",{className:"text-red-600 ml-1",children:"*"})]}),n.options?F.jsx("select",{id:`stock-${e}`,name:e,value:l[e]??"",onChange:S,className:"limbo-input",disabled:t,title:n.label||e,children:n.options.map(e=>F.jsx("option",{value:e,children:e},e))}):F.jsx("input",{id:`stock-${e}`,type:"integer"===n.type?"number":"text",name:e,value:l[e]??"",onChange:S,className:"limbo-input",disabled:t,required:n.required,min:n.minValue,max:n.maxValue,placeholder:r,title:n.label||e})]},e)})}),F.jsx("button",{type:"submit",disabled:c||t,className:"limbo-btn w-full mt-2 "+(c?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:c?"Buscando...":"Buscar imágenes"})]})})(),p&&F.jsx("div",{className:"alert alert-danger",children:p}),m.length>0&&F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"mt-6 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4","aria-live":"polite",children:m.map((e,n)=>F.jsxs("div",{className:"border border-brand-blue-200 rounded-lg overflow-hidden bg-white shadow-sm hover:shadow-md transition-shadow",children:[F.jsxs("div",{className:"relative aspect-video bg-neutral-100",children:[F.jsx("img",{src:e.preview||e.thumbnail||e.url,alt:e.title||`Resultado ${n+1}`,className:"object-cover w-full h-full",loading:"lazy"}),e.id&&F.jsxs("span",{className:"absolute bottom-1 right-1 bg-black/60 text-white text-xs px-2 py-1 rounded",children:["ID: ",e.id]})]}),F.jsx("div",{className:"p-2",children:F.jsx("button",{className:"limbo-btn w-full text-sm "+(v===e.id?"limbo-btn-disabled cursor-not-allowed":"limbo-btn-primary"),onClick:()=>T(e),disabled:c||t||v===e.id,children:v===e.id?F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"limbo-loader limbo-loader--sm mr-1"}),"Descargando..."]}):"Seleccionar"})})]},e.id||n))}),F.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2",children:[F.jsxs("button",{onClick:()=>_(b-1),disabled:1===b||c,className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-50",children:[F.jsx("span",{className:"icon icon-arrow-left-white icon--sm"})," Anterior"]}),F.jsxs("span",{className:"px-4 py-2 text-sm text-neutral-700",children:["Página ",b]}),F.jsxs("button",{onClick:()=>_(b+1),disabled:c||0===m.length,className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-50",children:["Siguiente ",F.jsx("span",{className:"icon icon-arrow-right-white icon--sm"})]})]})]}),!c&&0===m.length&&o&&l.query&&F.jsxs("div",{className:"mt-6 text-center text-neutral-600 py-8 bg-neutral-50 rounded-lg",children:[F.jsx("span",{className:"icon icon-search icon--lg mb-2"}),F.jsxs("p",{children:['No se encontraron imágenes para "',l.query,'"']}),F.jsx("p",{className:"text-sm mt-1",children:"Intenta con otros términos de búsqueda"})]})]}):F.jsx("div",{className:"alert alert-warning",children:"No hay servicios de Stock disponibles."})}const pe="/api",he=new Map;const me=({src:e,alt:t,className:n,onError:r})=>{const[a,o]=f.useState("loading");return"error"===a?null:F.jsx("img",{src:e,alt:t,className:n,loading:"lazy",onLoad:()=>{o("loaded")},onError:()=>{o("error"),r&&r()}})};function ge({prod:e,disabled:t,onSelected:n}){const r=function(e=!1){const[t,n]=d.useState([]),[r,a]=d.useState(!0),[o,i]=d.useState(null);return d.useEffect(()=>{const t=`portal-sources-${e}`,r=he.get(t),o=Date.now();if(r&&o-r.timestamp<864e5)return n(r.data),void a(!1);let l=!0;return(async()=>{try{const r=await function(e=!1){return q({endpoint:"/external/sources",prod:e,basePath:pe})}(e);if(!l)return;const a=r?.data?.sources||{},i=Object.entries(a).map(([e,t])=>({id:e,...t}));n(i),he.set(t,{data:i,timestamp:o})}catch(e){l&&i(e.message)}finally{l&&a(!1)}})(),()=>{l=!1}},[e]),{sources:t,loading:r,error:o,invalidateCache:()=>{he.delete(`portal-sources-${e}`)}}}(e),a=(e,t)=>{try{const n=sessionStorage.getItem(`limbo_portals_${e}`);return n?JSON.parse(n):t}catch{return t}},[o,i]=d.useState(()=>a("selectedPortals",[])),[l,s]=d.useState(()=>a("searchName","")),[c,u]=d.useState(()=>a("limit",20)),[p,h]=d.useState(()=>a("currentPage",1)),[m,g]=d.useState(!1),[b,y]=d.useState(null),[v,w]=d.useState(()=>a("images",[])),[k,x]=d.useState(()=>a("portalResults",{})),[S,C]=d.useState(()=>a("paginationInfo",null)),[E,_]=d.useState(null),T=d.useRef({}),[N,P]=d.useState(new Set);f.useEffect(()=>{sessionStorage.setItem("limbo_portals_selectedPortals",JSON.stringify(o))},[o]),f.useEffect(()=>{sessionStorage.setItem("limbo_portals_searchName",JSON.stringify(l))},[l]),f.useEffect(()=>{sessionStorage.setItem("limbo_portals_limit",JSON.stringify(c))},[c]),f.useEffect(()=>{sessionStorage.setItem("limbo_portals_currentPage",JSON.stringify(p))},[p]),f.useEffect(()=>{sessionStorage.setItem("limbo_portals_images",JSON.stringify(v))},[v]),f.useEffect(()=>{sessionStorage.setItem("limbo_portals_portalResults",JSON.stringify(k))},[k]),f.useEffect(()=>{sessionStorage.setItem("limbo_portals_paginationInfo",JSON.stringify(S))},[S]);const R=async(t=1)=>{if(0===o.length)return void y("Selecciona al menos un portal");const n=((e,t,n,r)=>`${e.sort().join(",")}_${t}_${n}_${r}`)(o,l.trim(),c,t),r=T.current[n];if(r)return w(r.images),x(r.portalResults),C(r.paginationInfo),h(t),void y(null);g(!0),y(null),1===t&&(w([]),x({}),C(null));try{const r={sources:o,limit:c,page:t,name:l.trim()},a=await function(e,t=!1){return q({endpoint:"/external/search",method:"POST",body:e,prod:t,basePath:pe})}(r,e),i=a?.data?.sources||{},s=[],u={},d=new Set;let f=null;Object.entries(i).forEach(([e,t])=>{u[e]={title:t.meta?.title||e,status:200,response:"OK",count:t.images?.length||0},Array.isArray(t.images)&&(t.images.forEach(n=>{const r=n.url||n.thumbnail;r&&!d.has(r)&&(d.add(r),s.push({...n,source:e,sourceTitle:t.meta?.title||e,preview:n.thumbnail||n.url,full:n.url}))}),!f&&t.pagination&&(f=t.pagination))}),T.current[n]={images:s,portalResults:u,paginationInfo:f},w(s),x(u),C(f),h(t),P(new Set),0!==s.length||a?.result?.success||y(a?.result?.message||"No se encontraron imágenes")}catch(e){y(e.message||"Error al buscar imágenes en portales")}finally{g(!1)}},z=e=>{e<1||R(e)};return r.loading?F.jsxs("div",{className:"flex items-center justify-center py-8",children:[F.jsx("span",{className:"limbo-loader mr-2"})," Cargando portales disponibles..."]}):r.sources.length?F.jsxs("div",{className:"flex flex-col gap-4",children:[F.jsx("h3",{className:"text-lg font-semibold text-brand-blue-1000",children:"Buscar en Portales Externos"}),F.jsxs("form",{onSubmit:e=>{e.preventDefault(),R(1)},className:"flex flex-col gap-4 border-t-1 pt-4 border-brand-blue-200",children:[F.jsxs("div",{className:"flex flex-col gap-2",children:[F.jsxs("div",{className:"flex items-center justify-between",children:[F.jsxs("label",{className:"text-sm font-medium text-brand-blue-1000",children:["Portales (",o.length," seleccionados)"]}),F.jsx("button",{type:"button",onClick:()=>{o.length===r.sources.length?i([]):i(r.sources.map(e=>e.id))},className:"text-xs text-brand-blue-800 hover:underline",children:o.length===r.sources.length?"Deseleccionar todos":"Seleccionar todos"})]}),F.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:r.sources.map(e=>F.jsxs("label",{className:"flex items-center gap-2 p-2 border border-brand-blue-200 rounded cursor-pointer hover:bg-brand-blue-050 transition",children:[F.jsx("input",{type:"checkbox",checked:o.includes(e.id),onChange:()=>{return t=e.id,void i(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t},disabled:t,className:"w-4 h-4"}),F.jsx("span",{className:"text-sm",children:e.title})]},e.id))})]}),F.jsxs("div",{className:"flex flex-col gap-1",children:[F.jsx("label",{htmlFor:"portal-search-name",className:"text-sm font-medium text-brand-blue-1000",children:"Buscar por nombre (opcional)"}),F.jsx("input",{id:"portal-search-name",type:"text",value:l,onChange:e=>s(e.target.value),className:"limbo-input",placeholder:"Deja vacío para ver todas las imágenes",disabled:t})]}),F.jsxs("div",{className:"flex flex-col gap-1",children:[F.jsx("label",{htmlFor:"portal-limit",className:"text-sm font-medium text-brand-blue-1000",children:"Imágenes por página"}),F.jsxs("select",{id:"portal-limit",value:c,onChange:e=>u(Number(e.target.value)),className:"limbo-input",disabled:t,children:[F.jsx("option",{value:10,children:"10"}),F.jsx("option",{value:20,children:"20"}),F.jsx("option",{value:50,children:"50"}),F.jsx("option",{value:100,children:"100"})]})]}),F.jsx("button",{type:"submit",disabled:m||t||0===o.length,className:"limbo-btn w-full "+(m||0===o.length?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:m?"Buscando...":"Buscar imágenes"})]}),r.error&&F.jsx("div",{className:"alert alert-danger",children:r.error}),b&&F.jsx("div",{className:"alert alert-danger",children:b}),Object.keys(k).length>0&&F.jsxs("div",{className:"bg-neutral-50 rounded-lg p-3",children:[F.jsx("h4",{className:"text-sm font-semibold mb-2",children:"Resultados por portal:"}),F.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 text-sm",children:Object.entries(k).map(([e,t])=>F.jsxs("div",{className:"flex items-center justify-between p-2 rounded "+(200===t.status?"bg-green-50":"bg-red-50"),children:[F.jsx("span",{className:"font-medium",children:t.title}),F.jsx("span",{className:200===t.status?"text-green-700":"text-red-700",children:200===t.status?`${t.count} imágenes`:t.response})]},e))})]}),(v.length>0||m)&&F.jsxs(F.Fragment,{children:[F.jsxs("div",{className:"mt-6 relative","aria-live":"polite",children:[m&&F.jsx("div",{className:"absolute inset-0 bg-white/80 z-10 flex items-center justify-center rounded-lg",children:F.jsxs("div",{className:"flex flex-col items-center gap-2",children:[F.jsx("span",{className:"limbo-loader"}),F.jsx("span",{className:"text-sm text-brand-blue-800",children:"Buscando imágenes..."})]})}),F.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 "+(m?"opacity-50":""),children:v.map((r,a)=>{const o=`${r.source}-${r.id||a}`,i=r.preview||r.thumbnail||r.url||r.full;return N.has(o)?null:F.jsxs("div",{className:"border border-brand-blue-200 rounded-lg overflow-hidden bg-white shadow-sm hover:shadow-md transition-shadow",children:[F.jsxs("div",{className:"relative aspect-video bg-neutral-100",children:[F.jsx(me,{src:i,alt:r.title||r.filename||`Imagen ${a+1}`,className:"object-cover w-full h-full",onError:()=>{P(e=>{const t=new Set(e);return t.add(o),t})}}),F.jsx("span",{className:"absolute top-1 left-1 bg-black/60 text-white text-xs px-2 py-1 rounded",children:r.sourceTitle}),r.id&&F.jsxs("span",{className:"absolute bottom-1 right-1 bg-black/60 text-white text-xs px-2 py-1 rounded",children:["ID: ",r.id]})]}),F.jsxs("div",{className:"p-2",children:[r.title&&F.jsx("p",{className:"text-xs text-neutral-700 mb-1 truncate",title:r.title,children:r.title}),F.jsx("button",{className:"limbo-btn w-full text-sm "+(E===(r.url||r.full)?"limbo-btn-disabled cursor-not-allowed":"limbo-btn-primary"),onClick:()=>(async t=>{_(t.url||t.full),y(null);try{const r=t.full||t.url||t.preview;if(!r)throw new Error("No se encontró URL de la imagen");const a=`${V({prod:e})}/api/atenea/proxy?url=${encodeURIComponent(r)}`,o=await fetch(a);if(!o.ok)throw new Error(`Error al descargar: ${o.status}`);const i=await o.blob(),l=t.filename||t.title||`portal-${t.id||Date.now()}.jpg`,s=new File([i],l,{type:i.type||"image/jpeg"});n&&n(s)}catch(e){y(e.message||"No se pudo recuperar la imagen del portal")}finally{_(null)}})(r),disabled:m||t||E===(r.url||r.full),children:E===(r.url||r.full)?F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"limbo-loader limbo-loader--sm mr-1"}),"Descargando..."]}):"Seleccionar"})]})]},o)})})]}),F.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2",children:[F.jsxs("button",{onClick:()=>z(p-1),disabled:1===p||m,className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-50"+(1===p||m?" pointer-events-none cursor-default":" limbo-btn-primary"),children:[F.jsx("span",{className:"icon icon-arrow-left-white icon--sm"})," ","Anterior"]}),F.jsxs("span",{className:"px-4 py-2 text-sm text-neutral-700",children:["Página ",p,S&&F.jsxs(F.Fragment,{children:[" ","de ",S.pages,F.jsxs("span",{className:"text-xs text-neutral-500 block",children:["(",S.total," imágenes totales)"]})]})]}),F.jsxs("button",{onClick:()=>z(p+1),disabled:m||S&&p>=S.pages,className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-50"+(m||S&&p>=S.pages?" pointer-events-none cursor-default":" limbo-btn-primary"),children:["Siguiente"," ",F.jsx("span",{className:"icon icon-arrow-right-white icon--sm"})]})]})]}),!m&&0===v.length&&Object.keys(k).length>0&&F.jsxs("div",{className:"mt-6 text-center text-neutral-600 py-8 bg-neutral-50 rounded-lg",children:[F.jsx("span",{className:"icon icon-search icon--lg mb-2"}),F.jsx("p",{children:"No se encontraron imágenes en los portales seleccionados"}),l&&F.jsx("p",{className:"text-sm mt-1",children:"Intenta con otros términos o sin filtro de nombre"})]})]}):F.jsx("div",{className:"alert alert-warning",children:"No hay portales externos disponibles."})}const be=[{id:"upload",label:"Subir archivo"},{id:"ai",label:"Generar con IA"},{id:"stock",label:"Buscar en Stock"},{id:"portals",label:"Otros portales"}];function ye({onUpload:e,disabled:t=!1,apiKey:n,prod:r=!1}){const[a,o]=d.useState("upload"),[i,l]=d.useState(null),[s,c]=d.useState(null),u=d.useRef();return F.jsxs("div",{className:"limbo-upload-form p-4 border-2 border-gray-200/50 rounded-lg min-w-fit max-w-5xl mx-auto",children:[F.jsx("div",{className:"limbo-tabs-container",children:F.jsx("div",{className:"limbo-tabs mb-6 min-w-fit",role:"tablist","aria-label":"Opciones de subida de imagen",children:be.map(e=>F.jsx("button",{type:"button","data-upload-tab-id":e.id,className:"text-nowrap limbo-tab"+(a===e.id?" active":""),"aria-current":a===e.id?"page":void 0,"aria-selected":a===e.id,role:"tab",tabIndex:a===e.id?0:-1,onClick:()=>o(e.id),onKeyDown:t=>((e,t)=>{const n=be.findIndex(e=>e.id===t);let r=n;switch(e.key){case"ArrowLeft":e.preventDefault(),r=n>0?n-1:be.length-1;break;case"ArrowRight":e.preventDefault(),r=n<be.length-1?n+1:0;break;case"Home":e.preventDefault(),r=0;break;case"End":e.preventDefault(),r=be.length-1;break;case"Enter":case" ":return e.preventDefault(),void o(t);default:return}const a=be[r];a&&(o(a.id),setTimeout(()=>{const e=document.querySelector(`[data-upload-tab-id="${a.id}"]`);e&&e.focus()},0))})(t,e.id),id:`upload-tab-${e.id}`,"aria-controls":`upload-tabpanel-${e.id}`,children:e.label},e.id))})}),F.jsxs("div",{className:"limbo-tab-content",role:"tabpanel",id:`upload-tabpanel-${a}`,"aria-labelledby":`upload-tab-${a}`,children:["upload"===a&&F.jsx(ae,{file:i,setFile:l,previewUrl:s,setPreviewUrl:c,fileInputRef:u,onUpload:e,disabled:t}),"ai"===a&&F.jsx(ce,{apiKey:n,prod:r,disabled:t,onGenerated:e=>{o("upload"),l(e),c(URL.createObjectURL(e))}}),"stock"===a&&F.jsx(fe,{apiKey:n,prod:r,disabled:t,onSelected:e=>{o("upload"),l(e),c(URL.createObjectURL(e))}}),"portals"===a&&F.jsx(ge,{apiKey:n,prod:r,disabled:t,onSelected:e=>{o("upload"),l(e),c(URL.createObjectURL(e))}})]})]})}const ve="undefined"!=typeof window&&void 0!==window.document,we=ve?window:{},ke=!!ve&&"ontouchstart"in we.document.documentElement,xe=!!ve&&"PointerEvent"in we,Se="cropper",Ce=`${Se}-canvas`,Ee=`${Se}-crosshair`,_e=`${Se}-grid`,Te=`${Se}-handle`,Ne=`${Se}-image`,Pe=`${Se}-selection`,Re=`${Se}-shade`,ze=`${Se}-viewer`,je="select",Oe="move",Ae="scale",Le="rotate",Ie="transform",De="none",Me="n-resize",$e="e-resize",Fe="s-resize",Ue="w-resize",He="ne-resize",We="nw-resize",Be="se-resize",Ve="sw-resize",qe=xe?"pointerdown":ke?"touchstart":"mousedown",Ke=xe?"pointermove":ke?"touchmove":"mousemove",Qe=xe?"pointerup pointercancel":ke?"touchend touchcancel":"mouseup",Ye="error",Ge="keydown",Xe="load",Je="wheel",Ze="action",et="actionend",tt="actionstart",nt="change",rt="transform",at=Number.isNaN||we.isNaN;function ot(e){return"number"==typeof e&&!at(e)}function it(e){return ot(e)&&e>0&&e<1/0}function lt(e){return"object"==typeof e&&null!==e}const{hasOwnProperty:st}=Object.prototype;function ct(e){if(!lt(e))return!1;try{const{constructor:t}=e,{prototype:n}=t;return t&&n&&st.call(n,"isPrototypeOf")}catch(e){return!1}}function ut(e){return"function"==typeof e}function dt(e){return"object"==typeof e&&null!==e&&1===e.nodeType}const ft=/([a-z\d])([A-Z])/g;function pt(e){return String(e).replace(ft,"$1-$2").toLowerCase()}const ht=/-[A-z\d]/g;function mt(e){return e.replace(ht,e=>e.slice(1).toUpperCase())}const gt=/\s\s*/;function bt(e,t,n,r){t.trim().split(gt).forEach(t=>{e.removeEventListener(t,n,r)})}function yt(e,t,n,r){t.trim().split(gt).forEach(t=>{e.addEventListener(t,n,r)})}function vt(e,t,n,r){yt(e,t,n,Object.assign(Object.assign({},r),{once:!0}))}const wt={bubbles:!0,cancelable:!0,composed:!0},kt=Promise.resolve();function xt(e){const{documentElement:t}=e.ownerDocument,n=e.getBoundingClientRect();return{left:n.left+(we.pageXOffset-t.clientLeft),top:n.top+(we.pageYOffset-t.clientTop)}}const St=/deg|g?rad|turn$/i;function Ct(e){const t=parseFloat(e)||0;if(0!==t){const[n="rad"]=String(e).match(St)||[];switch(n.toLowerCase()){case"deg":return t/360*(2*Math.PI);case"grad":return t/400*(2*Math.PI);case"turn":return t*(2*Math.PI)}}return t}const Et="contain";function _t(e,t=Et){const{aspectRatio:n}=e;let{width:r,height:a}=e;const o=it(r),i=it(a);if(o&&i){const e=a*n;t===Et&&e>r||"cover"===t&&e<r?a=r/n:r=a*n}else o?a=r/n:i&&(r=a*n);return{width:r,height:a}}function Tt(e,...t){if(0===t.length)return e;const[n,r,a,o,i,l]=e,[s,c,u,d,f,p]=t[0];return Tt(e=[n*s+a*c,r*s+o*c,n*u+a*d,r*u+o*d,n*f+a*p+i,r*f+o*p+l],...t.slice(1))}const Nt=/left|top|width|height/i,Pt="open",Rt=new WeakMap,zt=new WeakMap,jt=new Map,Ot=we.document&&Array.isArray(we.document.adoptedStyleSheets)&&"replaceSync"in we.CSSStyleSheet.prototype;class At extends HTMLElement{get $sharedStyle(){return(this.themeColor?`:host{--theme-color: ${this.themeColor};}`:"")+":host([hidden]){display:none!important}"}constructor(){var e,t;super(),this.shadowRootMode=Pt,this.slottable=!0;const n=null===(t=null===(e=Object.getPrototypeOf(this))||void 0===e?void 0:e.constructor)||void 0===t?void 0:t.$name;n&&jt.set(n,this.tagName.toLowerCase())}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(e,t,n){if(Object.is(n,t))return;const r=mt(e);let a=n;switch(typeof this[r]){case"boolean":a=null!==n&&"false"!==n;break;case"number":a=Number(n)}switch(this[r]=a,e){case"theme-color":{const e=zt.get(this),t=this.$sharedStyle;e&&t&&(Ot?e.replaceSync(t):e.textContent=t);break}}}$propertyChangedCallback(e,t,n){if(!Object.is(n,t))switch(e=pt(e),typeof n){case"boolean":!0===n?this.hasAttribute(e)||this.setAttribute(e,""):this.removeAttribute(e);break;case"number":n=at(n)?"":String(n);default:n?this.getAttribute(e)!==n&&this.setAttribute(e,n):this.removeAttribute(e)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach(e=>{const t=mt(e);let n=this[t];(function(e){return void 0===e})(n)||this.$propertyChangedCallback(t,void 0,n),Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n,set(e){const r=n;n=e,this.$propertyChangedCallback(t,r,e)}})});const e=this.attachShadow({mode:this.shadowRootMode||Pt});if(this.shadowRoot||Rt.set(this,e),zt.set(this,this.$addStyles(this.$sharedStyle)),this.$style&&this.$addStyles(this.$style),this.$template){const t=document.createElement("template");t.innerHTML=this.$template,e.appendChild(t.content)}if(this.slottable){const t=document.createElement("slot");e.appendChild(t)}}disconnectedCallback(){zt.has(this)&&zt.delete(this),Rt.has(this)&&Rt.delete(this)}$getTagNameOf(e){var t;return null!==(t=jt.get(e))&&void 0!==t?t:e}$setStyles(e){return Object.keys(e).forEach(t=>{let n=e[t];ot(n)&&(n=0!==n&&Nt.test(t)?`${n}px`:String(n)),this.style[t]=n}),this}$getShadowRoot(){return this.shadowRoot||Rt.get(this)}$addStyles(e){let t;const n=this.$getShadowRoot();return Ot?(t=new CSSStyleSheet,t.replaceSync(e),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(t)):(t=document.createElement("style"),t.textContent=e,n.appendChild(t)),t}$emit(e,t,n){return function(e,t,n,r){return e.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign(Object.assign({},wt),{detail:n}),r)))}(this,e,t,n)}$nextTick(e){return function(e,t){return t?kt.then(e?t.bind(e):t):kt}(this,e)}static $define(e,t){lt(e)&&(t=e,e=""),e||(e=this.$name||this.name),e=pt(e),ve&&we.customElements&&!we.customElements.get(e)&&customElements.define(e,this,t)}}At.$version="2.0.0";class Lt extends At{constructor(){super(...arguments),this.$onPointerDown=null,this.$onPointerMove=null,this.$onPointerUp=null,this.$onWheel=null,this.$wheeling=!1,this.$pointers=new Map,this.$style=':host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}',this.$action=De,this.background=!1,this.disabled=!1,this.scaleStep=.1,this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback(),this.disabled||this.$bind()}disconnectedCallback(){this.disabled||this.$unbind(),super.disconnectedCallback()}$propertyChangedCallback(e,t,n){Object.is(n,t)||(super.$propertyChangedCallback(e,t,n),"disabled"!==e)||(n?this.$unbind():this.$bind())}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),yt(this,qe,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),yt(this.ownerDocument,Ke,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),yt(this.ownerDocument,Qe,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),yt(this,Je,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(bt(this,qe,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(bt(this.ownerDocument,Ke,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(bt(this.ownerDocument,Qe,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(bt(this,Je,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(e){const{buttons:t,button:n,type:r}=e;if(this.disabled||("pointerdown"===r&&"mouse"===e.pointerType||"mousedown"===r)&&(ot(t)&&1!==t||ot(n)&&0!==n||e.ctrlKey))return;const{$pointers:a}=this;let o="";if(e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e,pageX:t,pageY:n})=>{a.set(e,{startX:t,startY:n,endX:t,endY:n})});else{const{pointerId:t=0,pageX:n,pageY:r}=e;a.set(t,{startX:n,startY:r,endX:n,endY:r})}a.size>1?o=Ie:dt(e.target)&&(o=e.target.action||e.target.getAttribute("action")||""),!1!==this.$emit(tt,{action:o,relatedEvent:e})&&(e.preventDefault(),this.$action=o,this.style.willChange="transform")}$handlePointerMove(e){const{$action:t,$pointers:n}=this;if(this.disabled||t===De||0===n.size)return;if(!1===this.$emit("actionmove",{action:t,relatedEvent:e}))return;if(e.preventDefault(),e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e,pageX:t,pageY:r})=>{const a=n.get(e);a&&Object.assign(a,{endX:t,endY:r})});else{const{pointerId:t=0,pageX:r,pageY:a}=e,o=n.get(t);o&&Object.assign(o,{endX:r,endY:a})}const r={action:t,relatedEvent:e};if(t===Ie){const t=new Map(n);let a=0,o=0,i=0,l=0,s=e.pageX,c=e.pageY;n.forEach((e,n)=>{t.delete(n),t.forEach(t=>{let n=t.startX-e.startX,r=t.startY-e.startY,u=t.endX-e.endX,d=t.endY-e.endY,f=0,p=0,h=0,m=0;if(0===n?r<0?h=2*Math.PI:r>0&&(h=Math.PI):n>0?h=Math.PI/2+Math.atan(r/n):n<0&&(h=1.5*Math.PI+Math.atan(r/n)),0===u?d<0?m=2*Math.PI:d>0&&(m=Math.PI):u>0?m=Math.PI/2+Math.atan(d/u):u<0&&(m=1.5*Math.PI+Math.atan(d/u)),m>0||h>0){const n=m-h,r=Math.abs(n);r>a&&(a=r,i=n,s=(e.startX+t.startX)/2,c=(e.startY+t.startY)/2)}if(n=Math.abs(n),r=Math.abs(r),u=Math.abs(u),d=Math.abs(d),n>0&&r>0?f=Math.sqrt(n*n+r*r):n>0?f=n:r>0&&(f=r),u>0&&d>0?p=Math.sqrt(u*u+d*d):u>0?p=u:d>0&&(p=d),f>0&&p>0){const n=(p-f)/f,r=Math.abs(n);r>o&&(o=r,l=n,s=(e.startX+t.startX)/2,c=(e.startY+t.startY)/2)}})});const u=a>0,d=o>0;u&&d?(r.rotate=i,r.scale=l,r.centerX=s,r.centerY=c):u?(r.action=Le,r.rotate=i,r.centerX=s,r.centerY=c):d?(r.action=Ae,r.scale=l,r.centerX=s,r.centerY=c):r.action=De}else{const[e]=Array.from(n.values());Object.assign(r,e)}n.forEach(e=>{e.startX=e.endX,e.startY=e.endY}),r.action!==De&&this.$emit(Ze,r,{cancelable:!1})}$handlePointerUp(e){const{$action:t,$pointers:n}=this;if(!this.disabled&&t!==De&&!1!==this.$emit(et,{action:t,relatedEvent:e})){if(e.preventDefault(),e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e})=>{n.delete(e)});else{const{pointerId:t=0}=e;n.delete(t)}0===n.size&&(this.style.willChange="",this.$action=De)}}$handleWheel(e){if(this.disabled)return;if(e.preventDefault(),this.$wheeling)return;this.$wheeling=!0,setTimeout(()=>{this.$wheeling=!1},50);const t=(e.deltaY>0?-1:1)*this.scaleStep;this.$emit(Ze,{action:Ae,scale:t,relatedEvent:e},{cancelable:!1})}$setAction(e){return"string"==typeof e&&(this.$action=e),this}$toCanvas(e){return new Promise((t,n)=>{if(!this.isConnected)return void n(new Error("The current element is not connected to the DOM."));const r=document.createElement("canvas");let a=this.offsetWidth,o=this.offsetHeight,i=1;ct(e)&&(it(e.width)||it(e.height))&&(({width:a,height:o}=_t({aspectRatio:a/o,width:e.width,height:e.height})),i=a/this.offsetWidth),r.width=a,r.height=o;const l=this.querySelector(this.$getTagNameOf(Ne));l?l.$ready().then(n=>{const s=r.getContext("2d");if(s){const[t,c,u,d,f,p]=l.$getTransform();let h=f,m=p,g=n.naturalWidth,b=n.naturalHeight;1!==i&&(h*=i,m*=i,g*=i,b*=i);const y=g/2,v=b/2;s.fillStyle="transparent",s.fillRect(0,0,a,o),ct(e)&&ut(e.beforeDraw)&&e.beforeDraw.call(this,s,r),s.save(),s.translate(y,v),s.transform(t,c,u,d,h,m),s.translate(-y,-v),s.drawImage(n,0,0,g,b),s.restore()}t(r)}).catch(n):t(r)})}}Lt.$name=Ce,Lt.$version="2.0.0";const It=new WeakMap,Dt=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class Mt extends At{constructor(){super(...arguments),this.$matrix=[1,0,0,1,0,0],this.$onLoad=null,this.$onCanvasAction=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$actionStartTarget=null,this.$style=":host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}",this.$image=new Image,this.initialCenterSize="contain",this.rotatable=!1,this.scalable=!1,this.skewable=!1,this.slottable=!1,this.translatable=!1}set $canvas(e){It.set(this,e)}get $canvas(){return It.get(this)}static get observedAttributes(){return super.observedAttributes.concat(Dt,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(e,t,n){Object.is(n,t)||(super.attributeChangedCallback(e,t,n),Dt.includes(e)&&this.$image.setAttribute(e,n))}$propertyChangedCallback(e,t,n){Object.is(n,t)||(super.$propertyChangedCallback(e,t,n),"initialCenterSize"!==e)||this.$nextTick(()=>{this.$center(n)})}connectedCallback(){super.connectedCallback();const{$image:e}=this,t=this.closest(this.$getTagNameOf(Ce));t&&(this.$canvas=t,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=e=>{var t,n;this.$actionStartTarget=null===(n=null===(t=e.detail)||void 0===t?void 0:t.relatedEvent)||void 0===n?void 0:n.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),yt(t,tt,this.$onCanvasActionStart),yt(t,et,this.$onCanvasActionEnd),yt(t,Ze,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),yt(e,Xe,this.$onLoad),this.$getShadowRoot().appendChild(e)}disconnectedCallback(){const{$image:e,$canvas:t}=this;t&&(this.$onCanvasActionStart&&(bt(t,tt,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(bt(t,et,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(bt(t,Ze,this.$onCanvasAction),this.$onCanvasAction=null)),e&&this.$onLoad&&(bt(e,Xe,this.$onLoad),this.$onLoad=null),this.$getShadowRoot().removeChild(e),super.disconnectedCallback()}$handleLoad(){const{$image:e}=this;this.$setStyles({width:e.naturalWidth,height:e.naturalHeight}),this.$canvas&&this.$center(this.initialCenterSize)}$handleAction(e){if(this.hidden||!(this.rotatable||this.scalable||this.translatable))return;const{$canvas:t}=this,{detail:n}=e;if(n){const{relatedEvent:e}=n;let{action:r}=n;switch(r!==Ie||this.rotatable&&this.scalable||(r=this.rotatable?Le:this.scalable?Ae:De),r){case Oe:if(this.translatable){let r=null;e&&(r=e.target.closest(this.$getTagNameOf(Pe))),r||(r=t.querySelector(this.$getTagNameOf(Pe))),r&&r.multiple&&!r.active&&(r=t.querySelector(`${this.$getTagNameOf(Pe)}[active]`)),r&&!r.hidden&&r.movable&&!r.dynamic&&this.$actionStartTarget&&r.contains(this.$actionStartTarget)||this.$move(n.endX-n.startX,n.endY-n.startY)}break;case Le:if(this.rotatable)if(e){const{x:t,y:r}=this.getBoundingClientRect();this.$rotate(n.rotate,e.clientX-t,e.clientY-r)}else this.$rotate(n.rotate);break;case Ae:if(this.scalable)if(e){const t=e.target.closest(this.$getTagNameOf(Pe));if(!t||!t.zoomable||t.zoomable&&t.dynamic){const{x:t,y:r}=this.getBoundingClientRect();this.$zoom(n.scale,e.clientX-t,e.clientY-r)}}else this.$zoom(n.scale);break;case Ie:if(this.rotatable&&this.scalable){const{rotate:t}=n;let{scale:r}=n;r<0?r=1/(1-r):r+=1;const a=Math.cos(t),o=Math.sin(t),[i,l,s,c]=[a*r,o*r,-o*r,a*r];if(e){const t=this.getBoundingClientRect(),n=e.clientX-t.x,r=e.clientY-t.y,[a,o,u,d]=this.$matrix,f=n-t.width/2,p=r-t.height/2,h=(f*d-u*p)/(a*d-u*o),m=(p*a-o*f)/(a*d-u*o);this.$transform(i,l,s,c,h*(1-i)+m*s,m*(1-c)+h*l)}else this.$transform(i,l,s,c,0,0)}}}}$ready(e){const{$image:t}=this,n=new Promise((e,n)=>{const r=new Error("Failed to load the image source");if(t.complete)t.naturalWidth>0&&t.naturalHeight>0?e(t):n(r);else{const a=()=>{bt(t,Ye,o),e(t)},o=()=>{bt(t,Xe,a),n(r)};vt(t,Xe,a),vt(t,Ye,o)}});return ut(e)&&n.then(t=>(e(t),t)),n}$center(e){const{parentElement:t}=this;if(!t)return this;const n=t.getBoundingClientRect(),r=n.width,a=n.height,{x:o,y:i,width:l,height:s}=this.getBoundingClientRect(),c=o+l/2,u=i+s/2,d=n.x+r/2,f=n.y+a/2;if(this.$move(d-c,f-u),e&&(l!==r||s!==a)){const t=r/l,n=a/s;switch(e){case"cover":this.$scale(Math.max(t,n));break;case"contain":this.$scale(Math.min(t,n))}}return this}$move(e,t=e){if(this.translatable&&ot(e)&&ot(t)){const[n,r,a,o]=this.$matrix,i=(e*o-a*t)/(n*o-a*r),l=(t*n-r*e)/(n*o-a*r);this.$translate(i,l)}return this}$moveTo(e,t=e){if(this.translatable&&ot(e)&&ot(t)){const[n,r,a,o]=this.$matrix,i=(e*o-a*t)/(n*o-a*r),l=(t*n-r*e)/(n*o-a*r);this.$setTransform(n,r,a,o,i,l)}return this}$rotate(e,t,n){if(this.rotatable){const r=Ct(e),a=Math.cos(r),o=Math.sin(r),[i,l,s,c]=[a,o,-o,a];if(ot(t)&&ot(n)){const[e,r,a,o]=this.$matrix,{width:u,height:d}=this.getBoundingClientRect(),f=t-u/2,p=n-d/2,h=(f*o-a*p)/(e*o-a*r),m=(p*e-r*f)/(e*o-a*r);this.$transform(i,l,s,c,h*(1-i)-m*s,m*(1-c)-h*l)}else this.$transform(i,l,s,c,0,0)}return this}$zoom(e,t,n){if(!this.scalable||0===e)return this;if(e<0?e=1/(1-e):e+=1,ot(t)&&ot(n)){const[r,a,o,i]=this.$matrix,{width:l,height:s}=this.getBoundingClientRect(),c=t-l/2,u=n-s/2,d=(c*i-o*u)/(r*i-o*a),f=(u*r-a*c)/(r*i-o*a);this.$transform(e,0,0,e,d*(1-e),f*(1-e))}else this.$scale(e);return this}$scale(e,t=e){return this.scalable&&this.$transform(e,0,0,t,0,0),this}$skew(e,t=0){if(this.skewable){const n=Ct(e),r=Ct(t);this.$transform(1,Math.tan(r),Math.tan(n),1,0,0)}return this}$translate(e,t=e){return this.translatable&&ot(e)&&ot(t)&&this.$transform(1,0,0,1,e,t),this}$transform(e,t,n,r,a,o){return ot(e)&&ot(t)&&ot(n)&&ot(r)&&ot(a)&&ot(o)?this.$setTransform(Tt(this.$matrix,[e,t,n,r,a,o])):this}$setTransform(e,t,n,r,a,o){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(e)&&([e,t,n,r,a,o]=e),ot(e)&&ot(t)&&ot(n)&&ot(r)&&ot(a)&&ot(o))){const i=[...this.$matrix],l=[e,t,n,r,a,o];if(!1===this.$emit(rt,{matrix:l,oldMatrix:i}))return this;this.$matrix=l,this.style.transform=`matrix(${l.join(", ")})`}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}Mt.$name=Ne,Mt.$version="2.0.0";const $t=new WeakMap;class Ft extends At{constructor(){super(...arguments),this.$onCanvasChange=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$style=":host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}",this.x=0,this.y=0,this.width=0,this.height=0,this.slottable=!1,this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(e){$t.set(this,e)}get $canvas(){return $t.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const e=this.closest(this.$getTagNameOf(Ce));if(e){this.$canvas=e,this.style.position="absolute";const t=e.querySelector(this.$getTagNameOf(Pe));t&&(this.$onCanvasActionStart=e=>{t.hidden&&e.detail.action===je&&(this.hidden=!1)},this.$onCanvasActionEnd=e=>{t.hidden&&e.detail.action===je&&(this.hidden=!0)},this.$onCanvasChange=e=>{const{x:n,y:r,width:a,height:o}=e.detail;this.$change(n,r,a,o),(t.hidden||0===n&&0===r&&0===a&&0===o)&&(this.hidden=!0)},yt(e,tt,this.$onCanvasActionStart),yt(e,et,this.$onCanvasActionEnd),yt(e,nt,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:e}=this;e&&(this.$onCanvasActionStart&&(bt(e,tt,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(bt(e,et,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(bt(e,nt,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(e,t,n=this.width,r=this.height){return ot(e)&&ot(t)&&ot(n)&&ot(r)&&(e!==this.x||t!==this.y||n!==this.width||r!==this.height)?(this.hidden&&(this.hidden=!1),this.x=e,this.y=t,this.width=n,this.height=r,this.$render()):this}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:we.innerWidth})}}Ft.$name=Re,Ft.$version="2.0.0";class Ut extends At{constructor(){super(...arguments),this.$onCanvasCropEnd=null,this.$onCanvasCropStart=null,this.$style=':host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}',this.action=De,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}Ut.$name=Te,Ut.$version="2.0.0";const Ht=new WeakMap;class Wt extends At{constructor(){super(...arguments),this.$onCanvasAction=null,this.$onCanvasActionStart=null,this.$onCanvasActionEnd=null,this.$onDocumentKeyDown=null,this.$action="",this.$actionStartTarget=null,this.$changing=!1,this.$style=':host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}',this.$initialSelection={x:0,y:0,width:0,height:0},this.x=0,this.y=0,this.width=0,this.height=0,this.aspectRatio=NaN,this.initialAspectRatio=NaN,this.initialCoverage=NaN,this.active=!1,this.linked=!1,this.dynamic=!1,this.movable=!1,this.resizable=!1,this.zoomable=!1,this.multiple=!1,this.keyboard=!1,this.outlined=!1,this.precise=!1}set $canvas(e){Ht.set(this,e)}get $canvas(){return Ht.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(e,t,n){if(!Object.is(n,t))switch(super.$propertyChangedCallback(e,t,n),e){case"x":case"y":case"width":case"height":this.$changing||this.$nextTick(()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,!0)});break;case"aspectRatio":case"initialAspectRatio":this.$nextTick(()=>{this.$initSelection()});break;case"initialCoverage":this.$nextTick(()=>{it(n)&&n<=1&&this.$initSelection(!0,!0)});break;case"keyboard":this.$nextTick(()=>{this.$canvas&&(n?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),yt(this.ownerDocument,Ge,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(bt(this.ownerDocument,Ge,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))});break;case"multiple":this.$nextTick(()=>{if(this.$canvas){const e=this.$getSelections();n?(e.forEach(e=>{e.active=!1}),this.active=!0,this.$emit(nt,{x:this.x,y:this.y,width:this.width,height:this.height})):(this.active=!1,e.slice(1).forEach(e=>{this.$removeSelection(e)}))}});break;case"precise":this.$nextTick(()=>{this.$change(this.x,this.y)});break;case"linked":n&&(this.dynamic=!0)}}connectedCallback(){super.connectedCallback();const e=this.closest(this.$getTagNameOf(Ce));e?(this.$canvas=e,this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`}),this.hidden||this.$render(),this.$initSelection(!0),this.$onCanvasActionStart=this.$handleActionStart.bind(this),this.$onCanvasActionEnd=this.$handleActionEnd.bind(this),this.$onCanvasAction=this.$handleAction.bind(this),yt(e,tt,this.$onCanvasActionStart),yt(e,et,this.$onCanvasActionEnd),yt(e,Ze,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:e}=this;e&&(this.$onCanvasActionStart&&(bt(e,tt,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(bt(e,et,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(bt(e,Ze,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let e=[];return this.parentElement&&(e=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(Pe)))),e}$initSelection(e=!1,t=!1){const{initialCoverage:n,parentElement:r}=this;if(it(n)&&r){const a=this.aspectRatio||this.initialAspectRatio;let o=(t?0:this.width)||r.offsetWidth*n,i=(t?0:this.height)||r.offsetHeight*n;it(a)&&({width:o,height:i}=_t({aspectRatio:a,width:o,height:i})),this.$change(this.x,this.y,o,i),e&&this.$center(),this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const e=this.cloneNode(!0);return this.hasAttribute("id")&&e.removeAttribute("id"),e.initialCoverage=NaN,this.active=!1,this.parentElement&&this.parentElement.insertBefore(e,this.nextSibling),e}$removeSelection(e=this){if(this.parentElement){const t=this.$getSelections();if(t.length>1){const n=t.indexOf(e),r=t[n+1]||t[n-1];r&&(e.active=!1,this.parentElement.removeChild(e),r.active=!0,r.$emit(nt,{x:r.x,y:r.y,width:r.width,height:r.height}))}else this.$clear()}}$handleActionStart(e){var t,n;const r=null===(n=null===(t=e.detail)||void 0===t?void 0:t.relatedEvent)||void 0===n?void 0:n.target;this.$action="",this.$actionStartTarget=r,!this.hidden&&this.multiple&&!this.active&&r===this&&this.parentElement&&(this.$getSelections().forEach(e=>{e.active=!1}),this.active=!0,this.$emit(nt,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(e){const{currentTarget:t,detail:n}=e;if(!t||!n)return;const{relatedEvent:r}=n;let{action:a}=n;if(!a&&this.multiple&&(a=this.$action||(null==r?void 0:r.target.action),this.$action=a),!a||this.hidden&&a!==je||this.multiple&&!this.active&&a!==Ae)return;const o=n.endX-n.startX,i=n.endY-n.startY,{width:l,height:s}=this;let{aspectRatio:c}=this;switch(!it(c)&&r.shiftKey&&(c=it(l)&&it(s)?l/s:1),a){case je:if(0!==o&&0!==i){const{$canvas:e}=this,r=xt(t);(this.multiple&&!this.hidden?this.$createSelection():this).$change(n.startX-r.left,n.startY-r.top,Math.abs(o),Math.abs(i),c),o<0?i<0?a=We:i>0&&(a=Ve):o>0&&(i<0?a=He:i>0&&(a=Be)),e&&(e.$action=a)}break;case Oe:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(o,i);break;case Ae:if(r&&this.zoomable&&(this.dynamic||this.contains(r.target))){const e=xt(t);this.$zoom(n.scale,r.pageX-e.left,r.pageY-e.top)}break;default:this.$resize(a,o,i,c)}}$handleActionEnd(){this.$action="",this.$actionStartTarget=null}$handleKeyDown(e){if(this.hidden||!this.keyboard||this.multiple&&!this.active||e.defaultPrevented)return;const{activeElement:t}=document;if(!t||!["INPUT","TEXTAREA"].includes(t.tagName)&&!["true","plaintext-only"].includes(t.contentEditable))switch(e.key){case"Backspace":e.metaKey&&(e.preventDefault(),this.$removeSelection());break;case"Delete":e.preventDefault(),this.$removeSelection();break;case"ArrowLeft":e.preventDefault(),this.$move(-1,0);break;case"ArrowRight":e.preventDefault(),this.$move(1,0);break;case"ArrowUp":e.preventDefault(),this.$move(0,-1);break;case"ArrowDown":e.preventDefault(),this.$move(0,1);break;case"+":e.preventDefault(),this.$zoom(.1);break;case"-":e.preventDefault(),this.$zoom(-.1)}}$center(){const{parentElement:e}=this;if(!e)return this;const t=(e.offsetWidth-this.width)/2,n=(e.offsetHeight-this.height)/2;return this.$change(t,n)}$move(e,t=e){return this.$moveTo(this.x+e,this.y+t)}$moveTo(e,t=e){return this.movable?this.$change(e,t):this}$resize(e,t=0,n=0,r=this.aspectRatio){if(!this.resizable)return this;const a=it(r),{$canvas:o}=this;let{x:i,y:l,width:s,height:c}=this;switch(e){case Me:l+=n,c-=n,c<0&&(e=Fe,c=-c,l-=c),a&&(i+=(t=n*r)/2,s-=t,s<0&&(s=-s,i-=s));break;case $e:s+=t,s<0&&(e=Ue,s=-s,i-=s),a&&(l-=(n=t/r)/2,c+=n,c<0&&(c=-c,l-=c));break;case Fe:c+=n,c<0&&(e=Me,c=-c,l-=c),a&&(i-=(t=n*r)/2,s+=t,s<0&&(s=-s,i-=s));break;case Ue:i+=t,s-=t,s<0&&(e=$e,s=-s,i-=s),a&&(l+=(n=t/r)/2,c-=n,c<0&&(c=-c,l-=c));break;case He:a&&(n=-t/r),l+=n,c-=n,s+=t,s<0&&c<0?(e=Ve,s=-s,c=-c,i-=s,l-=c):s<0?(e=We,s=-s,i-=s):c<0&&(e=Be,c=-c,l-=c);break;case We:a&&(n=t/r),i+=t,l+=n,s-=t,c-=n,s<0&&c<0?(e=Be,s=-s,c=-c,i-=s,l-=c):s<0?(e=He,s=-s,i-=s):c<0&&(e=Ve,c=-c,l-=c);break;case Be:a&&(n=t/r),s+=t,c+=n,s<0&&c<0?(e=We,s=-s,c=-c,i-=s,l-=c):s<0?(e=Ve,s=-s,i-=s):c<0&&(e=He,c=-c,l-=c);break;case Ve:a&&(n=-t/r),i+=t,s-=t,c+=n,s<0&&c<0?(e=He,s=-s,c=-c,i-=s,l-=c):s<0?(e=Be,s=-s,i-=s):c<0&&(e=We,c=-c,l-=c)}return o&&o.$setAction(e),this.$change(i,l,s,c)}$zoom(e,t,n){if(!this.zoomable||0===e)return this;e<0?e=1/(1-e):e+=1;const{width:r,height:a}=this,o=r*e,i=a*e;let l=this.x,s=this.y;return ot(t)&&ot(n)?(l-=(o-r)*((t-this.x)/r),s-=(i-a)*((n-this.y)/a)):(l-=(o-r)/2,s-=(i-a)/2),this.$change(l,s,o,i)}$change(e,t,n=this.width,r=this.height,a=this.aspectRatio,o=!1){return this.$changing||!ot(e)||!ot(t)||!ot(n)||!ot(r)||n<0||r<0?this:(it(a)&&({width:n,height:r}=_t({aspectRatio:a,width:n,height:r},"cover")),this.precise||(e=Math.round(e),t=Math.round(t),n=Math.round(n),r=Math.round(r)),e===this.x&&t===this.y&&n===this.width&&r===this.height&&Object.is(a,this.aspectRatio)&&!o?this:(this.hidden&&(this.hidden=!1),!1===this.$emit(nt,{x:e,y:t,width:n,height:r})?this:(this.$changing=!0,this.x=e,this.y=t,this.width=n,this.height=r,this.$changing=!1,this.$render())))}$reset(){const{x:e,y:t,width:n,height:r}=this.$initialSelection;return this.$change(e,t,n,r)}$clear(){return this.$change(0,0,0,0,NaN,!0),this.hidden=!0,this}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(e){return new Promise((t,n)=>{if(!this.isConnected)return void n(new Error("The current element is not connected to the DOM."));const r=document.createElement("canvas");let{width:a,height:o}=this,i=1;if(ct(e)&&(it(e.width)||it(e.height))&&(({width:a,height:o}=_t({aspectRatio:a/o,width:e.width,height:e.height})),i=a/this.width),r.width=a,r.height=o,!this.$canvas)return void t(r);const l=this.$canvas.querySelector(this.$getTagNameOf(Ne));l?l.$ready().then(n=>{const s=r.getContext("2d");if(s){const[t,c,u,d,f,p]=l.$getTransform(),h=-this.x,m=-this.y,g=(h*d-u*m)/(t*d-u*c),b=(m*t-c*h)/(t*d-u*c);let y=t*g+u*b+f,v=c*g+d*b+p,w=n.naturalWidth,k=n.naturalHeight;1!==i&&(y*=i,v*=i,w*=i,k*=i);const x=w/2,S=k/2;s.fillStyle="transparent",s.fillRect(0,0,a,o),ct(e)&&ut(e.beforeDraw)&&e.beforeDraw.call(this,s,r),s.save(),s.translate(x,S),s.transform(t,c,u,d,y,v),s.translate(-x,-S),s.drawImage(n,0,0,w,k),s.restore()}t(r)}).catch(n):t(r)})}}Wt.$name=Pe,Wt.$version="2.0.0";class Bt extends At{constructor(){super(...arguments),this.$style=":host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}",this.bordered=!1,this.columns=3,this.covered=!1,this.rows=3,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(e,t,n){Object.is(n,t)||(super.$propertyChangedCallback(e,t,n),"rows"!==e&&"columns"!==e||this.$nextTick(()=>{this.$render()}))}connectedCallback(){super.connectedCallback(),this.$render()}$render(){const e=this.$getShadowRoot(),t=document.createDocumentFragment();for(let e=0;e<this.rows;e+=1){const e=document.createElement("span");e.setAttribute("role","row");for(let t=0;t<this.columns;t+=1){const t=document.createElement("span");t.setAttribute("role","gridcell"),e.appendChild(t)}t.appendChild(e)}e&&(e.innerHTML="",e.appendChild(t))}}Bt.$name=_e,Bt.$version="2.0.0";class Vt extends At{constructor(){super(...arguments),this.$style=':host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}',this.centered=!1,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}Vt.$name=Ee,Vt.$version="2.0.0";const qt=new WeakMap,Kt=new WeakMap,Qt=new WeakMap,Yt=new WeakMap,Gt="vertical";class Xt extends At{constructor(){super(...arguments),this.$onSelectionChange=null,this.$onSourceImageLoad=null,this.$onSourceImageTransform=null,this.$scale=1,this.$style=":host{display:block;height:100%;overflow:hidden;position:relative;width:100%}",this.resize=Gt,this.selection="",this.slottable=!1}set $image(e){Kt.set(this,e)}get $image(){return Kt.get(this)}set $sourceImage(e){Yt.set(this,e)}get $sourceImage(){return Yt.get(this)}set $canvas(e){qt.set(this,e)}get $canvas(){return qt.get(this)}set $selection(e){Qt.set(this,e)}get $selection(){return Qt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let e=null;if(e=this.selection?this.ownerDocument.querySelector(this.selection):this.closest(this.$getTagNameOf(Pe)),dt(e)){this.$selection=e,this.$onSelectionChange=this.$handleSelectionChange.bind(this),yt(e,nt,this.$onSelectionChange);const t=e.closest(this.$getTagNameOf(Ce));if(t){this.$canvas=t;const e=t.querySelector(this.$getTagNameOf(Ne));e&&(this.$sourceImage=e,this.$image=e.cloneNode(!0),this.$getShadowRoot().appendChild(this.$image),this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this),this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this),yt(e.$image,Xe,this.$onSourceImageLoad),yt(e,rt,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:e,$sourceImage:t}=this;e&&this.$onSelectionChange&&(bt(e,nt,this.$onSelectionChange),this.$onSelectionChange=null),t&&this.$onSourceImageLoad&&(bt(t.$image,Xe,this.$onSourceImageLoad),this.$onSourceImageLoad=null),t&&this.$onSourceImageTransform&&(bt(t,rt,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(e){this.$render(e.detail)}$handleSourceImageLoad(){const{$image:e,$sourceImage:t}=this,n=e.getAttribute("src"),r=t.getAttribute("src");r&&r!==n&&(e.setAttribute("src",r),e.$ready(()=>{setTimeout(()=>{this.$render()},50)}))}$handleSourceImageTransform(e){this.$render(void 0,e.detail.matrix)}$render(e,t){const{$canvas:n,$selection:r}=this;e||r.hidden||(e=r),(!e||0===e.x&&0===e.y&&0===e.width&&0===e.height)&&(e={x:0,y:0,width:n.offsetWidth,height:n.offsetHeight});const{x:a,y:o,width:i,height:l}=e,s={},{clientWidth:c,clientHeight:u}=this;let d=c,f=u,p=NaN;switch(this.resize){case"both":p=1,d=i,f=l,s.width=i,s.height=l;break;case"horizontal":p=l>0?u/l:0,d=i*p,s.width=d;break;case Gt:p=i>0?c/i:0,f=l*p,s.height=f;break;default:c>0?p=i>0?c/i:0:u>0&&(p=l>0?u/l:0)}this.$scale=p,this.$setStyles(s),this.$sourceImage&&this.$transformImageByOffset(null!=t?t:this.$sourceImage.$getTransform(),-a,-o)}$transformImageByOffset(e,t,n){const{$image:r,$scale:a,$sourceImage:o}=this;if(o&&r&&a>=0){const[o,i,l,s,c,u]=e,d=(t*s-l*n)/(o*s-l*i),f=(n*o-i*t)/(o*s-l*i),p=o*d+l*f+c,h=i*d+s*f+u;r.$ready(e=>{this.$setStyles.call(r,{width:e.naturalWidth*a,height:e.naturalHeight*a})}),r.$setTransform(o,i,l,s,p*a,h*a)}}}function Jt(){const[e,t]=d.useState(!1),[n,r]=d.useState(null),[a,o]=d.useState(null),i=async(e,n)=>{if(!e||!n)return r("ID de asset y configuración de variante son requeridos"),null;t(!0),r(null),o(null);try{const t=await async function(e,{variant_name:t,width:n,height:r,crop_params:a,preset_aspect:o=null,preset_size:i=null,output_format:l="webp"}){try{const s=[{name:t,width:n,height:r,output_format:l,crop_params:a}];return o&&(s[0].preset_aspect=o),i&&(s[0].preset_size=i),function(e){if(!e?.success||!e?.data)return{result:null};const t=e.data;return{result:{job_id:t.job_id,asset_id:t.asset_id,variants_requested:t.variants_requested||[],processing_mode:t.async?"async":"sync",estimated_completion:t.estimated_completion,variant_statuses:(t.variant_statuses||[]).map(e=>({name:e.name,status:e.status,size:e.expected_size,format:e.format}))}}}(await q({endpoint:`/assets/${e}/variants`,method:"POST",body:{variants:s,async:!1},basePath:X,useJWT:!0}))}catch(e){throw G(e)}}(e,{variant_name:n.name,width:n.width,height:n.height,crop_params:n.crop_params,preset_aspect:n.preset_aspect,preset_size:n.preset_size,output_format:n.output_format});if(t?.result)return o(t.result),t.result;throw new Error("No se pudo crear la variante")}catch(e){return console.error("Error creating variant:",e),r(e.message||"Error desconocido al crear variante"),null}finally{t(!1)}};return{createVariant:i,createCropVariant:async(e,t,n={})=>{const r={name:n.name||`crop_${Date.now()}`,width:n.width||800,height:n.height||600,output_format:n.format||"webp",crop_params:{x:t.x||0,y:t.y||0,width:t.width||1,height:t.height||1}};return await i(e,r)},loading:e,error:n,createdVariant:a,reset:()=>{r(null),o(null)}}}Xt.$name=ze,Xt.$version="2.0.0",
48
48
  /*! Cropper.js v2.0.0 | (c) 2015-present Chen Fengyuan | MIT */
49
- Pt.$define(),jt.$define(),Mt.$define(),Lt.$define(),zt.$define(),Dt.$define(),At.$define(),Bt.$define();const qt="/api/v2";function Kt(){const[e,t]=d.useState(!1),[n,r]=d.useState(null),[a,o]=d.useState(null);return{upload:async(e,n=null)=>{if(!e)return r("No se ha proporcionado ningún archivo"),null;t(!0),r(null),o(null);try{const t=await async function(e,t=null,n=!1){try{const r=new FormData;return r.append("file",e),t&&r.append("uploaded_by",t),n&&r.append("store_original",n.toString()),function(e){if(!e?.success||!e?.data)return{result:null};const t=e.data;return{result:{id:t.id,filename:t.original_filename,mime_type:t.mime_type,file_size:t.file_size,width:t.width,height:t.height,status:t.status,upload_date:t.created_at,url:t.master?.url_signed,master_format:t.master?.format,processing:t.processing||{master_webp:"processing"===t.status?"queued":"completed",variants:"processing"===t.status?"queued":"completed"},checksum:t.checksum,storage_path:t.storage_path_base,metadata:t.metadata||{}}}}(await J({endpoint:"/assets",method:"POST",body:r,basePath:qt,isFormData:!0,useJWT:!0}))}catch(e){throw Vt(e)}}(e,n,!1),r=t.result||t;return o(r),r}catch(e){return r(e.message),null}finally{t(!1)}},loading:e,error:n,uploadedImage:a,reset:()=>{r(null),o(null)}}}class Qt{constructor(e,t,n){this.canvasRef=e,this.imageRef=t,this.selectionRef=n}get canvasElement(){return this.canvasRef?.current}get image(){return this.imageRef?.current}get selectionElement(){return this.selectionRef?.current}get isReady(){return!!(this.canvasElement&&this.image&&this.selectionElement)}transform={move:(e,t)=>{if(!this.image)return!1;try{return this.image.$move(e,t),!0}catch(e){return console.warn("Error moving image:",e),!1}},moveTo:(e,t)=>{if(!this.image)return!1;try{return this.image.$moveTo(e,t),!0}catch(e){return console.warn("Error moving image to position:",e),!1}},zoom:e=>{if(!this.image)return!1;try{return this.image.$zoom(e),!0}catch(e){return console.warn("Error zooming image:",e),!1}},rotate:e=>{if(!this.image)return!1;try{const t=e*Math.PI/180;return this.image.$rotate(t),!0}catch(e){return console.warn("Error rotating image:",e),!1}},scale:(e,t=e)=>{if(!this.image)return!1;try{return this.image.$scale(e,t),!0}catch(e){return console.warn("Error scaling image:",e),!1}},center:(e="contain")=>{if(!this.image)return!1;try{return this.image.$center(e),!0}catch(e){return console.warn("Error centering image:",e),!1}},reset:()=>{if(!this.image)return!1;try{return this.image.$resetTransform(),!0}catch(e){return console.warn("Error resetting transform:",e),!1}},getTransform:()=>{if(!this.image)return null;try{return this.image.$getTransform()}catch(e){return console.warn("Error getting transform:",e),null}},setTransform:(e,t,n,r,a,o)=>{if(!this.image)return!1;try{return this.image.$setTransform(e,t,n,r,a,o),!0}catch(e){return console.warn("Error setting transform:",e),!1}},resetZoom:()=>{if(!this.image)return!1;try{const e=this.image.$getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e,l=Math.sqrt(t*t+n*n),s=Math.sqrt(r*r+a*a),u=t/l,c=n/l,d=r/s,f=a/s;return this.image.$setTransform(u,c,d,f,o,i),!0}catch(e){return console.warn("Error resetting zoom:",e),!1}},setZoom:e=>{if(!this.image||e<=0)return!1;try{const t=this.image.$getTransform();if(!t)return!1;const[n,r,a,o,i,l]=t,s=Math.sqrt(n*n+r*r),u=Math.sqrt(a*a+o*o),c=n/s*e,d=r/s*e,f=a/u*e,p=o/u*e;return this.image.$setTransform(c,d,f,p,i,l),!0}catch(e){return console.warn("Error setting zoom level:",e),!1}},getZoom:()=>{if(!this.image)return 1;try{const e=this.image.$getTransform();if(!e)return 1;const[t,n]=e;return Math.sqrt(t*t+n*n)}catch(e){return console.warn("Error getting zoom level:",e),1}},fitToCanvas:(e=.1)=>{if(!this.image||!this.canvasElement)return!1;try{const t=this.canvasElement.getBoundingClientRect();let n=this.image.querySelector("img")||this.image;if(!n?.naturalWidth||!n?.naturalHeight)return!1;const r=1-e,a=t.width*r/n.naturalWidth,o=t.height*r/n.naturalHeight,i=Math.min(a,o,1);return this.transform.setZoom(i)}catch(e){return console.warn("Error fitting to canvas:",e),!1}}};selection={center:()=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$center(),!0}catch(e){return console.warn("Error centering selection:",e),!1}},reset:()=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$reset(),!0}catch(e){return console.warn("Error resetting selection:",e),!1}},setCoverage:e=>{if(!this.selectionElement||e<0||e>1)return!1;try{return this.selectionElement.initialCoverage=e,this.selectionElement.$reset(),!0}catch(e){return console.warn("Error setting coverage:",e),!1}},setAspectRatio:e=>{if(!this.selectionElement)return!1;try{let t;if(""===e||null==e)t=NaN;else if("number"==typeof e)t=e;else{if("string"!=typeof e)return console.warn("Unsupported aspect ratio type:",typeof e,e),!1;if(e.includes("/")){const[n,r]=e.split("/").map(e=>parseFloat(e.trim()));if(isNaN(n)||isNaN(r)||0===r)return console.warn("Invalid aspect ratio format:",e),!1;t=n/r}else if(t=parseFloat(e),isNaN(t))return console.warn("Invalid aspect ratio format:",e),!1}return this.selectionElement.aspectRatio=t,this.selectionElement.$render(),!0}catch(e){return console.warn("Error setting aspect ratio:",e),!1}},move:(e,t)=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$move(e,t),!0}catch(e){return console.warn("Error moving selection:",e),!1}},zoom:e=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$zoom(e),!0}catch(e){return console.warn("Error zooming selection:",e),!1}},change:(e,t,n,r,a)=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$change(e,t,n,r,a),!0}catch(e){return console.warn("Error changing selection:",e),!1}},toCanvas:async(e={})=>{if(!this.selectionElement)return null;try{const t={width:800,height:600,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",...e};return await this.selectionElement.$toCanvas(t)}catch(e){return console.warn("Error exporting to canvas:",e),null}},getData:()=>{if(!this.selectionElement)return null;try{return{x:this.selectionElement.x,y:this.selectionElement.y,width:this.selectionElement.width,height:this.selectionElement.height,aspectRatio:this.selectionElement.aspectRatio}}catch(e){return console.warn("Error getting selection data:",e),null}}};canvas={setBackground:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.background=e,!0}catch(e){return console.warn("Error setting background:",e),!1}},setScaleStep:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.scaleStep=e,!0}catch(e){return console.warn("Error setting scale step:",e),!1}},setDisabled:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.disabled=e,!0}catch(e){return console.warn("Error setting disabled state:",e),!1}}};utils={flipHorizontal:()=>{const e=this.transform.getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e;return this.transform.setTransform(-t,n,r,a,o,i)},flipVertical:()=>{const e=this.transform.getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e;return this.transform.setTransform(t,n,r,-a,o,i)},setupInitialView:async(e={})=>{const{paspartuFactor:t=.85,retries:n=3,retryDelay:r=200}=e;return new Promise(e=>{const a=(o=0)=>{if(!this.isReady)return o<n?void setTimeout(()=>a(o+1),r):void e(!1);try{const i=this.canvasElement.getBoundingClientRect();let l=this.image.querySelector("img")||this.image;if(!l?.naturalWidth||!l?.naturalHeight)return o<n?void setTimeout(()=>a(o+1),r):(this.transform.center(),void e(!1));if(i.width>0&&i.height>0){const n=i.width*t/l.naturalWidth,r=i.height*t/l.naturalHeight,a=Math.min(n,r,1);this.transform.setTransform(a,0,0,a,0,0)?setTimeout(()=>{this.transform.center(),this.selection.center(),e(!0)},100):(this.transform.reset(),setTimeout(()=>{a<1&&this.transform.scale(a),setTimeout(()=>{this.transform.center(),this.selection.center(),e(!0)},100)},100))}else this.transform.center(),e(!1)}catch(t){console.warn("Error in setup:",t),this.transform.center(),e(!1)}};a()})},resetAll:()=>{const e={transform:this.transform.reset(),selection:this.selection.reset(),center:!1};return setTimeout(()=>{e.center=this.transform.center()&&this.selection.center()},100),e},checkExportability:async()=>{try{return!!await this.selection.toCanvas({width:1,height:1})}catch{return!1}},resetZoomOnly:()=>this.transform.resetZoom(),getZoomInfo:()=>{const e=this.transform.getZoom();return{current:e,isZoomedIn:e>1,isZoomedOut:e<1,percentage:Math.round(100*e)}},setBackground:e=>this.canvas.setBackground(e)};setupEventListeners(e={}){const{onSelectionChange:t,onImageTransform:n,onAction:r,onActionStart:a,onActionMove:o,onActionEnd:i}=e,l=[];if(t&&this.selectionElement){const e=e=>{t({x:e.detail.x,y:e.detail.y,width:e.detail.width,height:e.detail.height})};this.selectionElement.addEventListener("change",e),l.push(()=>{this.selectionElement&&this.selectionElement.removeEventListener("change",e)})}if(n&&this.image){const e=e=>{n({matrix:e.detail.matrix,oldMatrix:e.detail.oldMatrix})};this.image.addEventListener("transform",e),l.push(()=>{this.image&&this.image.removeEventListener("transform",e)})}if(this.canvasElement){if(r){const e=e=>r(e.detail);this.canvasElement.addEventListener("action",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("action",e)})}if(a){const e=e=>a(e.detail);this.canvasElement.addEventListener("actionstart",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionstart",e)})}if(o){const e=e=>o(e.detail);this.canvasElement.addEventListener("actionmove",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionmove",e)})}if(i){const e=e=>i(e.detail);this.canvasElement.addEventListener("actionend",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionend",e)})}}return()=>{l.forEach(e=>e())}}}function Yt({image:e,onSave:t,onCancel:n,onDelete:r,deleting:a=!1,apiKey:o,prod:i=!1}){const[l,s]=d.useState(!1),[u,c]=d.useState(null),[f,p]=d.useState(!1),[h,m]=d.useState(""),[g,b]=d.useState(!0),[y,v]=d.useState(!0),[w,k]=d.useState({horizontal:!1,vertical:!1}),[S,x]=d.useState(!1),[C,E]=d.useState({current:1,percentage:100}),_=window.limboCore?.accessibilityManager,T=d.useMemo(()=>{const e=window.limboCore?.config?.getGlobal()||{};return e.cropper?.allowedAspectRatios||[{label:"📐 Libre",value:"",ratio:null},{label:"⬜ 1:1 (Cuadrado)",value:"1",ratio:1},{label:"📺 4:3 (Clásico)",value:"4/3",ratio:4/3},{label:"🖥️ 16:9 (Widescreen)",value:"16/9",ratio:16/9},{label:"📷 3:2 (Foto)",value:"3/2",ratio:1.5},{label:"📱 2:3 (Retrato)",value:"2/3",ratio:2/3},{label:"📲 9:16 (Stories)",value:"9/16",ratio:9/16}]},[]),{upload:P,loading:N,error:R}=Kt(),z=((e,t={})=>{const n=d.useRef(null),r=d.useRef(null),a=d.useRef(null),o=d.useRef(null),[i,l]=d.useState(null),[s,u]=d.useState(null),[c,f]=d.useState(!1),[p,h]=d.useState(!0),[m,g]=d.useState(0),b={aspectRatio:"",shade:!0,paspartuFactor:.85,...t};d.useEffect(()=>{n.current&&r.current&&a.current&&(o.current=new Qt(n,r,a),f(!0))},[]),d.useEffect(()=>{if(o.current)return o.current.setupEventListeners({onSelectionChange:e=>{l(e)},onImageTransform:()=>{g(e=>e+1)}})},[c]),d.useEffect(()=>{o.current&&e&&(async()=>{o.current.selection.setAspectRatio(b.aspectRatio),o.current.canvas.setBackground(b.shade),await o.current.utils.setupInitialView({paspartuFactor:b.paspartuFactor});const e=await o.current.utils.checkExportability();h(e);const t=r.current?.querySelector("img")||r.current;t?.naturalWidth&&t?.naturalHeight&&u({naturalWidth:t.naturalWidth,naturalHeight:t.naturalHeight,currentWidth:t.width,currentHeight:t.height})})()},[e,b.aspectRatio,b.shade,b.paspartuFactor]);const y=d.useCallback(()=>({move:(e,t)=>o.current?.transform.move(e,t)||!1,zoom:e=>o.current?.transform.zoom(e)||!1,rotate:e=>o.current?.transform.rotate(e)||!1,center:()=>o.current?.transform.center()||!1,reset:()=>o.current?.transform.reset()||!1,resetZoom:()=>o.current?.transform.resetZoom()||!1,setZoom:e=>o.current?.transform.setZoom(e)||!1,getZoom:()=>o.current?.transform.getZoom()||1,fitToCanvas:e=>o.current?.transform.fitToCanvas(e)||!1,flipHorizontal:()=>o.current?.utils.flipHorizontal()||!1,flipVertical:()=>o.current?.utils.flipVertical()||!1}),[]),v=d.useCallback(()=>({center:()=>o.current?.selection.center()||!1,reset:()=>o.current?.selection.reset()||!1,setCoverage:e=>o.current?.selection.setCoverage(e)||!1,setAspectRatio:e=>o.current?.selection.setAspectRatio(e)||!1,toCanvas:e=>o.current?.selection.toCanvas(e)||Promise.resolve(null)}),[]),w=d.useCallback(()=>({resetAll:()=>{if(o.current){const e=o.current.utils.resetAll();return l(null),e}return!1},setBackground:e=>o.current?.canvas.setBackground(e)||!1,resetZoomOnly:()=>o.current?.utils.resetZoomOnly()||!1,getZoomInfo:()=>o.current?.utils.getZoomInfo()||{current:1,percentage:100,isZoomedIn:!1,isZoomedOut:!1}}),[]);return{refs:{canvasRef:n,imageRef:r,selectionRef:a},state:{cropData:i,imageInfo:s,isReady:c,canExport:p,transformVersion:m},transform:y(),selection:v(),utils:w(),manager:o.current}})(e,{aspectRatio:h,showGrid:g,shade:y,initialCoverage:.5,paspartuFactor:.85}),{refs:O,state:A,transform:L,selection:I,utils:D}=z,{canvasRef:M,imageRef:j,selectionRef:$}=O,{cropData:U,imageInfo:H,canExport:W,transformVersion:B}=A,V=d.useCallback(()=>b(e=>!e),[]),q=d.useCallback(()=>v(e=>!e),[]),K=d.useCallback(()=>x(e=>!e),[]),Q=d.useCallback(()=>L.center(),[L]),Y=d.useCallback(()=>I.center(),[I]),G=d.useCallback(()=>I.reset(),[I]),X=d.useCallback((e,t)=>L.move(e,t),[L]),Z=d.useCallback(e=>L.zoom(e),[L]),J=d.useCallback(e=>L.rotate(e),[L]),ee=d.useCallback(()=>{D.resetAll(),m(""),b(!0),v(!0),k({horizontal:!1,vertical:!1}),s(!1),c(null)},[D]),te=d.useCallback(e=>{I.setCoverage(e)},[I]),ne=d.useCallback(()=>D.resetZoomOnly(),[D]),re=d.useCallback(()=>{k(e=>{const t=!e.horizontal;return L.flipHorizontal(),{...e,horizontal:t}})},[L]),ae=d.useCallback(()=>{k(e=>{const t=!e.vertical;return L.flipVertical(),{...e,vertical:t}})},[L]),oe=d.useCallback(e=>{m(e);const t=T.find(t=>t.value===e),n=t?t.ratio:e;I.setAspectRatio(n)},[I,T]),ie=d.useCallback(async()=>{if(!W)return null;try{const e=await I.toCanvas({width:800,height:600,imageSmoothingEnabled:!0,imageSmoothingQuality:"high"});return e?e.toDataURL("image/jpeg",.9):null}catch(e){return console.warn("Error generating preview:",e),null}},[W,I]),le=d.useCallback(async()=>{if(l)return s(!1),c(null),void p(!1);if(W){s(!0),p(!0);try{const e=await ie();e?c(e):(s(!1),alert("No se puede exportar el recorte por restricciones de CORS en la imagen original."))}finally{p(!1)}}else alert("No se puede exportar el recorte por restricciones de CORS en la imagen original.")},[W,ie,l]),se=d.useCallback(async()=>{if(!W){const e="No se puede exportar el recorte por restricciones de CORS en la imagen original.";return _?.announceError(e),void alert(e)}_?.announce("Guardando imagen recortada");try{const n=await I.toCanvas({width:800,height:600,imageSmoothingEnabled:!0,imageSmoothingQuality:"high"});if(!n)return;n.toBlob(async n=>{if(!n)return;const r=Date.now(),[a,...o]=e.filename.split("."),i=`${a}_cropped_${r}.${o.pop()||"jpg"}`,l=new File([n],i,{type:n.type||"image/jpeg"}),s=await P(l,`cropped_from_${e.id}`);s&&(_?.announceSuccess(`Imagen recortada guardada como ${i}`),t(s))},"image/jpeg",.9)}catch(e){console.warn("Error saving crop:",e);const t="No se puede exportar el recorte por restricciones de CORS en la imagen original.";_?.announceError(t),alert(t)}},[W,e.filename,e.id,P,t,I,_]);return d.useEffect(()=>{s(!1),c(null)},[e]),d.useEffect(()=>{z.manager&&(I.setAspectRatio(h),D.setBackground(y))},[h,y,z.manager,I,D]),d.useEffect(()=>{if(z.manager&&z.manager.utils)try{const e=z.manager.transform.getZoom(),t={current:e,isZoomedIn:e>1,isZoomedOut:e<1,percentage:Math.round(100*e)};E(t)}catch(e){console.warn("Error updating zoom info:",e)}},[B,z.manager]),d.useEffect(()=>{if(!l||!W)return;const e=setTimeout(async()=>{p(e=>!u&&!e||e);try{const e=await ie();e&&c(e)}finally{p(!1)}},300);return()=>{clearTimeout(e),p(!1)}},[U,B,l,W,ie,h,w,u]),d.useEffect(()=>{const e=M.current,t=t=>{if("Delete"===t.key||"Backspace"===t.key||"Backspace"===t.key&&t.metaKey||"Backspace"===t.key&&t.ctrlKey){const n=t.target;if(e&&(n===e||n===document.body||n===document.documentElement||"CROPPER-CANVAS"===n.tagName||"CROPPER-SELECTION"===n.tagName||"CROPPER-IMAGE"===n.tagName||"CROPPER-HANDLE"===n.tagName||"CROPPER-GRID"===n.tagName||n.closest("cropper-canvas")||e.contains(n)))return t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!1}};return document.addEventListener("keydown",t,!0),document.addEventListener("keyup",t,!0),window.addEventListener("keydown",t,!0),e&&e.addEventListener("keydown",t,!0),()=>{document.removeEventListener("keydown",t,!0),document.removeEventListener("keyup",t,!0),window.removeEventListener("keydown",t,!0),e&&e.removeEventListener("keydown",t,!0)}},[M]),e?F.jsxs("div",{className:"limbo-cropper-view px-2 border-2 border-gray-200/50 rounded-lg min-w-fit max-w-7xl mx-auto h-screen flex flex-col",children:[F.jsxs("div",{className:"limbo-cropper-header flex flex-col sm:flex-row justify-between items-start sm:items-center p-4 sm:p-6 pb-4 border-b border-gray-200 bg-white z-10 flex-shrink-0 gap-4 sm:gap-2",children:[F.jsxs("div",{className:"flex-1 min-w-0",children:[F.jsx("h2",{className:"text-lg sm:text-xl font-bold text-gray-800 truncate",children:"Recortar imagen"}),F.jsx("p",{className:"text-sm text-gray-600 mt-1 truncate",children:e.filename})]}),F.jsxs("div",{className:"flex gap-2 w-full sm:w-auto",children:[F.jsx("button",{onClick:n,disabled:N,className:"limbo-btn limbo-btn-secondary px-4 py-2 flex-1 sm:flex-initial",children:"Cancelar"}),F.jsx("button",{onClick:()=>r?.(e),disabled:a|N,className:"limbo-btn limbo-btn-danger px-4 py-2 flex-1 sm:flex-initial","aria-label":`Eliminar imagen ${e.filename}`,children:a?"Eliminando...":"Eliminar"})]})]}),F.jsxs("div",{className:"limbo-cropper-status bg-white border-gray-100 px-4 sm:px-6 py-2 pb-0 flex-shrink-0",children:[R&&F.jsxs("div",{className:"alert alert-danger mb-2 text-sm",role:"alert",children:[F.jsx("strong",{children:"Error:"})," ",R]}),U&&U.width>0&&F.jsxs("div",{className:"alert alert-info mb-2 text-sm",role:"status",children:[F.jsx("strong",{children:"Área:"})," ",Math.round(U.width)," ×"," ",Math.round(U.height)," px"]}),H&&F.jsxs("div",{className:"alert alert-secondary mb-2 text-sm",role:"status",children:[F.jsx("strong",{children:"Original:"})," ",H.naturalWidth," ×"," ",H.naturalHeight," px",H.currentWidth!==H.naturalWidth&&F.jsxs("span",{className:"ml-2 sm:ml-3 text-xs block sm:inline",children:["(Mostrada: ",Math.round(H.currentWidth)," ×"," ",Math.round(H.currentHeight)," px)"]})]}),!W&&F.jsx("div",{className:"alert alert-warning mb-2 text-sm",role:"alert",children:"⚠️ No se puede exportar por restricciones CORS"})]}),F.jsxs("div",{className:"flex flex-col md:flex-row flex-1 overflow-hidden rounded-lg gap-4 md:gap-0 cropper-main-content-area",children:[F.jsx("div",{className:"flex-1 relative min-w-0 order-2 md:order-1",children:F.jsxs("div",{className:"limbo-cropper-container absolute inset-2 sm:inset-4 bg-white rounded-lg border-2 border-gray-200 shadow-lg overflow-hidden",children:[l&&F.jsxs("div",{className:"absolute top-2 sm:top-4 right-2 sm:right-4 bg-white rounded-lg border border-gray-300 p-2 sm:p-3 z-50 shadow-xl w-48 sm:w-64 max-w-[calc(50%-1rem)] sm:max-w-[calc(50%-2rem)] md:min-w-1/4",children:[F.jsxs("div",{className:"flex justify-between items-center mb-2",children:[F.jsx("h3",{className:"text-xs font-semibold text-gray-700",children:"Vista previa"}),F.jsx("button",{onClick:()=>{s(!1),c(null)},className:"text-gray-400 hover:text-gray-600 p-1 -m-1","aria-label":"Cerrar vista previa",children:F.jsx("span",{className:"icon icon-close-small text-xs"})})]}),F.jsx("div",{className:"bg-gray-50 rounded p-2 flex justify-center items-center min-h-[80px] relative",children:u?F.jsxs("div",{className:"relative w-full h-full flex justify-center items-center",children:[F.jsx("img",{src:u,alt:"Vista previa del recorte",className:"max-w-full max-h-80 object-contain rounded shadow-sm"}),f&&F.jsx("div",{className:"absolute top-1 right-1 bg-blue-500 rounded-full p-1",children:F.jsx("div",{className:"animate-spin w-3 h-3 border border-white border-t-transparent rounded-full"})})]}):F.jsxs("div",{className:"flex flex-col items-center justify-center",children:[F.jsx("div",{className:"animate-spin w-6 h-6 border-2 border-blue-500 border-t-transparent rounded-full mb-2"}),F.jsx("span",{className:"text-xs text-gray-500",children:"Generando..."})]})})]}),F.jsxs("cropper-canvas",{ref:M,style:{width:"100%",height:"100%",display:"block"},background:!!y||void 0,id:"limbo-cropperjs-canvas",tabindex:"-1",onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||(e.preventDefault(),e.stopPropagation())},children:[F.jsx("cropper-image",{ref:j,src:e.path,alt:e.filename,id:"limbo-cropperjs-image",action:"move",crossOrigin:"anonymous",rotatable:!0,scalable:!0,skewable:!0,translatable:!0}),F.jsxs("cropper-selection",{ref:$,"initial-coverage":"0.5",movable:!0,resizable:!0,keyboard:"false",action:"move",style:{cursor:"move"},"data-prevent-delete":"true",tabindex:"-1",children:[g&&F.jsx("cropper-grid",{role:"grid",action:"move",covered:!0,bordered:!0}),F.jsx("cropper-handle",{action:"move",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"32px",height:"32px",zIndex:"10"}}),F.jsx("cropper-handle",{action:"n-resize"}),F.jsx("cropper-handle",{action:"e-resize"}),F.jsx("cropper-handle",{action:"s-resize"}),F.jsx("cropper-handle",{action:"w-resize"}),F.jsx("cropper-handle",{action:"ne-resize"}),F.jsx("cropper-handle",{action:"nw-resize"}),F.jsx("cropper-handle",{action:"se-resize"}),F.jsx("cropper-handle",{action:"sw-resize"})]})]})]})}),F.jsx("div",{className:"limbo-cropper-controls w-full md:w-80 bg-white border-t md:border-t-0 md:border-l border-gray-200 overflow-y-auto flex-shrink-0 order-1 md:order-2 max-h-96 md:max-h-none",children:F.jsxs("div",{className:"p-3 sm:p-4 space-y-3 sm:space-y-4 relative",children:[F.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4 md:sticky top-0 z-50",children:[F.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Acciones"}),F.jsxs("div",{className:"space-y-2",children:[F.jsxs("button",{onClick:le,disabled:N||!W,className:"w-full min-h-10 transition-colors "+(l?"limbo-btn limbo-btn-danger":"limbo-btn limbo-btn-primary"),"aria-label":"Generar vista previa del recorte",children:[F.jsx("span",{className:"icon "+(l?"icon-close-small-white":"icon-search-white")}),l?"Cerrar previa":"Vista previa"]}),F.jsx("button",{onClick:se,disabled:N||!U||!W,className:"w-full limbo-btn limbo-btn-success min-h-10","aria-label":"Guardar imagen recortada",children:N?F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"icon icon-save-white"})," ","Guardando..."]}):F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"icon icon-save-white"})," Guardar recorte"]})}),F.jsxs("button",{onClick:ee,disabled:N,className:"w-full limbo-btn limbo-btn-secondary min-h-10","aria-label":"Reiniciar todas las configuraciones",children:[F.jsx("span",{className:"icon icon-refresh-white"})," Reiniciar todo"]})]})]}),F.jsxs("div",{className:"bg-gradient-to-br from-brand-blue-50 to-green-50 rounded-lg border border-blue-200 shadow-sm",children:[F.jsxs("button",{onClick:K,className:"w-full p-4 flex items-center justify-between cursor-pointer hover:bg-blue-100/50 transition-colors rounded-t-lg","aria-expanded":S,"aria-label":"Mostrar/ocultar guía de uso",children:[F.jsxs("h3",{className:"text-lg font-semibold text-blue-800 flex items-center",children:[F.jsx("span",{className:"icon icon-lightbulb text-yellow-500 mr-2"}),"Guía de uso"]}),F.jsx("span",{className:"icon icon-arrow-down-blue transition-transform duration-200 "+(S?"rotate-180":"")})]}),S&&F.jsxs("div",{className:"px-4 pb-4 space-y-3",children:[F.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-blue-400",children:[F.jsx("h4",{className:"font-semibold text-blue-700 mb-2 text-sm",children:"🖱️ Navegación básica"}),F.jsxs("div",{className:"text-sm text-blue-600 space-y-1",children:[F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Arrastra la imagen:"})," Haz clic fuera del área de selección y arrastra"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Zoom:"})," Usa la rueda del ratón (fuera del área de selección)"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Vista completa:"}),' Botón "Reset zoom" para ajustar al tamaño óptimo']})]})]}),F.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-green-400",children:[F.jsx("h4",{className:"font-semibold text-green-700 mb-2 text-sm",children:"✂️ Área de selección"}),F.jsxs("div",{className:"text-sm text-green-600 space-y-1",children:[F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Mover selección:"})," Arrastra desde el centro",F.jsx("span",{className:"icon bg-white icon-move align-[middle!important] mx-1 border border-green-600 rounded-full"})]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Redimensionar:"})," Arrastra desde las esquinas o bordes"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Tamaños rápidos:"})," Usa los botones 50%, 70%, 90%, 100%"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Proporciones:"})," Selecciona ratios predefinidos (1:1, 16:9, etc.)"]})]})]}),F.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-purple-400",children:[F.jsx("h4",{className:"font-semibold text-purple-700 mb-2 text-sm",children:"⌨️ Atajos de teclado"}),F.jsxs("div",{className:"text-sm text-purple-600 space-y-1",children:[F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Flechas:"}),F.jsx("span",{className:"icon icon-arrow-right-box rotate-180 mx-1"}),F.jsx("span",{className:"icon icon-arrow-right-box mx-1"}),F.jsx("span",{className:"icon icon-arrow-right-box -rotate-90 mx-1"}),F.jsx("span",{className:"icon icon-arrow-right-box rotate-90 mx-1"}),"Mueven la selección (10px)"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Shift + Arrastrar:"})," Mantiene proporciones al redimensionar"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Ctrl + Rueda:"})," Zoom más preciso"]})]})]}),F.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-amber-400",children:[F.jsx("h4",{className:"font-semibold text-amber-700 mb-2 text-sm",children:"💡 Consejos profesionales"}),F.jsxs("div",{className:"text-sm text-amber-600 space-y-1",children:[F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Vista previa:"}),' Usa el botón "Vista previa" antes de guardar']}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Grid:"})," Actívalo para aplicar la regla de los tercios"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Transformaciones:"})," Rota y voltea antes de hacer el recorte final"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Calidad:"})," Las imágenes se exportan en alta calidad (JPEG 90%)"]})]})]}),F.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-orange-600",children:[F.jsx("h4",{className:"font-semibold text-orange-700 mb-2 text-sm",children:"⚠️ Advertencias"}),F.jsxs("div",{className:"text-sm text-orange-600 space-y-1",children:[F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Recortes grandes:"})," Pueden tardar más en procesarse"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Calidad de imagen:"})," La calidad puede verse afectada al escalar"]})]})]})]})]}),F.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-3 sm:p-4",children:[F.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Proporción"}),F.jsx("div",{className:"limbo-cropper-aspect-buttons grid grid-cols-2 md:grid-cols-1 gap-2 md:hidden",children:T.map(e=>F.jsx("button",{onClick:()=>oe(e.value),className:"p-2 text-xs rounded border transition-colors cursor-pointer "+(h===e.value?"bg-blue-100 border-blue-300 text-blue-800":"bg-gray-100 border-gray-300 text-gray-700"),disabled:N,title:`Cambiar a proporción ${e.label}`,children:e.label},e.value))}),F.jsx("select",{value:h,onChange:e=>oe(e.target.value),className:"w-full form-control hidden md:block",disabled:N,"aria-label":"Seleccionar proporción de aspecto",children:T.map(e=>F.jsx("option",{value:e.value,children:e.label},e.value))})]}),F.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[F.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Visualización"}),F.jsxs("div",{className:"space-y-2",children:[F.jsxs("button",{onClick:V,className:"w-full flex cursor-pointer items-center justify-between p-2 rounded transition-colors "+(g?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),disabled:N,"aria-pressed":g,"aria-label":"Activar/desactivar grid",children:[F.jsxs("span",{className:"text-sm flex items-center",children:[F.jsx("span",{className:"icon icon-area-blue me-1"})," Grid"]}),F.jsx("span",{className:"text-xs",children:g?F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"icon icon-tick icon--xs align-[middle!important] -mt-0.5"})," ","Activo"]}):"Inactivo"})]}),F.jsxs("button",{onClick:q,className:"w-full flex cursor-pointer items-center justify-between p-2 rounded transition-colors "+(y?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),disabled:N,"aria-pressed":y,"aria-label":"Activar/desactivar sombreado",children:[F.jsxs("span",{className:"text-sm flex items-center",children:[F.jsx("span",{className:"icon icon-comparison-blue me-1"})," ","Sombreado"]}),F.jsx("span",{className:"text-xs",children:y?F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"icon icon-tick icon--xs align-[middle!important] -mt-0.5"})," ","Activo"]}):"Inactivo"})]})]})]}),F.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[F.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Ajustes del selector"}),F.jsxs("div",{className:"space-y-2",children:[F.jsx("button",{onClick:Y,className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Centrar selección",disabled:N,"aria-label":"Centrar área de selección",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsxs("span",{children:[F.jsx("span",{className:"icon icon-radio-button icon--sm align-[middle!important] "})," ","Centrar selección"]})})}),F.jsx("button",{onClick:G,className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Reiniciar selección",disabled:N,"aria-label":"Reiniciar área de selección",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsxs("span",{children:[F.jsx("span",{className:"icon icon-refresh icon--sm lign-[middle!important] "})," ","Reset selección"]})})})]}),F.jsxs("div",{className:"mt-3",children:[F.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Tamaños rápidos"}),F.jsxs("div",{className:"grid grid-cols-2 gap-1",children:[F.jsx("button",{onClick:()=>te(.5),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:N,"aria-label":"Selección 50%",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"50%"})})}),F.jsx("button",{onClick:()=>te(.7),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:N,"aria-label":"Selección 70%",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"70%"})})}),F.jsx("button",{onClick:()=>te(.9),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:N,"aria-label":"Selección 90%",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"90%"})})}),F.jsx("button",{onClick:()=>te(1),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:N,"aria-label":"Selección completa",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"100%"})})})]})]})]}),F.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[F.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Transformar imagen"}),F.jsxs("div",{className:"mb-4",children:[F.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Mover imagen"}),F.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[F.jsx("div",{}),F.jsx("button",{onClick:()=>X(0,-10),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover arriba",disabled:N,"aria-label":"Mover imagen hacia arriba",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-up-blue"})})}),F.jsx("div",{}),F.jsx("button",{onClick:()=>X(-10,0),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover izquierda",disabled:N,"aria-label":"Mover imagen hacia la izquierda",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-left-blue"})})}),F.jsx("button",{onClick:Q,className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Centrar y ajustar imagen",disabled:N,"aria-label":"Centrar y ajustar imagen",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-radio-button-blue icon-md"})})}),F.jsx("button",{onClick:()=>X(10,0),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover derecha",disabled:N,"aria-label":"Mover imagen hacia la derecha",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-right-blue"})})}),F.jsx("div",{}),F.jsx("button",{onClick:()=>X(0,10),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover abajo",disabled:N,"aria-label":"Mover imagen hacia abajo",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-down-blue"})})}),F.jsx("div",{})]})]}),F.jsxs("div",{className:"mb-4",children:[F.jsxs("p",{className:"text-xs text-gray-600 mb-2",children:["Zoom ",C?C.percentage+"%":""]}),F.jsxs("div",{className:"flex gap-1",children:[F.jsx("button",{onClick:()=>Z(-.2),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Alejar 20%",disabled:N,"aria-label":"Alejar imagen",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-zoom-out-blue"})})}),F.jsx("button",{onClick:ne,className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Restablecer zoom original",disabled:N,"aria-label":"Restablecer el zoom para que la imagen se vea con su resolución original",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-screenshot-blue"})})}),F.jsx("button",{onClick:()=>Z(.2),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Acercar 20%",disabled:N,"aria-label":"Acercar imagen",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-zoom-in-blue"})})})]})]}),F.jsxs("div",{className:"mb-4",children:[F.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Rotación"}),F.jsxs("div",{className:"flex gap-1 *:text-brand-blue-1000 *:text-sm",children:[F.jsx("button",{onClick:()=>J(-90),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar -90°",disabled:N,"aria-label":"Rotar imagen 90 grados a la izquierda",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-reply-blue"})})}),F.jsx("button",{onClick:()=>J(-45),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar -45°",disabled:N,"aria-label":"Rotar imagen 45 grados a la izquierda",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"-45°"})})}),F.jsx("button",{onClick:()=>J(45),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar +45°",disabled:N,"aria-label":"Rotar imagen 45 grados a la derecha",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"+45°"})})}),F.jsx("button",{onClick:()=>J(90),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar +90°",disabled:N,"aria-label":"Rotar imagen 90 grados a la derecha",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-send-arrow-blue"})})})]})]}),F.jsxs("div",{className:"mb-4",children:[F.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Voltear"}),F.jsxs("div",{className:"flex gap-1",children:[F.jsx("button",{onClick:re,className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm "+(w.horizontal?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),title:"Voltear horizontalmente "+(w.horizontal?"(activo)":""),disabled:N,"aria-label":"Voltear imagen horizontalmente","aria-pressed":w.horizontal,children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-left-right-blue border border-brand-blue-1000 rounded"})})}),F.jsx("button",{onClick:ae,className:"flex-1 p-2 cursor-pointer rounded transition-colors text-sm "+(w.vertical?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),title:"Voltear verticalmente "+(w.vertical?"(activo)":""),disabled:N,"aria-label":"Voltear imagen verticalmente","aria-pressed":w.vertical,children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-up-down-blue border border-brand-blue-1000 rounded"})})})]})]}),F.jsx("button",{onClick:()=>{L.reset(),k({horizontal:!1,vertical:!1})},className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Reiniciar transformaciones",disabled:N,"aria-label":"Reiniciar todas las transformaciones de la imagen",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsxs("span",{children:[F.jsx("span",{className:"icon icon-refresh-blue icon--sm align-[middle!important] "})," ","Reiniciar ajustes"]})})})]})]})})]})]}):null}const Gt=new Map;function Xt({apiKey:e,prod:t=!1,url:n=!0,features:r=["gallery","upload","cropper"],modeUI:a="full",ui:o={showActions:["select","download","copy","delete","crop"],hideActions:[],theme:"light",language:"es",compactMode:!1,showTabs:!0},callbacks:i={},instanceId:l=null}){const s=(()=>{switch(a){case"gallery-only":return["gallery"];case"upload-only":return["upload"];case"crop-only":return["cropper"];case"ia-only":return["ia"];default:return r}})(),[u,c]=d.useState(s.includes("gallery")?"gallery":s.includes("upload")?"upload":s.includes("cropper")?"cropper":s.includes("ia")?"ia":s[0]||"gallery"),[f,p]=d.useState(null),{upload:h,loading:m,error:g,uploadedImage:b,reset:y}=Kt(),{deleteImg:v,loading:w,error:k,reset:S}=function(){const[e,t]=d.useState(!1),[n,r]=d.useState(null);return{deleteImg:async e=>{if(!e)return r("ID de imagen no proporcionado"),!1;t(!0),r(null);try{const t=await async function(e){try{return await J({endpoint:`/assets/${e}`,method:"DELETE",basePath:qt,useJWT:!0})}catch(e){throw Vt(e)}}(e);return!1!==t.success}catch(e){return r(e.message),!1}finally{t(!1)}},loading:e,error:n,reset:()=>{r(null)}}}(),{images:x,loading:C,error:E,invalidateCache:_,setImages:T}=function(e,t=!1,n={}){const[r,a]=d.useState([]),[o,i]=d.useState(!0),[l,s]=d.useState(null);return d.useEffect(()=>{const e=`${JSON.stringify(n)}`,t=Gt.get(e),r=Date.now();if(t&&r-t.timestamp<6e5)return a(t.data),void i(!1);let o=!0;return(async()=>{try{const t=await async function(e={}){try{const n=new URLSearchParams(e).toString(),r=n?`/assets?${n}`:"/assets";return t=await J({endpoint:r,method:"GET",basePath:qt,useJWT:!0}),t?.success&&Array.isArray(t?.data)?{result:t.data.map(e=>({id:e.id,filename:e.filename||e.original_filename,mime_type:e.mime_type,file_size:e.file_size,width:e.width,height:e.height,upload_date:e.upload_date||e.created_at,processing_status:e.processing_status||e.status,url:e.master_url||e.master?.url_signed,webp_available:e.webp_available||!!e.webp_url,metadata:e.metadata||{},variants_count:e.variants_count||0}))}:{result:[]}}catch(e){throw Vt(e)}var t}(n);if(!o)return;const i=t.result||[];a(i),Gt.set(e,{data:i,timestamp:r})}catch(e){o&&s(e.message)}finally{o&&i(!1)}})(),()=>{o=!1}},[e,t,n]),{images:r,loading:o,error:l,setImages:a,invalidateCache:()=>{const e=JSON.stringify(n);Gt.delete(`${e}`)}}}(e,t),P=e=>!(o.hideActions?.includes(e)||!o.showActions?.includes(e)&&o.showActions?.length>0),N=[{id:"gallery",label:"Galería",feature:"gallery"},{id:"upload",label:"Subir nueva",feature:"upload"},{id:"cropper",label:"Recortador",hideNonActive:!0,feature:"cropper"}].filter(e=>s.includes(e.feature)),R=async e=>{confirm("¿Estás seguro de que quieres eliminar esta imagen?")&&await v(e)&&(_(),T(t=>t.filter(t=>t.id!==e)),f&&f.id===e&&(p(null),c("gallery")))};return F.jsxs("div",{className:"limbo-card-parent max-w-7xl mx-auto my-8 p-6 shadow-xl w-full",children:[o.showTabs&&F.jsx(W,{tabs:N,active:u,onChange:e=>{c(e),"upload"!==e&&y(),"gallery"!==e&&S()}}),E&&F.jsxs("div",{className:"alert alert-danger",children:["Error al cargar imágenes: ",E]}),k&&F.jsxs("div",{className:"alert alert-danger",children:["Error al eliminar imagen: ",k]}),"gallery"===u&&F.jsxs(F.Fragment,{children:[w&&F.jsx(V,{text:"Eliminando imagen..."}),F.jsx(K,{apiKey:e,prod:t,onSelect:e=>{i.onSelect&&i.onSelect({assetId:e.id,url:e.url,fileName:e.filename,mime:e.mime_type,width:e.width,height:e.height,instanceId:l})},onCrop:e=>{p(e),s.includes("cropper")&&c("cropper")},onDelete:P("delete")?R:null,deletingId:w,images:x,loading:C,error:E,allowedActions:{select:P("select"),download:P("download"),copy:P("copy"),delete:P("delete"),crop:P("crop")}})]}),"upload"===u&&F.jsxs("div",{children:[m&&F.jsx(V,{text:"Subiendo imagen..."}),g&&F.jsxs("div",{className:"alert alert-danger",children:["Error al subir imagen: ",g]}),b&&F.jsxs("div",{className:"alert alert-success",children:["✅ Imagen subida correctamente: ",b.filename]}),F.jsx(de,{onUpload:async e=>{const t=await h(e);t&&(_(),T(e=>[t,...e]),c("gallery"),i.onUpload&&i.onUpload({assetId:t.id,url:t.url,fileName:t.filename,mime:t.mime_type,width:t.width,height:t.height,instanceId:l}))},disabled:m,apiKey:e,prod:t})]}),"cropper"===u&&F.jsx(Yt,{image:f,apiKey:e,prod:t,onSave:e=>{_(),T(t=>[e,...t]),p(null),c("gallery")},onCancel:()=>{p(null),c("gallery")},onDelete:()=>R(f?.id),deleting:w})]})}class Zt{constructor(e,t,n,r){this.id=e,this.config=t,this.eventManager=n,this.modalManager=r,this.root=null,this.container=null,this.modal=null,this.mounted=!1,this.destroyed=!1,this.button=null,this._validateConfig(),this._initialize()}_initialize(){"embed"===this.config.mode?this.mount():"button"===this.config.mode&&this._createButton(),this._emitDOMEvent("ready",{instance:this,config:this.config,timestamp:Date.now()})}mount(){if(this.mounted||this.destroyed)return this;if(this.container=this._resolveContainer(),!this.container)return this.eventManager.emit("error",{instanceId:this.id,error:"Container not found"}),this;try{this.root=D.createRoot(this.container),this.root.render(this._renderApp()),this.mounted=!0,this.eventManager.emit("ready",{instance:this})}catch(e){this.eventManager.emit("error",{instanceId:this.id,error:e.message})}return this}unmount(){return this.mounted?(this.root&&(this.root.unmount(),this.root=null),"button"===this.config.mode&&this.button,this.mounted=!1,this):this}open(){return"modal"!==this.config.mode&&"button"!==this.config.mode||(this.modal||this._createModal(),this.modal&&!this.modal.isOpened()&&(this.modal.open(),this.eventManager.emit("modal:open",{instance:this}))),this}close(){return this.modal&&this.modal.isOpened()&&(this.modal.close(),this.eventManager.emit("modal:close",{instance:this})),this}updateConfig(e){return this.config={...this.config,...e},this.mounted&&this.root.render(this._renderApp()),this.eventManager.emit("config:updated",{instance:this,newConfig:e}),this}destroy(){this.destroyed||(this.unmount(),this.modal&&(this.modal.destroy(),this.modal=null),this.button&&this.button.parentNode&&(this.button.parentNode.removeChild(this.button),this.button=null),this.eventManager.emit("destroy",{instance:this}),this.container=null,this.config=null,this.eventManager=null,this.modalManager=null,this.destroyed=!0)}getId(){return this.id}getMode(){return this.config.mode}isMounted(){return this.mounted}isDestroyed(){return this.destroyed}getContainer(){return this.container}getConfig(){return{...this.config}}isContainerInDOM(){return this.container&&document.contains(this.container)}_createModal(){if(this.modalManager&&"modal"===this.config.mode&&(this.modal=this.modalManager.createModal({title:this.config.title||"Limbo Image Manager",size:this.config.modalSize||"large",onOpen:()=>{const e={instance:this,mode:"modal",timestamp:Date.now()};this._emitDOMEvent("modal:open",e),this.config.callbacks?.onOpen&&this.config.callbacks.onOpen(e)},onClose:()=>{const e={instance:this,mode:"modal",timestamp:Date.now()};this._emitDOMEvent("modal:close",e),this.config.callbacks?.onClose&&this.config.callbacks.onClose(e),this.config.autoDestroy&&this.destroy()},onDestroy:()=>{this.modal=null}}),this.modal)){const e=this.modal.getBodyContainer();this.root=D.createRoot(e),this.root.render(this._renderApp()),this.mounted=!0}}_createButton(){if(this.container||(this.container=this._resolveContainer()),!this.container)return void this.eventManager.emit("error",{instanceId:this.id,error:"Container not found for button mode"});const e=document.createElement("button");e.type="button",e.className="limbo-trigger-button",e.textContent=this.config.buttonText||"Abrir Limbo",e.style.cssText="\n background: #001978;\n color: white;\n border: none;\n padding: 10px 20px;\n border-radius: 6px;\n cursor: pointer;\n font-family: inherit;\n font-size: 14px;\n font-weight: 500;\n transition: all 0.2s ease;\n ",e.addEventListener("mouseenter",()=>{e.style.backgroundColor="#334793",e.style.transform="translateY(-1px)"}),e.addEventListener("mouseleave",()=>{e.style.backgroundColor="#001978",e.style.transform="translateY(0)"}),e.addEventListener("click",()=>{this.open()}),this.container.appendChild(e),this.button=e,this.mounted=!0}_resolveContainer(){const{container:e}=this.config;return e?"string"==typeof e?document.querySelector(e):e instanceof Element?e:null:null}_renderApp(){return f.createElement("div",{id:`limbo-component-container-${this.id}`,className:"limbo-instance limbo-component-container-wrapper py-3","data-limbo-id":this.id,"data-limbo-mode":this.config.mode},f.createElement(Xt,{apiKey:this.config.apiKey,prod:this.config.prod||!1,url:this.config.url,features:this.config.features,modeUI:this.config.modeUI||"full",ui:this.config.ui,callbacks:this._createCallbacks(),instanceId:this.id}))}_createCallbacks(){return{onSelect:e=>{const t=this._createStandardPayload(e,"select");this.config.callbacks?.onSelect&&this.config.callbacks.onSelect(t),this._emitDOMEvent("select",t)},onUpload:e=>{const t=this._createStandardPayload(e,"upload");this.config.callbacks?.onUpload&&this.config.callbacks.onUpload(t),this._emitDOMEvent("upload",t)},onError:e=>{const t={instance:this,error:{message:e.message||"Unknown error",code:e.code||"UNKNOWN",timestamp:Date.now()}};this.config.callbacks?.onError&&this.config.callbacks.onError(t.error),this._emitDOMEvent("error",t)},onClose:()=>{const e={instance:this,timestamp:Date.now()};this.config.callbacks?.onClose&&this.config.callbacks.onClose(),this._emitDOMEvent("close",e)}}}_createStandardPayload(e,t){const n={instance:this,eventType:t,timestamp:Date.now(),instanceId:this.id,mode:this.config.mode,features:this.config.features};return e&&(e.assetId||e.id?(n.assetId=e.assetId||e.id,n.variants=e.variants||[],n.master=e.master||{urlSigned:e.url||e.urlSigned,width:e.width,height:e.height,mime:e.mime||e.mimeType},n.fileName=e.fileName||e.name,n.mime=e.mime||e.mimeType,n.width=e.width,n.height=e.height,n.fileBlob=e.fileBlob||e.file,n.metadata={uploadedBy:e.uploadedBy,uploadedAt:e.uploadedAt||e.timestamp,size:e.size,...e.metadata}):Object.assign(n,e)),n}_emitDOMEvent(e,t){const n=new CustomEvent(`limbo:${e}`,{detail:t,bubbles:!0,cancelable:!0});(this.getContainer()||document).dispatchEvent(n),this.eventManager.emit(e,t)}_validateConfig(){if(!this.config.apiKey)throw new Error(`LimboInstance ${this.id}: apiKey is required`);if(!["embed","modal","button"].includes(this.config.mode))throw new Error(`LimboInstance ${this.id}: invalid mode ${this.config.mode}`);if("embed"===this.config.mode&&!this.config.container)throw new Error(`LimboInstance ${this.id}: container is required for embed mode`);if("button"===this.config.mode&&!this.config.container)throw new Error(`LimboInstance ${this.id}: container is required for button mode`)}}class Jt{constructor(){this.instances=new Map,this.counter=0}create(e,t,n){const r="limbo-"+ ++this.counter,a=new Zt(r,e,t,n);return this.instances.set(r,a),a}get(e){return this.instances.get(e)}getAll(){return Array.from(this.instances.values())}getActive(){return this.getAll().filter(e=>e.isMounted())}destroy(e){const t=this.instances.get(e);return!!t&&(t.destroy(),this.instances.delete(e),!0)}destroyAll(){this.instances.forEach(e=>e.destroy()),this.instances.clear()}cleanupOrphans(){const e=[];return this.instances.forEach((t,n)=>{t.isContainerInDOM()||e.push(n)}),e.forEach(e=>this.destroy(e)),e.length}getStats(){const e=this.getAll();return{total:e.length,active:e.filter(e=>e.isMounted()).length,embed:e.filter(e=>"embed"===e.getMode()).length,modal:e.filter(e=>"modal"===e.getMode()).length,button:e.filter(e=>"button"===e.getMode()).length}}}class en{constructor(){this.config=null,this.instances=new Map,this.observer=null,this.initialized=!1}configure(e,t,n){return this.config={dataset:e.dataset||"data-limbo-input-file",return:e.return||"url",mode:e.mode||"modal",features:e.features||["gallery","upload","cropper"],crop:e.crop||"free",quality:e.quality||.9,format:e.format||"webp",modeUI:e.modeUI||"full",modalSize:e.modalSize||"medium",theme:e.theme||"light",compact:e.compact||!1,maxSize:e.maxSize||"10MB",formats:e.formats||["jpg","jpeg","png","webp"],minWidth:e.minWidth||null,minHeight:e.minHeight||null,maxWidth:e.maxWidth||null,maxHeight:e.maxHeight||null,buttonText:e.buttonText||"Seleccionar Imagen",buttonClass:e.buttonClass||"limbo-auto-button",buttonStyle:e.buttonStyle||"primary",showPreview:!1!==e.showPreview,allowMultiple:e.allowMultiple||!1,autoAssign:!1!==e.autoAssign,...e},this.configManager=t,this.eventManager=n,this._initialize(),this}cleanup(){this.observer&&(this.observer.disconnect(),this.observer=null),this.instances.forEach(({input:e,button:t})=>{this._restoreInput(e,t)}),this.instances.clear(),this.config=null,this.initialized=!1}getStats(){return{configured:null!==this.config,totalInputs:this.instances.size,dataset:this.config?.dataset,returnType:this.config?.return}}_initialize(){this.initialized||(this._scanExistingInputs(),this._setupObserver(),this.initialized=!0,this.eventManager.emit("autoInputs:initialized",{config:this.config,inputsFound:this.instances.size}))}_scanExistingInputs(){const e=`input[${this.config.dataset}]`;document.querySelectorAll(e).forEach(e=>this._processInput(e))}_processInput(e){const t=this._getInputId(e);if(this.instances.has(t))return;if(!this._validateInput(e))return;const n=this._createButton(e);this._hideInput(e),this._insertButton(e,n),this.instances.set(t,{input:e,button:n,config:this._getInputConfig(e)}),this.eventManager.emit("autoInputs:processed",{inputId:t,input:e,button:n})}_createButton(e){const t=document.createElement("button"),n=this._getInputConfig(e);t.type="button",t.textContent=n.buttonText||this.config.buttonText;const r=[this.config.buttonClass];return n.buttonClass&&n.buttonClass!==this.config.buttonClass&&r.push(n.buttonClass),t.className=r.join(" "),this._styleButton(t,n),this._attachButtonEvents(t,e),t.setAttribute("aria-label",n.buttonText||this.config.buttonText),t.setAttribute("data-limbo-trigger","true"),t.setAttribute("data-limbo-input-id",n.inputId),n.disabled&&(t.disabled=!0),t}_styleButton(e,t){const n=t.buttonStyle||this.config.buttonStyle,r=t.theme||this.config.theme,a=t.compact||this.config.compact,o={border:"none",borderRadius:"8px",cursor:"pointer",fontFamily:"inherit",fontSize:a?"12px":"14px",fontWeight:"500",transition:"all 0.2s ease",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:a?"6px 12px":"8px 16px",textDecoration:"none",userSelect:"none"},i={primary:{backgroundColor:"dark"===r?"#3b82f6":"#001978",color:"white",hoverBg:"dark"===r?"#2563eb":"#334793"},secondary:{backgroundColor:"dark"===r?"#374151":"#f3f4f6",color:"dark"===r?"#f9fafb":"#374151",border:"1px solid "+("dark"===r?"#4b5563":"#d1d5db"),hoverBg:"dark"===r?"#4b5563":"#e5e7eb"},outline:{backgroundColor:"transparent",color:"dark"===r?"#3b82f6":"#001978",border:"2px solid "+("dark"===r?"#3b82f6":"#001978"),hoverBg:"dark"===r?"#3b82f6":"#001978",hoverColor:"white"},ghost:{backgroundColor:"transparent",color:"dark"===r?"#f9fafb":"#374151",hoverBg:"dark"===r?"#374151":"#f3f4f6"}},l=i[n]||i.primary;Object.assign(e.style,{...o,...l});const s=l.backgroundColor,u=l.color;e.addEventListener("mouseenter",()=>{e.style.backgroundColor=l.hoverBg||l.backgroundColor,l.hoverColor&&(e.style.color=l.hoverColor),e.style.transform="translateY(-1px)",e.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)"}),e.addEventListener("mouseleave",()=>{e.style.backgroundColor=s,e.style.color=u,e.style.transform="translateY(0)",e.style.boxShadow="none"}),t.disabled&&(e.style.opacity="0.5",e.style.cursor="not-allowed")}_attachButtonEvents(e,t){e.addEventListener("click",e=>{e.preventDefault(),this._handleButtonClick(t)})}_handleButtonClick(e){const t=this._getInputConfig(e),n=this._createModalConfig(t);this.eventManager.emit("autoInputs:modalRequest",{input:e,config:n,callback:async t=>await this._handleImageSelection(e,t)})}async _handleImageSelection(e,t){const n=this._getInputConfig(e);try{const r=await this._formatImageData(t,n);!1!==n.autoAssign&&(e.value=r),e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:resultReady",{detail:{imageData:t,input:e,value:r,config:n,assignment:{format:n.return,smartAssign:!1!==n.smartAssign,autoAssign:!1!==n.autoAssign},legacy:{imageData:t,formatted:this._createFormattedResult(t,n)}},bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:imageSelected",{detail:{imageData:t,input:e,value:r,config:n,formatted:this._createFormattedResult(t,n)},bubbles:!0})),this.eventManager.emit("autoInputs:imageSelected",{input:e,imageData:t,value:r,config:n})}catch(r){console.error("Error handling image selection:",r),e.dispatchEvent(new CustomEvent("limbo:error",{detail:{error:r.message,input:e,imageData:t,config:n},bubbles:!0})),this._handleImageSelectionLegacy(e,t)}}_handleImageSelectionLegacy(e,t){const n=this._getInputConfig(e),r=this._formatImageData(t,n);!1!==n.autoAssign&&(e.value=r),e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:imageSelected",{detail:{imageData:t,input:e,value:r,config:n,formatted:this._createFormattedResult(t,n)},bubbles:!0})),this.eventManager.emit("autoInputs:imageSelected",{input:e,imageData:t,value:r,config:n})}_createFormattedResult(e,t){return{url:e.url||e.path||"",base64:e.base64||e.dataUrl||"",assetId:e.assetId||e.id||"",fileName:e.fileName||e.filename||"",object:{url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size,created:e.created_at||e.created,metadata:e.metadata||{}},json:JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size}),metadata:{width:e.width,height:e.height,size:e.size||e.file_size,format:e.format||e.mime_type,quality:t.quality||this.config.quality,aspectRatio:e.width&&e.height?e.width/e.height:null}}}async _formatImageData(e,t=null){switch((t||{}).return||this.config.return||"url"){case"url":return e.url||e.path||"";case"base64":return e.base64||e.dataUrl||"";case"assetId":return e.assetId||e.id||"";case"fileName":return e.fileName||e.filename||"";case"object":return JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size,created:e.created_at||e.created});default:return JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size})}}_createModalConfig(e){return{mode:e.mode||this.config.mode||"modal",modeUI:e.modeUI||this.config.modeUI||"full",features:e.features||this.config.features,modalSize:e.modalSize||this.config.modalSize||"medium",title:e.description||this.config.title||"Seleccionar imagen",cropper:this._getCropperConfig(e),ui:{showActions:this._getUIActions(e),hideActions:[],showTabs:this._shouldShowTabs(e),theme:e.theme||this.config.theme,compact:e.compact||this.config.compact,showPreview:void 0!==e.showPreview?e.showPreview:this.config.showPreview},validation:{maxSize:e.maxSize||this.config.maxSize,formats:e.formats||this.config.formats,minWidth:e.minWidth||this.config.minWidth,minHeight:e.minHeight||this.config.minHeight,maxWidth:e.maxWidth||this.config.maxWidth,maxHeight:e.maxHeight||this.config.maxHeight,required:e.required||!1},behavior:{allowMultiple:e.allowMultiple||this.config.allowMultiple,closeOnSelect:!0,autoAssign:void 0!==e.autoAssign?e.autoAssign:this.config.autoAssign},returnConfig:{format:e.return||this.config.return,quality:e.quality||this.config.quality,outputFormat:e.format||this.config.format},inputMeta:{inputId:e.inputId,inputName:e.inputName,inputType:e.inputType,placeholder:e.placeholder}}}_getCropperConfig(e){const t=e.crop||this.config.crop;if(!t||"none"===t||"false"===t)return null;if("free"===t)return{aspectRatio:null,quality:e.quality||this.config.quality,format:e.format||this.config.format};const n={"1:1":1,"16:9":16/9,"4:3":4/3,"3:2":1.5,"2:1":2,square:1,landscape:16/9,portrait:3/4};if(n[t])return{aspectRatio:n[t],quality:e.quality||this.config.quality,format:e.format||this.config.format,minCropBoxWidth:e.minWidth||this.config.minWidth,minCropBoxHeight:e.minHeight||this.config.minHeight};if("string"==typeof t&&t.includes(":")){const[n,r]=t.split(":").map(Number);if(!isNaN(n)&&!isNaN(r)&&0!==r)return{aspectRatio:n/r,quality:e.quality||this.config.quality,format:e.format||this.config.format}}const r=parseFloat(t);return!isNaN(r)&&r>0?{aspectRatio:r,quality:e.quality||this.config.quality,format:e.format||this.config.format}:"object"==typeof t?{quality:e.quality||this.config.quality,format:e.format||this.config.format,...t}:null}_shouldShowTabs(e){const t=e.modeUI||this.config.modeUI||"full",n=e.features||this.config.features;return!["gallery-only","upload-only","crop-only","ia-only"].includes(t)&&n&&n.length>1}_getUIActions(e){const t=e.modeUI||this.config.modeUI||"full",n=e.features||this.config.features;let r=[];switch(t){case"gallery-only":case"upload-only":r=["select"];break;case"crop-only":r=["select","crop"];break;default:r=["select"],n.includes("cropper")&&r.push("crop"),n.includes("gallery")&&(r.push("download","copy"),this.config.allowDelete&&r.push("delete"))}return r}_getInputId(e){return e.id||e.name||`limbo-auto-${Date.now()}-${Math.random()}`}_validateInput(e){return e instanceof HTMLInputElement}_getInputConfig(e){const t=e=>e?e.split(",").map(e=>e.trim()):null,n=e=>{if(!e)return null;const t=e.match(/^(\d+(?:\.\d+)?)(MB|KB|B)?$/i);if(!t)return null;const n=parseFloat(t[1]);switch((t[2]||"B").toUpperCase()){case"MB":return 1024*n*1024;case"KB":return 1024*n;default:return n}},r=(e,t=!1)=>null===e?t:"true"===e||"1"===e||""===e,a=e=>e?parseFloat(e):null;return{return:e.getAttribute("data-limbo-return")||this.config.return,mode:e.getAttribute("data-limbo-mode")||this.config.mode,features:t(e.getAttribute("data-limbo-features"))||this.config.features,crop:e.getAttribute("data-limbo-crop")||this.config.crop,quality:a(e.getAttribute("data-limbo-quality"))||this.config.quality,format:e.getAttribute("data-limbo-format")||this.config.format,modeUI:e.getAttribute("data-limbo-mode-ui")||this.config.modeUI,modalSize:e.getAttribute("data-limbo-modal-size")||this.config.modalSize,theme:e.getAttribute("data-limbo-theme")||this.config.theme,compact:r(e.getAttribute("data-limbo-compact"),this.config.compact),maxSize:n(e.getAttribute("data-limbo-max-size"))||n(this.config.maxSize),formats:t(e.getAttribute("data-limbo-formats"))||this.config.formats,minWidth:a(e.getAttribute("data-limbo-min-width"))||this.config.minWidth,minHeight:a(e.getAttribute("data-limbo-min-height"))||this.config.minHeight,maxWidth:a(e.getAttribute("data-limbo-max-width"))||this.config.maxWidth,maxHeight:a(e.getAttribute("data-limbo-max-height"))||this.config.maxHeight,buttonText:e.getAttribute("data-limbo-button-text")||this.config.buttonText,buttonStyle:e.getAttribute("data-limbo-button-style")||this.config.buttonStyle,buttonClass:e.getAttribute("data-limbo-button-class")||this.config.buttonClass,showPreview:r(e.getAttribute("data-limbo-show-preview"),this.config.showPreview),allowMultiple:r(e.getAttribute("data-limbo-allow-multiple"),this.config.allowMultiple),autoAssign:r(e.getAttribute("data-limbo-auto-assign"),this.config.autoAssign),placeholder:e.getAttribute("data-limbo-placeholder"),description:e.getAttribute("data-limbo-description"),required:r(e.getAttribute("data-limbo-required"),!1),disabled:r(e.getAttribute("data-limbo-disabled"),!1),inputId:e.id||e.name||this._generateInputId(e),inputName:e.name,inputType:e.type}}_generateInputId(){return`limbo-auto-input-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}_hideInput(e){e.style.display="none"}_insertButton(e,t){e.parentNode.insertBefore(t,e.nextSibling)}_restoreInput(e,t){e.style.display="",t&&t.parentNode&&t.parentNode.removeChild(t)}_setupObserver(){this.observer=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&this._scanNodeForInputs(e)})})}),this.observer.observe(document.body,{childList:!0,subtree:!0})}_scanNodeForInputs(e){const t=`input[${this.config.dataset}]`;e.matches&&e.matches(t)&&this._processInput(e);const n=e.querySelectorAll&&e.querySelectorAll(t);n&&n.forEach(e=>this._processInput(e))}}class tn{constructor(){this.listeners=new Map}emit(e,t={}){this._emitDOMEvent(e,t),this._executeListeners(e,t)}on(e,t){return this.listeners.has(e)||this.listeners.set(e,[]),this.listeners.get(e).push(t),()=>this.off(e,t)}off(e,t){const n=this.listeners.get(e);if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}cleanup(){this.listeners.clear()}_emitDOMEvent(e,t){const n=new CustomEvent(`limbo:${e}`,{detail:{...t,timestamp:Date.now()},bubbles:!0,cancelable:!0});(t.instance?.getContainer()||document).dispatchEvent(n)}_executeListeners(e,t){const n=this.listeners.get(e);n&&n.forEach(n=>{try{n(t)}catch(t){console.error(`Error executing listener for ${e}:`,t)}})}getStats(){const e={};return this.listeners.forEach((t,n)=>{e[n]=t.length}),e}}class nn{constructor(){this.activeModals=new Set,this.zIndexBase=1e4,this.focusableSelectors=["button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])',"a[href]"].join(", "),this.initialized=!1,this._initGlobalListeners()}createModal(e){const t=new rn(this._generateModalId(),e,this);return this.activeModals.add(t),t}closeModal(e){const t=this._findModal(e);return!!t&&(t.close(),!0)}closeAllModals(){this.activeModals.forEach(e=>e.close()),this.activeModals.clear()}getActiveModal(){return Array.from(this.activeModals).pop()||null}getStats(){return{active:this.activeModals.size,nextZIndex:this._getNextZIndex()}}_generateModalId(){return`limbo-modal-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}_findModal(e){return Array.from(this.activeModals).find(t=>t.getId()===e)}_getNextZIndex(){return this.zIndexBase+10*this.activeModals.size}_removeModal(e){this.activeModals.delete(e)}_handleGlobalKeydown(e){const t=this.getActiveModal();t&&("Escape"===e.key&&(e.preventDefault(),t.close()),"Tab"===e.key&&this._handleTabTrap(e,t))}_handleTabTrap(e,t){const n=t.getFocusableElements();if(0===n.length)return;const r=n[0],a=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),a.focus()):document.activeElement===a&&(e.preventDefault(),r.focus())}_initGlobalListeners(){this.initialized||(this.globalKeydownHandler=e=>this._handleGlobalKeydown(e),document.addEventListener("keydown",this.globalKeydownHandler),this.initialized=!0)}destroy(){this.closeAllModals(),this.initialized&&this.globalKeydownHandler&&(document.removeEventListener("keydown",this.globalKeydownHandler),this.initialized=!1,this.globalKeydownHandler=null)}}class rn{constructor(e,t,n){this.id=e,this.config={title:t.title||"Limbo",content:t.content||null,showCloseButton:!1!==t.showCloseButton,backdrop:!1!==t.backdrop,keyboard:!1!==t.keyboard,focus:!1!==t.focus,animation:!1!==t.animation,size:t.size||"large",onOpen:t.onOpen||null,onClose:t.onClose||null,onDestroy:t.onDestroy||null,...t},this.manager=n,this.element=null,this.backdrop=null,this.isOpen=!1,this.previousFocus=null,this._create()}_create(){this._createBackdrop(),this._createModal(),this._attachEvents()}_createBackdrop(){this.config.backdrop&&(this.backdrop=document.createElement("div"),this.backdrop.className="limbo-modal-backdrop",this.backdrop.style.cssText=`\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: ${this.manager._getNextZIndex()};\n opacity: 0;\n transition: opacity 0.3s ease;\n `,this.backdrop.addEventListener("click",e=>{e.target===this.backdrop&&this.close()}))}_createModal(){this.element=document.createElement("div"),this.element.className=`limbo-modal limbo-modal--${this.config.size}`,this.element.id=this.id,this.element.role="dialog",this.element.setAttribute("aria-modal","true"),this.element.setAttribute("aria-labelledby",`${this.id}-title`),this.element.tabIndex=-1;const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t={small:e?"width: 100%; height: 100%;":"max-width: 400px;",medium:e?"width: 100%; height: 100%;":"max-width: 600px;",large:e?"width: 100%; height: 100%;":"max-width: 800px;",xlarge:e?"width: 100%; height: 100%;":"max-width: 1200px;"},n=e?`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transform: translateY(100%);\n width: 100%;\n height: 100%;\n max-width: none;\n max-height: none;\n border-radius: 0;\n background: white;\n z-index: ${this.manager._getNextZIndex()+1};\n opacity: 1;\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n padding-top: env(safe-area-inset-top);\n padding-left: env(safe-area-inset-left);\n padding-right: env(safe-area-inset-right);\n padding-bottom: env(safe-area-inset-bottom);\n `:`\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(0.8);\n ${t[this.config.size]}\n width: 90%;\n max-height: 90vh;\n background: white;\n border-radius: 16px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n z-index: ${this.manager._getNextZIndex()+1};\n opacity: 0;\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n `;this.element.style.cssText=n,this._createHeader(),this._createBody(),document.body.appendChild(this.backdrop),document.body.appendChild(this.element)}_createHeader(){const e=document.createElement("div");e.className="limbo-modal-header";const t=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);e.style.cssText=`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ${t?"16px 20px":"20px 24px"};\n border-bottom: 1px solid #e9ecef;\n background: #f8f9fa;\n ${t?"position: sticky; top: 0; z-index: 10;":""}\n min-height: ${t?"60px":"auto"};\n `;const n=document.createElement("h2");if(n.id=`${this.id}-title`,n.className="limbo-modal-title",n.textContent=this.config.title,n.style.cssText="\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #001978;\n flex: 1;\n margin-right: 16px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ",e.appendChild(n),this.config.showCloseButton){const n=document.createElement("button");n.type="button",n.className="limbo-modal-close",n.innerHTML="✕",n.setAttribute("aria-label","Cerrar modal"),n.style.cssText=`\n background: none;\n border: none;\n font-size: ${t?"28px":"24px"};\n color: #6c757d;\n cursor: pointer;\n padding: ${t?"8px":"4px"};\n border-radius: 4px;\n transition: all 0.2s ease;\n min-width: ${t?"44px":"auto"};\n min-height: ${t?"44px":"auto"};\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n `,n.addEventListener("mouseenter",()=>{n.style.backgroundColor="#f8f9fa",n.style.color="#001978"}),n.addEventListener("mouseleave",()=>{n.style.backgroundColor="transparent",n.style.color="#6c757d"}),n.addEventListener("click",()=>this.close()),e.appendChild(n)}this.element.appendChild(e)}_createBody(){const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t=document.createElement("div");t.className="limbo-modal-body",t.id=`${this.id}-body`,t.style.cssText=`\n flex: 1;\n overflow-y: auto;\n padding: 0;\n -webkit-overflow-scrolling: touch;\n ${e?"height: 100%; overscroll-behavior: contain;":""}\n `,this.config.content&&("string"==typeof this.config.content?t.innerHTML=this.config.content:this.config.content instanceof Element&&t.appendChild(this.config.content)),this.element.appendChild(t)}_attachEvents(){this._originalBodyOverflow=document.body.style.overflow}open(){if(this.isOpen)return this;window.limbo&&window.limbo.core&&window.limbo.core.keyboard?(window.limbo.core.keyboard.pushFocus(document.activeElement),window.limbo.core.keyboard.setActiveModal(this.element)):this.previousFocus=document.activeElement,document.body.style.overflow="hidden";const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return requestAnimationFrame(()=>{this.backdrop&&(this.backdrop.style.opacity="1"),this.element.style.opacity="1",this.element.style.transform=e?"translateY(0%)":"translate(-50%, -50%) scale(1)"}),this.isOpen=!0,this.config.focus&&setTimeout(()=>{if(window.limbo&&window.limbo.core&&window.limbo.core.keyboard)window.limbo.core.keyboard.focusFirst(this.element);else{const e=this.getFocusableElements()[0];e&&e.focus()}},300),this.config.onOpen&&this.config.onOpen(this),this}close(){if(!this.isOpen)return this;const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return this.backdrop&&(this.backdrop.style.opacity="0"),this.element.style.opacity="0",this.element.style.transform=e?"translateY(100%)":"translate(-50%, -50%) scale(0.8)",setTimeout(()=>{this._cleanup()},300),this.isOpen=!1,window.limbo&&window.limbo.core&&window.limbo.core.keyboard&&(window.limbo.core.keyboard.setActiveModal(null),window.limbo.core.keyboard.releaseFocus()),this.config.onClose&&this.config.onClose(this),this}destroy(){this.close(),this.manager._removeModal(this),this.config.onDestroy&&this.config.onDestroy(this)}getBodyContainer(){return this.element.querySelector(".limbo-modal-body")}getFocusableElements(){return Array.from(this.element.querySelectorAll(this.manager.focusableSelectors))}getId(){return this.id}isOpened(){return this.isOpen}getConfig(){return{...this.config}}_cleanup(){document.body.style.overflow=this._originalBodyOverflow||"",this.previousFocus&&"function"==typeof this.previousFocus.focus&&this.previousFocus.focus(),this.backdrop&&this.backdrop.parentNode&&this.backdrop.parentNode.removeChild(this.backdrop),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}}class an{constructor(){this.currentTheme=null,this.customThemes=new Map,this.config=this._getDefaultConfig(),this.isInitialized=!1,this.isCompactMode=!1,this.compactBreakpoint=null,this.compactObserver=null,this.mediaQueryObserver=null,this.mutationObserver=null,this.storageListener=null,this.themeCache=new Map,this.appliedStyles=new Set,this.changeCallbacks=new Set}_getDefaultConfig(){return{theme:{auto:!0,storage:!0,inherit:!0,smooth:!0,detectSystem:!0},compact:{enabled:!1,auto:!0,breakpoint:768,forceOnMobile:!0,persistPreference:!0},presets:{light:{name:"light",displayName:"Claro",variables:{"--limbo-primary":"#3b82f6","--limbo-primary-hover":"#2563eb","--limbo-primary-light":"#dbeafe","--limbo-primary-dark":"#1e40af","--limbo-bg-primary":"#ffffff","--limbo-bg-secondary":"#f8fafc","--limbo-bg-tertiary":"#f1f5f9","--limbo-bg-overlay":"rgba(0, 0, 0, 0.5)","--limbo-bg-card":"#ffffff","--limbo-bg-input":"#ffffff","--limbo-text-primary":"#0f172a","--limbo-text-secondary":"#475569","--limbo-text-tertiary":"#64748b","--limbo-text-inverse":"#ffffff","--limbo-text-muted":"#94a3b8","--limbo-border-light":"#e2e8f0","--limbo-border-medium":"#cbd5e1","--limbo-border-strong":"#94a3b8","--limbo-border-focus":"#3b82f6","--limbo-success":"#10b981","--limbo-success-light":"#d1fae5","--limbo-error":"#ef4444","--limbo-error-light":"#fee2e2","--limbo-warning":"#f59e0b","--limbo-warning-light":"#fef3c7","--limbo-info":"#3b82f6","--limbo-info-light":"#dbeafe","--limbo-shadow-sm":"0 1px 2px 0 rgba(0, 0, 0, 0.05)","--limbo-shadow-md":"0 4px 6px -1px rgba(0, 0, 0, 0.1)","--limbo-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.1)","--limbo-shadow-xl":"0 20px 25px -5px rgba(0, 0, 0, 0.1)","--limbo-radius-sm":"4px","--limbo-radius-md":"6px","--limbo-radius-lg":"8px","--limbo-radius-xl":"12px","--limbo-font-family":"system-ui, -apple-system, sans-serif","--limbo-font-size-xs":"12px","--limbo-font-size-sm":"14px","--limbo-font-size-md":"16px","--limbo-font-size-lg":"18px","--limbo-font-size-xl":"20px","--limbo-z-dropdown":"1000","--limbo-z-sticky":"1020","--limbo-z-fixed":"1030","--limbo-z-modal":"1050","--limbo-z-tooltip":"1070","--limbo-transition-fast":"150ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-normal":"300ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-slow":"500ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-spacing-compact":"0.5rem","--limbo-spacing-compact-sm":"0.25rem","--limbo-spacing-compact-lg":"0.75rem","--limbo-font-size-compact-xs":"11px","--limbo-font-size-compact-sm":"12px","--limbo-font-size-compact-md":"14px","--limbo-font-size-compact-lg":"16px","--limbo-radius-compact":"4px","--limbo-radius-compact-sm":"3px","--limbo-radius-compact-lg":"6px","--limbo-button-height-compact":"32px","--limbo-input-height-compact":"36px","--limbo-modal-padding-compact":"12px","--limbo-card-padding-compact":"12px","--limbo-gap-compact":"8px","--limbo-gap-compact-sm":"4px","--limbo-gap-compact-lg":"12px"}},dark:{name:"dark",displayName:"Oscuro",variables:{"--limbo-primary":"#60a5fa","--limbo-primary-hover":"#3b82f6","--limbo-primary-light":"#1e293b","--limbo-primary-dark":"#93c5fd","--limbo-bg-primary":"#0f172a","--limbo-bg-secondary":"#1e293b","--limbo-bg-tertiary":"#334155","--limbo-bg-overlay":"rgba(0, 0, 0, 0.8)","--limbo-bg-card":"#1e293b","--limbo-bg-input":"#334155","--limbo-text-primary":"#f8fafc","--limbo-text-secondary":"#cbd5e1","--limbo-text-tertiary":"#94a3b8","--limbo-text-inverse":"#0f172a","--limbo-text-muted":"#64748b","--limbo-border-light":"#334155","--limbo-border-medium":"#475569","--limbo-border-strong":"#64748b","--limbo-border-focus":"#60a5fa","--limbo-success":"#34d399","--limbo-success-light":"#064e3b","--limbo-error":"#f87171","--limbo-error-light":"#7f1d1d","--limbo-warning":"#fbbf24","--limbo-warning-light":"#78350f","--limbo-info":"#60a5fa","--limbo-info-light":"#1e3a8a","--limbo-shadow-sm":"0 1px 2px 0 rgba(0, 0, 0, 0.2)","--limbo-shadow-md":"0 4px 6px -1px rgba(0, 0, 0, 0.3)","--limbo-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.4)","--limbo-shadow-xl":"0 20px 25px -5px rgba(0, 0, 0, 0.5)","--limbo-radius-sm":"4px","--limbo-radius-md":"6px","--limbo-radius-lg":"8px","--limbo-radius-xl":"12px","--limbo-font-family":"system-ui, -apple-system, sans-serif","--limbo-font-size-xs":"12px","--limbo-font-size-sm":"14px","--limbo-font-size-md":"16px","--limbo-font-size-lg":"18px","--limbo-font-size-xl":"20px","--limbo-z-dropdown":"1000","--limbo-z-sticky":"1020","--limbo-z-fixed":"1030","--limbo-z-modal":"1050","--limbo-z-tooltip":"1070","--limbo-transition-fast":"150ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-normal":"300ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-slow":"500ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-spacing-compact":"0.5rem","--limbo-spacing-compact-sm":"0.25rem","--limbo-spacing-compact-lg":"0.75rem","--limbo-font-size-compact-xs":"11px","--limbo-font-size-compact-sm":"12px","--limbo-font-size-compact-md":"14px","--limbo-font-size-compact-lg":"16px","--limbo-radius-compact":"4px","--limbo-radius-compact-sm":"3px","--limbo-radius-compact-lg":"6px","--limbo-button-height-compact":"32px","--limbo-input-height-compact":"36px","--limbo-modal-padding-compact":"12px","--limbo-card-padding-compact":"12px","--limbo-gap-compact":"8px","--limbo-gap-compact-sm":"4px","--limbo-gap-compact-lg":"12px"}},auto:{name:"auto",displayName:"Automático",variables:{}}},inheritance:{portalSelectors:["body","[data-theme]",".theme-light",".theme-dark",".light-theme",".dark-theme"],variablePrefix:"--",fallbackTheme:"light"},transitions:{duration:"300ms",easing:"cubic-bezier(0.4, 0, 0.2, 1)",properties:["background-color","border-color","color","fill","stroke","box-shadow"]}}}initialize(e={}){this.isInitialized?console.warn("ThemeManager already initialized"):(this.config=this._deepMerge(this.config,e),this._loadCustomThemes(),this.config.theme.inherit&&this._inheritPortalTheme(),this._applyInitialTheme(),this._applyInitialCompactMode(),this._setupObservers(),this._injectBaseStyles(),this.isInitialized=!0)}_injectBaseStyles(){if(document.getElementById("limbo-theme-styles"))return;const e=`\n :root {\n /* Variables de transición para cambios de tema */\n color-scheme: light dark;\n }\n \n [data-limbo-theme] {\n transition: ${this.config.transitions.properties.map(e=>`${e} ${this.config.transitions.duration} ${this.config.transitions.easing}`).join(", ")};\n }\n \n /* Clases de utilidad para temas */\n .limbo-theme-light {\n color-scheme: light;\n }\n \n .limbo-theme-dark {\n color-scheme: dark;\n }\n \n .limbo-theme-auto {\n color-scheme: light dark;\n }\n \n /* Estilos para elementos del componente con variables CSS */\n .limbo-component {\n background-color: var(--limbo-bg-primary);\n color: var(--limbo-text-primary);\n border-color: var(--limbo-border-light);\n border-radius: var(--limbo-radius-md);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-normal);\n }\n \n .limbo-card {\n background-color: var(--limbo-bg-card);\n border: 1px solid var(--limbo-border-light);\n border-radius: var(--limbo-radius-lg);\n box-shadow: var(--limbo-shadow-md);\n color: var(--limbo-text-primary);\n }\n \n .limbo-input {\n background-color: var(--limbo-bg-input);\n border: 1px solid var(--limbo-border-medium);\n border-radius: var(--limbo-radius-md);\n color: var(--limbo-text-primary);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-fast);\n }\n \n .limbo-input:focus {\n border-color: var(--limbo-border-focus);\n box-shadow: 0 0 0 3px var(--limbo-primary-light);\n outline: none;\n }\n \n .limbo-button {\n background-color: var(--limbo-primary);\n border: 1px solid var(--limbo-primary);\n border-radius: var(--limbo-radius-md);\n color: var(--limbo-text-inverse);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-fast);\n cursor: pointer;\n }\n \n .limbo-button:hover {\n background-color: var(--limbo-primary-hover);\n border-color: var(--limbo-primary-hover);\n }\n \n .limbo-button.secondary {\n background-color: var(--limbo-bg-secondary);\n border-color: var(--limbo-border-medium);\n color: var(--limbo-text-primary);\n }\n \n .limbo-button.secondary:hover {\n background-color: var(--limbo-bg-tertiary);\n }\n \n /* Estados de feedback con variables */\n .limbo-state-success {\n background-color: var(--limbo-success-light);\n border-color: var(--limbo-success);\n color: var(--limbo-success);\n }\n \n .limbo-state-error {\n background-color: var(--limbo-error-light);\n border-color: var(--limbo-error);\n color: var(--limbo-error);\n }\n \n .limbo-state-warning {\n background-color: var(--limbo-warning-light);\n border-color: var(--limbo-warning);\n color: var(--limbo-warning);\n }\n \n .limbo-state-info {\n background-color: var(--limbo-info-light);\n border-color: var(--limbo-info);\n color: var(--limbo-info);\n }\n \n /* Overlay y modal con variables */\n .limbo-overlay {\n background-color: var(--limbo-bg-overlay);\n backdrop-filter: blur(4px);\n }\n \n .limbo-modal {\n background-color: var(--limbo-bg-card);\n border-radius: var(--limbo-radius-xl);\n box-shadow: var(--limbo-shadow-xl);\n color: var(--limbo-text-primary);\n }\n \n /* Responsive design con variables */\n @media (max-width: 640px) {\n .limbo-component {\n font-size: var(--limbo-font-size-sm);\n }\n }\n \n /* Modo reducido de movimiento */\n @media (prefers-reduced-motion: reduce) {\n [data-limbo-theme] {\n transition: none;\n }\n \n .limbo-component,\n .limbo-input,\n .limbo-button {\n transition: none;\n }\n }\n \n /* Esquemas de color automático */\n @media (prefers-color-scheme: dark) {\n :root:not([data-limbo-theme]) {\n color-scheme: dark;\n }\n }\n \n @media (prefers-color-scheme: light) {\n :root:not([data-limbo-theme]) {\n color-scheme: light;\n }\n }\n \n /* ===================================\n MODO COMPACTO - ESTILOS ESPECÍFICOS \n =================================== */\n \n /* Activación del modo compacto por atributo o clase */\n [data-limbo-compact="true"],\n .limbo-compact-mode {\n /* Componentes base más pequeños */\n --limbo-font-size-md: var(--limbo-font-size-compact-md);\n --limbo-font-size-sm: var(--limbo-font-size-compact-sm);\n --limbo-font-size-lg: var(--limbo-font-size-compact-lg);\n --limbo-spacing: var(--limbo-spacing-compact);\n --limbo-radius-md: var(--limbo-radius-compact);\n --limbo-gap: var(--limbo-gap-compact);\n }\n \n /* Botones compactos */\n [data-limbo-compact="true"] .limbo-button,\n .limbo-compact-mode .limbo-button {\n height: var(--limbo-button-height-compact);\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact);\n min-width: auto;\n }\n \n /* Inputs compactos */\n [data-limbo-compact="true"] .limbo-input,\n .limbo-compact-mode .limbo-input {\n height: var(--limbo-input-height-compact);\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-md);\n border-radius: var(--limbo-radius-compact);\n }\n \n /* Cards compactas */\n [data-limbo-compact="true"] .limbo-card,\n .limbo-compact-mode .limbo-card {\n padding: var(--limbo-card-padding-compact);\n border-radius: var(--limbo-radius-compact-lg);\n }\n \n /* Modales compactos */\n [data-limbo-compact="true"] .limbo-modal,\n .limbo-compact-mode .limbo-modal {\n padding: var(--limbo-modal-padding-compact);\n border-radius: var(--limbo-radius-compact-lg);\n max-width: 90vw;\n max-height: 90vh;\n }\n \n /* Tabs compactas */\n [data-limbo-compact="true"] .limbo-tabs,\n .limbo-compact-mode .limbo-tabs {\n gap: var(--limbo-gap-compact-sm);\n }\n \n [data-limbo-compact="true"] .limbo-tab,\n .limbo-compact-mode .limbo-tab {\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact-sm);\n }\n \n /* Gallery compacta */\n [data-limbo-compact="true"] .limbo-gallery,\n .limbo-compact-mode .limbo-gallery {\n gap: var(--limbo-gap-compact-sm);\n }\n \n [data-limbo-compact="true"] .limbo-gallery-item,\n .limbo-compact-mode .limbo-gallery-item {\n border-radius: var(--limbo-radius-compact);\n min-height: 120px; /* Más pequeño para móviles */\n }\n \n /* Notificaciones compactas */\n [data-limbo-compact="true"] .limbo-notification,\n .limbo-compact-mode .limbo-notification {\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact);\n }\n \n /* Progress indicators compactos */\n [data-limbo-compact="true"] .limbo-progress,\n .limbo-compact-mode .limbo-progress {\n height: 3px; /* Más delgado */\n }\n \n [data-limbo-compact="true"] .limbo-progress-circular,\n .limbo-compact-mode .limbo-progress-circular {\n width: 20px;\n height: 20px;\n }\n \n /* Auto-activación en pantallas pequeñas */\n @media (max-width: 768px) {\n :root[data-limbo-compact="auto"],\n .limbo-component[data-limbo-compact="auto"] {\n /* Aplicar automáticamente estilos compactos */\n --limbo-font-size-md: var(--limbo-font-size-compact-md);\n --limbo-font-size-sm: var(--limbo-font-size-compact-sm);\n --limbo-spacing: var(--limbo-spacing-compact);\n --limbo-radius-md: var(--limbo-radius-compact);\n --limbo-gap: var(--limbo-gap-compact);\n }\n \n /* Modal full-screen en móvil cuando es compacto */\n [data-limbo-compact="auto"] .limbo-modal,\n [data-limbo-compact="true"] .limbo-modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n max-width: 100vw;\n max-height: 100vh;\n border-radius: 0;\n margin: 0;\n }\n \n /* Tabs en accordion en móvil */\n [data-limbo-compact="auto"] .limbo-tabs,\n [data-limbo-compact="true"] .limbo-tabs {\n flex-direction: column;\n width: 100%;\n }\n \n /* Gallery de 2 columnas en móvil */\n [data-limbo-compact="auto"] .limbo-gallery,\n [data-limbo-compact="true"] .limbo-gallery {\n grid-template-columns: 1fr 1fr;\n gap: var(--limbo-gap-compact);\n }\n }\n \n /* Touch targets más grandes en móviles */\n @media (max-width: 768px) and (pointer: coarse) {\n [data-limbo-compact="auto"] .limbo-button,\n [data-limbo-compact="true"] .limbo-button {\n min-height: 44px; /* Tamaño mínimo de toque recomendado */\n padding: var(--limbo-spacing-compact) var(--limbo-spacing-compact-lg);\n }\n \n [data-limbo-compact="auto"] .limbo-tab,\n [data-limbo-compact="true"] .limbo-tab {\n min-height: 44px;\n }\n }\n `,t=document.createElement("style");t.id="limbo-theme-styles",t.textContent=e,document.head.appendChild(t)}applyTheme(e,t={}){const n=this._getTheme(e);if(!n)return console.warn(`Theme '${e}' not found`),!1;const r=this.currentTheme;return this._applyThemeVariables(n,t.scope),this._updateThemeAttributes(n.name),this.config.theme.storage&&!t.temporary&&this._saveThemePreference(n.name),this.currentTheme=n.name,this._triggerChangeCallbacks(n.name,r),!0}toggleTheme(e="light",t="dark"){const n=this.currentTheme===e?t:e;return this.applyTheme(n)}applyAutoTheme(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return this.applyTheme(e)}registerTheme(e,t){const n={name:e,displayName:t.displayName||e,variables:t.variables||{},extends:t.extends||null,...t};if(n.extends){const e=this._getTheme(n.extends);e&&(n.variables={...e.variables,...n.variables})}return this.customThemes.set(e,n),this}removeTheme(e){if(this.config.presets[e])return console.warn(`Cannot remove predefined theme: ${e}`),!1;const t=this.customThemes.delete(e);return t&&this.currentTheme===e&&this.applyTheme(this.config.inheritance.fallbackTheme),t}getAvailableThemes(){const e=Object.keys(this.config.presets),t=Array.from(this.customThemes.keys());return{presets:e,custom:t,all:[...e,...t]}}getCurrentTheme(){return{name:this.currentTheme,theme:this._getTheme(this.currentTheme),isCustom:this.customThemes.has(this.currentTheme),variables:this._getCurrentVariables()}}enableCompactMode(e={}){const t={element:document.documentElement,persist:!0,...e};return t.element.setAttribute("data-limbo-compact","true"),t.element.classList.add("limbo-compact-mode"),this.isCompactMode=!0,t.persist&&this.config.compact.persistPreference&&this._saveCompactPreference(!0),this._triggerCompactChange(!0),this}disableCompactMode(e={}){const t={element:document.documentElement,persist:!0,...e};return t.element.setAttribute("data-limbo-compact","false"),t.element.classList.remove("limbo-compact-mode"),this.isCompactMode=!1,t.persist&&this.config.compact.persistPreference&&this._saveCompactPreference(!1),this._triggerCompactChange(!1),this}toggleCompactMode(e={}){return this.isCompactMode?this.disableCompactMode(e):this.enableCompactMode(e)}applyAutoCompactMode(){const e=this._shouldUseCompactMode();return e&&!this.isCompactMode?this.enableCompactMode({persist:!1}):!e&&this.isCompactMode&&this.disableCompactMode({persist:!1}),this}getCompactState(){return{isEnabled:this.isCompactMode,isAuto:this.config.compact.auto,breakpoint:this.config.compact.breakpoint,currentViewport:window.innerWidth,shouldBeCompact:this._shouldUseCompactMode()}}_shouldUseCompactMode(){if(!this.config.compact.auto)return this.config.compact.enabled;const e=window.innerWidth<=this.config.compact.breakpoint,t=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),n="ontouchstart"in window||navigator.maxTouchPoints>0;return!(!this.config.compact.forceOnMobile||!t&&!n)||e}_saveCompactPreference(e){try{localStorage.setItem("limbo-compact-preference",e.toString())}catch(e){console.warn("Could not save compact preference:",e)}}_loadCompactPreference(){try{return"true"===localStorage.getItem("limbo-compact-preference")}catch(e){return console.warn("Could not load compact preference:",e),null}}_triggerCompactChange(e){this.changeCallbacks.forEach(t=>{try{t({type:"compact",isCompact:e,viewport:window.innerWidth,timestamp:Date.now()})}catch(e){console.error("Error in compact mode change callback:",e)}})}_inheritPortalTheme(){const e=this._detectPortalTheme();return e?(this.registerTheme("portal-inherited",e),"portal-inherited"):null}_detectPortalTheme(){const e={name:"portal-detected",displayName:"Tema del Portal",variables:{}};for(const t of this.config.inheritance.portalSelectors){const n=document.querySelector(t);if(n){const t=this._extractCSSVariables(n);Object.keys(t).length>0&&(e.variables={...e.variables,...t});const r=n.getAttribute("data-theme")||n.getAttribute("class")?.match(/theme-(\w+)/)||n.getAttribute("class")?.match(/(\w+)-theme/);r&&(e.detectedName=Array.isArray(r)?r[1]:r)}}return Object.keys(e.variables).length>0?e:null}_extractCSSVariables(e){const t={},n=getComputedStyle(e);return["primary","primary-hover","primary-light","primary-dark","bg-primary","bg-secondary","bg-tertiary","bg-card","bg-input","text-primary","text-secondary","text-tertiary","text-inverse","border-light","border-medium","border-strong","border-focus","success","error","warning","info","shadow-sm","shadow-md","shadow-lg","shadow-xl","radius-sm","radius-md","radius-lg","radius-xl"].forEach(e=>{const r=`--limbo-${e}`,a=n.getPropertyValue(r).trim();a&&(t[r]=a)}),["--primary-color","--background-color","--text-color","--border-color","--accent-color","--surface-color"].forEach(e=>{const r=n.getPropertyValue(e).trim();if(r){const n=this._mapGenericToLimbo(e,r);n&&Object.assign(t,n)}}),t}_mapGenericToLimbo(e,t){return{"--primary-color":{"--limbo-primary":t},"--background-color":{"--limbo-bg-primary":t},"--text-color":{"--limbo-text-primary":t},"--border-color":{"--limbo-border-light":t},"--accent-color":{"--limbo-primary":t},"--surface-color":{"--limbo-bg-card":t}}[e]||null}_applyInitialTheme(){let e=this.config.inheritance.fallbackTheme;if(this.config.theme.storage){const t=this._loadThemePreference();t&&this._getTheme(t)&&(e=t)}const t=document.documentElement.getAttribute("data-limbo-theme");t&&this._getTheme(t)&&(e=t);const n=this._inheritPortalTheme();n&&(e=n),this.config.theme.auto&&"auto"===e&&(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),this.applyTheme(e,{temporary:!1})}_applyInitialCompactMode(){let e=!1;if(this.config.compact.persistPreference){const t=this._loadCompactPreference();null!==t&&(e=t)}const t=document.documentElement.getAttribute("data-limbo-compact");"true"===t?e=!0:"false"===t&&(e=!1),("auto"===t||this.config.compact.auto)&&(e=this._shouldUseCompactMode()),e?this.enableCompactMode({persist:!1}):this.disableCompactMode({persist:!1})}_applyThemeVariables(e,t=document.documentElement){const n="string"==typeof t?document.querySelector(t):t;n?(Object.entries(e.variables).forEach(([e,t])=>{n.style.setProperty(e,t),this.appliedStyles.add(`${n.tagName}:${e}`)}),this.themeCache.set(e.name,{theme:e,appliedAt:Date.now(),scope:n})):console.warn("Theme scope element not found")}_updateThemeAttributes(e){document.documentElement.setAttribute("data-limbo-theme",e),document.documentElement.classList.remove("limbo-theme-light","limbo-theme-dark","limbo-theme-auto"),document.documentElement.classList.add(`limbo-theme-${e}`),this._updateMetaThemeColor(e)}_updateMetaThemeColor(e){const t=this._getTheme(e);if(!t)return;const n=t.variables["--limbo-primary"]||"#3b82f6";let r=document.querySelector('meta[name="theme-color"]');r||(r=document.createElement("meta"),r.name="theme-color",document.head.appendChild(r)),r.content=n}_getTheme(e){return this.config.presets[e]?this.config.presets[e]:this.customThemes.has(e)?this.customThemes.get(e):null}_getCurrentVariables(){const e=this._getTheme(this.currentTheme);if(!e)return{};const t=getComputedStyle(document.documentElement),n={};return Object.keys(e.variables).forEach(e=>{n[e]=t.getPropertyValue(e).trim()}),n}_saveThemePreference(e){try{localStorage.setItem("limbo-theme-preference",e)}catch(e){console.warn("Could not save theme preference:",e)}}_loadThemePreference(){try{return localStorage.getItem("limbo-theme-preference")}catch(e){return console.warn("Could not load theme preference:",e),null}}_loadCustomThemes(){try{const e=localStorage.getItem("limbo-custom-themes");if(e){const t=JSON.parse(e);Object.entries(t).forEach(([e,t])=>{this.customThemes.set(e,t)})}}catch(e){console.warn("Could not load custom themes:",e)}}_saveCustomThemes(){try{const e=Object.fromEntries(this.customThemes);localStorage.setItem("limbo-custom-themes",JSON.stringify(e))}catch(e){console.warn("Could not save custom themes:",e)}}_setupObservers(){this.config.theme.detectSystem&&this._setupSystemObserver(),this.config.theme.storage&&this._setupStorageObserver(),this._setupMutationObserver(),this.config.compact.auto&&this._setupViewportObserver()}_setupSystemObserver(){const e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener("change",e=>{if("auto"===this.currentTheme||this.config.theme.auto){const t=e.matches?"dark":"light";this.applyTheme(t,{temporary:!0})}}),this.mediaQueryObserver=e}_setupStorageObserver(){const e=e=>{"limbo-theme-preference"===e.key&&e.newValue!==this.currentTheme&&this._getTheme(e.newValue)&&this.applyTheme(e.newValue)};window.addEventListener("storage",e),this.storageListener=e}_setupMutationObserver(){const e=new MutationObserver(e=>{e.forEach(e=>{if("attributes"===e.type&&"data-limbo-theme"===e.attributeName){const t=e.target.getAttribute("data-limbo-theme");t&&t!==this.currentTheme&&this._getTheme(t)&&this.applyTheme(t)}})});e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-limbo-theme"]}),this.mutationObserver=e}_setupViewportObserver(){const e=`(max-width: ${this.config.compact.breakpoint}px)`,t=window.matchMedia(e);t.addEventListener("change",()=>{("auto"===document.documentElement.getAttribute("data-limbo-compact")||this.config.compact.auto)&&this.applyAutoCompactMode()}),this.compactObserver=t,window.addEventListener("orientationchange",()=>{setTimeout(()=>{("auto"===document.documentElement.getAttribute("data-limbo-compact")||this.config.compact.auto)&&this.applyAutoCompactMode()},100)})}onThemeChange(e){return this.changeCallbacks.add(e),()=>this.changeCallbacks.delete(e)}_triggerChangeCallbacks(e,t){this.changeCallbacks.forEach(n=>{try{n({theme:e,previousTheme:t,themeData:this._getTheme(e),variables:this._getCurrentVariables()})}catch(e){console.error("Error in theme change callback:",e)}})}generateThemeFromColors(e,t){const n={name:e,displayName:e,variables:{}};t.primary&&(n.variables["--limbo-primary"]=t.primary,n.variables["--limbo-primary-hover"]=this._darkenColor(t.primary,10),n.variables["--limbo-primary-light"]=this._lightenColor(t.primary,40),n.variables["--limbo-primary-dark"]=this._darkenColor(t.primary,20)),t.background&&(n.variables["--limbo-bg-primary"]=t.background,n.variables["--limbo-bg-secondary"]=this._lightenColor(t.background,5),n.variables["--limbo-bg-tertiary"]=this._lightenColor(t.background,10),n.variables["--limbo-bg-card"]=t.background),t.text&&(n.variables["--limbo-text-primary"]=t.text,n.variables["--limbo-text-secondary"]=this._lightenColor(t.text,20),n.variables["--limbo-text-tertiary"]=this._lightenColor(t.text,40));const r=this._getTheme(this.config.inheritance.fallbackTheme);return r&&(n.variables={...r.variables,...n.variables}),this.registerTheme(e,n),n}_darkenColor(e,t){const n=parseInt(e.replace("#",""),16),r=Math.round(2.55*t),a=(n>>16)-r,o=(n>>8&255)-r,i=(255&n)-r;return"#"+(16777216+65536*(a<255?a<1?0:a:255)+256*(o<255?o<1?0:o:255)+(i<255?i<1?0:i:255)).toString(16).slice(1)}_lightenColor(e,t){const n=parseInt(e.replace("#",""),16),r=Math.round(2.55*t),a=(n>>16)+r,o=(n>>8&255)+r,i=(255&n)+r;return"#"+(16777216+65536*(a<255?a<1?0:a:255)+256*(o<255?o<1?0:o:255)+(i<255?i<1?0:i:255)).toString(16).slice(1)}_deepMerge(e,t){const n={...e};return Object.keys(t).forEach(r=>{t[r]&&"object"==typeof t[r]&&!Array.isArray(t[r])?n[r]=this._deepMerge(e[r]||{},t[r]):n[r]=t[r]}),n}getThemeInfo(){return{current:this.getCurrentTheme(),available:this.getAvailableThemes(),compact:this.getCompactState(),config:this.config,isInitialized:this.isInitialized,cache:{themes:this.themeCache.size,applied:this.appliedStyles.size},observers:{system:!!this.mediaQueryObserver,storage:!!this.storageListener,mutation:!!this.mutationObserver,viewport:!!this.compactObserver}}}debug(){return console.table(this.getThemeInfo()),this.getThemeInfo()}destroy(){this.mediaQueryObserver&&this.mediaQueryObserver.removeEventListener("change",this._setupSystemObserver),this.storageListener&&window.removeEventListener("storage",this.storageListener),this.mutationObserver&&this.mutationObserver.disconnect(),this.compactObserver&&this.compactObserver.removeEventListener("change",this._setupViewportObserver),this.changeCallbacks.clear(),this.themeCache.clear(),this.appliedStyles.clear(),this._saveCustomThemes();const e=document.getElementById("limbo-theme-styles");e&&e.remove(),this.isInitialized=!1}}const on=new class{constructor(){this.config=new n,this.instances=new Jt,this.autoInputs=new en,this.events=new tn,this.modals=new nn,this.theme=new an,this.containerQueryDetector=U,this._setupInternalListeners(),this._initializeContainerQueries()}configure(e){if(this.config.setGlobal(e),e.auth||e.apiKey)try{!function(e){var t;(t={auth:e.getAuthConfig(),prod:e.get("prod")||!1}).auth?(X.auth={...X.auth,...t.auth},X.prod=t.prod||X.prod,"jwt"===X.auth.authMode&&X.auth.apiKey&&(Z||(Z=new Y))):X={...X,...t,auth:{...X.auth,authMode:t.apiKey?"legacy":"jwt"}}}(this.config)}catch(e){console.warn("Failed to configure JWT authentication:",e)}return this.config}create(e){const t=this.config.merge(e);return this.instances.create(t,this.events,this.modals)}configureAutoInputs(e){return this.autoInputs.configure(e,this.config,this.events)}setTheme(e){return e&&(this.config.set("theme",e),this.theme.setTheme(e),this.events.emit("theme:changed",{theme:e})),this}getTheme(){return this.theme.getCurrentTheme()}scanAndActivate(e=null){const t=this.autoInputs.config?.dataset||"data-limbo-input-file",n=e||`[${t}]`,r=document.querySelectorAll(n);if(0===r.length)return{found:0,processed:0,skipped:0};let a=0,o=0;return r.forEach(e=>{try{this.autoInputs._processInput(e),a++}catch(t){console.warn(`⚠️ Limbo: Error procesando input ${e.id||e.name}:`,t),o++}}),this.events.emit("limbo:scanCompleted",{found:r.length,processed:a,skipped:o,inputs:Array.from(r)}),{found:r.length,processed:a,skipped:o}}_initializeContainerQueries(){this.containerQueryDetector.observeResize(),setTimeout(()=>{document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.containerQueryDetector.applyResponsiveClasses(e)})},100)}rescan(e=document){const t=this.autoInputs.config?.dataset||"data-limbo-input-file",n=e.querySelectorAll(`[${t}]`);let r=0;return n.forEach(e=>{if(!this.autoInputs.instances.has(this.autoInputs._getInputId(e)))try{this.autoInputs._processInput(e),r++}catch(e){console.warn("⚠️ Limbo: Error procesando nuevo input:",e)}}),r}init(e){const t=this._mapLegacyOptions(e);return this.create(t)}getInstances(){return this.instances.getAll()}destroy(){this.instances.destroyAll(),this.autoInputs.cleanup(),this.events.cleanup(),this.theme.removeTheme()}_mapLegacyOptions(e){return{container:e.container||"#image-manager",mode:"embed",features:["gallery","upload","cropper"],apiKey:e.apiKey,prod:e.prod||!1,url:void 0===e.url||e.url}}_setupInternalListeners(){this.events.on("autoInputs:modalRequest",({config:e,callback:t})=>{this._handleAutoInputModalRequest({config:e,callback:t})})}_handleAutoInputModalRequest({config:e,callback:t}){const n=this.create({...e,mode:"modal",autoDestroy:!0,callbacks:{onSelect:e=>{t(e),n.close()},onClose:()=>{}}});n.open()}};return"undefined"!=typeof window&&(window.Limbo=on),"undefined"!=typeof window&&document.querySelector("#root")&&(on.configure({apiKey:"pk_b23851734fb7601883bf4301b129a82f",prod:!1}),on.create({container:"#root",mode:"embed",modeUI:"full",features:["gallery","upload","cropper"],title:"Limbo Image Manager - Desarrollo",url:!0}),on.configureAutoInputs({dataset:"data-limbo-input-file",return:"url",features:["gallery","upload","cropper"],modeUI:"full",modalSize:"large",title:"Seleccionar imagen",crops:"free",allowDelete:!1})),on});
49
+ Lt.$define(),Vt.$define(),Bt.$define(),Ut.$define(),Mt.$define(),Wt.$define(),Ft.$define(),Xt.$define();class Zt{constructor(e,t,n){this.canvasRef=e,this.imageRef=t,this.selectionRef=n}get canvasElement(){return this.canvasRef?.current}get image(){return this.imageRef?.current}get selectionElement(){return this.selectionRef?.current}get isReady(){return!!(this.canvasElement&&this.image&&this.selectionElement)}transform={move:(e,t)=>{if(!this.image)return!1;try{return this.image.$move(e,t),!0}catch(e){return console.warn("Error moving image:",e),!1}},moveTo:(e,t)=>{if(!this.image)return!1;try{return this.image.$moveTo(e,t),!0}catch(e){return console.warn("Error moving image to position:",e),!1}},zoom:e=>{if(!this.image)return!1;try{return this.image.$zoom(e),!0}catch(e){return console.warn("Error zooming image:",e),!1}},rotate:e=>{if(!this.image)return!1;try{const t=e*Math.PI/180;return this.image.$rotate(t),!0}catch(e){return console.warn("Error rotating image:",e),!1}},scale:(e,t=e)=>{if(!this.image)return!1;try{return this.image.$scale(e,t),!0}catch(e){return console.warn("Error scaling image:",e),!1}},center:(e="contain")=>{if(!this.image)return!1;try{return this.image.$center(e),!0}catch(e){return console.warn("Error centering image:",e),!1}},reset:()=>{if(!this.image)return!1;try{return this.image.$resetTransform(),!0}catch(e){return console.warn("Error resetting transform:",e),!1}},getTransform:()=>{if(!this.image)return null;try{return this.image.$getTransform()}catch(e){return console.warn("Error getting transform:",e),null}},setTransform:(e,t,n,r,a,o)=>{if(!this.image)return!1;try{return this.image.$setTransform(e,t,n,r,a,o),!0}catch(e){return console.warn("Error setting transform:",e),!1}},resetZoom:()=>{if(!this.image)return!1;try{const e=this.image.$getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e,l=Math.sqrt(t*t+n*n),s=Math.sqrt(r*r+a*a),c=t/l,u=n/l,d=r/s,f=a/s;return this.image.$setTransform(c,u,d,f,o,i),!0}catch(e){return console.warn("Error resetting zoom:",e),!1}},setZoom:e=>{if(!this.image||e<=0)return!1;try{const t=this.image.$getTransform();if(!t)return!1;const[n,r,a,o,i,l]=t,s=Math.sqrt(n*n+r*r),c=Math.sqrt(a*a+o*o),u=n/s*e,d=r/s*e,f=a/c*e,p=o/c*e;return this.image.$setTransform(u,d,f,p,i,l),!0}catch(e){return console.warn("Error setting zoom level:",e),!1}},getZoom:()=>{if(!this.image)return 1;try{const e=this.image.$getTransform();if(!e)return 1;const[t,n]=e;return Math.sqrt(t*t+n*n)}catch(e){return console.warn("Error getting zoom level:",e),1}},fitToCanvas:(e=.1)=>{if(!this.image||!this.canvasElement)return!1;try{const t=this.canvasElement.getBoundingClientRect();let n=this.image.querySelector("img")||this.image;if(!n?.naturalWidth||!n?.naturalHeight)return!1;const r=1-e,a=t.width*r/n.naturalWidth,o=t.height*r/n.naturalHeight,i=Math.min(a,o,1);return this.transform.setZoom(i)}catch(e){return console.warn("Error fitting to canvas:",e),!1}}};selection={center:()=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$center(),!0}catch(e){return console.warn("Error centering selection:",e),!1}},reset:()=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$reset(),!0}catch(e){return console.warn("Error resetting selection:",e),!1}},setCoverage:e=>{if(!this.selectionElement||e<0||e>1)return!1;try{return this.selectionElement.initialCoverage=e,this.selectionElement.$reset(),!0}catch(e){return console.warn("Error setting coverage:",e),!1}},setAspectRatio:e=>{if(!this.selectionElement)return!1;try{let t;if(""===e||null==e)t=NaN;else if("number"==typeof e)t=e;else{if("string"!=typeof e)return console.warn("Unsupported aspect ratio type:",typeof e,e),!1;if(e.includes("/")){const[n,r]=e.split("/").map(e=>parseFloat(e.trim()));if(isNaN(n)||isNaN(r)||0===r)return console.warn("Invalid aspect ratio format:",e),!1;t=n/r}else if(t=parseFloat(e),isNaN(t))return console.warn("Invalid aspect ratio format:",e),!1}return this.selectionElement.aspectRatio=t,this.selectionElement.$render(),!0}catch(e){return console.warn("Error setting aspect ratio:",e),!1}},move:(e,t)=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$move(e,t),!0}catch(e){return console.warn("Error moving selection:",e),!1}},zoom:e=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$zoom(e),!0}catch(e){return console.warn("Error zooming selection:",e),!1}},change:(e,t,n,r,a)=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$change(e,t,n,r,a),!0}catch(e){return console.warn("Error changing selection:",e),!1}},toCanvas:async(e={})=>{if(!this.selectionElement)return null;try{const t={width:800,height:600,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",...e};return await this.selectionElement.$toCanvas(t)}catch(e){return console.warn("Error exporting to canvas:",e),null}},getData:()=>{if(!this.selectionElement)return null;try{return{x:this.selectionElement.x,y:this.selectionElement.y,width:this.selectionElement.width,height:this.selectionElement.height,aspectRatio:this.selectionElement.aspectRatio}}catch(e){return console.warn("Error getting selection data:",e),null}}};canvas={setBackground:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.background=e,!0}catch(e){return console.warn("Error setting background:",e),!1}},setScaleStep:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.scaleStep=e,!0}catch(e){return console.warn("Error setting scale step:",e),!1}},setDisabled:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.disabled=e,!0}catch(e){return console.warn("Error setting disabled state:",e),!1}}};utils={flipHorizontal:()=>{const e=this.transform.getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e;return this.transform.setTransform(-t,n,r,a,o,i)},flipVertical:()=>{const e=this.transform.getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e;return this.transform.setTransform(t,n,r,-a,o,i)},setupInitialView:async(e={})=>{const{paspartuFactor:t=.85,retries:n=3,retryDelay:r=200}=e;return new Promise(e=>{const a=(o=0)=>{if(!this.isReady)return o<n?void setTimeout(()=>a(o+1),r):void e(!1);try{const i=this.canvasElement.getBoundingClientRect();let l=this.image.querySelector("img")||this.image;if(!l?.naturalWidth||!l?.naturalHeight)return o<n?void setTimeout(()=>a(o+1),r):(this.transform.center(),void e(!1));if(i.width>0&&i.height>0){const n=i.width*t/l.naturalWidth,r=i.height*t/l.naturalHeight,a=Math.min(n,r,1);this.transform.setTransform(a,0,0,a,0,0)?setTimeout(()=>{this.transform.center(),this.selection.center(),e(!0)},100):(this.transform.reset(),setTimeout(()=>{a<1&&this.transform.scale(a),setTimeout(()=>{this.transform.center(),this.selection.center(),e(!0)},100)},100))}else this.transform.center(),e(!1)}catch(t){console.warn("Error in setup:",t),this.transform.center(),e(!1)}};a()})},resetAll:()=>{const e={transform:this.transform.reset(),selection:this.selection.reset(),center:!1};return setTimeout(()=>{e.center=this.transform.center()&&this.selection.center()},100),e},checkExportability:async()=>{try{return!!await this.selection.toCanvas({width:1,height:1})}catch{return!1}},resetZoomOnly:()=>this.transform.resetZoom(),getZoomInfo:()=>{const e=this.transform.getZoom();return{current:e,isZoomedIn:e>1,isZoomedOut:e<1,percentage:Math.round(100*e)}},setBackground:e=>this.canvas.setBackground(e)};setupEventListeners(e={}){const{onSelectionChange:t,onImageTransform:n,onAction:r,onActionStart:a,onActionMove:o,onActionEnd:i}=e,l=[];if(t&&this.selectionElement){const e=e=>{t({x:e.detail.x,y:e.detail.y,width:e.detail.width,height:e.detail.height})};this.selectionElement.addEventListener("change",e),l.push(()=>{this.selectionElement&&this.selectionElement.removeEventListener("change",e)})}if(n&&this.image){const e=e=>{n({matrix:e.detail.matrix,oldMatrix:e.detail.oldMatrix})};this.image.addEventListener("transform",e),l.push(()=>{this.image&&this.image.removeEventListener("transform",e)})}if(this.canvasElement){if(r){const e=e=>r(e.detail);this.canvasElement.addEventListener("action",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("action",e)})}if(a){const e=e=>a(e.detail);this.canvasElement.addEventListener("actionstart",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionstart",e)})}if(o){const e=e=>o(e.detail);this.canvasElement.addEventListener("actionmove",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionmove",e)})}if(i){const e=e=>i(e.detail);this.canvasElement.addEventListener("actionend",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionend",e)})}}return()=>{l.forEach(e=>e())}}}function en({image:e,onSave:t,onCancel:n,onDelete:r,deleting:a=!1,onVariantCreated:o=null}){const[i,l]=d.useState(!1),[s,c]=d.useState(null),[u,f]=d.useState(!1),[p,h]=d.useState(""),[m,g]=d.useState(!0),[b,y]=d.useState(!0),[v,w]=d.useState({horizontal:!1,vertical:!1}),[k,x]=d.useState(!1),[S,C]=d.useState({current:1,percentage:100}),E=window.limboCore?.accessibilityManager,_=d.useMemo(()=>{const e=window.limboCore?.config?.getGlobal()||{};return e.cropper?.allowedAspectRatios||[{label:"📐 Libre",value:"",ratio:null},{label:"⬜ 1:1 (Cuadrado)",value:"1",ratio:1},{label:"📺 4:3 (Clásico)",value:"4/3",ratio:4/3},{label:"🖥️ 16:9 (Widescreen)",value:"16/9",ratio:16/9},{label:"📷 3:2 (Foto)",value:"3/2",ratio:1.5},{label:"📱 2:3 (Retrato)",value:"2/3",ratio:2/3},{label:"📲 9:16 (Stories)",value:"9/16",ratio:9/16}]},[]),{createCropVariant:T,loading:N,error:P}=Jt(),R=((e,t={})=>{const n=d.useRef(null),r=d.useRef(null),a=d.useRef(null),o=d.useRef(null),[i,l]=d.useState(null),[s,c]=d.useState(null),[u,f]=d.useState(!1),[p,h]=d.useState(!0),[m,g]=d.useState(0),b={aspectRatio:"",shade:!0,paspartuFactor:.85,...t};d.useEffect(()=>{n.current&&r.current&&a.current&&(o.current=new Zt(n,r,a),f(!0))},[]),d.useEffect(()=>{if(o.current)return o.current.setupEventListeners({onSelectionChange:e=>{l(e)},onImageTransform:()=>{g(e=>e+1)}})},[u]),d.useEffect(()=>{o.current&&e&&(async()=>{o.current.selection.setAspectRatio(b.aspectRatio),o.current.canvas.setBackground(b.shade),await o.current.utils.setupInitialView({paspartuFactor:b.paspartuFactor});const e=await o.current.utils.checkExportability();h(e);const t=r.current?.querySelector("img")||r.current;t?.naturalWidth&&t?.naturalHeight&&c({naturalWidth:t.naturalWidth,naturalHeight:t.naturalHeight,currentWidth:t.width,currentHeight:t.height})})()},[e,b.aspectRatio,b.shade,b.paspartuFactor]);const y=d.useCallback(()=>({move:(e,t)=>o.current?.transform.move(e,t)||!1,zoom:e=>o.current?.transform.zoom(e)||!1,rotate:e=>o.current?.transform.rotate(e)||!1,center:()=>o.current?.transform.center()||!1,reset:()=>o.current?.transform.reset()||!1,resetZoom:()=>o.current?.transform.resetZoom()||!1,setZoom:e=>o.current?.transform.setZoom(e)||!1,getZoom:()=>o.current?.transform.getZoom()||1,fitToCanvas:e=>o.current?.transform.fitToCanvas(e)||!1,flipHorizontal:()=>o.current?.utils.flipHorizontal()||!1,flipVertical:()=>o.current?.utils.flipVertical()||!1}),[]),v=d.useCallback(()=>({center:()=>o.current?.selection.center()||!1,reset:()=>o.current?.selection.reset()||!1,setCoverage:e=>o.current?.selection.setCoverage(e)||!1,setAspectRatio:e=>o.current?.selection.setAspectRatio(e)||!1,toCanvas:e=>o.current?.selection.toCanvas(e)||Promise.resolve(null)}),[]),w=d.useCallback(()=>({resetAll:()=>{if(o.current){const e=o.current.utils.resetAll();return l(null),e}return!1},setBackground:e=>o.current?.canvas.setBackground(e)||!1,resetZoomOnly:()=>o.current?.utils.resetZoomOnly()||!1,getZoomInfo:()=>o.current?.utils.getZoomInfo()||{current:1,percentage:100,isZoomedIn:!1,isZoomedOut:!1}}),[]);return{refs:{canvasRef:n,imageRef:r,selectionRef:a},state:{cropData:i,imageInfo:s,isReady:u,canExport:p,transformVersion:m},transform:y(),selection:v(),utils:w(),manager:o.current}})(e,{aspectRatio:p,showGrid:m,shade:b,initialCoverage:.5,paspartuFactor:.85}),{refs:z,state:j,transform:O,selection:A,utils:L}=R,{canvasRef:I,imageRef:D,selectionRef:M}=z,{cropData:$,imageInfo:U,canExport:H,transformVersion:W}=j,B=d.useMemo(()=>U||{naturalWidth:e.width||1920,naturalHeight:e.height||1080,currentWidth:e.width||1920,currentHeight:e.height||1080},[U,e.width,e.height]),V=d.useCallback(()=>g(e=>!e),[]),q=d.useCallback(()=>y(e=>!e),[]),K=d.useCallback(()=>x(e=>!e),[]),Q=d.useCallback(()=>O.center(),[O]),Y=d.useCallback(()=>A.center(),[A]),G=d.useCallback(()=>A.reset(),[A]),X=d.useCallback((e,t)=>O.move(e,t),[O]),J=d.useCallback(e=>O.zoom(e),[O]),Z=d.useCallback(e=>O.rotate(e),[O]),ee=d.useCallback(()=>{L.resetAll(),h(""),g(!0),y(!0),w({horizontal:!1,vertical:!1}),l(!1),c(null)},[L]),te=d.useCallback(e=>{A.setCoverage(e)},[A]),ne=d.useCallback(()=>L.resetZoomOnly(),[L]),re=d.useCallback(()=>{w(e=>{const t=!e.horizontal;return O.flipHorizontal(),{...e,horizontal:t}})},[O]),ae=d.useCallback(()=>{w(e=>{const t=!e.vertical;return O.flipVertical(),{...e,vertical:t}})},[O]),oe=d.useCallback(e=>{h(e);const t=_.find(t=>t.value===e),n=t?t.ratio:e;A.setAspectRatio(n)},[A,_]),ie=d.useCallback(async()=>{if(!H)return null;try{const e=await A.toCanvas({width:800,height:600,imageSmoothingEnabled:!0,imageSmoothingQuality:"high"});return e?e.toDataURL("image/jpeg",.9):null}catch(e){return console.warn("Error generating preview:",e),null}},[H,A]),le=d.useCallback(async()=>{if(i)return l(!1),c(null),void f(!1);if(H){l(!0),f(!0);try{const e=await ie();e?c(e):(l(!1),alert("No se puede exportar el recorte por restricciones de CORS en la imagen original."))}finally{f(!1)}}else alert("No se puede exportar el recorte por restricciones de CORS en la imagen original.")},[H,ie,i]),se=d.useCallback(async()=>{if(!H){const e="No se puede exportar el recorte por restricciones de CORS en la imagen original.";return E?.announceError(e),void alert(e)}if(!j.isReady){const e="El cropper aún no está inicializado. Espera un momento e inténtalo de nuevo.";return E?.announceError(e),void alert(e)}E?.announce("Creando variante recortada de la imagen");try{if(!$||!B)throw console.error("❌ Datos faltantes:",{cropData:$,effectiveImageInfo:B}),new Error(`No hay datos de recorte disponibles. CropData: ${!!$}, ImageInfo: ${!!B}`);if(!$.x&&0!==$.x||!$.y&&0!==$.y||!$.width||!$.height)throw console.error("❌ CropData inválido:",$),new Error("Los datos de recorte no tienen las propiedades esperadas");if(!B.naturalWidth||!B.naturalHeight)throw console.error("❌ ImageInfo inválido:",B),new Error("Los datos de imagen no tienen las dimensiones esperadas");const{x:n,y:r,width:a,height:i}=$,{naturalWidth:l,naturalHeight:s}=B,c={x:n/l,y:r/s,width:a/l,height:i/s},u=a/i;let d,f;const p=1200;u>1?(d=Math.min(a,p),f=Math.round(d/u)):(f=Math.min(i,p),d=Math.round(f*u));const h=Date.now(),[m]=e.filename.split("."),g=`${m}_crop_${h}`,b=await T(e.id,c,{name:g,width:d,height:f,format:"webp",quality:90});b&&(E?.announceSuccess(`Variante recortada creada: ${g}`),o?.(e.id,b),t(b))}catch(e){console.warn("Error creating crop variant:",e);const t="No se pudo crear la variante recortada. Inténtalo de nuevo.";E?.announceError(t),alert(t)}},[H,$,U,B,e.filename,e.id,T,t,o,E,j.isReady]);return d.useEffect(()=>{l(!1),c(null)},[e]),d.useEffect(()=>{R.manager&&(A.setAspectRatio(p),L.setBackground(b))},[p,b,R.manager,A,L]),d.useEffect(()=>{if(R.manager&&R.manager.utils)try{const e=R.manager.transform.getZoom(),t={current:e,isZoomedIn:e>1,isZoomedOut:e<1,percentage:Math.round(100*e)};C(t)}catch(e){console.warn("Error updating zoom info:",e)}},[W,R.manager]),d.useEffect(()=>{if(!i||!H)return;const e=setTimeout(async()=>{f(e=>!s&&!e||e);try{const e=await ie();e&&c(e)}finally{f(!1)}},300);return()=>{clearTimeout(e),f(!1)}},[$,W,i,H,ie,p,v,s]),d.useEffect(()=>{const e=I.current,t=t=>{if("Delete"===t.key||"Backspace"===t.key||"Backspace"===t.key&&t.metaKey||"Backspace"===t.key&&t.ctrlKey){const n=t.target;if(e&&(n===e||n===document.body||n===document.documentElement||"CROPPER-CANVAS"===n.tagName||"CROPPER-SELECTION"===n.tagName||"CROPPER-IMAGE"===n.tagName||"CROPPER-HANDLE"===n.tagName||"CROPPER-GRID"===n.tagName||n.closest("cropper-canvas")||e.contains(n)))return t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!1}};return document.addEventListener("keydown",t,!0),document.addEventListener("keyup",t,!0),window.addEventListener("keydown",t,!0),e&&e.addEventListener("keydown",t,!0),()=>{document.removeEventListener("keydown",t,!0),document.removeEventListener("keyup",t,!0),window.removeEventListener("keydown",t,!0),e&&e.removeEventListener("keydown",t,!0)}},[I]),e?F.jsxs("div",{className:"limbo-cropper-view px-2 border-2 border-gray-200/50 rounded-lg min-w-fit max-w-7xl mx-auto h-screen flex flex-col",children:[F.jsxs("div",{className:"limbo-cropper-header flex flex-col sm:flex-row justify-between items-start sm:items-center p-4 sm:p-6 pb-4 border-b border-gray-200 bg-white z-10 flex-shrink-0 gap-4 sm:gap-2",children:[F.jsxs("div",{className:"flex-1 min-w-0",children:[F.jsx("h2",{className:"text-lg sm:text-xl font-bold text-gray-800 truncate",children:"Recortar imagen"}),F.jsx("p",{className:"text-sm text-gray-600 mt-1 truncate",children:e.filename})]}),F.jsxs("div",{className:"flex gap-2 w-full sm:w-auto",children:[F.jsx("button",{onClick:n,disabled:N,className:"limbo-btn limbo-btn-secondary px-4 py-2 flex-1 sm:flex-initial",children:"Cancelar"}),F.jsx("button",{onClick:()=>r?.(e),disabled:a|N,className:"limbo-btn limbo-btn-danger px-4 py-2 flex-1 sm:flex-initial","aria-label":`Eliminar imagen ${e.filename}`,children:a?"Eliminando...":"Eliminar"})]})]}),F.jsxs("div",{className:"limbo-cropper-status bg-white border-gray-100 px-4 sm:px-6 py-2 pb-0 flex-shrink-0",children:[P&&F.jsxs("div",{className:"alert alert-danger mb-2 text-sm",role:"alert",children:[F.jsx("strong",{children:"Error:"})," ",P]}),$&&$.width>0&&F.jsxs("div",{className:"alert alert-info mb-2 text-sm",role:"status",children:[F.jsx("strong",{children:"Área:"})," ",Math.round($.width)," ×"," ",Math.round($.height)," px"]}),U&&F.jsxs("div",{className:"alert alert-secondary mb-2 text-sm",role:"status",children:[F.jsx("strong",{children:"Original:"})," ",U.naturalWidth," ×"," ",U.naturalHeight," px",U.currentWidth!==U.naturalWidth&&F.jsxs("span",{className:"ml-2 sm:ml-3 text-xs block sm:inline",children:["(Mostrada: ",Math.round(U.currentWidth)," ×"," ",Math.round(U.currentHeight)," px)"]})]}),!H&&F.jsx("div",{className:"alert alert-warning mb-2 text-sm",role:"alert",children:"⚠️ No se puede exportar por restricciones CORS"})]}),F.jsxs("div",{className:"flex flex-col md:flex-row flex-1 overflow-hidden rounded-lg gap-4 md:gap-0 cropper-main-content-area",children:[F.jsx("div",{className:"flex-1 relative min-w-0 order-2 md:order-1",children:F.jsxs("div",{className:"limbo-cropper-container absolute inset-2 sm:inset-4 bg-white rounded-lg border-2 border-gray-200 shadow-lg overflow-hidden",children:[i&&F.jsxs("div",{className:"absolute top-2 sm:top-4 right-2 sm:right-4 bg-white rounded-lg border border-gray-300 p-2 sm:p-3 z-50 shadow-xl w-48 sm:w-64 max-w-[calc(50%-1rem)] sm:max-w-[calc(50%-2rem)] md:min-w-1/4",children:[F.jsxs("div",{className:"flex justify-between items-center mb-2",children:[F.jsx("h3",{className:"text-xs font-semibold text-gray-700",children:"Vista previa"}),F.jsx("button",{onClick:()=>{l(!1),c(null)},className:"text-gray-400 hover:text-gray-600 p-1 -m-1","aria-label":"Cerrar vista previa",children:F.jsx("span",{className:"icon icon-close-small text-xs"})})]}),F.jsx("div",{className:"bg-gray-50 rounded p-2 flex justify-center items-center min-h-[80px] relative",children:s?F.jsxs("div",{className:"relative w-full h-full flex justify-center items-center",children:[F.jsx("img",{src:s,alt:"Vista previa del recorte",className:"max-w-full max-h-80 object-contain rounded shadow-sm"}),u&&F.jsx("div",{className:"absolute top-1 right-1 bg-blue-500 rounded-full p-1",children:F.jsx("div",{className:"animate-spin w-3 h-3 border border-white border-t-transparent rounded-full"})})]}):F.jsxs("div",{className:"flex flex-col items-center justify-center",children:[F.jsx("div",{className:"animate-spin w-6 h-6 border-2 border-blue-500 border-t-transparent rounded-full mb-2"}),F.jsx("span",{className:"text-xs text-gray-500",children:"Generando..."})]})})]}),F.jsxs("cropper-canvas",{ref:I,style:{width:"100%",height:"100%",display:"block"},background:!!b||void 0,id:"limbo-cropperjs-canvas",tabindex:"-1",onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||(e.preventDefault(),e.stopPropagation())},children:[F.jsx("cropper-image",{ref:D,src:e.url||e.path,alt:e.filename,id:"limbo-cropperjs-image",action:"move",crossOrigin:"anonymous",rotatable:!0,scalable:!0,skewable:!0,translatable:!0}),F.jsxs("cropper-selection",{ref:M,"initial-coverage":"0.5",movable:!0,resizable:!0,keyboard:"false",action:"move",style:{cursor:"move"},"data-prevent-delete":"true",tabindex:"-1",children:[m&&F.jsx("cropper-grid",{role:"grid",action:"move",covered:!0,bordered:!0}),F.jsx("cropper-handle",{action:"move",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"32px",height:"32px",zIndex:"10"}}),F.jsx("cropper-handle",{action:"n-resize"}),F.jsx("cropper-handle",{action:"e-resize"}),F.jsx("cropper-handle",{action:"s-resize"}),F.jsx("cropper-handle",{action:"w-resize"}),F.jsx("cropper-handle",{action:"ne-resize"}),F.jsx("cropper-handle",{action:"nw-resize"}),F.jsx("cropper-handle",{action:"se-resize"}),F.jsx("cropper-handle",{action:"sw-resize"})]})]})]})}),F.jsx("div",{className:"limbo-cropper-controls w-full md:w-80 bg-white border-t md:border-t-0 md:border-l border-gray-200 overflow-y-auto flex-shrink-0 order-1 md:order-2 max-h-96 md:max-h-none",children:F.jsxs("div",{className:"p-3 sm:p-4 space-y-3 sm:space-y-4 relative",children:[F.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4 md:sticky top-0 z-50",children:[F.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Acciones"}),F.jsxs("div",{className:"space-y-2",children:[F.jsxs("button",{onClick:le,disabled:N||!H,className:"w-full min-h-10 transition-colors "+(i?"limbo-btn limbo-btn-danger":"limbo-btn limbo-btn-primary"),"aria-label":"Generar vista previa del recorte",children:[F.jsx("span",{className:"icon "+(i?"icon-close-small-white":"icon-search-white")}),i?"Cerrar previa":"Vista previa"]}),F.jsx("button",{onClick:se,disabled:N||!$||!B||!H||!j.isReady,className:"w-full limbo-btn limbo-btn-success min-h-10","aria-label":"Guardar imagen recortada",children:N?F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"icon icon-save-white"})," ","Guardando..."]}):F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"icon icon-save-white"})," Guardar recorte"]})}),F.jsxs("button",{onClick:ee,disabled:N,className:"w-full limbo-btn limbo-btn-secondary min-h-10","aria-label":"Reiniciar todas las configuraciones",children:[F.jsx("span",{className:"icon icon-refresh-white"})," Reiniciar todo"]})]})]}),F.jsxs("div",{className:"bg-gradient-to-br from-brand-blue-50 to-green-50 rounded-lg border border-blue-200 shadow-sm",children:[F.jsxs("button",{onClick:K,className:"w-full p-4 flex items-center justify-between cursor-pointer hover:bg-blue-100/50 transition-colors rounded-t-lg","aria-expanded":k,"aria-label":"Mostrar/ocultar guía de uso",children:[F.jsxs("h3",{className:"text-lg font-semibold text-blue-800 flex items-center",children:[F.jsx("span",{className:"icon icon-lightbulb text-yellow-500 mr-2"}),"Guía de uso"]}),F.jsx("span",{className:"icon icon-arrow-down-blue transition-transform duration-200 "+(k?"rotate-180":"")})]}),k&&F.jsxs("div",{className:"px-4 pb-4 space-y-3",children:[F.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-blue-400",children:[F.jsx("h4",{className:"font-semibold text-blue-700 mb-2 text-sm",children:"🖱️ Navegación básica"}),F.jsxs("div",{className:"text-sm text-blue-600 space-y-1",children:[F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Arrastra la imagen:"})," Haz clic fuera del área de selección y arrastra"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Zoom:"})," Usa la rueda del ratón (fuera del área de selección)"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Vista completa:"}),' Botón "Reset zoom" para ajustar al tamaño óptimo']})]})]}),F.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-green-400",children:[F.jsx("h4",{className:"font-semibold text-green-700 mb-2 text-sm",children:"✂️ Área de selección"}),F.jsxs("div",{className:"text-sm text-green-600 space-y-1",children:[F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Mover selección:"})," Arrastra desde el centro",F.jsx("span",{className:"icon bg-white icon-move align-[middle!important] mx-1 border border-green-600 rounded-full"})]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Redimensionar:"})," Arrastra desde las esquinas o bordes"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Tamaños rápidos:"})," Usa los botones 50%, 70%, 90%, 100%"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Proporciones:"})," Selecciona ratios predefinidos (1:1, 16:9, etc.)"]})]})]}),F.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-purple-400",children:[F.jsx("h4",{className:"font-semibold text-purple-700 mb-2 text-sm",children:"⌨️ Atajos de teclado"}),F.jsxs("div",{className:"text-sm text-purple-600 space-y-1",children:[F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Flechas:"}),F.jsx("span",{className:"icon icon-arrow-right-box rotate-180 mx-1"}),F.jsx("span",{className:"icon icon-arrow-right-box mx-1"}),F.jsx("span",{className:"icon icon-arrow-right-box -rotate-90 mx-1"}),F.jsx("span",{className:"icon icon-arrow-right-box rotate-90 mx-1"}),"Mueven la selección (10px)"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Shift + Arrastrar:"})," Mantiene proporciones al redimensionar"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Ctrl + Rueda:"})," Zoom más preciso"]})]})]}),F.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-amber-400",children:[F.jsx("h4",{className:"font-semibold text-amber-700 mb-2 text-sm",children:"💡 Consejos profesionales"}),F.jsxs("div",{className:"text-sm text-amber-600 space-y-1",children:[F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Vista previa:"}),' Usa el botón "Vista previa" antes de guardar']}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Grid:"})," Actívalo para aplicar la regla de los tercios"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Transformaciones:"})," Rota y voltea antes de hacer el recorte final"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Calidad:"})," Las imágenes se exportan en alta calidad (JPEG 90%)"]})]})]}),F.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-orange-600",children:[F.jsx("h4",{className:"font-semibold text-orange-700 mb-2 text-sm",children:"⚠️ Advertencias"}),F.jsxs("div",{className:"text-sm text-orange-600 space-y-1",children:[F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Recortes grandes:"})," Pueden tardar más en procesarse"]}),F.jsxs("div",{children:["• ",F.jsx("strong",{children:"Calidad de imagen:"})," La calidad puede verse afectada al escalar"]})]})]})]})]}),F.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-3 sm:p-4",children:[F.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Proporción"}),F.jsx("div",{className:"limbo-cropper-aspect-buttons grid grid-cols-2 md:grid-cols-1 gap-2 md:hidden",children:_.map(e=>F.jsx("button",{onClick:()=>oe(e.value),className:"p-2 text-xs rounded border transition-colors cursor-pointer "+(p===e.value?"bg-blue-100 border-blue-300 text-blue-800":"bg-gray-100 border-gray-300 text-gray-700"),disabled:N,title:`Cambiar a proporción ${e.label}`,children:e.label},e.value))}),F.jsx("select",{value:p,onChange:e=>oe(e.target.value),className:"w-full form-control hidden md:block",disabled:N,"aria-label":"Seleccionar proporción de aspecto",children:_.map(e=>F.jsx("option",{value:e.value,children:e.label},e.value))})]}),F.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[F.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Visualización"}),F.jsxs("div",{className:"space-y-2",children:[F.jsxs("button",{onClick:V,className:"w-full flex cursor-pointer items-center justify-between p-2 rounded transition-colors "+(m?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),disabled:N,"aria-pressed":m,"aria-label":"Activar/desactivar grid",children:[F.jsxs("span",{className:"text-sm flex items-center",children:[F.jsx("span",{className:"icon icon-area-blue me-1"})," Grid"]}),F.jsx("span",{className:"text-xs",children:m?F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"icon icon-tick icon--xs align-[middle!important] -mt-0.5"})," ","Activo"]}):"Inactivo"})]}),F.jsxs("button",{onClick:q,className:"w-full flex cursor-pointer items-center justify-between p-2 rounded transition-colors "+(b?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),disabled:N,"aria-pressed":b,"aria-label":"Activar/desactivar sombreado",children:[F.jsxs("span",{className:"text-sm flex items-center",children:[F.jsx("span",{className:"icon icon-comparison-blue me-1"})," ","Sombreado"]}),F.jsx("span",{className:"text-xs",children:b?F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"icon icon-tick icon--xs align-[middle!important] -mt-0.5"})," ","Activo"]}):"Inactivo"})]})]})]}),F.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[F.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Ajustes del selector"}),F.jsxs("div",{className:"space-y-2",children:[F.jsx("button",{onClick:Y,className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Centrar selección",disabled:N,"aria-label":"Centrar área de selección",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsxs("span",{children:[F.jsx("span",{className:"icon icon-radio-button icon--sm align-[middle!important] "})," ","Centrar selección"]})})}),F.jsx("button",{onClick:G,className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Reiniciar selección",disabled:N,"aria-label":"Reiniciar área de selección",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsxs("span",{children:[F.jsx("span",{className:"icon icon-refresh icon--sm lign-[middle!important] "})," ","Reset selección"]})})})]}),F.jsxs("div",{className:"mt-3",children:[F.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Tamaños rápidos"}),F.jsxs("div",{className:"grid grid-cols-2 gap-1",children:[F.jsx("button",{onClick:()=>te(.5),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:N,"aria-label":"Selección 50%",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"50%"})})}),F.jsx("button",{onClick:()=>te(.7),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:N,"aria-label":"Selección 70%",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"70%"})})}),F.jsx("button",{onClick:()=>te(.9),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:N,"aria-label":"Selección 90%",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"90%"})})}),F.jsx("button",{onClick:()=>te(1),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:N,"aria-label":"Selección completa",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"100%"})})})]})]})]}),F.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[F.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Transformar imagen"}),F.jsxs("div",{className:"mb-4",children:[F.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Mover imagen"}),F.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[F.jsx("div",{}),F.jsx("button",{onClick:()=>X(0,-10),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover arriba",disabled:N,"aria-label":"Mover imagen hacia arriba",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-up-blue"})})}),F.jsx("div",{}),F.jsx("button",{onClick:()=>X(-10,0),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover izquierda",disabled:N,"aria-label":"Mover imagen hacia la izquierda",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-left-blue"})})}),F.jsx("button",{onClick:Q,className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Centrar y ajustar imagen",disabled:N,"aria-label":"Centrar y ajustar imagen",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-radio-button-blue icon-md"})})}),F.jsx("button",{onClick:()=>X(10,0),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover derecha",disabled:N,"aria-label":"Mover imagen hacia la derecha",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-right-blue"})})}),F.jsx("div",{}),F.jsx("button",{onClick:()=>X(0,10),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover abajo",disabled:N,"aria-label":"Mover imagen hacia abajo",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-down-blue"})})}),F.jsx("div",{})]})]}),F.jsxs("div",{className:"mb-4",children:[F.jsxs("p",{className:"text-xs text-gray-600 mb-2",children:["Zoom ",S?S.percentage+"%":""]}),F.jsxs("div",{className:"flex gap-1",children:[F.jsx("button",{onClick:()=>J(-.2),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Alejar 20%",disabled:N,"aria-label":"Alejar imagen",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-zoom-out-blue"})})}),F.jsx("button",{onClick:ne,className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Restablecer zoom original",disabled:N,"aria-label":"Restablecer el zoom para que la imagen se vea con su resolución original",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-screenshot-blue"})})}),F.jsx("button",{onClick:()=>J(.2),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Acercar 20%",disabled:N,"aria-label":"Acercar imagen",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-zoom-in-blue"})})})]})]}),F.jsxs("div",{className:"mb-4",children:[F.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Rotación"}),F.jsxs("div",{className:"flex gap-1 *:text-brand-blue-1000 *:text-sm",children:[F.jsx("button",{onClick:()=>Z(-90),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar -90°",disabled:N,"aria-label":"Rotar imagen 90 grados a la izquierda",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-reply-blue"})})}),F.jsx("button",{onClick:()=>Z(-45),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar -45°",disabled:N,"aria-label":"Rotar imagen 45 grados a la izquierda",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"-45°"})})}),F.jsx("button",{onClick:()=>Z(45),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar +45°",disabled:N,"aria-label":"Rotar imagen 45 grados a la derecha",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{children:"+45°"})})}),F.jsx("button",{onClick:()=>Z(90),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar +90°",disabled:N,"aria-label":"Rotar imagen 90 grados a la derecha",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-send-arrow-blue"})})})]})]}),F.jsxs("div",{className:"mb-4",children:[F.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Voltear"}),F.jsxs("div",{className:"flex gap-1",children:[F.jsx("button",{onClick:re,className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm "+(v.horizontal?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),title:"Voltear horizontalmente "+(v.horizontal?"(activo)":""),disabled:N,"aria-label":"Voltear imagen horizontalmente","aria-pressed":v.horizontal,children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-left-right-blue border border-brand-blue-1000 rounded"})})}),F.jsx("button",{onClick:ae,className:"flex-1 p-2 cursor-pointer rounded transition-colors text-sm "+(v.vertical?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),title:"Voltear verticalmente "+(v.vertical?"(activo)":""),disabled:N,"aria-label":"Voltear imagen verticalmente","aria-pressed":v.vertical,children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx("span",{className:"icon icon-arrow-up-down-blue border border-brand-blue-1000 rounded"})})})]})]}),F.jsx("button",{onClick:()=>{O.reset(),w({horizontal:!1,vertical:!1})},className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Reiniciar transformaciones",disabled:N,"aria-label":"Reiniciar todas las transformaciones de la imagen",children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsxs("span",{children:[F.jsx("span",{className:"icon icon-refresh-blue icon--sm align-[middle!important] "})," ","Reiniciar ajustes"]})})})]})]})})]})]}):null}function tn({currentPage:e,totalPages:t,onPageChange:n,disabled:r=!1}){if(!t||t<=1)return null;const a=(()=>{const n=[],r=[],a=Math.max(1,e-2),o=Math.min(t,e+2);for(let e=a;e<=o;e++)n.push(e);return a>1&&(r.push(1),a>2&&r.push("...")),r.push(...n),o<t&&(o<t-1&&r.push("..."),r.push(t)),r})();return F.jsxs("div",{className:"flex items-center justify-center space-x-2 py-4",children:[F.jsxs("button",{onClick:()=>{e>1&&n(e-1)},disabled:r||e<=1,className:`\n px-3 py-2 text-sm font-medium rounded-md transition-colors disabled:cursor-default cursor-pointer\n ${r||e<=1?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-blue-500"}\n `,children:[F.jsx("span",{className:"icon icon-arrow-left-white icon--sm"})," Anterior"]}),F.jsx("div",{className:"flex space-x-1",children:a.map((t,a)=>F.jsx(f.Fragment,{children:"..."===t?F.jsx("span",{className:"px-3 py-2 text-sm text-gray-500",children:"..."}):F.jsx("button",{onClick:()=>(t=>{t!==e&&n(t)})(t),disabled:r,className:`\n px-3 py-2 text-sm font-medium rounded-md transition-colors disabled:cursor-default cursor-pointer\n ${t===e?"bg-blue-600 text-white border border-blue-600":r?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-blue-500"}\n `,children:t})},`page-${t}-${a}`))}),F.jsxs("button",{onClick:()=>{e<t&&n(e+1)},disabled:r||e>=t,className:`\n px-3 py-2 text-sm font-medium rounded-md transition-colors disabled:cursor-default cursor-pointer\n ${r||e>=t?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-blue-500"}\n `,children:["Siguiente ",F.jsx("span",{className:"icon icon-arrow-right-white icon--sm"})]}),F.jsxs("div",{className:"text-sm text-gray-500 ml-4",children:["Página ",e," de ",t]})]})}function nn({isOpen:e,onClose:t}){return e?F.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",style:{zIndex:9999},children:F.jsxs("div",{className:"bg-white rounded-lg p-6 max-w-md mx-4 shadow-xl",children:[F.jsxs("div",{className:"flex items-center mb-4",children:[F.jsx("svg",{className:"w-6 h-6 text-red-600 mr-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:F.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})}),F.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Sesión Expirada"})]}),F.jsxs("div",{className:"mb-6",children:[F.jsx("p",{className:"text-gray-600 mb-2",children:"Su sesión ha expirado por seguridad."}),F.jsx("p",{className:"text-gray-600",children:"Es necesario recargar la página para obtener un nuevo token de acceso."})]}),F.jsx("div",{className:"flex justify-end space-x-3",children:F.jsx("button",{onClick:t,className:"px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors",children:"Recargar Página"})})]})}):null}const rn=new Map;function an({apiKey:e,prod:t=!1,url:n=!0,features:r=["gallery","upload","cropper"],modeUI:a="full",ui:o={showActions:["select","download","copy","delete","crop","variants"],hideActions:[],theme:"light",language:"es",compactMode:!1,showTabs:!0},callbacks:i={},instanceId:l=null,itemsPerPage:s=10}){const c=(()=>{switch(a){case"gallery-only":return["gallery"];case"upload-only":return["upload"];case"crop-only":return["cropper"];case"ia-only":return["ia"];default:return r}})(),[u,f]=d.useState(c.includes("gallery")?"gallery":c.includes("upload")?"upload":c.includes("cropper")?"cropper":c.includes("ia")?"ia":c[0]||"gallery"),[p,h]=d.useState(null),[m,g]=d.useState(1),{isTokenExpired:b,handleTokenExpiredClose:y}=function(){const[e,t]=d.useState(!1),n=d.useCallback(e=>{if(401===e?.response?.status){const n=e.response.data;if("token_expired"===n?.error||n?.message?.includes("expired")||n?.message?.includes("caducado")||n?.error?.includes("expired"))return t(!0),!0}return!1},[]),r=d.useCallback(()=>{t(!1),alert("El token ha expirado. La página se recargará para obtener un nuevo token."),window.location.reload()},[]);return d.useEffect(()=>{const e=e=>{e.detail&&e.detail.error&&n(e.detail.error)};return window.addEventListener("tokenExpiredError",e),()=>{window.removeEventListener("tokenExpiredError",e)}},[n]),{isTokenExpired:e,checkTokenExpiration:n,handleTokenExpiredClose:r}}(),{upload:v,loading:w,error:k,uploadedImage:x,reset:S}=function(){const[e,t]=d.useState(!1),[n,r]=d.useState(null),[a,o]=d.useState(null);return{upload:async(e,n=null)=>{if(!e)return r("No se ha proporcionado ningún archivo"),null;t(!0),r(null),o(null);try{const t=await async function(e,t=null,n=!1){try{const r=new FormData;return r.append("file",e),t&&r.append("uploaded_by",t),n&&r.append("store_original",n.toString()),function(e){if(!e?.success||!e?.data)return{result:null};const t=e.data;return{result:{id:t.id,filename:t.original_filename,mime_type:t.mime_type,file_size:t.file_size,width:t.width,height:t.height,status:t.status,upload_date:t.created_at,url:Y(t.master?.url_signed),master_format:t.master?.format,processing:t.processing||{master_webp:"processing"===t.status?"queued":"completed",variants:"processing"===t.status?"queued":"completed"},checksum:t.checksum,storage_path:t.storage_path_base,metadata:t.metadata||{}}}}(await q({endpoint:"/assets",method:"POST",body:r,basePath:X,isFormData:!0,useJWT:!0}))}catch(e){throw G(e)}}(e,n,!1),r=t.result||t;return o(r),r}catch(e){return r(e.message),null}finally{t(!1)}},loading:e,error:n,uploadedImage:a,reset:()=>{r(null),o(null)}}}(),{deleteImg:C,loading:E,error:_,reset:T}=function(){const[e,t]=d.useState(!1),[n,r]=d.useState(null);return{deleteImg:async e=>{if(!e)return r("ID de imagen no proporcionado"),!1;t(!0),r(null);try{const t=await async function(e){try{return await q({endpoint:`/assets/${e}`,method:"DELETE",basePath:X,useJWT:!0})}catch(e){throw G(e)}}(e);return!1!==t.success}catch(e){return r(e.message),!1}finally{t(!1)}},loading:e,error:n,reset:()=>{r(null)}}}(),{images:N,loading:P,error:R,pagination:z,invalidateCache:j,setImages:O}=function(e,t=!1,n={}){const[r,a]=d.useState([]),[o,i]=d.useState(!0),[l,s]=d.useState(null),[c,u]=d.useState(null),[f,p]=d.useState(0),h=d.useMemo(()=>JSON.stringify(n),[n]);return d.useEffect(()=>{const e=`${h}`,t=rn.get(e),r=Date.now();if(t&&r-t.timestamp<6e5)return a(t.data),u(t.pagination||null),void i(!1);let o=!0;return(async()=>{if(f>=3)o&&(s("Error de autenticación: Verifica tus credenciales API"),i(!1));else try{const t=await async function(e={}){try{const t=new URLSearchParams(e).toString(),n=t?`/assets?${t}`:"/assets";return function(e){if(!e?.success||!Array.isArray(e?.data?.data))return{result:[]};const t={result:e.data.data.map(e=>({id:e.id,filename:e.filename||e.original_filename,mime_type:e.mime_type,file_size:e.file_size,width:e.width,height:e.height,upload_date:e.upload_date||e.created_at,processing_status:e.processing_status||e.status,url:Y(e.master_url||e.master?.url_signed||e.urls?.original||e.url)||Q(e),webp_available:e.webp_available||!!e.webp_url,metadata:e.metadata||{},variants_count:e.variants_count||0}))};return e.data.pagination&&(t.pagination={page:e.data.pagination.page,limit:e.data.pagination.limit,total:e.data.pagination.total,pages:e.data.pagination.pages}),t}(await q({endpoint:n,method:"GET",basePath:X,useJWT:!0}))}catch(e){throw G(e)}}(n);if(!o)return;const i=t.result||[],l=t.pagination||null;a(i),u(l),s(null),p(0),rn.set(e,{data:i,pagination:l,timestamp:r})}catch(e){o&&(s(e.message),p(e=>e+1))}finally{o&&i(!1)}})(),()=>{o=!1}},[e,t,h,f,n]),{images:r,loading:o,error:l,pagination:c,setImages:a,invalidateCache:()=>{rn.delete(`${h}`)}}}(e,t,{limit:s,page:m}),{refreshVariants:A}=J(),L=e=>!(o.hideActions?.includes(e)||!o.showActions?.includes(e)&&o.showActions?.length>0),I=[{id:"gallery",label:"Galería",feature:"gallery"},{id:"upload",label:"Subir nueva",feature:"upload"},{id:"cropper",label:"Recortador",hideNonActive:!0,feature:"cropper"}].filter(e=>c.includes(e.feature)),D=async e=>{confirm("¿Estás seguro de que quieres eliminar esta imagen?")&&await C(e)&&(j(),g(1),O(t=>t.filter(t=>t.id!==e)),p&&p.id===e&&(h(null),f("gallery")))};return F.jsxs("div",{className:"limbo-card-parent max-w-7xl mx-auto my-8 p-6 shadow-xl w-full",children:[o.showTabs&&F.jsx(W,{tabs:I,active:u,onChange:e=>{f(e),"upload"!==e&&S(),"gallery"!==e&&T()}}),R&&F.jsxs("div",{className:"alert alert-danger",children:["Error al cargar imágenes: ",R]}),_&&F.jsxs("div",{className:"alert alert-danger",children:["Error al eliminar imagen: ",_]}),"gallery"===u&&F.jsxs(F.Fragment,{children:[E&&F.jsx(te,{text:"Eliminando imagen..."}),F.jsx(re,{apiKey:e,prod:t,onSelect:e=>{i.onSelect&&i.onSelect({assetId:e.id,url:e.url,fileName:e.filename,mime:e.mime_type,width:e.width,height:e.height,instanceId:l})},onCrop:e=>{h(e),c.includes("cropper")&&f("cropper")},onDelete:L("delete")?D:null,deletingId:E,images:N,loading:P,error:R,allowedActions:{select:L("select"),download:L("download"),copy:L("copy"),delete:L("delete"),crop:L("crop")}}),z&&!P&&F.jsx(tn,{currentPage:z.page||m,totalPages:z.pages||1,onPageChange:e=>{g(e)},disabled:P||E})]}),"upload"===u&&F.jsxs("div",{children:[w&&F.jsx(te,{text:"Subiendo imagen..."}),k&&F.jsxs("div",{className:"alert alert-danger",children:["Error al subir imagen: ",k]}),x&&F.jsxs("div",{className:"alert alert-success",children:["✅ Imagen subida correctamente: ",x.filename]}),F.jsx(ye,{onUpload:async e=>{const t=await v(e);t&&(j(),g(1),O(e=>[t,...e]),f("gallery"),i.onUpload&&i.onUpload({assetId:t.id,url:t.url,fileName:t.filename,mime:t.mime_type,width:t.width,height:t.height,instanceId:l}))},disabled:w,apiKey:e,prod:t})]}),"cropper"===u&&F.jsx(en,{image:p,onSave:()=>{j(),h(null),f("gallery")},onCancel:()=>{h(null),f("gallery")},onDelete:()=>D(p?.id),deleting:E,onVariantCreated:(e,t)=>{A(e)}}),F.jsx(nn,{isOpen:b,onClose:y})]})}class on{constructor(e,t,n,r){this.id=e,this.config=t,this.eventManager=n,this.modalManager=r,this.root=null,this.container=null,this.modal=null,this.mounted=!1,this.destroyed=!1,this.button=null,this._validateConfig(),this._initialize()}_initialize(){"embed"===this.config.mode?this.mount():"button"===this.config.mode&&this._createButton(),this._emitDOMEvent("ready",{instance:this,config:this.config,timestamp:Date.now()})}mount(){if(this.mounted||this.destroyed)return this;if(this.container=this._resolveContainer(),!this.container)return this.eventManager.emit("error",{instanceId:this.id,error:"Container not found"}),this;try{this.root=I.createRoot(this.container),this.root.render(this._renderApp()),this.mounted=!0,this.eventManager.emit("ready",{instance:this})}catch(e){this.eventManager.emit("error",{instanceId:this.id,error:e.message})}return this}unmount(){return this.mounted?(this.root&&(this.root.unmount(),this.root=null),"button"===this.config.mode&&this.button,this.mounted=!1,this):this}open(){return"modal"!==this.config.mode&&"button"!==this.config.mode||(this.modal||this._createModal(),this.modal&&!this.modal.isOpened()&&(this.modal.open(),this.eventManager.emit("modal:open",{instance:this}))),this}close(){return this.modal&&this.modal.isOpened()&&(this.modal.close(),this.eventManager.emit("modal:close",{instance:this})),this}updateConfig(e){return this.config={...this.config,...e},this.mounted&&this.root.render(this._renderApp()),this.eventManager.emit("config:updated",{instance:this,newConfig:e}),this}destroy(){this.destroyed||(this.unmount(),this.modal&&(this.modal.destroy(),this.modal=null),this.button&&this.button.parentNode&&(this.button.parentNode.removeChild(this.button),this.button=null),this.eventManager.emit("destroy",{instance:this}),this.container=null,this.config=null,this.eventManager=null,this.modalManager=null,this.destroyed=!0)}getId(){return this.id}getMode(){return this.config.mode}isMounted(){return this.mounted}isDestroyed(){return this.destroyed}getContainer(){return this.container}getConfig(){return{...this.config}}isContainerInDOM(){return this.container&&document.contains(this.container)}_createModal(){if(this.modalManager&&"modal"===this.config.mode&&(this.modal=this.modalManager.createModal({title:this.config.title||"Limbo Image Manager",size:this.config.modalSize||"large",onOpen:()=>{const e={instance:this,mode:"modal",timestamp:Date.now()};this._emitDOMEvent("modal:open",e),this.config.callbacks?.onOpen&&this.config.callbacks.onOpen(e)},onClose:()=>{const e={instance:this,mode:"modal",timestamp:Date.now()};this._emitDOMEvent("modal:close",e),this.config.callbacks?.onClose&&this.config.callbacks.onClose(e),this.config.autoDestroy&&this.destroy()},onDestroy:()=>{this.modal=null}}),this.modal)){const e=this.modal.getBodyContainer();this.root=I.createRoot(e),this.root.render(this._renderApp()),this.mounted=!0}}_createButton(){if(this.container||(this.container=this._resolveContainer()),!this.container)return void this.eventManager.emit("error",{instanceId:this.id,error:"Container not found for button mode"});const e=document.createElement("button");e.type="button",e.className="limbo-trigger-button",e.textContent=this.config.buttonText||"Abrir Limbo",e.style.cssText="\n background: #001978;\n color: white;\n border: none;\n padding: 10px 20px;\n border-radius: 6px;\n cursor: pointer;\n font-family: inherit;\n font-size: 14px;\n font-weight: 500;\n transition: all 0.2s ease;\n ",e.addEventListener("mouseenter",()=>{e.style.backgroundColor="#334793",e.style.transform="translateY(-1px)"}),e.addEventListener("mouseleave",()=>{e.style.backgroundColor="#001978",e.style.transform="translateY(0)"}),e.addEventListener("click",()=>{this.open()}),this.container.appendChild(e),this.button=e,this.mounted=!0}_resolveContainer(){const{container:e}=this.config;return e?"string"==typeof e?document.querySelector(e):e instanceof Element?e:null:null}_renderApp(){return f.createElement("div",{id:`limbo-component-container-${this.id}`,className:"limbo-instance limbo-component-container-wrapper py-3","data-limbo-id":this.id,"data-limbo-mode":this.config.mode},f.createElement(an,{apiKey:this.config.apiKey,prod:this.config.prod||!1,url:this.config.url,features:this.config.features,modeUI:this.config.modeUI||"full",ui:this.config.ui,callbacks:this._createCallbacks(),instanceId:this.id}))}_createCallbacks(){return{onSelect:e=>{const t=this._createStandardPayload(e,"select");this.config.callbacks?.onSelect&&this.config.callbacks.onSelect(t),this._emitDOMEvent("select",t)},onUpload:e=>{const t=this._createStandardPayload(e,"upload");this.config.callbacks?.onUpload&&this.config.callbacks.onUpload(t),this._emitDOMEvent("upload",t)},onError:e=>{const t={instance:this,error:{message:e.message||"Unknown error",code:e.code||"UNKNOWN",timestamp:Date.now()}};this.config.callbacks?.onError&&this.config.callbacks.onError(t.error),this._emitDOMEvent("error",t)},onClose:()=>{const e={instance:this,timestamp:Date.now()};this.config.callbacks?.onClose&&this.config.callbacks.onClose(),this._emitDOMEvent("close",e)}}}_createStandardPayload(e,t){const n={instance:this,eventType:t,timestamp:Date.now(),instanceId:this.id,mode:this.config.mode,features:this.config.features};return e&&(e.assetId||e.id?(n.assetId=e.assetId||e.id,n.variants=e.variants||[],n.master=e.master||{urlSigned:e.url||e.urlSigned,width:e.width,height:e.height,mime:e.mime||e.mimeType},n.fileName=e.fileName||e.name,n.mime=e.mime||e.mimeType,n.width=e.width,n.height=e.height,n.fileBlob=e.fileBlob||e.file,n.metadata={uploadedBy:e.uploadedBy,uploadedAt:e.uploadedAt||e.timestamp,size:e.size,...e.metadata}):Object.assign(n,e)),n}_emitDOMEvent(e,t){const n=new CustomEvent(`limbo:${e}`,{detail:t,bubbles:!0,cancelable:!0});(this.getContainer()||document).dispatchEvent(n),this.eventManager.emit(e,t)}_validateConfig(){if(!(this.config.auth?.apiKey||this.config.auth?.publicKey||this.config.apiKey||this.config.publicKey))throw new Error(`LimboInstance ${this.id}: Authentication is required. Provide either auth.publicKey (recommended) or auth.apiKey (for server-side only)`);if((this.config.auth?.apiKey||this.config.apiKey)&&"undefined"!=typeof window&&console.warn("⚠️ SECURITY WARNING: API Key detected in client-side code.\nThis is a security risk! Use publicKey instead for client applications.\nAPI Keys should only be used in server-side environments."),!["embed","modal","button"].includes(this.config.mode))throw new Error(`LimboInstance ${this.id}: invalid mode ${this.config.mode}`);if("embed"===this.config.mode&&!this.config.container)throw new Error(`LimboInstance ${this.id}: container is required for embed mode`);if("button"===this.config.mode&&!this.config.container)throw new Error(`LimboInstance ${this.id}: container is required for button mode`)}}class ln{constructor(){this.instances=new Map,this.counter=0}create(e,t,n){const r="limbo-"+ ++this.counter,a=new on(r,e,t,n);return this.instances.set(r,a),a}get(e){return this.instances.get(e)}getAll(){return Array.from(this.instances.values())}getActive(){return this.getAll().filter(e=>e.isMounted())}destroy(e){const t=this.instances.get(e);return!!t&&(t.destroy(),this.instances.delete(e),!0)}destroyAll(){this.instances.forEach(e=>e.destroy()),this.instances.clear()}cleanupOrphans(){const e=[];return this.instances.forEach((t,n)=>{t.isContainerInDOM()||e.push(n)}),e.forEach(e=>this.destroy(e)),e.length}getStats(){const e=this.getAll();return{total:e.length,active:e.filter(e=>e.isMounted()).length,embed:e.filter(e=>"embed"===e.getMode()).length,modal:e.filter(e=>"modal"===e.getMode()).length,button:e.filter(e=>"button"===e.getMode()).length}}}class sn{constructor(){this.config=null,this.instances=new Map,this.observer=null,this.initialized=!1}configure(e,t,n){return this.config={dataset:e.dataset||"data-limbo-input-file",return:e.return||"url",mode:e.mode||"modal",features:e.features||["gallery","upload","cropper"],crop:e.crop||"free",quality:e.quality||.9,format:e.format||"webp",modeUI:e.modeUI||"full",modalSize:e.modalSize||"medium",theme:e.theme||"light",compact:e.compact||!1,maxSize:e.maxSize||"10MB",formats:e.formats||["jpg","jpeg","png","webp"],minWidth:e.minWidth||null,minHeight:e.minHeight||null,maxWidth:e.maxWidth||null,maxHeight:e.maxHeight||null,buttonText:e.buttonText||"Seleccionar Imagen",buttonClass:e.buttonClass||"limbo-auto-button",buttonStyle:e.buttonStyle||"primary",showPreview:!1!==e.showPreview,allowMultiple:e.allowMultiple||!1,autoAssign:!1!==e.autoAssign,...e},this.configManager=t,this.eventManager=n,this._initialize(),this}cleanup(){this.observer&&(this.observer.disconnect(),this.observer=null),this.instances.forEach(({input:e,button:t})=>{this._restoreInput(e,t)}),this.instances.clear(),this.config=null,this.initialized=!1}getStats(){return{configured:null!==this.config,totalInputs:this.instances.size,dataset:this.config?.dataset,returnType:this.config?.return}}_initialize(){this.initialized||(this._scanExistingInputs(),this._setupObserver(),this.initialized=!0,this.eventManager.emit("autoInputs:initialized",{config:this.config,inputsFound:this.instances.size}))}_scanExistingInputs(){const e=`input[${this.config.dataset}]`;document.querySelectorAll(e).forEach(e=>this._processInput(e))}_processInput(e){const t=this._getInputId(e);if(this.instances.has(t))return;if(!this._validateInput(e))return;const n=this._createButton(e);this._hideInput(e),this._insertButton(e,n),this.instances.set(t,{input:e,button:n,config:this._getInputConfig(e)}),this.eventManager.emit("autoInputs:processed",{inputId:t,input:e,button:n})}_createButton(e){const t=document.createElement("button"),n=this._getInputConfig(e);t.type="button",t.textContent=n.buttonText||this.config.buttonText;const r=[this.config.buttonClass];return n.buttonClass&&n.buttonClass!==this.config.buttonClass&&r.push(n.buttonClass),t.className=r.join(" "),this._styleButton(t,n),this._attachButtonEvents(t,e),t.setAttribute("aria-label",n.buttonText||this.config.buttonText),t.setAttribute("data-limbo-trigger","true"),t.setAttribute("data-limbo-input-id",n.inputId),n.disabled&&(t.disabled=!0),t}_styleButton(e,t){const n=t.buttonStyle||this.config.buttonStyle,r=t.theme||this.config.theme,a=t.compact||this.config.compact,o={border:"none",borderRadius:"8px",cursor:"pointer",fontFamily:"inherit",fontSize:a?"12px":"14px",fontWeight:"500",transition:"all 0.2s ease",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:a?"6px 12px":"8px 16px",textDecoration:"none",userSelect:"none"},i={primary:{backgroundColor:"dark"===r?"#3b82f6":"#001978",color:"white",hoverBg:"dark"===r?"#2563eb":"#334793"},secondary:{backgroundColor:"dark"===r?"#374151":"#f3f4f6",color:"dark"===r?"#f9fafb":"#374151",border:"1px solid "+("dark"===r?"#4b5563":"#d1d5db"),hoverBg:"dark"===r?"#4b5563":"#e5e7eb"},outline:{backgroundColor:"transparent",color:"dark"===r?"#3b82f6":"#001978",border:"2px solid "+("dark"===r?"#3b82f6":"#001978"),hoverBg:"dark"===r?"#3b82f6":"#001978",hoverColor:"white"},ghost:{backgroundColor:"transparent",color:"dark"===r?"#f9fafb":"#374151",hoverBg:"dark"===r?"#374151":"#f3f4f6"}},l=i[n]||i.primary;Object.assign(e.style,{...o,...l});const s=l.backgroundColor,c=l.color;e.addEventListener("mouseenter",()=>{e.style.backgroundColor=l.hoverBg||l.backgroundColor,l.hoverColor&&(e.style.color=l.hoverColor),e.style.transform="translateY(-1px)",e.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)"}),e.addEventListener("mouseleave",()=>{e.style.backgroundColor=s,e.style.color=c,e.style.transform="translateY(0)",e.style.boxShadow="none"}),t.disabled&&(e.style.opacity="0.5",e.style.cursor="not-allowed")}_attachButtonEvents(e,t){e.addEventListener("click",e=>{e.preventDefault(),this._handleButtonClick(t)})}_handleButtonClick(e){const t=this._getInputConfig(e),n=this._createModalConfig(t);this.eventManager.emit("autoInputs:modalRequest",{input:e,config:n,callback:async t=>await this._handleImageSelection(e,t)})}async _handleImageSelection(e,t){const n=this._getInputConfig(e);try{const r=await this._formatImageData(t,n);!1!==n.autoAssign&&(e.value=r),e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:resultReady",{detail:{imageData:t,input:e,value:r,config:n,assignment:{format:n.return,smartAssign:!1!==n.smartAssign,autoAssign:!1!==n.autoAssign},legacy:{imageData:t,formatted:this._createFormattedResult(t,n)}},bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:imageSelected",{detail:{imageData:t,input:e,value:r,config:n,formatted:this._createFormattedResult(t,n)},bubbles:!0})),this.eventManager.emit("autoInputs:imageSelected",{input:e,imageData:t,value:r,config:n})}catch(r){console.error("Error handling image selection:",r),e.dispatchEvent(new CustomEvent("limbo:error",{detail:{error:r.message,input:e,imageData:t,config:n},bubbles:!0})),this._handleImageSelectionLegacy(e,t)}}_handleImageSelectionLegacy(e,t){const n=this._getInputConfig(e),r=this._formatImageData(t,n);!1!==n.autoAssign&&(e.value=r),e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:imageSelected",{detail:{imageData:t,input:e,value:r,config:n,formatted:this._createFormattedResult(t,n)},bubbles:!0})),this.eventManager.emit("autoInputs:imageSelected",{input:e,imageData:t,value:r,config:n})}_createFormattedResult(e,t){return{url:e.url||e.path||"",base64:e.base64||e.dataUrl||"",assetId:e.assetId||e.id||"",fileName:e.fileName||e.filename||"",object:{url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size,created:e.created_at||e.created,metadata:e.metadata||{}},json:JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size}),metadata:{width:e.width,height:e.height,size:e.size||e.file_size,format:e.format||e.mime_type,quality:t.quality||this.config.quality,aspectRatio:e.width&&e.height?e.width/e.height:null}}}async _formatImageData(e,t=null){switch((t||{}).return||this.config.return||"url"){case"url":return e.url||e.path||"";case"base64":return e.base64||e.dataUrl||"";case"assetId":return e.assetId||e.id||"";case"fileName":return e.fileName||e.filename||"";case"object":return JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size,created:e.created_at||e.created});default:return JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size})}}_createModalConfig(e){return{mode:e.mode||this.config.mode||"modal",modeUI:e.modeUI||this.config.modeUI||"full",features:e.features||this.config.features,modalSize:e.modalSize||this.config.modalSize||"medium",title:e.description||this.config.title||"Seleccionar imagen",cropper:this._getCropperConfig(e),ui:{showActions:this._getUIActions(e),hideActions:[],showTabs:this._shouldShowTabs(e),theme:e.theme||this.config.theme,compact:e.compact||this.config.compact,showPreview:void 0!==e.showPreview?e.showPreview:this.config.showPreview},validation:{maxSize:e.maxSize||this.config.maxSize,formats:e.formats||this.config.formats,minWidth:e.minWidth||this.config.minWidth,minHeight:e.minHeight||this.config.minHeight,maxWidth:e.maxWidth||this.config.maxWidth,maxHeight:e.maxHeight||this.config.maxHeight,required:e.required||!1},behavior:{allowMultiple:e.allowMultiple||this.config.allowMultiple,closeOnSelect:!0,autoAssign:void 0!==e.autoAssign?e.autoAssign:this.config.autoAssign},returnConfig:{format:e.return||this.config.return,quality:e.quality||this.config.quality,outputFormat:e.format||this.config.format},inputMeta:{inputId:e.inputId,inputName:e.inputName,inputType:e.inputType,placeholder:e.placeholder}}}_getCropperConfig(e){const t=e.crop||this.config.crop;if(!t||"none"===t||"false"===t)return null;if("free"===t)return{aspectRatio:null,quality:e.quality||this.config.quality,format:e.format||this.config.format};const n={"1:1":1,"16:9":16/9,"4:3":4/3,"3:2":1.5,"2:1":2,square:1,landscape:16/9,portrait:3/4};if(n[t])return{aspectRatio:n[t],quality:e.quality||this.config.quality,format:e.format||this.config.format,minCropBoxWidth:e.minWidth||this.config.minWidth,minCropBoxHeight:e.minHeight||this.config.minHeight};if("string"==typeof t&&t.includes(":")){const[n,r]=t.split(":").map(Number);if(!isNaN(n)&&!isNaN(r)&&0!==r)return{aspectRatio:n/r,quality:e.quality||this.config.quality,format:e.format||this.config.format}}const r=parseFloat(t);return!isNaN(r)&&r>0?{aspectRatio:r,quality:e.quality||this.config.quality,format:e.format||this.config.format}:"object"==typeof t?{quality:e.quality||this.config.quality,format:e.format||this.config.format,...t}:null}_shouldShowTabs(e){const t=e.modeUI||this.config.modeUI||"full",n=e.features||this.config.features;return!["gallery-only","upload-only","crop-only","ia-only"].includes(t)&&n&&n.length>1}_getUIActions(e){const t=e.modeUI||this.config.modeUI||"full",n=e.features||this.config.features;let r=[];switch(t){case"gallery-only":case"upload-only":r=["select"];break;case"crop-only":r=["select","crop"];break;default:r=["select"],n.includes("cropper")&&r.push("crop"),n.includes("gallery")&&(r.push("download","copy"),this.config.allowDelete&&r.push("delete"))}return r}_getInputId(e){return e.id||e.name||`limbo-auto-${Date.now()}-${Math.random()}`}_validateInput(e){return e instanceof HTMLInputElement}_getInputConfig(e){const t=e=>e?e.split(",").map(e=>e.trim()):null,n=e=>{if(!e)return null;const t=e.match(/^(\d+(?:\.\d+)?)(MB|KB|B)?$/i);if(!t)return null;const n=parseFloat(t[1]);switch((t[2]||"B").toUpperCase()){case"MB":return 1024*n*1024;case"KB":return 1024*n;default:return n}},r=(e,t=!1)=>null===e?t:"true"===e||"1"===e||""===e,a=e=>e?parseFloat(e):null;return{return:e.getAttribute("data-limbo-return")||this.config.return,mode:e.getAttribute("data-limbo-mode")||this.config.mode,features:t(e.getAttribute("data-limbo-features"))||this.config.features,crop:e.getAttribute("data-limbo-crop")||this.config.crop,quality:a(e.getAttribute("data-limbo-quality"))||this.config.quality,format:e.getAttribute("data-limbo-format")||this.config.format,modeUI:e.getAttribute("data-limbo-mode-ui")||this.config.modeUI,modalSize:e.getAttribute("data-limbo-modal-size")||this.config.modalSize,theme:e.getAttribute("data-limbo-theme")||this.config.theme,compact:r(e.getAttribute("data-limbo-compact"),this.config.compact),maxSize:n(e.getAttribute("data-limbo-max-size"))||n(this.config.maxSize),formats:t(e.getAttribute("data-limbo-formats"))||this.config.formats,minWidth:a(e.getAttribute("data-limbo-min-width"))||this.config.minWidth,minHeight:a(e.getAttribute("data-limbo-min-height"))||this.config.minHeight,maxWidth:a(e.getAttribute("data-limbo-max-width"))||this.config.maxWidth,maxHeight:a(e.getAttribute("data-limbo-max-height"))||this.config.maxHeight,buttonText:e.getAttribute("data-limbo-button-text")||this.config.buttonText,buttonStyle:e.getAttribute("data-limbo-button-style")||this.config.buttonStyle,buttonClass:e.getAttribute("data-limbo-button-class")||this.config.buttonClass,showPreview:r(e.getAttribute("data-limbo-show-preview"),this.config.showPreview),allowMultiple:r(e.getAttribute("data-limbo-allow-multiple"),this.config.allowMultiple),autoAssign:r(e.getAttribute("data-limbo-auto-assign"),this.config.autoAssign),placeholder:e.getAttribute("data-limbo-placeholder"),description:e.getAttribute("data-limbo-description"),required:r(e.getAttribute("data-limbo-required"),!1),disabled:r(e.getAttribute("data-limbo-disabled"),!1),inputId:e.id||e.name||this._generateInputId(e),inputName:e.name,inputType:e.type}}_generateInputId(){return`limbo-auto-input-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}_hideInput(e){e.style.display="none"}_insertButton(e,t){e.parentNode.insertBefore(t,e.nextSibling)}_restoreInput(e,t){e.style.display="",t&&t.parentNode&&t.parentNode.removeChild(t)}_setupObserver(){this.observer=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&this._scanNodeForInputs(e)})})}),this.observer.observe(document.body,{childList:!0,subtree:!0})}_scanNodeForInputs(e){const t=`input[${this.config.dataset}]`;e.matches&&e.matches(t)&&this._processInput(e);const n=e.querySelectorAll&&e.querySelectorAll(t);n&&n.forEach(e=>this._processInput(e))}}class cn{constructor(){this.listeners=new Map}emit(e,t={}){this._emitDOMEvent(e,t),this._executeListeners(e,t)}on(e,t){return this.listeners.has(e)||this.listeners.set(e,[]),this.listeners.get(e).push(t),()=>this.off(e,t)}off(e,t){const n=this.listeners.get(e);if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}cleanup(){this.listeners.clear()}_emitDOMEvent(e,t){const n=new CustomEvent(`limbo:${e}`,{detail:{...t,timestamp:Date.now()},bubbles:!0,cancelable:!0});(t.instance?.getContainer()||document).dispatchEvent(n)}_executeListeners(e,t){const n=this.listeners.get(e);n&&n.forEach(n=>{try{n(t)}catch(t){console.error(`Error executing listener for ${e}:`,t)}})}getStats(){const e={};return this.listeners.forEach((t,n)=>{e[n]=t.length}),e}}class un{constructor(){this.activeModals=new Set,this.zIndexBase=1e4,this.focusableSelectors=["button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])',"a[href]"].join(", "),this.initialized=!1,this._initGlobalListeners()}createModal(e){const t=new dn(this._generateModalId(),e,this);return this.activeModals.add(t),t}closeModal(e){const t=this._findModal(e);return!!t&&(t.close(),!0)}closeAllModals(){this.activeModals.forEach(e=>e.close()),this.activeModals.clear()}getActiveModal(){return Array.from(this.activeModals).pop()||null}getStats(){return{active:this.activeModals.size,nextZIndex:this._getNextZIndex()}}_generateModalId(){return`limbo-modal-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}_findModal(e){return Array.from(this.activeModals).find(t=>t.getId()===e)}_getNextZIndex(){return this.zIndexBase+10*this.activeModals.size}_removeModal(e){this.activeModals.delete(e)}_handleGlobalKeydown(e){const t=this.getActiveModal();t&&("Escape"===e.key&&(e.preventDefault(),t.close()),"Tab"===e.key&&this._handleTabTrap(e,t))}_handleTabTrap(e,t){const n=t.getFocusableElements();if(0===n.length)return;const r=n[0],a=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),a.focus()):document.activeElement===a&&(e.preventDefault(),r.focus())}_initGlobalListeners(){this.initialized||(this.globalKeydownHandler=e=>this._handleGlobalKeydown(e),document.addEventListener("keydown",this.globalKeydownHandler),this.initialized=!0)}destroy(){this.closeAllModals(),this.initialized&&this.globalKeydownHandler&&(document.removeEventListener("keydown",this.globalKeydownHandler),this.initialized=!1,this.globalKeydownHandler=null)}}class dn{constructor(e,t,n){this.id=e,this.config={title:t.title||"Limbo",content:t.content||null,showCloseButton:!1!==t.showCloseButton,backdrop:!1!==t.backdrop,keyboard:!1!==t.keyboard,focus:!1!==t.focus,animation:!1!==t.animation,size:t.size||"large",onOpen:t.onOpen||null,onClose:t.onClose||null,onDestroy:t.onDestroy||null,...t},this.manager=n,this.element=null,this.backdrop=null,this.isOpen=!1,this.previousFocus=null,this._create()}_create(){this._createBackdrop(),this._createModal(),this._attachEvents()}_createBackdrop(){this.config.backdrop&&(this.backdrop=document.createElement("div"),this.backdrop.className="limbo-modal-backdrop",this.backdrop.style.cssText=`\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: ${this.manager._getNextZIndex()};\n opacity: 0;\n transition: opacity 0.3s ease;\n `,this.backdrop.addEventListener("click",e=>{e.target===this.backdrop&&this.close()}))}_createModal(){this.element=document.createElement("div"),this.element.className=`limbo-modal limbo-modal--${this.config.size}`,this.element.id=this.id,this.element.role="dialog",this.element.setAttribute("aria-modal","true"),this.element.setAttribute("aria-labelledby",`${this.id}-title`),this.element.tabIndex=-1;const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t={small:e?"width: 100%; height: 100%;":"max-width: 400px;",medium:e?"width: 100%; height: 100%;":"max-width: 600px;",large:e?"width: 100%; height: 100%;":"max-width: 800px;",xlarge:e?"width: 100%; height: 100%;":"max-width: 1200px;"},n=e?`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transform: translateY(100%);\n width: 100%;\n height: 100%;\n max-width: none;\n max-height: none;\n border-radius: 0;\n background: white;\n z-index: ${this.manager._getNextZIndex()+1};\n opacity: 1;\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n padding-top: env(safe-area-inset-top);\n padding-left: env(safe-area-inset-left);\n padding-right: env(safe-area-inset-right);\n padding-bottom: env(safe-area-inset-bottom);\n `:`\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(0.8);\n ${t[this.config.size]}\n width: 90%;\n max-height: 90vh;\n background: white;\n border-radius: 16px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n z-index: ${this.manager._getNextZIndex()+1};\n opacity: 0;\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n `;this.element.style.cssText=n,this._createHeader(),this._createBody(),document.body.appendChild(this.backdrop),document.body.appendChild(this.element)}_createHeader(){const e=document.createElement("div");e.className="limbo-modal-header";const t=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);e.style.cssText=`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ${t?"16px 20px":"20px 24px"};\n border-bottom: 1px solid #e9ecef;\n background: #f8f9fa;\n ${t?"position: sticky; top: 0; z-index: 10;":""}\n min-height: ${t?"60px":"auto"};\n `;const n=document.createElement("h2");if(n.id=`${this.id}-title`,n.className="limbo-modal-title",n.textContent=this.config.title,n.style.cssText="\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #001978;\n flex: 1;\n margin-right: 16px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ",e.appendChild(n),this.config.showCloseButton){const n=document.createElement("button");n.type="button",n.className="limbo-modal-close",n.innerHTML="✕",n.setAttribute("aria-label","Cerrar modal"),n.style.cssText=`\n background: none;\n border: none;\n font-size: ${t?"28px":"24px"};\n color: #6c757d;\n cursor: pointer;\n padding: ${t?"8px":"4px"};\n border-radius: 4px;\n transition: all 0.2s ease;\n min-width: ${t?"44px":"auto"};\n min-height: ${t?"44px":"auto"};\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n `,n.addEventListener("mouseenter",()=>{n.style.backgroundColor="#f8f9fa",n.style.color="#001978"}),n.addEventListener("mouseleave",()=>{n.style.backgroundColor="transparent",n.style.color="#6c757d"}),n.addEventListener("click",()=>this.close()),e.appendChild(n)}this.element.appendChild(e)}_createBody(){const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t=document.createElement("div");t.className="limbo-modal-body",t.id=`${this.id}-body`,t.style.cssText=`\n flex: 1;\n overflow-y: auto;\n padding: 0;\n -webkit-overflow-scrolling: touch;\n ${e?"height: 100%; overscroll-behavior: contain;":""}\n `,this.config.content&&("string"==typeof this.config.content?t.innerHTML=this.config.content:this.config.content instanceof Element&&t.appendChild(this.config.content)),this.element.appendChild(t)}_attachEvents(){this._originalBodyOverflow=document.body.style.overflow}open(){if(this.isOpen)return this;window.limbo&&window.limbo.core&&window.limbo.core.keyboard?(window.limbo.core.keyboard.pushFocus(document.activeElement),window.limbo.core.keyboard.setActiveModal(this.element)):this.previousFocus=document.activeElement,document.body.style.overflow="hidden";const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return requestAnimationFrame(()=>{this.backdrop&&(this.backdrop.style.opacity="1"),this.element.style.opacity="1",this.element.style.transform=e?"translateY(0%)":"translate(-50%, -50%) scale(1)"}),this.isOpen=!0,this.config.focus&&setTimeout(()=>{if(window.limbo&&window.limbo.core&&window.limbo.core.keyboard)window.limbo.core.keyboard.focusFirst(this.element);else{const e=this.getFocusableElements()[0];e&&e.focus()}},300),this.config.onOpen&&this.config.onOpen(this),this}close(){if(!this.isOpen)return this;const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return this.backdrop&&(this.backdrop.style.opacity="0"),this.element.style.opacity="0",this.element.style.transform=e?"translateY(100%)":"translate(-50%, -50%) scale(0.8)",setTimeout(()=>{this._cleanup()},300),this.isOpen=!1,window.limbo&&window.limbo.core&&window.limbo.core.keyboard&&(window.limbo.core.keyboard.setActiveModal(null),window.limbo.core.keyboard.releaseFocus()),this.config.onClose&&this.config.onClose(this),this}destroy(){this.close(),this.manager._removeModal(this),this.config.onDestroy&&this.config.onDestroy(this)}getBodyContainer(){return this.element.querySelector(".limbo-modal-body")}getFocusableElements(){return Array.from(this.element.querySelectorAll(this.manager.focusableSelectors))}getId(){return this.id}isOpened(){return this.isOpen}getConfig(){return{...this.config}}_cleanup(){document.body.style.overflow=this._originalBodyOverflow||"",this.previousFocus&&"function"==typeof this.previousFocus.focus&&this.previousFocus.focus(),this.backdrop&&this.backdrop.parentNode&&this.backdrop.parentNode.removeChild(this.backdrop),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}}class fn{constructor(){this.currentTheme=null,this.customThemes=new Map,this.config=this._getDefaultConfig(),this.isInitialized=!1,this.isCompactMode=!1,this.compactBreakpoint=null,this.compactObserver=null,this.mediaQueryObserver=null,this.mutationObserver=null,this.storageListener=null,this.themeCache=new Map,this.appliedStyles=new Set,this.changeCallbacks=new Set}_getDefaultConfig(){return{theme:{auto:!0,storage:!0,inherit:!0,smooth:!0,detectSystem:!0},compact:{enabled:!1,auto:!0,breakpoint:768,forceOnMobile:!0,persistPreference:!0},presets:{light:{name:"light",displayName:"Claro",variables:{"--limbo-primary":"#3b82f6","--limbo-primary-hover":"#2563eb","--limbo-primary-light":"#dbeafe","--limbo-primary-dark":"#1e40af","--limbo-bg-primary":"#ffffff","--limbo-bg-secondary":"#f8fafc","--limbo-bg-tertiary":"#f1f5f9","--limbo-bg-overlay":"rgba(0, 0, 0, 0.5)","--limbo-bg-card":"#ffffff","--limbo-bg-input":"#ffffff","--limbo-text-primary":"#0f172a","--limbo-text-secondary":"#475569","--limbo-text-tertiary":"#64748b","--limbo-text-inverse":"#ffffff","--limbo-text-muted":"#94a3b8","--limbo-border-light":"#e2e8f0","--limbo-border-medium":"#cbd5e1","--limbo-border-strong":"#94a3b8","--limbo-border-focus":"#3b82f6","--limbo-success":"#10b981","--limbo-success-light":"#d1fae5","--limbo-error":"#ef4444","--limbo-error-light":"#fee2e2","--limbo-warning":"#f59e0b","--limbo-warning-light":"#fef3c7","--limbo-info":"#3b82f6","--limbo-info-light":"#dbeafe","--limbo-shadow-sm":"0 1px 2px 0 rgba(0, 0, 0, 0.05)","--limbo-shadow-md":"0 4px 6px -1px rgba(0, 0, 0, 0.1)","--limbo-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.1)","--limbo-shadow-xl":"0 20px 25px -5px rgba(0, 0, 0, 0.1)","--limbo-radius-sm":"4px","--limbo-radius-md":"6px","--limbo-radius-lg":"8px","--limbo-radius-xl":"12px","--limbo-font-family":"system-ui, -apple-system, sans-serif","--limbo-font-size-xs":"12px","--limbo-font-size-sm":"14px","--limbo-font-size-md":"16px","--limbo-font-size-lg":"18px","--limbo-font-size-xl":"20px","--limbo-z-dropdown":"1000","--limbo-z-sticky":"1020","--limbo-z-fixed":"1030","--limbo-z-modal":"1050","--limbo-z-tooltip":"1070","--limbo-transition-fast":"150ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-normal":"300ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-slow":"500ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-spacing-compact":"0.5rem","--limbo-spacing-compact-sm":"0.25rem","--limbo-spacing-compact-lg":"0.75rem","--limbo-font-size-compact-xs":"11px","--limbo-font-size-compact-sm":"12px","--limbo-font-size-compact-md":"14px","--limbo-font-size-compact-lg":"16px","--limbo-radius-compact":"4px","--limbo-radius-compact-sm":"3px","--limbo-radius-compact-lg":"6px","--limbo-button-height-compact":"32px","--limbo-input-height-compact":"36px","--limbo-modal-padding-compact":"12px","--limbo-card-padding-compact":"12px","--limbo-gap-compact":"8px","--limbo-gap-compact-sm":"4px","--limbo-gap-compact-lg":"12px"}},dark:{name:"dark",displayName:"Oscuro",variables:{"--limbo-primary":"#60a5fa","--limbo-primary-hover":"#3b82f6","--limbo-primary-light":"#1e293b","--limbo-primary-dark":"#93c5fd","--limbo-bg-primary":"#0f172a","--limbo-bg-secondary":"#1e293b","--limbo-bg-tertiary":"#334155","--limbo-bg-overlay":"rgba(0, 0, 0, 0.8)","--limbo-bg-card":"#1e293b","--limbo-bg-input":"#334155","--limbo-text-primary":"#f8fafc","--limbo-text-secondary":"#cbd5e1","--limbo-text-tertiary":"#94a3b8","--limbo-text-inverse":"#0f172a","--limbo-text-muted":"#64748b","--limbo-border-light":"#334155","--limbo-border-medium":"#475569","--limbo-border-strong":"#64748b","--limbo-border-focus":"#60a5fa","--limbo-success":"#34d399","--limbo-success-light":"#064e3b","--limbo-error":"#f87171","--limbo-error-light":"#7f1d1d","--limbo-warning":"#fbbf24","--limbo-warning-light":"#78350f","--limbo-info":"#60a5fa","--limbo-info-light":"#1e3a8a","--limbo-shadow-sm":"0 1px 2px 0 rgba(0, 0, 0, 0.2)","--limbo-shadow-md":"0 4px 6px -1px rgba(0, 0, 0, 0.3)","--limbo-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.4)","--limbo-shadow-xl":"0 20px 25px -5px rgba(0, 0, 0, 0.5)","--limbo-radius-sm":"4px","--limbo-radius-md":"6px","--limbo-radius-lg":"8px","--limbo-radius-xl":"12px","--limbo-font-family":"system-ui, -apple-system, sans-serif","--limbo-font-size-xs":"12px","--limbo-font-size-sm":"14px","--limbo-font-size-md":"16px","--limbo-font-size-lg":"18px","--limbo-font-size-xl":"20px","--limbo-z-dropdown":"1000","--limbo-z-sticky":"1020","--limbo-z-fixed":"1030","--limbo-z-modal":"1050","--limbo-z-tooltip":"1070","--limbo-transition-fast":"150ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-normal":"300ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-slow":"500ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-spacing-compact":"0.5rem","--limbo-spacing-compact-sm":"0.25rem","--limbo-spacing-compact-lg":"0.75rem","--limbo-font-size-compact-xs":"11px","--limbo-font-size-compact-sm":"12px","--limbo-font-size-compact-md":"14px","--limbo-font-size-compact-lg":"16px","--limbo-radius-compact":"4px","--limbo-radius-compact-sm":"3px","--limbo-radius-compact-lg":"6px","--limbo-button-height-compact":"32px","--limbo-input-height-compact":"36px","--limbo-modal-padding-compact":"12px","--limbo-card-padding-compact":"12px","--limbo-gap-compact":"8px","--limbo-gap-compact-sm":"4px","--limbo-gap-compact-lg":"12px"}},auto:{name:"auto",displayName:"Automático",variables:{}}},inheritance:{portalSelectors:["body","[data-theme]",".theme-light",".theme-dark",".light-theme",".dark-theme"],variablePrefix:"--",fallbackTheme:"light"},transitions:{duration:"300ms",easing:"cubic-bezier(0.4, 0, 0.2, 1)",properties:["background-color","border-color","color","fill","stroke","box-shadow"]}}}initialize(e={}){this.isInitialized?console.warn("ThemeManager already initialized"):(this.config=this._deepMerge(this.config,e),this._loadCustomThemes(),this.config.theme.inherit&&this._inheritPortalTheme(),this._applyInitialTheme(),this._applyInitialCompactMode(),this._setupObservers(),this._injectBaseStyles(),this.isInitialized=!0)}_injectBaseStyles(){if(document.getElementById("limbo-theme-styles"))return;const e=`\n :root {\n /* Variables de transición para cambios de tema */\n color-scheme: light dark;\n }\n \n [data-limbo-theme] {\n transition: ${this.config.transitions.properties.map(e=>`${e} ${this.config.transitions.duration} ${this.config.transitions.easing}`).join(", ")};\n }\n \n /* Clases de utilidad para temas */\n .limbo-theme-light {\n color-scheme: light;\n }\n \n .limbo-theme-dark {\n color-scheme: dark;\n }\n \n .limbo-theme-auto {\n color-scheme: light dark;\n }\n \n /* Estilos para elementos del componente con variables CSS */\n .limbo-component {\n background-color: var(--limbo-bg-primary);\n color: var(--limbo-text-primary);\n border-color: var(--limbo-border-light);\n border-radius: var(--limbo-radius-md);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-normal);\n }\n \n .limbo-card {\n background-color: var(--limbo-bg-card);\n border: 1px solid var(--limbo-border-light);\n border-radius: var(--limbo-radius-lg);\n box-shadow: var(--limbo-shadow-md);\n color: var(--limbo-text-primary);\n }\n \n .limbo-input {\n background-color: var(--limbo-bg-input);\n border: 1px solid var(--limbo-border-medium);\n border-radius: var(--limbo-radius-md);\n color: var(--limbo-text-primary);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-fast);\n }\n \n .limbo-input:focus {\n border-color: var(--limbo-border-focus);\n box-shadow: 0 0 0 3px var(--limbo-primary-light);\n outline: none;\n }\n \n .limbo-button {\n background-color: var(--limbo-primary);\n border: 1px solid var(--limbo-primary);\n border-radius: var(--limbo-radius-md);\n color: var(--limbo-text-inverse);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-fast);\n cursor: pointer;\n }\n \n .limbo-button:hover {\n background-color: var(--limbo-primary-hover);\n border-color: var(--limbo-primary-hover);\n }\n \n .limbo-button.secondary {\n background-color: var(--limbo-bg-secondary);\n border-color: var(--limbo-border-medium);\n color: var(--limbo-text-primary);\n }\n \n .limbo-button.secondary:hover {\n background-color: var(--limbo-bg-tertiary);\n }\n \n /* Estados de feedback con variables */\n .limbo-state-success {\n background-color: var(--limbo-success-light);\n border-color: var(--limbo-success);\n color: var(--limbo-success);\n }\n \n .limbo-state-error {\n background-color: var(--limbo-error-light);\n border-color: var(--limbo-error);\n color: var(--limbo-error);\n }\n \n .limbo-state-warning {\n background-color: var(--limbo-warning-light);\n border-color: var(--limbo-warning);\n color: var(--limbo-warning);\n }\n \n .limbo-state-info {\n background-color: var(--limbo-info-light);\n border-color: var(--limbo-info);\n color: var(--limbo-info);\n }\n \n /* Overlay y modal con variables */\n .limbo-overlay {\n background-color: var(--limbo-bg-overlay);\n backdrop-filter: blur(4px);\n }\n \n .limbo-modal {\n background-color: var(--limbo-bg-card);\n border-radius: var(--limbo-radius-xl);\n box-shadow: var(--limbo-shadow-xl);\n color: var(--limbo-text-primary);\n }\n \n /* Responsive design con variables */\n @media (max-width: 640px) {\n .limbo-component {\n font-size: var(--limbo-font-size-sm);\n }\n }\n \n /* Modo reducido de movimiento */\n @media (prefers-reduced-motion: reduce) {\n [data-limbo-theme] {\n transition: none;\n }\n \n .limbo-component,\n .limbo-input,\n .limbo-button {\n transition: none;\n }\n }\n \n /* Esquemas de color automático */\n @media (prefers-color-scheme: dark) {\n :root:not([data-limbo-theme]) {\n color-scheme: dark;\n }\n }\n \n @media (prefers-color-scheme: light) {\n :root:not([data-limbo-theme]) {\n color-scheme: light;\n }\n }\n \n /* ===================================\n MODO COMPACTO - ESTILOS ESPECÍFICOS \n =================================== */\n \n /* Activación del modo compacto por atributo o clase */\n [data-limbo-compact="true"],\n .limbo-compact-mode {\n /* Componentes base más pequeños */\n --limbo-font-size-md: var(--limbo-font-size-compact-md);\n --limbo-font-size-sm: var(--limbo-font-size-compact-sm);\n --limbo-font-size-lg: var(--limbo-font-size-compact-lg);\n --limbo-spacing: var(--limbo-spacing-compact);\n --limbo-radius-md: var(--limbo-radius-compact);\n --limbo-gap: var(--limbo-gap-compact);\n }\n \n /* Botones compactos */\n [data-limbo-compact="true"] .limbo-button,\n .limbo-compact-mode .limbo-button {\n height: var(--limbo-button-height-compact);\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact);\n min-width: auto;\n }\n \n /* Inputs compactos */\n [data-limbo-compact="true"] .limbo-input,\n .limbo-compact-mode .limbo-input {\n height: var(--limbo-input-height-compact);\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-md);\n border-radius: var(--limbo-radius-compact);\n }\n \n /* Cards compactas */\n [data-limbo-compact="true"] .limbo-card,\n .limbo-compact-mode .limbo-card {\n padding: var(--limbo-card-padding-compact);\n border-radius: var(--limbo-radius-compact-lg);\n }\n \n /* Modales compactos */\n [data-limbo-compact="true"] .limbo-modal,\n .limbo-compact-mode .limbo-modal {\n padding: var(--limbo-modal-padding-compact);\n border-radius: var(--limbo-radius-compact-lg);\n max-width: 90vw;\n max-height: 90vh;\n }\n \n /* Tabs compactas */\n [data-limbo-compact="true"] .limbo-tabs,\n .limbo-compact-mode .limbo-tabs {\n gap: var(--limbo-gap-compact-sm);\n }\n \n [data-limbo-compact="true"] .limbo-tab,\n .limbo-compact-mode .limbo-tab {\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact-sm);\n }\n \n /* Gallery compacta */\n [data-limbo-compact="true"] .limbo-gallery,\n .limbo-compact-mode .limbo-gallery {\n gap: var(--limbo-gap-compact-sm);\n }\n \n [data-limbo-compact="true"] .limbo-gallery-item,\n .limbo-compact-mode .limbo-gallery-item {\n border-radius: var(--limbo-radius-compact);\n min-height: 120px; /* Más pequeño para móviles */\n }\n \n /* Notificaciones compactas */\n [data-limbo-compact="true"] .limbo-notification,\n .limbo-compact-mode .limbo-notification {\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact);\n }\n \n /* Progress indicators compactos */\n [data-limbo-compact="true"] .limbo-progress,\n .limbo-compact-mode .limbo-progress {\n height: 3px; /* Más delgado */\n }\n \n [data-limbo-compact="true"] .limbo-progress-circular,\n .limbo-compact-mode .limbo-progress-circular {\n width: 20px;\n height: 20px;\n }\n \n /* Auto-activación en pantallas pequeñas */\n @media (max-width: 768px) {\n :root[data-limbo-compact="auto"],\n .limbo-component[data-limbo-compact="auto"] {\n /* Aplicar automáticamente estilos compactos */\n --limbo-font-size-md: var(--limbo-font-size-compact-md);\n --limbo-font-size-sm: var(--limbo-font-size-compact-sm);\n --limbo-spacing: var(--limbo-spacing-compact);\n --limbo-radius-md: var(--limbo-radius-compact);\n --limbo-gap: var(--limbo-gap-compact);\n }\n \n /* Modal full-screen en móvil cuando es compacto */\n [data-limbo-compact="auto"] .limbo-modal,\n [data-limbo-compact="true"] .limbo-modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n max-width: 100vw;\n max-height: 100vh;\n border-radius: 0;\n margin: 0;\n }\n \n /* Tabs en accordion en móvil */\n [data-limbo-compact="auto"] .limbo-tabs,\n [data-limbo-compact="true"] .limbo-tabs {\n flex-direction: column;\n width: 100%;\n }\n \n /* Gallery de 2 columnas en móvil */\n [data-limbo-compact="auto"] .limbo-gallery,\n [data-limbo-compact="true"] .limbo-gallery {\n grid-template-columns: 1fr 1fr;\n gap: var(--limbo-gap-compact);\n }\n }\n \n /* Touch targets más grandes en móviles */\n @media (max-width: 768px) and (pointer: coarse) {\n [data-limbo-compact="auto"] .limbo-button,\n [data-limbo-compact="true"] .limbo-button {\n min-height: 44px; /* Tamaño mínimo de toque recomendado */\n padding: var(--limbo-spacing-compact) var(--limbo-spacing-compact-lg);\n }\n \n [data-limbo-compact="auto"] .limbo-tab,\n [data-limbo-compact="true"] .limbo-tab {\n min-height: 44px;\n }\n }\n `,t=document.createElement("style");t.id="limbo-theme-styles",t.textContent=e,document.head.appendChild(t)}applyTheme(e,t={}){const n=this._getTheme(e);if(!n)return console.warn(`Theme '${e}' not found`),!1;const r=this.currentTheme;return this._applyThemeVariables(n,t.scope),this._updateThemeAttributes(n.name),this.config.theme.storage&&!t.temporary&&this._saveThemePreference(n.name),this.currentTheme=n.name,this._triggerChangeCallbacks(n.name,r),!0}toggleTheme(e="light",t="dark"){const n=this.currentTheme===e?t:e;return this.applyTheme(n)}applyAutoTheme(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return this.applyTheme(e)}registerTheme(e,t){const n={name:e,displayName:t.displayName||e,variables:t.variables||{},extends:t.extends||null,...t};if(n.extends){const e=this._getTheme(n.extends);e&&(n.variables={...e.variables,...n.variables})}return this.customThemes.set(e,n),this}removeTheme(e){if(this.config.presets[e])return console.warn(`Cannot remove predefined theme: ${e}`),!1;const t=this.customThemes.delete(e);return t&&this.currentTheme===e&&this.applyTheme(this.config.inheritance.fallbackTheme),t}getAvailableThemes(){const e=Object.keys(this.config.presets),t=Array.from(this.customThemes.keys());return{presets:e,custom:t,all:[...e,...t]}}getCurrentTheme(){return{name:this.currentTheme,theme:this._getTheme(this.currentTheme),isCustom:this.customThemes.has(this.currentTheme),variables:this._getCurrentVariables()}}enableCompactMode(e={}){const t={element:document.documentElement,persist:!0,...e};return t.element.setAttribute("data-limbo-compact","true"),t.element.classList.add("limbo-compact-mode"),this.isCompactMode=!0,t.persist&&this.config.compact.persistPreference&&this._saveCompactPreference(!0),this._triggerCompactChange(!0),this}disableCompactMode(e={}){const t={element:document.documentElement,persist:!0,...e};return t.element.setAttribute("data-limbo-compact","false"),t.element.classList.remove("limbo-compact-mode"),this.isCompactMode=!1,t.persist&&this.config.compact.persistPreference&&this._saveCompactPreference(!1),this._triggerCompactChange(!1),this}toggleCompactMode(e={}){return this.isCompactMode?this.disableCompactMode(e):this.enableCompactMode(e)}applyAutoCompactMode(){const e=this._shouldUseCompactMode();return e&&!this.isCompactMode?this.enableCompactMode({persist:!1}):!e&&this.isCompactMode&&this.disableCompactMode({persist:!1}),this}getCompactState(){return{isEnabled:this.isCompactMode,isAuto:this.config.compact.auto,breakpoint:this.config.compact.breakpoint,currentViewport:window.innerWidth,shouldBeCompact:this._shouldUseCompactMode()}}_shouldUseCompactMode(){if(!this.config.compact.auto)return this.config.compact.enabled;const e=window.innerWidth<=this.config.compact.breakpoint,t=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),n="ontouchstart"in window||navigator.maxTouchPoints>0;return!(!this.config.compact.forceOnMobile||!t&&!n)||e}_saveCompactPreference(e){try{localStorage.setItem("limbo-compact-preference",e.toString())}catch(e){console.warn("Could not save compact preference:",e)}}_loadCompactPreference(){try{return"true"===localStorage.getItem("limbo-compact-preference")}catch(e){return console.warn("Could not load compact preference:",e),null}}_triggerCompactChange(e){this.changeCallbacks.forEach(t=>{try{t({type:"compact",isCompact:e,viewport:window.innerWidth,timestamp:Date.now()})}catch(e){console.error("Error in compact mode change callback:",e)}})}_inheritPortalTheme(){const e=this._detectPortalTheme();return e?(this.registerTheme("portal-inherited",e),"portal-inherited"):null}_detectPortalTheme(){const e={name:"portal-detected",displayName:"Tema del Portal",variables:{}};for(const t of this.config.inheritance.portalSelectors){const n=document.querySelector(t);if(n){const t=this._extractCSSVariables(n);Object.keys(t).length>0&&(e.variables={...e.variables,...t});const r=n.getAttribute("data-theme")||n.getAttribute("class")?.match(/theme-(\w+)/)||n.getAttribute("class")?.match(/(\w+)-theme/);r&&(e.detectedName=Array.isArray(r)?r[1]:r)}}return Object.keys(e.variables).length>0?e:null}_extractCSSVariables(e){const t={},n=getComputedStyle(e);return["primary","primary-hover","primary-light","primary-dark","bg-primary","bg-secondary","bg-tertiary","bg-card","bg-input","text-primary","text-secondary","text-tertiary","text-inverse","border-light","border-medium","border-strong","border-focus","success","error","warning","info","shadow-sm","shadow-md","shadow-lg","shadow-xl","radius-sm","radius-md","radius-lg","radius-xl"].forEach(e=>{const r=`--limbo-${e}`,a=n.getPropertyValue(r).trim();a&&(t[r]=a)}),["--primary-color","--background-color","--text-color","--border-color","--accent-color","--surface-color"].forEach(e=>{const r=n.getPropertyValue(e).trim();if(r){const n=this._mapGenericToLimbo(e,r);n&&Object.assign(t,n)}}),t}_mapGenericToLimbo(e,t){return{"--primary-color":{"--limbo-primary":t},"--background-color":{"--limbo-bg-primary":t},"--text-color":{"--limbo-text-primary":t},"--border-color":{"--limbo-border-light":t},"--accent-color":{"--limbo-primary":t},"--surface-color":{"--limbo-bg-card":t}}[e]||null}_applyInitialTheme(){let e=this.config.inheritance.fallbackTheme;if(this.config.theme.storage){const t=this._loadThemePreference();t&&this._getTheme(t)&&(e=t)}const t=document.documentElement.getAttribute("data-limbo-theme");t&&this._getTheme(t)&&(e=t);const n=this._inheritPortalTheme();n&&(e=n),this.config.theme.auto&&"auto"===e&&(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),this.applyTheme(e,{temporary:!1})}_applyInitialCompactMode(){let e=!1;if(this.config.compact.persistPreference){const t=this._loadCompactPreference();null!==t&&(e=t)}const t=document.documentElement.getAttribute("data-limbo-compact");"true"===t?e=!0:"false"===t&&(e=!1),("auto"===t||this.config.compact.auto)&&(e=this._shouldUseCompactMode()),e?this.enableCompactMode({persist:!1}):this.disableCompactMode({persist:!1})}_applyThemeVariables(e,t=document.documentElement){const n="string"==typeof t?document.querySelector(t):t;n?(Object.entries(e.variables).forEach(([e,t])=>{n.style.setProperty(e,t),this.appliedStyles.add(`${n.tagName}:${e}`)}),this.themeCache.set(e.name,{theme:e,appliedAt:Date.now(),scope:n})):console.warn("Theme scope element not found")}_updateThemeAttributes(e){document.documentElement.setAttribute("data-limbo-theme",e),document.documentElement.classList.remove("limbo-theme-light","limbo-theme-dark","limbo-theme-auto"),document.documentElement.classList.add(`limbo-theme-${e}`),this._updateMetaThemeColor(e)}_updateMetaThemeColor(e){const t=this._getTheme(e);if(!t)return;const n=t.variables["--limbo-primary"]||"#3b82f6";let r=document.querySelector('meta[name="theme-color"]');r||(r=document.createElement("meta"),r.name="theme-color",document.head.appendChild(r)),r.content=n}_getTheme(e){return this.config.presets[e]?this.config.presets[e]:this.customThemes.has(e)?this.customThemes.get(e):null}_getCurrentVariables(){const e=this._getTheme(this.currentTheme);if(!e)return{};const t=getComputedStyle(document.documentElement),n={};return Object.keys(e.variables).forEach(e=>{n[e]=t.getPropertyValue(e).trim()}),n}_saveThemePreference(e){try{localStorage.setItem("limbo-theme-preference",e)}catch(e){console.warn("Could not save theme preference:",e)}}_loadThemePreference(){try{return localStorage.getItem("limbo-theme-preference")}catch(e){return console.warn("Could not load theme preference:",e),null}}_loadCustomThemes(){try{const e=localStorage.getItem("limbo-custom-themes");if(e){const t=JSON.parse(e);Object.entries(t).forEach(([e,t])=>{this.customThemes.set(e,t)})}}catch(e){console.warn("Could not load custom themes:",e)}}_saveCustomThemes(){try{const e=Object.fromEntries(this.customThemes);localStorage.setItem("limbo-custom-themes",JSON.stringify(e))}catch(e){console.warn("Could not save custom themes:",e)}}_setupObservers(){this.config.theme.detectSystem&&this._setupSystemObserver(),this.config.theme.storage&&this._setupStorageObserver(),this._setupMutationObserver(),this.config.compact.auto&&this._setupViewportObserver()}_setupSystemObserver(){const e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener("change",e=>{if("auto"===this.currentTheme||this.config.theme.auto){const t=e.matches?"dark":"light";this.applyTheme(t,{temporary:!0})}}),this.mediaQueryObserver=e}_setupStorageObserver(){const e=e=>{"limbo-theme-preference"===e.key&&e.newValue!==this.currentTheme&&this._getTheme(e.newValue)&&this.applyTheme(e.newValue)};window.addEventListener("storage",e),this.storageListener=e}_setupMutationObserver(){const e=new MutationObserver(e=>{e.forEach(e=>{if("attributes"===e.type&&"data-limbo-theme"===e.attributeName){const t=e.target.getAttribute("data-limbo-theme");t&&t!==this.currentTheme&&this._getTheme(t)&&this.applyTheme(t)}})});e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-limbo-theme"]}),this.mutationObserver=e}_setupViewportObserver(){const e=`(max-width: ${this.config.compact.breakpoint}px)`,t=window.matchMedia(e);t.addEventListener("change",()=>{("auto"===document.documentElement.getAttribute("data-limbo-compact")||this.config.compact.auto)&&this.applyAutoCompactMode()}),this.compactObserver=t,window.addEventListener("orientationchange",()=>{setTimeout(()=>{("auto"===document.documentElement.getAttribute("data-limbo-compact")||this.config.compact.auto)&&this.applyAutoCompactMode()},100)})}onThemeChange(e){return this.changeCallbacks.add(e),()=>this.changeCallbacks.delete(e)}_triggerChangeCallbacks(e,t){this.changeCallbacks.forEach(n=>{try{n({theme:e,previousTheme:t,themeData:this._getTheme(e),variables:this._getCurrentVariables()})}catch(e){console.error("Error in theme change callback:",e)}})}generateThemeFromColors(e,t){const n={name:e,displayName:e,variables:{}};t.primary&&(n.variables["--limbo-primary"]=t.primary,n.variables["--limbo-primary-hover"]=this._darkenColor(t.primary,10),n.variables["--limbo-primary-light"]=this._lightenColor(t.primary,40),n.variables["--limbo-primary-dark"]=this._darkenColor(t.primary,20)),t.background&&(n.variables["--limbo-bg-primary"]=t.background,n.variables["--limbo-bg-secondary"]=this._lightenColor(t.background,5),n.variables["--limbo-bg-tertiary"]=this._lightenColor(t.background,10),n.variables["--limbo-bg-card"]=t.background),t.text&&(n.variables["--limbo-text-primary"]=t.text,n.variables["--limbo-text-secondary"]=this._lightenColor(t.text,20),n.variables["--limbo-text-tertiary"]=this._lightenColor(t.text,40));const r=this._getTheme(this.config.inheritance.fallbackTheme);return r&&(n.variables={...r.variables,...n.variables}),this.registerTheme(e,n),n}_darkenColor(e,t){const n=parseInt(e.replace("#",""),16),r=Math.round(2.55*t),a=(n>>16)-r,o=(n>>8&255)-r,i=(255&n)-r;return"#"+(16777216+65536*(a<255?a<1?0:a:255)+256*(o<255?o<1?0:o:255)+(i<255?i<1?0:i:255)).toString(16).slice(1)}_lightenColor(e,t){const n=parseInt(e.replace("#",""),16),r=Math.round(2.55*t),a=(n>>16)+r,o=(n>>8&255)+r,i=(255&n)+r;return"#"+(16777216+65536*(a<255?a<1?0:a:255)+256*(o<255?o<1?0:o:255)+(i<255?i<1?0:i:255)).toString(16).slice(1)}_deepMerge(e,t){const n={...e};return Object.keys(t).forEach(r=>{t[r]&&"object"==typeof t[r]&&!Array.isArray(t[r])?n[r]=this._deepMerge(e[r]||{},t[r]):n[r]=t[r]}),n}getThemeInfo(){return{current:this.getCurrentTheme(),available:this.getAvailableThemes(),compact:this.getCompactState(),config:this.config,isInitialized:this.isInitialized,cache:{themes:this.themeCache.size,applied:this.appliedStyles.size},observers:{system:!!this.mediaQueryObserver,storage:!!this.storageListener,mutation:!!this.mutationObserver,viewport:!!this.compactObserver}}}debug(){return console.table(this.getThemeInfo()),this.getThemeInfo()}destroy(){this.mediaQueryObserver&&this.mediaQueryObserver.removeEventListener("change",this._setupSystemObserver),this.storageListener&&window.removeEventListener("storage",this.storageListener),this.mutationObserver&&this.mutationObserver.disconnect(),this.compactObserver&&this.compactObserver.removeEventListener("change",this._setupViewportObserver),this.changeCallbacks.clear(),this.themeCache.clear(),this.appliedStyles.clear(),this._saveCustomThemes();const e=document.getElementById("limbo-theme-styles");e&&e.remove(),this.isInitialized=!1}}const pn=new class{constructor(){this.config=new n,this.instances=new ln,this.autoInputs=new sn,this.events=new cn,this.modals=new un,this.theme=new fn,this.containerQueryDetector=U,this._setupInternalListeners(),this._initializeContainerQueries()}configure(e){var t;return this.config.setGlobal(e),t={publicKey:e.publicKey,apiKey:e.apiKey,token:e.token,authMode:e.authMode,prod:e.prod||!1},B={...B,...t},B.authMode||(B.token?B.authMode="manual":B.authMode="session"),this.config}setToken(e){return function(e){B.token=e}(e),this}create(e){const t=this.config.merge(e);return this.instances.create(t,this.events,this.modals)}configureAutoInputs(e){return this.autoInputs.configure(e,this.config,this.events)}setTheme(e){return e&&(this.config.set("theme",e),this.theme.setTheme(e),this.events.emit("theme:changed",{theme:e})),this}getTheme(){return this.theme.getCurrentTheme()}scanAndActivate(e=null){const t=this.autoInputs.config?.dataset||"data-limbo-input-file",n=e||`[${t}]`,r=document.querySelectorAll(n);if(0===r.length)return{found:0,processed:0,skipped:0};let a=0,o=0;return r.forEach(e=>{try{this.autoInputs._processInput(e),a++}catch(t){console.warn(`⚠️ Limbo: Error procesando input ${e.id||e.name}:`,t),o++}}),this.events.emit("limbo:scanCompleted",{found:r.length,processed:a,skipped:o,inputs:Array.from(r)}),{found:r.length,processed:a,skipped:o}}_initializeContainerQueries(){this.containerQueryDetector.observeResize(),setTimeout(()=>{document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.containerQueryDetector.applyResponsiveClasses(e)})},100)}rescan(e=document){const t=this.autoInputs.config?.dataset||"data-limbo-input-file",n=e.querySelectorAll(`[${t}]`);let r=0;return n.forEach(e=>{if(!this.autoInputs.instances.has(this.autoInputs._getInputId(e)))try{this.autoInputs._processInput(e),r++}catch(e){console.warn("⚠️ Limbo: Error procesando nuevo input:",e)}}),r}init(e){const t=this._mapLegacyOptions(e);return this.create(t)}getInstances(){return this.instances.getAll()}destroy(){this.instances.destroyAll(),this.autoInputs.cleanup(),this.events.cleanup(),this.theme.removeTheme()}_mapLegacyOptions(e){return{container:e.container||"#image-manager",mode:"embed",features:["gallery","upload","cropper"],apiKey:e.apiKey,prod:e.prod||!1,url:void 0===e.url||e.url}}_setupInternalListeners(){this.events.on("autoInputs:modalRequest",({config:e,callback:t})=>{this._handleAutoInputModalRequest({config:e,callback:t})})}_handleAutoInputModalRequest({config:e,callback:t}){const n=this.create({...e,mode:"modal",autoDestroy:!0,callbacks:{onSelect:e=>{t(e),n.close()},onClose:()=>{}}});n.open()}};return"undefined"!=typeof window&&(window.Limbo=pn),"undefined"!=typeof window&&document.querySelector("#root")&&(pn.configure({prod:!1,publicKey:"pk_9fcfdd91a14755cc68d0e11a14269554",authMode:"session",tokenEndpoint:"/auth/token"}),pn.create({container:"#root",mode:"embed",modeUI:"full",features:["gallery","upload","cropper"],title:"Limbo Image Manager - Development",url:!0}),pn.configureAutoInputs({dataset:"data-limbo-input-file",return:"url",features:["gallery","upload","cropper"],modeUI:"full",modalSize:"large",title:"Seleccionar imagen",crops:"free",allowDelete:!1})),pn});