181 lines
344 KiB
JavaScript
181 lines
344 KiB
JavaScript
function AX(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Wv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var GN={exports:{}},Zv={},YN={exports:{}},lp={exports:{}};lp.exports;var u5;function OX(){return u5||(u5=1,(function(e,t){/**
|
||
* @license React
|
||
* react.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(){function n($,le){Object.defineProperty(s.prototype,$,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",le[0],le[1])}})}function r($){return $===null||typeof $!="object"?null:($=ie&&$[ie]||$["@@iterator"],typeof $=="function"?$:null)}function o($,le){$=($=$.constructor)&&($.displayName||$.name)||"ReactClass";var Ee=$+"."+le;ze[Ee]||(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.",le,$),ze[Ee]=!0)}function s($,le,Ee){this.props=$,this.context=le,this.refs=$e,this.updater=Ee||we}function u(){}function c($,le,Ee){this.props=$,this.context=le,this.refs=$e,this.updater=Ee||we}function f(){}function m($){return""+$}function g($){try{m($);var le=!1}catch{le=!0}if(le){le=console;var Ee=le.error,Te=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return Ee.call(le,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Te),m($)}}function p($){if($==null)return null;if(typeof $=="function")return $.$$typeof===xn?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case I:return"Fragment";case W:return"Profiler";case Z:return"StrictMode";case ue:return"Suspense";case xe:return"SuspenseList";case de:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case ne:return"Portal";case ge:return $.displayName||"Context";case ae:return($._context.displayName||"Context")+".Consumer";case Ne:var le=$.render;return $=$.displayName,$||($=le.displayName||le.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case me:return le=$.displayName||null,le!==null?le:p($.type)||"Memo";case be:le=$._payload,$=$._init;try{return p($(le))}catch{}}return null}function y($){if($===I)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===be)return"<...>";try{var le=p($);return le?"<"+le+">":"<...>"}catch{return"<...>"}}function b(){var $=je.A;return $===null?null:$.getOwner()}function S(){return Error("react-stack-top-frame")}function x($){if(ir.call($,"key")){var le=Object.getOwnPropertyDescriptor($,"key").get;if(le&&le.isReactWarning)return!1}return $.key!==void 0}function N($,le){function Ee(){Un||(Un=!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)",le))}Ee.isReactWarning=!0,Object.defineProperty($,"key",{get:Ee,configurable:!0})}function T(){var $=p(this.type);return di[$]||(di[$]=!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.")),$=this.props.ref,$!==void 0?$:null}function _($,le,Ee,Te,Me,Ze){var Se=Ee.ref;return $={$$typeof:te,type:$,key:le,props:Ee,_owner:Te},(Se!==void 0?Se:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:T}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Me}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ze}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function D($,le){return le=_($.type,le,$.props,$._owner,$._debugStack,$._debugTask),$._store&&(le._store.validated=$._store.validated),le}function P($){A($)?$._store&&($._store.validated=1):typeof $=="object"&&$!==null&&$.$$typeof===be&&($._payload.status==="fulfilled"?A($._payload.value)&&$._payload.value._store&&($._payload.value._store.validated=1):$._store&&($._store.validated=1))}function A($){return typeof $=="object"&&$!==null&&$.$$typeof===te}function C($){var le={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(Ee){return le[Ee]})}function j($,le){return typeof $=="object"&&$!==null&&$.key!=null?(g($.key),C(""+$.key)):le.toString(36)}function L($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(f,f):($.status="pending",$.then(function(le){$.status==="pending"&&($.status="fulfilled",$.value=le)},function(le){$.status==="pending"&&($.status="rejected",$.reason=le)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function V($,le,Ee,Te,Me){var Ze=typeof $;(Ze==="undefined"||Ze==="boolean")&&($=null);var Se=!1;if($===null)Se=!0;else switch(Ze){case"bigint":case"string":case"number":Se=!0;break;case"object":switch($.$$typeof){case te:case ne:Se=!0;break;case be:return Se=$._init,V(Se($._payload),le,Ee,Te,Me)}}if(Se){Se=$,Me=Me(Se);var He=Te===""?"."+j(Se,0):Te;return zn(Me)?(Ee="",He!=null&&(Ee=He.replace(cs,"$&/")+"/"),V(Me,le,Ee,"",function(It){return It})):Me!=null&&(A(Me)&&(Me.key!=null&&(Se&&Se.key===Me.key||g(Me.key)),Ee=D(Me,Ee+(Me.key==null||Se&&Se.key===Me.key?"":(""+Me.key).replace(cs,"$&/")+"/")+He),Te!==""&&Se!=null&&A(Se)&&Se.key==null&&Se._store&&!Se._store.validated&&(Ee._store.validated=2),Me=Ee),le.push(Me)),1}if(Se=0,He=Te===""?".":Te+":",zn($))for(var Be=0;Be<$.length;Be++)Te=$[Be],Ze=He+j(Te,Be),Se+=V(Te,le,Ee,Ze,Me);else if(Be=r($),typeof Be=="function")for(Be===$.entries&&(Ba||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ba=!0),$=Be.call($),Be=0;!(Te=$.next()).done;)Te=Te.value,Ze=He+j(Te,Be++),Se+=V(Te,le,Ee,Ze,Me);else if(Ze==="object"){if(typeof $.then=="function")return V(L($),le,Ee,Te,Me);throw le=String($),Error("Objects are not valid as a React child (found: "+(le==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":le)+"). If you meant to render a collection of children, use an array instead.")}return Se}function B($,le,Ee){if($==null)return $;var Te=[],Me=0;return V($,Te,"","",function(Ze){return le.call(Ee,Ze,Me++)}),Te}function z($){if($._status===-1){var le=$._ioInfo;le!=null&&(le.start=le.end=performance.now()),le=$._result;var Ee=le();if(Ee.then(function(Me){if($._status===0||$._status===-1){$._status=1,$._result=Me;var Ze=$._ioInfo;Ze!=null&&(Ze.end=performance.now()),Ee.status===void 0&&(Ee.status="fulfilled",Ee.value=Me)}},function(Me){if($._status===0||$._status===-1){$._status=2,$._result=Me;var Ze=$._ioInfo;Ze!=null&&(Ze.end=performance.now()),Ee.status===void 0&&(Ee.status="rejected",Ee.reason=Me)}}),le=$._ioInfo,le!=null){le.value=Ee;var Te=Ee.displayName;typeof Te=="string"&&(le.name=Te)}$._status===-1&&($._status=0,$._result=Ee)}if($._status===1)return le=$._result,le===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
||
|
||
Your code should look like:
|
||
const MyComponent = lazy(() => import('./MyComponent'))
|
||
|
||
Did you accidentally put curly braces around the import?`,le),"default"in le||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
||
|
||
Your code should look like:
|
||
const MyComponent = lazy(() => import('./MyComponent'))`,le),le.default;throw $._result}function q(){var $=je.H;return $===null&&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:
|
||
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
||
2. You might be breaking the Rules of Hooks
|
||
3. You might have more than one copy of React in the same app
|
||
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),$}function F(){je.asyncTransitions--}function Y($){if(Lr===null)try{var le=("require"+Math.random()).slice(0,7);Lr=(e&&e[le]).call(e,"timers").setImmediate}catch{Lr=function(Te){ds===!1&&(ds=!0,typeof MessageChannel>"u"&&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 Me=new MessageChannel;Me.port1.onmessage=Te,Me.port2.postMessage(void 0)}}return Lr($)}function ee($){return 1<$.length&&typeof AggregateError=="function"?new AggregateError($):$[0]}function U($,le){le!==mi-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. "),mi=le}function G($,le,Ee){var Te=je.actQueue;if(Te!==null)if(Te.length!==0)try{K(Te),Y(function(){return G($,le,Ee)});return}catch(Me){je.thrownErrors.push(Me)}else je.actQueue=null;0<je.thrownErrors.length?(Te=ee(je.thrownErrors),je.thrownErrors.length=0,Ee(Te)):le($)}function K($){if(!co){co=!0;var le=0;try{for(;le<$.length;le++){var Ee=$[le];do{je.didUsePromise=!1;var Te=Ee(!1);if(Te!==null){if(je.didUsePromise){$[le]=Ee,$.splice(0,le);return}Ee=Te}else break}while(!0)}$.length=0}catch(Me){$.splice(0,le+1),je.thrownErrors.push(Me)}finally{co=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var te=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),Ne=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),xe=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ie=Symbol.iterator,ze={},we={isMounted:function(){return!1},enqueueForceUpdate:function($){o($,"forceUpdate")},enqueueReplaceState:function($){o($,"replaceState")},enqueueSetState:function($){o($,"setState")}},lt=Object.assign,$e={};Object.freeze($e),s.prototype.isReactComponent={},s.prototype.setState=function($,le){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,le,"setState")},s.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};var et={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(pi in et)et.hasOwnProperty(pi)&&n(pi,et[pi]);u.prototype=s.prototype,et=c.prototype=new u,et.constructor=c,lt(et,s.prototype),et.isPureReactComponent=!0;var zn=Array.isArray,xn=Symbol.for("react.client.reference"),je={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ir=Object.prototype.hasOwnProperty,wt=console.createTask?console.createTask:function(){return null};et={react_stack_bottom_frame:function($){return $()}};var Un,Mr,di={},Gr=et.react_stack_bottom_frame.bind(et,S)(),fi=wt(y(S)),Ba=!1,cs=/\/+/g,pa=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var le=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(le))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},ds=!1,Lr=null,mi=0,uo=!1,co=!1,fo=typeof queueMicrotask=="function"?function($){queueMicrotask(function(){return queueMicrotask($)})}:Y;et=Object.freeze({__proto__:null,c:function($){return q().useMemoCache($)}});var pi={map:B,forEach:function($,le,Ee){B($,function(){le.apply(this,arguments)},Ee)},count:function($){var le=0;return B($,function(){le++}),le},toArray:function($){return B($,function(le){return le})||[]},only:function($){if(!A($))throw Error("React.Children.only expected to receive a single React element child.");return $}};t.Activity=de,t.Children=pi,t.Component=s,t.Fragment=I,t.Profiler=W,t.PureComponent=c,t.StrictMode=Z,t.Suspense=ue,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=je,t.__COMPILER_RUNTIME=et,t.act=function($){var le=je.actQueue,Ee=mi;mi++;var Te=je.actQueue=le!==null?le:[],Me=!1;try{var Ze=$()}catch(Be){je.thrownErrors.push(Be)}if(0<je.thrownErrors.length)throw U(le,Ee),$=ee(je.thrownErrors),je.thrownErrors.length=0,$;if(Ze!==null&&typeof Ze=="object"&&typeof Ze.then=="function"){var Se=Ze;return fo(function(){Me||uo||(uo=!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(Be,It){Me=!0,Se.then(function(hr){if(U(le,Ee),Ee===0){try{K(Te),Y(function(){return G(hr,Be,It)})}catch(Rn){je.thrownErrors.push(Rn)}if(0<je.thrownErrors.length){var dn=ee(je.thrownErrors);je.thrownErrors.length=0,It(dn)}}else Be(hr)},function(hr){U(le,Ee),0<je.thrownErrors.length&&(hr=ee(je.thrownErrors),je.thrownErrors.length=0),It(hr)})}}}var He=Ze;if(U(le,Ee),Ee===0&&(K(Te),Te.length!==0&&fo(function(){Me||uo||(uo=!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(() => ...)"))}),je.actQueue=null),0<je.thrownErrors.length)throw $=ee(je.thrownErrors),je.thrownErrors.length=0,$;return{then:function(Be,It){Me=!0,Ee===0?(je.actQueue=Te,Y(function(){return G(He,Be,It)})):Be(He)}}},t.cache=function($){return function(){return $.apply(null,arguments)}},t.cacheSignal=function(){return null},t.captureOwnerStack=function(){var $=je.getCurrentStack;return $===null?null:$()},t.cloneElement=function($,le,Ee){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var Te=lt({},$.props),Me=$.key,Ze=$._owner;if(le!=null){var Se;e:{if(ir.call(le,"ref")&&(Se=Object.getOwnPropertyDescriptor(le,"ref").get)&&Se.isReactWarning){Se=!1;break e}Se=le.ref!==void 0}Se&&(Ze=b()),x(le)&&(g(le.key),Me=""+le.key);for(He in le)!ir.call(le,He)||He==="key"||He==="__self"||He==="__source"||He==="ref"&&le.ref===void 0||(Te[He]=le[He])}var He=arguments.length-2;if(He===1)Te.children=Ee;else if(1<He){Se=Array(He);for(var Be=0;Be<He;Be++)Se[Be]=arguments[Be+2];Te.children=Se}for(Te=_($.type,Me,Te,Ze,$._debugStack,$._debugTask),Me=2;Me<arguments.length;Me++)P(arguments[Me]);return Te},t.createContext=function($){return $={$$typeof:ge,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:ae,_context:$},$._currentRenderer=null,$._currentRenderer2=null,$},t.createElement=function($,le,Ee){for(var Te=2;Te<arguments.length;Te++)P(arguments[Te]);Te={};var Me=null;if(le!=null)for(Be in Mr||!("__self"in le)||"key"in le||(Mr=!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")),x(le)&&(g(le.key),Me=""+le.key),le)ir.call(le,Be)&&Be!=="key"&&Be!=="__self"&&Be!=="__source"&&(Te[Be]=le[Be]);var Ze=arguments.length-2;if(Ze===1)Te.children=Ee;else if(1<Ze){for(var Se=Array(Ze),He=0;He<Ze;He++)Se[He]=arguments[He+2];Object.freeze&&Object.freeze(Se),Te.children=Se}if($&&$.defaultProps)for(Be in Ze=$.defaultProps,Ze)Te[Be]===void 0&&(Te[Be]=Ze[Be]);Me&&N(Te,typeof $=="function"?$.displayName||$.name||"Unknown":$);var Be=1e4>je.recentlyCreatedOwnerStacks++;return _($,Me,Te,b(),Be?Error("react-stack-top-frame"):Gr,Be?wt(y($)):fi)},t.createRef=function(){var $={current:null};return Object.seal($),$},t.forwardRef=function($){$!=null&&$.$$typeof===me?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof $!="function"?console.error("forwardRef requires a render function but was given %s.",$===null?"null":typeof $):$.length!==0&&$.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",$.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),$!=null&&$.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var le={$$typeof:Ne,render:$},Ee;return Object.defineProperty(le,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(Te){Ee=Te,$.name||$.displayName||(Object.defineProperty($,"name",{value:Te}),$.displayName=Te)}}),le},t.isValidElement=A,t.lazy=function($){$={_status:-1,_result:$};var le={$$typeof:be,_payload:$,_init:z},Ee={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return $._ioInfo=Ee,le._debugInfo=[{awaited:Ee}],le},t.memo=function($,le){$==null&&console.error("memo: The first argument must be a component. Instead received: %s",$===null?"null":typeof $),le={$$typeof:me,type:$,compare:le===void 0?null:le};var Ee;return Object.defineProperty(le,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(Te){Ee=Te,$.name||$.displayName||(Object.defineProperty($,"name",{value:Te}),$.displayName=Te)}}),le},t.startTransition=function($){var le=je.T,Ee={};Ee._updatedFibers=new Set,je.T=Ee;try{var Te=$(),Me=je.S;Me!==null&&Me(Ee,Te),typeof Te=="object"&&Te!==null&&typeof Te.then=="function"&&(je.asyncTransitions++,Te.then(F,F),Te.then(f,pa))}catch(Ze){pa(Ze)}finally{le===null&&Ee._updatedFibers&&($=Ee._updatedFibers.size,Ee._updatedFibers.clear(),10<$&&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.")),le!==null&&Ee.types!==null&&(le.types!==null&&le.types!==Ee.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),le.types=Ee.types),je.T=le}},t.unstable_useCacheRefresh=function(){return q().useCacheRefresh()},t.use=function($){return q().use($)},t.useActionState=function($,le,Ee){return q().useActionState($,le,Ee)},t.useCallback=function($,le){return q().useCallback($,le)},t.useContext=function($){var le=q();return $.$$typeof===ae&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),le.useContext($)},t.useDebugValue=function($,le){return q().useDebugValue($,le)},t.useDeferredValue=function($,le){return q().useDeferredValue($,le)},t.useEffect=function($,le){return $==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useEffect($,le)},t.useEffectEvent=function($){return q().useEffectEvent($)},t.useId=function(){return q().useId()},t.useImperativeHandle=function($,le,Ee){return q().useImperativeHandle($,le,Ee)},t.useInsertionEffect=function($,le){return $==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useInsertionEffect($,le)},t.useLayoutEffect=function($,le){return $==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useLayoutEffect($,le)},t.useMemo=function($,le){return q().useMemo($,le)},t.useOptimistic=function($,le){return q().useOptimistic($,le)},t.useReducer=function($,le,Ee){return q().useReducer($,le,Ee)},t.useRef=function($){return q().useRef($)},t.useState=function($){return q().useState($)},t.useSyncExternalStore=function($,le,Ee){return q().useSyncExternalStore($,le,Ee)},t.useTransition=function(){return q().useTransition()},t.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(lp,lp.exports)),lp.exports}var c5;function Jd(){return c5||(c5=1,YN.exports=OX()),YN.exports}var d5;function TX(){if(d5)return Zv;d5=1;/**
|
||
* @license React
|
||
* react-jsx-dev-runtime.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/return(function(){function e(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===z?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case N:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case C:return"Suspense";case j:return"SuspenseList";case B:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case x:return"Portal";case P:return I.displayName||"Context";case D:return(I._context.displayName||"Context")+".Consumer";case A:var Z=I.render;return I=I.displayName,I||(I=Z.displayName||Z.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case L:return Z=I.displayName||null,Z!==null?Z:e(I.type)||"Memo";case V:Z=I._payload,I=I._init;try{return e(I(Z))}catch{}}return null}function t(I){return""+I}function n(I){try{t(I);var Z=!1}catch{Z=!0}if(Z){Z=console;var W=Z.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return W.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(I)}}function r(I){if(I===N)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===V)return"<...>";try{var Z=e(I);return Z?"<"+Z+">":"<...>"}catch{return"<...>"}}function o(){var I=q.A;return I===null?null:I.getOwner()}function s(){return Error("react-stack-top-frame")}function u(I){if(F.call(I,"key")){var Z=Object.getOwnPropertyDescriptor(I,"key").get;if(Z&&Z.isReactWarning)return!1}return I.key!==void 0}function c(I,Z){function W(){U||(U=!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)",Z))}W.isReactWarning=!0,Object.defineProperty(I,"key",{get:W,configurable:!0})}function f(){var I=e(this.type);return G[I]||(G[I]=!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.")),I=this.props.ref,I!==void 0?I:null}function m(I,Z,W,ae,ge,Ne){var ue=W.ref;return I={$$typeof:S,type:I,key:Z,props:W,_owner:ae},(ue!==void 0?ue:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:f}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function g(I,Z,W,ae,ge,Ne){var ue=Z.children;if(ue!==void 0)if(ae)if(Y(ue)){for(ae=0;ae<ue.length;ae++)p(ue[ae]);Object.freeze&&Object.freeze(ue)}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 p(ue);if(F.call(Z,"key")){ue=e(I);var xe=Object.keys(Z).filter(function(be){return be!=="key"});ae=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",ne[ue+ae]||(xe=0<xe.length?"{"+xe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
||
let props = %s;
|
||
<%s {...props} />
|
||
React keys must be passed directly to JSX without using spread:
|
||
let props = %s;
|
||
<%s key={someKey} {...props} />`,ae,ue,xe,ue),ne[ue+ae]=!0)}if(ue=null,W!==void 0&&(n(W),ue=""+W),u(Z)&&(n(Z.key),ue=""+Z.key),"key"in Z){W={};for(var me in Z)me!=="key"&&(W[me]=Z[me])}else W=Z;return ue&&c(W,typeof I=="function"?I.displayName||I.name||"Unknown":I),m(I,ue,W,o(),ge,Ne)}function p(I){y(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===V&&(I._payload.status==="fulfilled"?y(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function y(I){return typeof I=="object"&&I!==null&&I.$$typeof===S}var b=Jd(),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),q=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,Y=Array.isArray,ee=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(I){return I()}};var U,G={},K=b.react_stack_bottom_frame.bind(b,s)(),te=ee(r(s)),ne={};Zv.Fragment=N,Zv.jsxDEV=function(I,Z,W,ae){var ge=1e4>q.recentlyCreatedOwnerStacks++;return g(I,Z,W,ae,ge?Error("react-stack-top-frame"):K,ge?ee(r(I)):te)}})(),Zv}var f5;function CX(){return f5||(f5=1,GN.exports=TX()),GN.exports}var w=CX(),qu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_X={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},DX=class{#t=_X;#e=!1;setTimeoutProvider(e){this.#e&&e!==this.#t&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#t,provider:e}),this.#t=e,this.#e=!1}setTimeout(e,t){return this.#e=!0,this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#e=!0,this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},hu=new DX;function RX(e){setTimeout(e,0)}var Su=typeof window>"u"||"Deno"in globalThis;function dr(){}function jX(e,t){return typeof e=="function"?e(t):e}function DT(e){return typeof e=="number"&&e>=0&&e!==1/0}function rz(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ol(e,t){return typeof e=="function"?e(t):e}function Pa(e,t){return typeof e=="function"?e(t):e}function m5(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:u,stale:c}=e;if(u){if(r){if(t.queryHash!==k_(u,t.options))return!1}else if(!Ap(t.queryKey,u))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||s&&!s(t))}function p5(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ll(t.options.mutationKey)!==ll(s))return!1}else if(!Ap(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function k_(e,t){return(t?.queryKeyHashFn||ll)(e)}function ll(e){return JSON.stringify(e,(t,n)=>RT(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ap(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ap(e[n],t[n])):!1}var PX=Object.prototype.hasOwnProperty;function Ly(e,t){if(e===t)return e;const n=h5(e)&&h5(t);if(!n&&!(RT(e)&&RT(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),u=s.length,c=n?new Array(u):{};let f=0;for(let m=0;m<u;m++){const g=n?m:s[m],p=e[g],y=t[g];if(p===y){c[g]=p,(n?m<o:PX.call(e,g))&&f++;continue}if(p===null||y===null||typeof p!="object"||typeof y!="object"){c[g]=y;continue}const b=Ly(p,y);c[g]=b,b===p&&f++}return o===u&&f===o?e:c}function Op(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function h5(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function RT(e){if(!g5(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!g5(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function g5(e){return Object.prototype.toString.call(e)==="[object Object]"}function MX(e){return new Promise(t=>{hu.setTimeout(t,e)})}function jT(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Ly(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Ly(e,t)}return t}function LX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ar=Symbol();function az(e,t){return e.queryFn===ar&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ar?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function iz(e,t){return typeof e=="function"?e(...t):!!e}var IX=class extends qu{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Su&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},I_=new IX;function PT(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var $X=RX;function VX(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=$X;const s=c=>{t?e.push(c):o(()=>{n(c)})},u=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||u()}return f},batchCalls:c=>(...f)=>{s(()=>{c(...f)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var hn=VX(),BX=class extends qu{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Su&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},ky=new BX;function zX(e){return Math.min(1e3*2**e,3e4)}function oz(e){return(e??"online")==="online"?ky.isOnline():!0}var MT=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function sz(e){let t=!1,n=0,r;const o=PT(),s=()=>o.status!=="pending",u=x=>{if(!s()){const N=new MT(x);y(N),e.onCancel?.(N)}},c=()=>{t=!0},f=()=>{t=!1},m=()=>I_.isFocused()&&(e.networkMode==="always"||ky.isOnline())&&e.canRun(),g=()=>oz(e.networkMode)&&e.canRun(),p=x=>{s()||(r?.(),o.resolve(x))},y=x=>{s()||(r?.(),o.reject(x))},b=()=>new Promise(x=>{r=N=>{(s()||m())&&x(N)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),S=()=>{if(s())return;let x;const N=n===0?e.initialPromise:void 0;try{x=N??e.fn()}catch(T){x=Promise.reject(T)}Promise.resolve(x).then(p).catch(T=>{if(s())return;const _=e.retry??(Su?0:3),D=e.retryDelay??zX,P=typeof D=="function"?D(n,T):D,A=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,T);if(t||!A){y(T);return}n++,e.onFail?.(n,T),MX(P).then(()=>m()?void 0:b()).then(()=>{t?y(T):S()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(r?.(),o),cancelRetry:c,continueRetry:f,canStart:g,start:()=>(g()?S():b().then(S),o)}}var lz=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),DT(this.gcTime)&&(this.#t=hu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Su?1/0:300*1e3))}clearGcTimeout(){this.#t&&(hu.clearTimeout(this.#t),this.#t=void 0)}},UX=class extends lz{#t;#e;#n;#a;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=v5(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=v5(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=jT(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(dr).catch(dr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Pa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ar||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ol(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!rz(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const c=az(this.options,t),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(g),g})();return this.#s=!1,this.options.persister?this.options.persister(c,m,this):c(m)},u=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return r(c),c})();this.options.behavior?.onFetch(u,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#r=sz({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:c=>{c instanceof MT&&c.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(c,f)=>{this.#o({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const c=await this.#r.start();if(c===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof MT){if(c.silent)return this.#r.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#o({type:"error",error:c}),this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...uz(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),hn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function uz(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oz(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function v5(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var xh=class extends qu{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=PT(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#s;#o;#m;#d;#f;#u;#c;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),y5(this.#e,this.options)?this.#p():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return LT(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return LT(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pa(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#N(),this.#e.setOptions(this.options),t._defaulted&&!Op(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&b5(this.#e,n,this.options,t)&&this.#p(),this.updateResult(),r&&(this.#e!==n||Pa(this.options.enabled,this.#e)!==Pa(t.enabled,this.#e)||ol(this.options.staleTime,this.#e)!==ol(t.staleTime,this.#e))&&this.#g();const o=this.#v();r&&(this.#e!==n||Pa(this.options.enabled,this.#e)!==Pa(t.enabled,this.#e)||o!==this.#l)&&this.#y(o)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return HX(this,n)&&(this.#a=n,this.#i=this.options,this.#r=this.#e.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#p(e){this.#N();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(dr)),t}#g(){this.#x();const e=ol(this.options.staleTime,this.#e);if(Su||this.#a.isStale||!DT(e))return;const n=rz(this.#a.dataUpdatedAt,e)+1;this.#u=hu.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(Su||Pa(this.options.enabled,this.#e)===!1||!DT(this.#l)||this.#l===0)&&(this.#c=hu.setInterval(()=>{(this.options.refetchIntervalInBackground||I_.isFocused())&&this.#p()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#u&&(hu.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(hu.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#e,r=this.options,o=this.#a,s=this.#r,u=this.#i,f=e!==n?e.state:this.#n,{state:m}=e;let g={...m},p=!1,y;if(t._optimisticResults){const L=this.hasListeners(),V=!L&&y5(e,t),B=L&&b5(e,n,t,r);(V||B)&&(g={...g,...uz(m.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:S,status:x}=g;y=g.data;let N=!1;if(t.placeholderData!==void 0&&y===void 0&&x==="pending"){let L;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(L=o.data,N=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,L!==void 0&&(x="success",y=jT(o?.data,L,t),p=!0)}if(t.select&&y!==void 0&&!N)if(o&&y===s?.data&&t.select===this.#m)y=this.#d;else try{this.#m=t.select,y=t.select(y),y=jT(o?.data,y,t),this.#d=y,this.#o=null}catch(L){this.#o=L}this.#o&&(b=this.#o,y=this.#d,S=Date.now(),x="error");const T=g.fetchStatus==="fetching",_=x==="pending",D=x==="error",P=_&&T,A=y!==void 0,j={status:x,fetchStatus:g.fetchStatus,isPending:_,isSuccess:x==="success",isError:D,isInitialLoading:P,isLoading:P,data:y,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:S,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:T,isRefetching:T&&!_,isLoadingError:D&&!A,isPaused:g.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:D&&A,isStale:$_(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Pa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=z=>{j.status==="error"?z.reject(j.error):j.data!==void 0&&z.resolve(j.data)},V=()=>{const z=this.#s=j.promise=PT();L(z)},B=this.#s;switch(B.status){case"pending":e.queryHash===n.queryHash&&L(B);break;case"fulfilled":(j.status==="error"||j.data!==B.value)&&V();break;case"rejected":(j.status!=="error"||j.error!==B.reason)&&V();break}}return j}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#i=this.options,this.#r.data!==void 0&&(this.#f=this.#e),Op(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#h.size)return!0;const s=new Set(o??this.#h);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(u=>{const c=u;return this.#a[c]!==e[c]&&s.has(c)})};this.#E({listeners:n()})}#N(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(e){hn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function qX(e,t){return Pa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function y5(e,t){return qX(e,t)||e.state.data!==void 0&<(e,t,t.refetchOnMount)}function LT(e,t,n){if(Pa(t.enabled,e)!==!1&&ol(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&$_(e,t)}return!1}function b5(e,t,n,r){return(e!==t||Pa(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&$_(e,n)}function $_(e,t){return Pa(t.enabled,e)!==!1&&e.isStaleByTime(ol(t.staleTime,e))}function HX(e,t){return!Op(e.getCurrentResult(),t)}function Iy(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},f=0;const m=async()=>{let g=!1;const p=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=az(t.options,t.fetchOptions),b=async(S,x,N)=>{if(g)return Promise.reject();if(x==null&&S.pages.length)return Promise.resolve(S);const _=(()=>{const C={client:t.client,queryKey:t.queryKey,pageParam:x,direction:N?"backward":"forward",meta:t.options.meta};return p(C),C})(),D=await y(_),{maxPages:P}=t.options,A=N?kX:LX;return{pages:A(S.pages,D,P),pageParams:A(S.pageParams,x,P)}};if(o&&s.length){const S=o==="backward",x=S?cz:kT,N={pages:s,pageParams:u},T=x(r,N);c=await b(N,T,S)}else{const S=e??s.length;do{const x=f===0?u[0]??r.initialPageParam:kT(r,c);if(f>0&&x==null)break;c=await b(c,x),f++}while(f<S)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=m}}}function kT(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function cz(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function FX(e,t){return t?kT(e,t)!=null:!1}function KX(e,t){return!t||!e.getPreviousPageParam?!1:cz(e,t)!=null}var dz=class extends xh{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Iy()})}getOptimisticResult(e){return e.behavior=Iy(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:s,isError:u,isRefetchError:c}=r,f=n.fetchMeta?.fetchMore?.direction,m=u&&f==="forward",g=o&&f==="forward",p=u&&f==="backward",y=o&&f==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:FX(t,n.data),hasPreviousPage:KX(t,n.data),isFetchNextPageError:m,isFetchingNextPage:g,isFetchPreviousPageError:p,isFetchingPreviousPage:y,isRefetchError:c&&!m&&!p,isRefetching:s&&!g&&!y}}},GX=class extends lz{#t;#e;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||fz(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=sz({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,u)=>{this.#r({type:"failed",failureCount:s,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#a.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const u=await this.options.onMutate?.(e,n);u!==this.state.context&&this.#r({type:"pending",context:u,variables:e,isPaused:o})}const s=await this.#a.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),hn.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function fz(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var YX=class extends qu{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new GX({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=Jv(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Jv(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Jv(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Jv(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){hn.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>p5(t,n))}findAll(e={}){return this.getAll().filter(t=>p5(e,t))}notify(e){hn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return hn.batch(()=>Promise.all(e.map(t=>t.continue().catch(dr))))}};function Jv(e){return e.options.scope?.id}var QX=class extends qu{#t;#e=void 0;#n;#a;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Op(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ll(n.mutationKey)!==ll(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,n){return this.#a=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??fz();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){hn.batch(()=>{if(this.#a&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,n,r,o),this.#a.onSettled?.(t.data,null,n,r,o)):t?.type==="error"&&(this.#a.onError?.(t.error,n,r,o),this.#a.onSettled?.(void 0,t.error,n,r,o))}this.listeners.forEach(n=>{n(this.#e)})})}};function x5(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function XX(e,t,n){const r=e.slice(0);return r[t]=n,r}var WX=class extends qu{#t;#e;#n;#a;#r;#i;#s;#o;#m=[];constructor(e,t,n){super(),this.#t=e,this.#a=n,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#a=t;{const n=e.map(r=>this.#t.defaultQueryOptions(r).queryHash);new Set(n).size!==n.length&&console.warn("[QueriesObserver]: Duplicate Queries found. This might result in unexpected behavior.")}hn.batch(()=>{const n=this.#r,r=this.#u(this.#n);this.#m=r,r.forEach(g=>g.observer.setOptions(g.defaultedQueryOptions));const o=r.map(g=>g.observer),s=o.map(g=>g.getCurrentResult()),u=n.length!==o.length,c=o.some((g,p)=>g!==n[p]),f=u||c,m=f?!0:s.some((g,p)=>{const y=this.#e[p];return!y||!Op(g,y)});!f&&!m||(f&&(this.#r=o),this.#e=s,this.hasListeners()&&(f&&(x5(n,o).forEach(g=>{g.destroy()}),x5(o,n).forEach(g=>{g.subscribe(p=>{this.#c(g,p)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#u(e),r=n.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[r,o=>this.#f(o??r,t),()=>this.#d(r,n)]}#d(e,t){return t.map((n,r)=>{const o=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?o:n.observer.trackResult(o,s=>{t.forEach(u=>{u.observer.trackProp(s)})})})}#f(e,t){return t?((!this.#i||this.#e!==this.#o||t!==this.#s)&&(this.#s=t,this.#o=this.#e,this.#i=Ly(this.#i,t(e))),this.#i):e}#u(e){const t=new Map(this.#r.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const o=this.#t.defaultQueryOptions(r),s=t.get(o.queryHash);s?n.push({defaultedQueryOptions:o,observer:s}):n.push({defaultedQueryOptions:o,observer:new xh(this.#t,o)})}),n}#c(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=XX(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#i,t=this.#d(this.#e,this.#m),n=this.#f(t,this.#a?.combine);e!==n&&hn.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},ZX=class extends qu{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,o=t.queryHash??k_(r,t);let s=this.get(o);return s||(s=new UX({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){hn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>m5(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>m5(e,n)):t}notify(e){hn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){hn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){hn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},JX=class{#t;#e;#n;#a;#r;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new ZX,this.#e=e.mutationCache||new YX,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=I_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=ky.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ol(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#t.get(r.queryHash)?.state.data,u=jX(t,s);if(u!==void 0)return this.#t.build(this,r).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return hn.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;hn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return hn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=hn.batch(()=>this.#t.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(dr).catch(dr)}invalidateQueries(e,t={}){return hn.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=hn.batch(()=>this.#t.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(dr)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(dr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(ol(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dr).catch(dr)}fetchInfiniteQuery(e){return e.behavior=Iy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dr).catch(dr)}ensureInfiniteQueryData(e){return e.behavior=Iy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ky.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(ll(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{Ap(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(ll(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Ap(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=k_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ar&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},R=Jd();const H=kt(R),Wb=AX({__proto__:null,default:H},[R]);var QN={exports:{}},Ym={},w5;function eW(){if(w5)return Ym;w5=1;/**
|
||
* @license React
|
||
* react-jsx-runtime.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/return(function(){function e(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===z?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case N:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case C:return"Suspense";case j:return"SuspenseList";case B:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case x:return"Portal";case P:return I.displayName||"Context";case D:return(I._context.displayName||"Context")+".Consumer";case A:var Z=I.render;return I=I.displayName,I||(I=Z.displayName||Z.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case L:return Z=I.displayName||null,Z!==null?Z:e(I.type)||"Memo";case V:Z=I._payload,I=I._init;try{return e(I(Z))}catch{}}return null}function t(I){return""+I}function n(I){try{t(I);var Z=!1}catch{Z=!0}if(Z){Z=console;var W=Z.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return W.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(I)}}function r(I){if(I===N)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===V)return"<...>";try{var Z=e(I);return Z?"<"+Z+">":"<...>"}catch{return"<...>"}}function o(){var I=q.A;return I===null?null:I.getOwner()}function s(){return Error("react-stack-top-frame")}function u(I){if(F.call(I,"key")){var Z=Object.getOwnPropertyDescriptor(I,"key").get;if(Z&&Z.isReactWarning)return!1}return I.key!==void 0}function c(I,Z){function W(){U||(U=!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)",Z))}W.isReactWarning=!0,Object.defineProperty(I,"key",{get:W,configurable:!0})}function f(){var I=e(this.type);return G[I]||(G[I]=!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.")),I=this.props.ref,I!==void 0?I:null}function m(I,Z,W,ae,ge,Ne){var ue=W.ref;return I={$$typeof:S,type:I,key:Z,props:W,_owner:ae},(ue!==void 0?ue:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:f}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function g(I,Z,W,ae,ge,Ne){var ue=Z.children;if(ue!==void 0)if(ae)if(Y(ue)){for(ae=0;ae<ue.length;ae++)p(ue[ae]);Object.freeze&&Object.freeze(ue)}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 p(ue);if(F.call(Z,"key")){ue=e(I);var xe=Object.keys(Z).filter(function(be){return be!=="key"});ae=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",ne[ue+ae]||(xe=0<xe.length?"{"+xe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
||
let props = %s;
|
||
<%s {...props} />
|
||
React keys must be passed directly to JSX without using spread:
|
||
let props = %s;
|
||
<%s key={someKey} {...props} />`,ae,ue,xe,ue),ne[ue+ae]=!0)}if(ue=null,W!==void 0&&(n(W),ue=""+W),u(Z)&&(n(Z.key),ue=""+Z.key),"key"in Z){W={};for(var me in Z)me!=="key"&&(W[me]=Z[me])}else W=Z;return ue&&c(W,typeof I=="function"?I.displayName||I.name||"Unknown":I),m(I,ue,W,o(),ge,Ne)}function p(I){y(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===V&&(I._payload.status==="fulfilled"?y(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function y(I){return typeof I=="object"&&I!==null&&I.$$typeof===S}var b=Jd(),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),q=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,Y=Array.isArray,ee=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(I){return I()}};var U,G={},K=b.react_stack_bottom_frame.bind(b,s)(),te=ee(r(s)),ne={};Ym.Fragment=N,Ym.jsx=function(I,Z,W){var ae=1e4>q.recentlyCreatedOwnerStacks++;return g(I,Z,W,!1,ae?Error("react-stack-top-frame"):K,ae?ee(r(I)):te)},Ym.jsxs=function(I,Z,W){var ae=1e4>q.recentlyCreatedOwnerStacks++;return g(I,Z,W,!0,ae?Error("react-stack-top-frame"):K,ae?ee(r(I)):te)}})(),Ym}var N5;function tW(){return N5||(N5=1,QN.exports=eW()),QN.exports}var ce=tW(),mz=R.createContext(void 0),wh=e=>{const t=R.useContext(mz);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},nW=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ce.jsx(mz.Provider,{value:e,children:t})),pz=R.createContext(!1),hz=()=>R.useContext(pz);pz.Provider;function rW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var aW=R.createContext(rW()),gz=()=>R.useContext(aW),vz=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},yz=e=>{R.useEffect(()=>{e.clearReset()},[e])},bz=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||iz(n,[e.error,r])),V_=(e,t)=>t.state.data===void 0,xz=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},wz=(e,t)=>e.isLoading&&e.isFetching&&!t,IT=(e,t)=>e?.suspense&&t.isPending,$y=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Nz({queries:e,...t},n){const r=wh(n),o=hz(),s=gz(),u=R.useMemo(()=>e.map(x=>{const N=r.defaultQueryOptions(x);return N._optimisticResults=o?"isRestoring":"optimistic",N}),[e,r,o]);u.forEach(x=>{xz(x),vz(x,s)}),yz(s);const[c]=R.useState(()=>new WX(r,u,t)),[f,m,g]=c.getOptimisticResult(u,t.combine),p=!o&&t.subscribed!==!1;R.useSyncExternalStore(R.useCallback(x=>p?c.subscribe(hn.batchCalls(x)):dr,[c,p]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),R.useEffect(()=>{c.setQueries(u,t)},[u,t,c]);const b=f.some((x,N)=>IT(u[N],x))?f.flatMap((x,N)=>{const T=u[N];if(T){const _=new xh(r,T);if(IT(T,x))return $y(T,_,s);wz(x,o)&&$y(T,_,s)}return[]}):[];if(b.length>0)throw Promise.all(b);const S=f.find((x,N)=>{const T=u[N];return T&&bz({result:x,errorResetBoundary:s,throwOnError:T.throwOnError,query:r.getQueryCache().get(T.queryHash),suspense:T.suspense})});if(S?.error)throw S.error;return m(g())}function Zb(e,t,n){if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=hz(),o=gz(),s=wh(n),u=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u.queryFn||console.error(`[${u.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),u._optimisticResults=r?"isRestoring":"optimistic",xz(u),vz(u,o),yz(o);const c=!s.getQueryCache().get(u.queryHash),[f]=R.useState(()=>new t(s,u)),m=f.getOptimisticResult(u),g=!r&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(p=>{const y=g?f.subscribe(hn.batchCalls(p)):dr;return f.updateResult(),y},[f,g]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),R.useEffect(()=>{f.setOptions(u)},[u,f]),IT(u,m))throw $y(u,f,o);if(bz({result:m,errorResetBoundary:o,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw m.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(u,m),u.experimental_prefetchInRender&&!Su&&wz(m,r)&&(c?$y(u,f,o):s.getQueryCache().get(u.queryHash)?.promise)?.catch(dr).finally(()=>{f.updateResult()}),u.notifyOnChangeProps?m:f.trackResult(m)}function iW(e,t){return Zb(e,xh,t)}function oW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQuery"),Zb({...e,enabled:!0,suspense:!0,throwOnError:V_,placeholderData:void 0},xh,t)}function sW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseInfiniteQuery"),Zb({...e,enabled:!0,suspense:!0,throwOnError:V_},dz,t)}function lW(e,t){return Nz({...e,queries:e.queries.map(n=>(n.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQueries"),{...n,suspense:!0,throwOnError:V_,enabled:!0,placeholderData:void 0}))},t)}function uW(e,t){const n=wh(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function cW(e,t){const n=wh(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function dW(e,t){const n=wh(t),[r]=R.useState(()=>new QX(n,e));R.useEffect(()=>{r.setOptions(e)},[r,e]);const o=R.useSyncExternalStore(R.useCallback(u=>r.subscribe(hn.batchCalls(u)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=R.useCallback((u,c)=>{r.mutate(u,c).catch(dr)},[r]);if(o.error&&iz(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function fW(e,t){return Zb(e,dz,t)}function Au(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const mW=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Ez(e){return mW&&Au(e)&&Symbol.asyncIterator in e}var pW=Object.create,Sz=Object.defineProperty,hW=Object.getOwnPropertyDescriptor,Az=Object.getOwnPropertyNames,gW=Object.getPrototypeOf,vW=Object.prototype.hasOwnProperty,Nh=(e,t)=>function(){return t||(0,e[Az(e)[0]])((t={exports:{}}).exports,t),t.exports},yW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Az(t),s=0,u=o.length,c;s<u;s++)c=o[s],!vW.call(e,c)&&c!==n&&Sz(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=hW(t,c))||r.enumerable});return e},Jb=(e,t,n)=>(n=e!=null?pW(gW(e)):{},yW(Sz(n,"default",{value:e,enumerable:!0}),e));const Oz=()=>{},E5=e=>{Object.freeze&&Object.freeze(e)};function Tz(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(Oz,{get(s,u){if(!(typeof u!="string"||u==="then"))return Tz(e,[...t,u],n)},apply(s,u,c){const f=t[t.length-1];let m={args:c,path:t};return f==="call"?m={args:c.length>=2?[c[1]]:[],path:t.slice(0,-1)}:f==="apply"&&(m={args:c.length>=2?c[1]:[],path:t.slice(0,-1)}),E5(m.args),E5(m.path),e(m)}})),n[o]}const e0=e=>Tz(e,[],Object.create(null)),B_=e=>new Proxy(Oz,{get(t,n){if(n!=="then")return e(n)}});var Cz=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),bW=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Cz().default;function r(o,s){if(n(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var c=u.call(o,s||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),xW=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Cz().default,r=bW();function o(s){var u=r(s,"string");return n(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),_z=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=xW();function r(o,s,u){return(s=n(s))in o?Object.defineProperty(o,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[s]=u,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),z_=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=_z();function r(s,u){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);u&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),c.push.apply(c,f)}return c}function o(s){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{};u%2?r(Object(c),!0).forEach(function(f){n(s,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(c,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});Jb(z_());Jb(_z());var ey=Jb(z_());function wW(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,ey.default)((0,ey.default)({},e),{},{error:r})}}return{ok:!0,result:(0,ey.default)((0,ey.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var XN=class extends Error{constructor(){super("Unable to transform response from server")}};function NW(e,t){let n;try{n=wW(e,t)}catch{throw new XN}if(!n.ok&&(!Au(n.error.error)||typeof n.error.error.code!="number"))throw new XN;if(n.ok&&!Au(n.result))throw new XN;return n}Jb(z_());function t0(e){const t={subscribe(n){let r=null,o=!1,s=!1,u=!1;function c(){if(r===null){u=!0;return}s||(s=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(f){var m;o||(m=n.next)===null||m===void 0||m.call(n,f)},error(f){var m;o||(o=!0,(m=n.error)===null||m===void 0||m.call(n,f),c())},complete(){var f;o||(o=!0,(f=n.complete)===null||f===void 0||f.call(n),c())}}),u&&c(),{unsubscribe:c}},pipe(...n){return n.reduce(EW,t)}};return t}function EW(e,t){return t(e)}function SW(e){const t=new AbortController;return new Promise((r,o)=>{let s=!1;function u(){s||(s=!0,c.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const c=e.subscribe({next(f){s=!0,r(f),u()},error(f){o(f)},complete(){t.abort(),u()}})})}var AW=Object.create,Dz=Object.defineProperty,OW=Object.getOwnPropertyDescriptor,Rz=Object.getOwnPropertyNames,TW=Object.getPrototypeOf,CW=Object.prototype.hasOwnProperty,fl=(e,t)=>function(){return t||(0,e[Rz(e)[0]])((t={exports:{}}).exports,t),t.exports},_W=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Rz(t),s=0,u=o.length,c;s<u;s++)c=o[s],!CW.call(e,c)&&c!==n&&Dz(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=OW(t,c))||r.enumerable});return e},Hu=(e,t,n)=>(n=e!=null?AW(TW(e)):{},_W(t||!e||!e.__esModule?Dz(n,"default",{value:e,enumerable:!0}):n,e)),DW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,o){if(r==null)return{};var s={};for(var u in r)if({}.hasOwnProperty.call(r,u)){if(o.includes(u))continue;s[u]=r[u]}return s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),RW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=DW();function r(o,s){if(o==null)return{};var u,c,f=n(o,s);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(o);for(c=0;c<m.length;c++)u=m[c],s.includes(u)||{}.propertyIsEnumerable.call(o,u)&&(f[u]=o[u])}return f}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),jz=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),jW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=jz().default;function r(o,s){if(n(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var c=u.call(o,s||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),PW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=jz().default,r=jW();function o(s){var u=r(s,"string");return n(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),MW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=PW();function r(o,s,u){return(s=n(s))in o?Object.defineProperty(o,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[s]=u,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Eh=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=MW();function r(s,u){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);u&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),c.push.apply(c,f)}return c}function o(s){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{};u%2?r(Object(c),!0).forEach(function(f){n(s,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(c,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),LW=Hu(RW(),1),S5=Hu(Eh(),1);const kW=["cursor","direction"];function Fi(e,t,n){const r=e.flatMap(o=>o.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&Au(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:s}=t,u=(0,LW.default)(t,kW);return[r,{input:u,type:"infinite"}]}return[r,(0,S5.default)((0,S5.default)({},typeof t<"u"&&t!==ar&&{input:t}),n&&n!=="any"&&{type:n})]}function Cy(e){return Fi(e,void 0,"any")}var IW=Object.create,Pz=Object.defineProperty,$W=Object.getOwnPropertyDescriptor,Mz=Object.getOwnPropertyNames,VW=Object.getPrototypeOf,BW=Object.prototype.hasOwnProperty,io=(e,t)=>function(){return t||(0,e[Mz(e)[0]])((t={exports:{}}).exports,t),t.exports},zW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Mz(t),s=0,u=o.length,c;s<u;s++)c=o[s],!BW.call(e,c)&&c!==n&&Pz(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=$W(t,c))||r.enumerable});return e},bn=(e,t,n)=>(n=e!=null?IW(VW(e)):{},zW(t||!e||!e.__esModule?Pz(n,"default",{value:e,enumerable:!0}):n,e)),Lz=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),UW=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Lz().default;function r(o,s){if(n(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var c=u.call(o,s||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),qW=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Lz().default,r=UW();function o(s){var u=r(s,"string");return n(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Fu=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=qW();function r(o,s,u){return(s=n(s))in o?Object.defineProperty(o,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[s]=u,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),li=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Fu();function r(s,u){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);u&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),c.push.apply(c,f)}return c}function o(s){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{};u%2?r(Object(c),!0).forEach(function(f){n(s,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(c,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function HW(e){return t=>{let n=0,r=null;const o=[];function s(){r||(r=t.subscribe({next(c){for(const m of o){var f;(f=m.next)===null||f===void 0||f.call(m,c)}},error(c){for(const m of o){var f;(f=m.error)===null||f===void 0||f.call(m,c)}},complete(){for(const f of o){var c;(c=f.complete)===null||c===void 0||c.call(f)}}}))}function u(){if(n===0&&r){const c=r;r=null,c.unsubscribe()}}return t0(c=>(n++,o.push(c),s(),{unsubscribe(){n--,u();const f=o.findIndex(m=>m===c);f>-1&&o.splice(f,1)}}))}}function FW(e){let t=e;const n=[],r=u=>{t!==void 0&&u.next(t),n.push(u)},o=u=>{n.splice(n.indexOf(u),1)},s=t0(u=>(r(u),()=>{o(u)}));return s.next=u=>{if(t!==u){t=u;for(const c of n)c.next(u)}},s.get=()=>t,s}function KW(e){return t0(t=>{function n(o=0,s=e.op){const u=e.links[o];if(!u)throw new Error("No more links to execute - did you forget to add an ending link?");return u({op:s,next(f){return n(o+1,f)}})}return n().subscribe(t)})}var ty=bn(Fu(),1),ed=bn(li(),1);function GW(e){return e instanceof Tp}function YW(e){return Au(e)&&Au(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function QW(e,t){return typeof e=="string"?e:Au(e)&&typeof e.message=="string"?e.message:t}var Tp=class _y extends Error{constructor(t,n){var r,o;const s=n?.cause;super(t,{cause:s}),(0,ty.default)(this,"cause",void 0),(0,ty.default)(this,"shape",void 0),(0,ty.default)(this,"data",void 0),(0,ty.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=s,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(o=n.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,_y.prototype)}static from(t,n={}){const r=t;return GW(r)?(n.meta&&(r.meta=(0,ed.default)((0,ed.default)({},r.meta),n.meta)),r):YW(r)?new _y(r.error.message,(0,ed.default)((0,ed.default)({},n),{},{result:r})):new _y(QW(r,"Unknown error"),(0,ed.default)((0,ed.default)({},n),{},{cause:r}))}};function XW(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const A5=e=>typeof e=="function";function WW(e){if(e)return e;if(typeof window<"u"&&A5(window.fetch))return window.fetch;if(typeof globalThis<"u"&&A5(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var pp=bn(li());function ZW(e){return{url:e.url.toString(),fetch:e.fetch,transformer:XW(e.transformer),methodOverride:e.methodOverride}}function JW(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const eZ={query:"GET",mutation:"POST",subscription:"PATCH"};function kz(e){return"input"in e?e.transformer.input.serialize(e.input):JW(e.inputs.map(t=>e.transformer.input.serialize(t)))}const Iz=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const s=kz(e);s!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(s))}`)}return o.length&&(r+="?"+o.join("&")),r},tZ=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=kz(e);return t!==void 0?JSON.stringify(t):void 0},nZ=e=>oZ((0,pp.default)((0,pp.default)({},e),{},{contentTypeHeader:"application/json",getUrl:Iz,getBody:tZ}));var rZ=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const aZ=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new rZ};async function iZ(e){var t;aZ(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:eZ[e.type],s=await(async()=>{const c=await e.headers();return Symbol.iterator in c?Object.fromEntries(c):c})(),u=(0,pp.default)((0,pp.default)((0,pp.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),s);return WW(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:u})}async function oZ(e){const t={},n=await iZ(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}bn(li(),1);const O5=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function T5(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function o(c){const f=[[]];let m=0;for(;;){const y=c[m];if(!y)break;const b=f[f.length-1];if(y.aborted){var g;(g=y.reject)===null||g===void 0||g.call(y,new Error("Aborted")),m++;continue}if(e.validate(b.concat(y).map(x=>x.key))){b.push(y),m++;continue}if(b.length===0){var p;(p=y.reject)===null||p===void 0||p.call(y,new Error("Input is too big for a single dispatch")),m++;continue}f.push([])}return f}function s(){const c=o(t);r();for(const f of c){if(!f.length)continue;const m={items:f};for(const p of f)p.batch=m;e.fetch(m.items.map(p=>p.key)).then(async p=>{await Promise.all(p.map(async(b,S)=>{const x=m.items[S];try{var N;const _=await Promise.resolve(b);(N=x.resolve)===null||N===void 0||N.call(x,_)}catch(_){var T;(T=x.reject)===null||T===void 0||T.call(x,_)}x.batch=null,x.reject=null,x.resolve=null}));for(const b of m.items){var y;(y=b.reject)===null||y===void 0||y.call(b,new Error("Missing result")),b.batch=null}}).catch(p=>{for(const b of m.items){var y;(y=b.reject)===null||y===void 0||y.call(b,p),b.batch=null}})}}function u(c){var f;const m={aborted:!1,key:c,batch:null,resolve:O5,reject:O5},g=new Promise((p,y)=>{var b;m.reject=y,m.resolve=p,(b=t)!==null&&b!==void 0||(t=[]),t.push(m)});return(f=n)!==null&&f!==void 0||(n=setTimeout(s)),g}return{load:u}}function sZ(...e){const t=new AbortController,n=e.length;let r=0;const o=()=>{++r===n&&t.abort()};for(const s of e)s?.aborted?o():s?.addEventListener("abort",o,{once:!0});return t.signal}var ny=bn(li(),1);function lZ(e){var t,n;const r=ZW(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,s=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const u=g=>({validate(p){if(o===1/0&&s===1/0)return!0;if(p.length>s)return!1;const y=p.map(x=>x.path).join(","),b=p.map(x=>x.input);return Iz((0,ny.default)((0,ny.default)({},r),{},{type:g,path:y,inputs:b,signal:null})).length<=o},async fetch(p){const y=p.map(_=>_.path).join(","),b=p.map(_=>_.input),S=sZ(...p.map(_=>_.signal)),x=await nZ((0,ny.default)((0,ny.default)({},r),{},{path:y,inputs:b,type:g,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:p}):e.headers:{}},signal:S}));return(Array.isArray(x.json)?x.json:p.map(()=>x.json)).map(_=>({meta:x.meta,json:_}))}}),c=T5(u("query")),f=T5(u("mutation")),m={query:c,mutation:f};return({op:g})=>t0(p=>{/* istanbul ignore if -- @preserve */if(g.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const b=m[g.type].load(g);let S;return b.then(x=>{S=x;const N=NW(x.json,r.transformer.output);if(!N.ok){p.error(Tp.from(N.error,{meta:x.meta}));return}p.next({context:x.meta,result:N.result}),p.complete()}).catch(x=>{p.error(Tp.from(x,{meta:S?.meta}))}),()=>{}})}}bn(li(),1);const $z=(e,...t)=>typeof e=="function"?e(...t):e;bn(Fu(),1);function uZ(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function cZ(e){const t=await $z(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function dZ(e){const t={method:"connectionParams",data:await $z(e)};return JSON.stringify(t)}bn(Fu(),1);var cu=bn(Fu(),1);function fZ(e){const{promise:t,resolve:n,reject:r}=uZ();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function mZ(e,{intervalMs:t,pongTimeoutMs:n}){let r,o;function s(){r=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},n)},t)}function u(){clearTimeout(r),s()}function c(){clearTimeout(o),u()}e.addEventListener("open",s),e.addEventListener("message",({data:f})=>{clearTimeout(r),s(),f==="PONG"&&c()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(o)})}var pZ=class $T{constructor(t){var n;if((0,cu.default)(this,"id",++$T.connectCount),(0,cu.default)(this,"WebSocketPonyfill",void 0),(0,cu.default)(this,"urlOptions",void 0),(0,cu.default)(this,"keepAliveOpts",void 0),(0,cu.default)(this,"wsObservable",FW(null)),(0,cu.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++$T.connectCount;const n=cZ(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&mZ(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await fZ(r),t.urlOptions.connectionParams&&r.send(await dZ(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,cu.default)(pZ,"connectCount",0);bn(Fu(),1);bn(li(),1);var WN=bn(Fu(),1),C5=bn(li(),1),n0=class{constructor(e){(0,WN.default)(this,"links",void 0),(0,WN.default)(this,"runtime",void 0),(0,WN.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return KW({links:this.links,op:(0,C5.default)((0,C5.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(HW())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await SW(n)).result.data}catch(n){throw Tp.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(o){switch(o.result.type){case"state":{var s;(s=n.onConnectionStateChange)===null||s===void 0||s.call(n,o.result);break}case"started":{var u;(u=n.onStarted)===null||u===void 0||u.call(n,{context:o.context});break}case"stopped":{var c;(c=n.onStopped)===null||c===void 0||c.call(n);break}case"data":case void 0:{var f;(f=n.onData)===null||f===void 0||f.call(n,o.result.data);break}}},error(o){var s;(s=n.onError)===null||s===void 0||s.call(n,o)},complete(){var o;(o=n.onComplete)===null||o===void 0||o.call(n)}})}};const Vz=Symbol.for("trpc_untypedClient"),hZ={query:"query",mutate:"mutation",subscribe:"subscription"},gZ=e=>hZ[e];function Bz(e){const t=e0(({path:n,args:r})=>{const o=[...n],s=gZ(o.pop()),u=o.join(".");return e[s](u,...r)});return B_(n=>n===Vz?e:t[n])}function vZ(e){const t=new n0(e);return Bz(t)}function U_(e){return e[Vz]}bn(li(),1);bn(li(),1);var yZ=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var s,u,c,f=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,c=Symbol.iterator);f--;){if(u&&(s=o[u])!=null)return s.call(o);if(c&&(s=o[c])!=null)return new r(s.call(o));u="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function s(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var c=u.done;return Promise.resolve(u.value).then(function(f){return{value:f,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(c){var f=this.s.return;return f===void 0?Promise.resolve({value:c,done:!0}):s(f.apply(this.s,arguments))},throw:function(c){var f=this.s.return;return f===void 0?Promise.reject(c):s(f.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});bn(yZ(),1);bn(li(),1);var bZ=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(c,f){var m=Error();return m.name="SuppressedError",m.error=c,m.suppressed=f,m},o={},s=[];function u(c,f){if(f!=null){if(Object(f)!==f)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(c)var m=f[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(m===void 0&&(m=f[Symbol.dispose||Symbol.for("Symbol.dispose")],c))var g=m;if(typeof m!="function")throw new TypeError("Object is not disposable.");g&&(m=function(){try{g.call(f)}catch(y){return Promise.reject(y)}}),s.push({v:f,d:m,a:c})}else c&&s.push({d:f,a:c});return f}return{e:o,u:u.bind(null,!1),a:u.bind(null,!0),d:function(){var f,m=this.e,g=0;function p(){for(;f=s.pop();)try{if(!f.a&&g===1)return g=0,s.push(f),Promise.resolve().then(p);if(f.d){var b=f.d.call(f.v);if(f.a)return g|=2,Promise.resolve(b).then(p,y)}else g|=1}catch(S){return y(S)}if(g===1)return m!==o?Promise.reject(m):Promise.resolve();if(m!==o)throw m}function y(b){return m=m!==o?new r(b,m):b,p()}return p()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),zz=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,o){this.v=r,this.k=o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),xZ=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=zz();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),wZ=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=zz();function r(s){return function(){return new o(s.apply(this,arguments))}}function o(s){var u,c;function f(g,p){try{var y=s[g](p),b=y.value,S=b instanceof n;Promise.resolve(S?b.v:b).then(function(x){if(S){var N=g==="return"?"return":"next";if(!b.k||x.done)return f(N,x);x=s[N](x).value}m(y.done?"return":"normal",x)},function(x){f("throw",x)})}catch(x){m("throw",x)}}function m(g,p){switch(g){case"return":u.resolve({value:p,done:!0});break;case"throw":u.reject(p);break;default:u.resolve({value:p,done:!1})}(u=u.next)?f(u.key,u.arg):c=null}this._invoke=function(g,p){return new Promise(function(y,b){var S={key:g,arg:p,resolve:y,reject:b,next:null};c?c=c.next=S:(u=c=S,f(g,p))})},typeof s.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(s){return this._invoke("next",s)},o.prototype.throw=function(s){return this._invoke("throw",s)},o.prototype.return=function(s){return this._invoke("return",s)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});bn(bZ(),1);bn(xZ(),1);bn(wZ(),1);bn(li(),1);function NZ(e){return e0(({path:t,args:n})=>{var r;const o=[...t],s=o.pop();if(s==="useMutation")return e[s](o,...n);if(s==="_def")return{path:o};const[u,...c]=n,f=(r=c[0])!==null&&r!==void 0?r:{};return e[s](o,u,f)})}var ZN;const EZ=["client","ssrContext","ssrState","abortOnUnmount"],SZ=(ZN=R.createContext)===null||ZN===void 0?void 0:ZN.call(Wb,null),AZ=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function OZ(e){return e0(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],s=o.shift(),u=AZ(r),c=Fi(n,s,u);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,c,o[0]),queryOptions:()=>e.queryOptions(n,c,...o),fetch:()=>e.fetchQuery(c,...o),fetchInfinite:()=>e.fetchInfiniteQuery(c,o[0]),prefetch:()=>e.prefetchQuery(c,...o),prefetchInfinite:()=>e.prefetchInfiniteQuery(c,o[0]),ensureData:()=>e.ensureQueryData(c,...o),invalidate:()=>e.invalidateQueries(c,...o),reset:()=>e.resetQueries(c,...o),refetch:()=>e.refetchQueries(c,...o),cancel:()=>e.cancelQuery(c,...o),setData:()=>{e.setQueryData(c,o[0],o[1])},setQueriesData:()=>e.setQueriesData(c,o[0],o[1],o[2]),setInfiniteData:()=>{e.setInfiniteQueryData(c,o[0],o[1])},getData:()=>e.getQueryData(c),getInfiniteData:()=>e.getInfiniteQueryData(c),setMutationDefaults:()=>e.setMutationDefaults(Cy(n),s),getMutationDefaults:()=>e.getMutationDefaults(Cy(n)),isMutating:()=>e.isMutating({mutationKey:Cy(n)})}[r]()})}function TZ(e){const t=Bz(e.client),n=OZ(e);return B_(r=>{const o=r;return o==="client"?t:EZ.includes(o)?e[o]:n[r]})}var CZ=Hu(Eh(),1);function _5(e){const t=e instanceof n0?e:U_(e);return e0(n=>{const r=n.path,o=r.join("."),[s,u]=n.args;return(0,CZ.default)({queryKey:Fi(r,s,"query"),queryFn:()=>t.query(o,s,u?.trpc)},u)})}var JN=Hu(Eh(),1);function Ar(e,t,n){var r;const o=e[0];let s=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var u;s=(0,JN.default)((0,JN.default)((0,JN.default)({},(u=s)!==null&&u!==void 0?u:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[o.join("."),s,t?.trpc]}var _Z=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var s,u,c,f=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,c=Symbol.iterator);f--;){if(u&&(s=o[u])!=null)return s.call(o);if(c&&(s=o[c])!=null)return new r(s.call(o));u="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function s(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var c=u.done;return Promise.resolve(u.value).then(function(f){return{value:f,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(c){var f=this.s.return;return f===void 0?Promise.resolve({value:c,done:!0}):s(f.apply(this.s,arguments))},throw:function(c){var f=this.s.return;return f===void 0?Promise.reject(c):s(f.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),DZ=Hu(_Z(),1);function VT(e){return{path:e.path.join(".")}}function Qm(e){const t=VT(e);return R.useMemo(()=>t,[t])}async function Uz(e,t,n){const o=t.getQueryCache().build(t,{queryKey:n});o.setState({data:[],status:"success"});const s=[];var u=!1,c=!1,f;try{for(var m=(0,DZ.default)(e),g;u=!(g=await m.next()).done;u=!1){const p=g.value;s.push(p),o.setState({data:[...s]})}}catch(p){c=!0,f=p}finally{try{u&&m.return!=null&&await m.return()}finally{if(c)throw f}}return s}var Et=Hu(Eh(),1);function RZ(e){const{client:t,queryClient:n}=e,r=t instanceof n0?t:U_(t);return{infiniteQueryOptions:(o,s,u)=>{var c,f;const m=((c=s[1])===null||c===void 0?void 0:c.input)===ar,g=async p=>{var y;const b=(0,Et.default)((0,Et.default)({},u),{},{trpc:(0,Et.default)((0,Et.default)({},u?.trpc),!(u==null||(y=u.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:p.signal}:{signal:null})});return await r.query(...Ar(s,b,{direction:p.direction,pageParam:p.pageParam}))};return Object.assign((0,Et.default)((0,Et.default)({},u),{},{initialData:u?.initialData,queryKey:s,queryFn:m?ar:g,initialPageParam:(f=u?.initialCursor)!==null&&f!==void 0?f:null}),{trpc:VT({path:o})})},queryOptions:(o,s,u)=>{var c;const f=((c=s[1])===null||c===void 0?void 0:c.input)===ar,m=async g=>{var p;const y=(0,Et.default)((0,Et.default)({},u),{},{trpc:(0,Et.default)((0,Et.default)({},u?.trpc),!(u==null||(p=u.trpc)===null||p===void 0)&&p.abortOnUnmount?{signal:g.signal}:{signal:null})}),b=await r.query(...Ar(s,y));return Ez(b)?Uz(b,n,s):b};return Object.assign((0,Et.default)((0,Et.default)({},u),{},{initialData:u?.initialData,queryKey:s,queryFn:f?ar:m}),{trpc:VT({path:o})})},fetchQuery:(o,s)=>n.fetchQuery((0,Et.default)((0,Et.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Ar(o,s))})),fetchInfiniteQuery:(o,s)=>{var u;return n.fetchInfiniteQuery((0,Et.default)((0,Et.default)({},s),{},{queryKey:o,queryFn:({pageParam:c,direction:f})=>r.query(...Ar(o,s,{pageParam:c,direction:f})),initialPageParam:(u=s?.initialCursor)!==null&&u!==void 0?u:null}))},prefetchQuery:(o,s)=>n.prefetchQuery((0,Et.default)((0,Et.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Ar(o,s))})),prefetchInfiniteQuery:(o,s)=>{var u;return n.prefetchInfiniteQuery((0,Et.default)((0,Et.default)({},s),{},{queryKey:o,queryFn:({pageParam:c,direction:f})=>r.query(...Ar(o,s,{pageParam:c,direction:f})),initialPageParam:(u=s?.initialCursor)!==null&&u!==void 0?u:null}))},ensureQueryData:(o,s)=>n.ensureQueryData((0,Et.default)((0,Et.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Ar(o,s))})),invalidateQueries:(o,s,u)=>n.invalidateQueries((0,Et.default)((0,Et.default)({},s),{},{queryKey:o}),u),resetQueries:(o,s,u)=>n.resetQueries((0,Et.default)((0,Et.default)({},s),{},{queryKey:o}),u),refetchQueries:(o,s,u)=>n.refetchQueries((0,Et.default)((0,Et.default)({},s),{},{queryKey:o}),u),cancelQuery:(o,s)=>n.cancelQueries({queryKey:o},s),setQueryData:(o,s,u)=>n.setQueryData(o,s,u),setQueriesData:(o,s,u,c)=>n.setQueriesData((0,Et.default)((0,Et.default)({},s),{},{queryKey:o}),u,c),getQueryData:o=>n.getQueryData(o),setInfiniteQueryData:(o,s,u)=>n.setQueryData(o,s,u),getInfiniteQueryData:o=>n.getQueryData(o),setMutationDefaults:(o,s)=>{const u=o[0],c=f=>r.mutation(...Ar([u,{input:f}],e));return n.setMutationDefaults(o,typeof s=="function"?s({canonicalMutationFn:c}):s)},getMutationDefaults:o=>n.getMutationDefaults(o),isMutating:o=>n.isMutating((0,Et.default)((0,Et.default)({},o),{},{exact:!0}))}}var Re=Hu(Eh());const D5=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function jZ(e){var t,n;const r=(t=void 0)!==null&&t!==void 0?t:A=>A.originalFn(),o=(n=void 0)!==null&&n!==void 0?n:SZ,s=vZ,u=A=>{var C;const{abortOnUnmount:j=!1,queryClient:L,ssrContext:V}=A,[B,z]=R.useState((C=A.ssrState)!==null&&C!==void 0?C:!1),q=A.client instanceof n0?A.client:U_(A.client),F=R.useMemo(()=>RZ({client:q,queryClient:L}),[q,L]),Y=R.useMemo(()=>(0,Re.default)({abortOnUnmount:j,queryClient:L,client:q,ssrContext:V??null,ssrState:B},F),[j,q,F,L,V,B]);return R.useEffect(()=>{z(ee=>ee?"mounted":!1)},[]),ce.jsx(o.Provider,{value:Y,children:A.children})};function c(){const A=R.useContext(o);if(!A)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return A}function f(A,C){var j;const{queryClient:L,ssrState:V}=c();return V&&V!=="mounted"&&((j=L.getQueryCache().find({queryKey:A}))===null||j===void 0?void 0:j.state.status)==="error"?(0,Re.default)({retryOnMount:!1},C):C}function m(A,C,j){var L,V,B,z,q;const F=c(),{abortOnUnmount:Y,client:ee,ssrState:U,queryClient:G,prefetchQuery:K}=F,te=Fi(A,C,"query"),ne=G.getQueryDefaults(te),I=C===ar;typeof window>"u"&&U==="prepass"&&(j==null||(L=j.trpc)===null||L===void 0?void 0:L.ssr)!==!1&&((V=j?.enabled)!==null&&V!==void 0?V:ne?.enabled)!==!1&&!I&&!G.getQueryCache().find({queryKey:te})&&K(te,j);const Z=f(te,(0,Re.default)((0,Re.default)({},ne),j)),W=(B=(z=j==null||(q=j.trpc)===null||q===void 0?void 0:q.abortOnUnmount)!==null&&z!==void 0?z:void 0)!==null&&B!==void 0?B:Y,ae=iW((0,Re.default)((0,Re.default)({},Z),{},{queryKey:te,queryFn:I?C:async ge=>{const Ne=(0,Re.default)((0,Re.default)({},Z),{},{trpc:(0,Re.default)((0,Re.default)({},Z?.trpc),W?{signal:ge.signal}:{signal:null})}),ue=await ee.query(...Ar(te,Ne));return Ez(ue)?Uz(ue,G,te):ue}}),G);return ae.trpc=Qm({path:A}),ae}function g(A,C,j){var L,V,B;const z=c(),q=Fi(A,C,"query"),F=C===ar,Y=(L=(V=j==null||(B=j.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&V!==void 0?V:void 0)!==null&&L!==void 0?L:z.abortOnUnmount;uW((0,Re.default)((0,Re.default)({},j),{},{queryKey:q,queryFn:F?C:ee=>{const U={trpc:(0,Re.default)((0,Re.default)({},j?.trpc),Y?{signal:ee.signal}:{})};return z.client.query(...Ar(q,U))}}))}function p(A,C,j){var L,V,B;const z=c(),q=Fi(A,C,"query"),F=(L=(V=j==null||(B=j.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&V!==void 0?V:void 0)!==null&&L!==void 0?L:z.abortOnUnmount,Y=oW((0,Re.default)((0,Re.default)({},j),{},{queryKey:q,queryFn:ee=>{const U=(0,Re.default)((0,Re.default)({},j),{},{trpc:(0,Re.default)((0,Re.default)({},j?.trpc),F?{signal:ee.signal}:{signal:null})});return z.client.query(...Ar(q,U))}}),z.queryClient);return Y.trpc=Qm({path:A}),[Y.data,Y]}function y(A,C){const{client:j,queryClient:L}=c(),V=Cy(A),B=L.defaultMutationOptions(L.getMutationDefaults(V)),z=dW((0,Re.default)((0,Re.default)({},C),{},{mutationKey:V,mutationFn:q=>j.mutation(...Ar([A,{input:q}],C)),onSuccess(...q){var F,Y;return r({originalFn:()=>{var U,G,K;return(U=C==null||(G=C.onSuccess)===null||G===void 0?void 0:G.call(C,...q))!==null&&U!==void 0?U:B==null||(K=B.onSuccess)===null||K===void 0?void 0:K.call(B,...q)},queryClient:L,meta:(F=(Y=C?.meta)!==null&&Y!==void 0?Y:B?.meta)!==null&&F!==void 0?F:{}})}}),L);return z.trpc=Qm({path:A}),z}const b={data:void 0,error:null,status:"idle"},S={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function x(A,C,j){var L;const V=(L=j?.enabled)!==null&&L!==void 0?L:C!==ar,B=ll(Fi(A,C,"any")),{client:z}=c(),q=R.useRef(j);R.useEffect(()=>{q.current=j});const[F]=R.useState(new Set([])),Y=R.useCallback(I=>{F.add(I)},[F]),ee=R.useRef(null),U=R.useCallback(I=>{const Z=K.current,W=K.current=I(Z);let ae=!1;for(const ge of F)if(Z[ge]!==W[ge]){ae=!0;break}ae&&ne(D5(W,Y))},[Y,F]),G=R.useCallback(()=>{var I;if((I=ee.current)===null||I===void 0||I.unsubscribe(),!V){U(()=>(0,Re.default)((0,Re.default)({},b),{},{reset:G}));return}U(()=>(0,Re.default)((0,Re.default)({},S),{},{reset:G}));const Z=z.subscription(A.join("."),C??void 0,{onStarted:()=>{var W,ae;(W=(ae=q.current).onStarted)===null||W===void 0||W.call(ae),U(ge=>(0,Re.default)((0,Re.default)({},ge),{},{status:"pending",error:null}))},onData:W=>{var ae,ge;(ae=(ge=q.current).onData)===null||ae===void 0||ae.call(ge,W),U(Ne=>(0,Re.default)((0,Re.default)({},Ne),{},{status:"pending",data:W,error:null}))},onError:W=>{var ae,ge;(ae=(ge=q.current).onError)===null||ae===void 0||ae.call(ge,W),U(Ne=>(0,Re.default)((0,Re.default)({},Ne),{},{status:"error",error:W}))},onConnectionStateChange:W=>{U(ae=>{switch(W.state){case"idle":return(0,Re.default)((0,Re.default)({},ae),{},{status:W.state,error:null,data:void 0});case"connecting":return(0,Re.default)((0,Re.default)({},ae),{},{error:W.error,status:W.state});case"pending":return ae}})},onComplete:()=>{var W,ae;(W=(ae=q.current).onComplete)===null||W===void 0||W.call(ae),U(ge=>(0,Re.default)((0,Re.default)({},ge),{},{status:"idle",error:null,data:void 0}))}});ee.current=Z},[z,B,V,U]);R.useEffect(()=>(G(),()=>{var I;(I=ee.current)===null||I===void 0||I.unsubscribe()}),[G]);const K=R.useRef(V?(0,Re.default)((0,Re.default)({},S),{},{reset:G}):(0,Re.default)((0,Re.default)({},b),{},{reset:G})),[te,ne]=R.useState(D5(K.current,Y));return te}function N(A,C,j){var L,V,B,z,q;const{client:F,ssrState:Y,prefetchInfiniteQuery:ee,queryClient:U,abortOnUnmount:G}=c(),K=Fi(A,C,"infinite"),te=U.getQueryDefaults(K),ne=C===ar;typeof window>"u"&&Y==="prepass"&&(j==null||(L=j.trpc)===null||L===void 0?void 0:L.ssr)!==!1&&((V=j?.enabled)!==null&&V!==void 0?V:te?.enabled)!==!1&&!ne&&!U.getQueryCache().find({queryKey:K})&&ee(K,(0,Re.default)((0,Re.default)({},te),j));const I=f(K,(0,Re.default)((0,Re.default)({},te),j)),Z=(B=j==null||(z=j.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&B!==void 0?B:G,W=fW((0,Re.default)((0,Re.default)({},I),{},{initialPageParam:(q=j.initialCursor)!==null&&q!==void 0?q:null,persister:j.persister,queryKey:K,queryFn:ne?C:ae=>{var ge;const Ne=(0,Re.default)((0,Re.default)({},I),{},{trpc:(0,Re.default)((0,Re.default)({},I?.trpc),Z?{signal:ae.signal}:{signal:null})});return F.query(...Ar(K,Ne,{pageParam:(ge=ae.pageParam)!==null&&ge!==void 0?ge:j.initialCursor,direction:ae.direction}))}}),U);return W.trpc=Qm({path:A}),W}function T(A,C,j){var L,V,B;const z=c(),q=Fi(A,C,"infinite"),F=z.queryClient.getQueryDefaults(q),Y=C===ar,ee=f(q,(0,Re.default)((0,Re.default)({},F),j)),U=(L=j==null||(V=j.trpc)===null||V===void 0?void 0:V.abortOnUnmount)!==null&&L!==void 0?L:z.abortOnUnmount;cW((0,Re.default)((0,Re.default)({},j),{},{initialPageParam:(B=j.initialCursor)!==null&&B!==void 0?B:null,queryKey:q,queryFn:Y?C:G=>{var K;const te=(0,Re.default)((0,Re.default)({},ee),{},{trpc:(0,Re.default)((0,Re.default)({},ee?.trpc),U?{signal:G.signal}:{})});return z.client.query(...Ar(q,te,{pageParam:(K=G.pageParam)!==null&&K!==void 0?K:j.initialCursor,direction:G.direction}))}}))}function _(A,C,j){var L,V,B;const z=c(),q=Fi(A,C,"infinite"),F=z.queryClient.getQueryDefaults(q),Y=f(q,(0,Re.default)((0,Re.default)({},F),j)),ee=(L=j==null||(V=j.trpc)===null||V===void 0?void 0:V.abortOnUnmount)!==null&&L!==void 0?L:z.abortOnUnmount,U=sW((0,Re.default)((0,Re.default)({},j),{},{initialPageParam:(B=j.initialCursor)!==null&&B!==void 0?B:null,queryKey:q,queryFn:G=>{var K;const te=(0,Re.default)((0,Re.default)({},Y),{},{trpc:(0,Re.default)((0,Re.default)({},Y?.trpc),ee?{signal:G.signal}:{})});return z.client.query(...Ar(q,te,{pageParam:(K=G.pageParam)!==null&&K!==void 0?K:j.initialCursor,direction:G.direction}))}}),z.queryClient);return U.trpc=Qm({path:A}),[U.data,U]}return{Provider:u,createClient:s,useContext:c,useUtils:c,useQuery:m,usePrefetchQuery:g,useSuspenseQuery:p,useQueries:(A,C)=>{const{ssrState:j,queryClient:L,prefetchQuery:V,client:B}=c(),z=_5(B),q=A(z);if(typeof window>"u"&&j==="prepass")for(const Y of q){var F;const ee=Y;((F=ee.trpc)===null||F===void 0?void 0:F.ssr)!==!1&&!L.getQueryCache().find({queryKey:ee.queryKey})&&V(ee.queryKey,ee)}return Nz({queries:q.map(Y=>(0,Re.default)((0,Re.default)({},Y),{},{queryKey:Y.queryKey})),combine:C?.combine},L)},useSuspenseQueries:A=>{const{queryClient:C,client:j}=c(),L=_5(j),V=A(L),B=lW({queries:V.map(z=>(0,Re.default)((0,Re.default)({},z),{},{queryFn:z.queryFn,queryKey:z.queryKey}))},C);return[B.map(z=>z.data),B]},useMutation:y,useSubscription:x,useInfiniteQuery:N,usePrefetchInfiniteQuery:T,useSuspenseInfiniteQuery:_}}function PZ(e){const t=NZ(e);return B_(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return R.useMemo(()=>TZ(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function MZ(e){const t=jZ();return PZ(t)}const _t=MZ(),Je=e=>typeof e=="string",Xm=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},R5=e=>e==null?"":""+e,LZ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},kZ=/###/g,j5=e=>e&&e.indexOf("###")>-1?e.replace(kZ,"."):e,P5=e=>!e||Je(e),hp=(e,t,n)=>{const r=Je(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(P5(e))return{};const s=j5(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return P5(e)?{}:{obj:e,k:j5(r[o])}},M5=(e,t,n)=>{const{obj:r,k:o}=hp(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],u=t.slice(0,t.length-1),c=hp(e,u,Object);for(;c.obj===void 0&&u.length;)s=`${u[u.length-1]}.${s}`,u=u.slice(0,u.length-1),c=hp(e,u,Object),c?.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=n},IZ=(e,t,n,r)=>{const{obj:o,k:s}=hp(e,t,Object);o[s]=o[s]||[],o[s].push(n)},Vy=(e,t)=>{const{obj:n,k:r}=hp(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},$Z=(e,t,n)=>{const r=Vy(e,n);return r!==void 0?r:Vy(t,n)},qz=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Je(e[r])||e[r]instanceof String||Je(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):qz(e[r],t[r],n):e[r]=t[r]);return e},au=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var VZ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const BZ=e=>Je(e)?e.replace(/[&<>"'\/]/g,t=>VZ[t]):e;class zZ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const UZ=[" ",",","?","!",";"],qZ=new zZ(20),HZ=(e,t,n)=>{t=t||"",n=n||"";const r=UZ.filter(u=>t.indexOf(u)<0&&n.indexOf(u)<0);if(r.length===0)return!0;const o=qZ.getRegExp(`(${r.map(u=>u==="?"?"\\?":u).join("|")})`);let s=!o.test(e);if(!s){const u=e.indexOf(n);u>0&&!o.test(e.substring(0,u))&&(s=!0)}return s},BT=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let u,c="";for(let f=s;f<r.length;++f)if(f!==s&&(c+=n),c+=r[f],u=o[c],u!==void 0){if(["string","number","boolean"].indexOf(typeof u)>-1&&f<r.length-1)continue;s+=f-s+1;break}o=u}return o},Cp=e=>e?.replace("_","-"),FZ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class By{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||FZ,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(Je(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new By(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new By(this.logger,t)}}var Gi=new By;let r0=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,s])=>{for(let u=0;u<s;u++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,s])=>{for(let u=0;u<s;u++)o.apply(o,[t,...n])})}};class L5 extends r0{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,o={}){const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):Je(r)&&s?c.push(...r.split(s)):c.push(r)));const f=Vy(this.data,c);return!f&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),f||!u||!Je(r)?f:BT(this.data?.[t]?.[n],r,s)}addResource(t,n,r,o,s={silent:!1}){const u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(u?r.split(u):r)),t.indexOf(".")>-1&&(c=t.split("."),o=n,n=c[1]),this.addNamespaces(n),M5(this.data,c,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r,o={silent:!1}){for(const s in r)(Je(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s,u={silent:!1,skipCopy:!1}){let c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),o=r,r=n,n=c[1]),this.addNamespaces(n);let f=Vy(this.data,c)||{};u.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?qz(f,r,s):f={...f,...r},M5(this.data,c,f),u.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var Hz={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{t=this.processors[s]?.process(t,n,r,o)??t}),t}};const Fz=Symbol("i18next/PATH_KEY");function KZ(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Fz?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function zT(e,t){const{[Fz]:n}=e(KZ());return n.join(t?.keySeparator??".")}const k5={},eE=e=>!Je(e)&&typeof e!="boolean"&&typeof e!="number";class zy extends r0{constructor(t,n={}){super(),LZ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Gi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const o=this.resolve(t,r);if(o?.res===void 0)return!1;const s=eE(o.res);return!(r.returnObjects===!1&&s)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const u=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!HZ(t,r,o);if(u&&!c){const f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:Je(s)?[s]:s};const m=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(m[0])>-1)&&(s=m.shift()),t=m.join(o)}return{key:t,namespaces:Je(s)?[s]:s}}translate(t,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=zT(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);const s=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:c,namespaces:f}=this.extractFromKey(t[t.length-1],o),m=f[f.length-1];let g=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const p=o.lng||this.language,y=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p?.toLowerCase()==="cimode")return y?s?{res:`${m}${g}${c}`,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:`${m}${g}${c}`:s?{res:c,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:c;const b=this.resolve(t,o);let S=b?.res;const x=b?.usedKey||c,N=b?.exactUsedKey||c,T=["[object Number]","[object Function]","[object RegExp]"],_=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,P=o.count!==void 0&&!Je(o.count),A=zy.hasDefaultValue(o),C=P?this.pluralResolver.getSuffix(p,o.count,o):"",j=o.ordinal&&P?this.pluralResolver.getSuffix(p,o.count,{ordinal:!1}):"",L=P&&!o.ordinal&&o.count===0,V=L&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${C}`]||o[`defaultValue${j}`]||o.defaultValue;let B=S;D&&!S&&A&&(B=V);const z=eE(B),q=Object.prototype.toString.apply(B);if(D&&B&&z&&T.indexOf(q)<0&&!(Je(_)&&Array.isArray(B))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,B,{...o,ns:f}):`key '${c} (${this.language})' returned an object instead of string.`;return s?(b.res=F,b.usedParams=this.getUsedParamsDetails(o),b):F}if(u){const F=Array.isArray(B),Y=F?[]:{},ee=F?N:x;for(const U in B)if(Object.prototype.hasOwnProperty.call(B,U)){const G=`${ee}${u}${U}`;A&&!S?Y[U]=this.translate(G,{...o,defaultValue:eE(V)?V[U]:void 0,joinArrays:!1,ns:f}):Y[U]=this.translate(G,{...o,joinArrays:!1,ns:f}),Y[U]===G&&(Y[U]=B[U])}S=Y}}else if(D&&Je(_)&&Array.isArray(S))S=S.join(_),S&&(S=this.extendTranslation(S,t,o,r));else{let F=!1,Y=!1;!this.isValidLookup(S)&&A&&(F=!0,S=V),this.isValidLookup(S)||(Y=!0,S=c);const U=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:S,G=A&&V!==S&&this.options.updateMissing;if(Y||F||G){if(this.logger.log(G?"updateKey":"missingKey",p,m,c,G?V:S),u){const I=this.resolve(c,{...o,keySeparator:!1});I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let K=[];const te=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&te&&te[0])for(let I=0;I<te.length;I++)K.push(te[I]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(o.lng||this.language):K.push(o.lng||this.language);const ne=(I,Z,W)=>{const ae=A&&W!==S?W:U;this.options.missingKeyHandler?this.options.missingKeyHandler(I,m,Z,ae,G,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(I,m,Z,ae,G,o),this.emit("missingKey",I,m,Z,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(I=>{const Z=this.pluralResolver.getSuffixes(I,o);L&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Z.indexOf(`${this.options.pluralSeparator}zero`)<0&&Z.push(`${this.options.pluralSeparator}zero`),Z.forEach(W=>{ne([I],c+W,o[`defaultValue${W}`]||V)})}):ne(K,c,V))}S=this.extendTranslation(S,t,o,b,r),Y&&S===c&&this.options.appendNamespaceToMissingKey&&(S=`${m}${g}${c}`),(Y||F)&&this.options.parseMissingKeyHandler&&(S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${c}`:c,F?S:void 0,o))}return s?(b.res=S,b.usedParams=this.getUsedParamsDetails(o),b):S}extendTranslation(t,n,r,o,s){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Je(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(f){const p=t.match(this.interpolator.nestingRegexp);m=p&&p.length}let g=r.replace&&!Je(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),t=this.interpolator.interpolate(t,g,r.lng||this.language||o.usedLng,r),f){const p=t.match(this.interpolator.nestingRegexp),y=p&&p.length;m<y&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...p)=>s?.[0]===p[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):this.translate(...p,n),r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=Je(u)?[u]:u;return t!=null&&c?.length&&r.applyPostProcessor!==!1&&(t=Hz.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,o,s,u,c;return Je(t)&&(t=[t]),t.forEach(f=>{if(this.isValidLookup(r))return;const m=this.extractFromKey(f,n),g=m.key;o=g;let p=m.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const y=n.count!==void 0&&!Je(n.count),b=y&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(Je(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(N=>{this.isValidLookup(r)||(c=N,!k5[`${x[0]}-${N}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(k5[`${x[0]}-${N}`]=!0,this.logger.warn(`key "${o}" for languages "${x.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(T=>{if(this.isValidLookup(r))return;u=T;const _=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(_,g,T,N,n);else{let P;y&&(P=this.pluralResolver.getSuffix(T,n.count,n));const A=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(n.ordinal&&P.indexOf(C)===0&&_.push(g+P.replace(C,this.options.pluralSeparator)),_.push(g+P),b&&_.push(g+A)),S){const j=`${g}${this.options.contextSeparator||"_"}${n.context}`;_.push(j),y&&(n.ordinal&&P.indexOf(C)===0&&_.push(j+P.replace(C,this.options.pluralSeparator)),_.push(j+P),b&&_.push(j+A))}}let D;for(;D=_.pop();)this.isValidLookup(r)||(s=D,r=this.getResource(T,N,D,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:u,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Je(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class I5{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gi.create("languageUtils")}getScriptPartFromCode(t){if(t=Cp(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Cp(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Je(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(u=>{if(u===s)return u;if(!(u.indexOf("-")<0&&s.indexOf("-")<0)&&(u.indexOf("-")>0&&s.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===s||u.indexOf(s)===0&&s.length>1))return u})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Je(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),o=[],s=u=>{u&&(this.isSupportedCode(u)?o.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return Je(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Je(t)&&s(this.formatLanguageCode(t)),r.forEach(u=>{o.indexOf(u)<0&&s(this.formatLanguageCode(u))}),o}}const $5={zero:0,one:1,two:2,few:3,many:4,other:5},V5={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class GZ{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Gi.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Cp(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let u;try{u=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),V5;if(!t.match(/-|_/))return V5;const f=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(f,n)}return this.pluralRulesCache[s]=u,u}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,s)=>$5[o]-$5[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,r={}){const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const B5=(e,t,n,r=".",o=!0)=>{let s=$Z(e,t,n);return!s&&o&&Je(n)&&(s=BT(e,n,r),s===void 0&&(s=BT(t,n,r))),s},tE=e=>e.replace(/\$/g,"$$$$");class z5{constructor(t={}){this.logger=Gi.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:u,suffix:c,suffixEscaped:f,formatSeparator:m,unescapeSuffix:g,unescapePrefix:p,nestingPrefix:y,nestingPrefixEscaped:b,nestingSuffix:S,nestingSuffixEscaped:x,nestingOptionsSeparator:N,maxReplaces:T,alwaysFormat:_}=t.interpolation;this.escape=n!==void 0?n:BZ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?au(s):u||"{{",this.suffix=c?au(c):f||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=y?au(y):b||au("$t("),this.nestingSuffix=S?au(S):x||au(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=T||1e3,this.alwaysFormat=_!==void 0?_:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,u,c;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=b=>{if(b.indexOf(this.formatSeparator)<0){const T=B5(n,f,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,r,{...o,...n,interpolationkey:b}):T}const S=b.split(this.formatSeparator),x=S.shift().trim(),N=S.join(this.formatSeparator).trim();return this.format(B5(n,f,x,this.options.keySeparator,this.options.ignoreJSONStructure),N,r,{...o,...n,interpolationkey:x})};this.resetRegExp();const g=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>tE(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?tE(this.escape(b)):tE(b)}].forEach(b=>{for(c=0;s=b.regex.exec(t);){const S=s[1].trim();if(u=m(S),u===void 0)if(typeof g=="function"){const N=g(t,s,o);u=Je(N)?N:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))u="";else if(p){u=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),u="";else!Je(u)&&!this.useRawValueToEscape&&(u=R5(u));const x=b.safeValue(u);if(t=t.replace(s[0],x),p?(b.regex.lastIndex+=u.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n,r={}){let o,s,u;const c=(f,m)=>{const g=this.nestingOptionsSeparator;if(f.indexOf(g)<0)return f;const p=f.split(new RegExp(`${au(g)}[ ]*{`));let y=`{${p[1]}`;f=p[0],y=this.interpolate(y,u);const b=y.match(/'/g),S=y.match(/"/g);((b?.length??0)%2===0&&!S||(S?.length??0)%2!==0)&&(y=y.replace(/'/g,'"'));try{u=JSON.parse(y),m&&(u={...m,...u})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,x),`${f}${g}${y}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,f};for(;o=this.nestingRegexp.exec(t);){let f=[];u={...r},u=u.replace&&!Je(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;const m=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(m!==-1&&(f=o[1].slice(m).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),o[1]=o[1].slice(0,m)),s=n(c.call(this,o[1].trim(),u),u),s&&o[0]===t&&!Je(s))return s;Je(s)||(s=R5(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),f.length&&(s=f.reduce((g,p)=>this.format(g,p,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}const YZ=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(u=>{if(u){const[c,...f]=u.split(":"),m=f.join(":").trim().replace(/^'+|'+$/g,""),g=c.trim();n[g]||(n[g]=m),m==="false"&&(n[g]=!1),m==="true"&&(n[g]=!0),isNaN(m)||(n[g]=parseInt(m,10))}})}return{formatName:t,formatOptions:n}},U5=e=>{const t={};return(n,r,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const u=r+JSON.stringify(s);let c=t[u];return c||(c=e(Cp(r),o),t[u]=c),c(n)}},QZ=e=>(t,n,r)=>e(Cp(n),r)(t);class XZ{constructor(t={}){this.logger=Gi.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?U5:QZ;this.formats={number:r((o,s)=>{const u=new Intl.NumberFormat(o,{...s});return c=>u.format(c)}),currency:r((o,s)=>{const u=new Intl.NumberFormat(o,{...s,style:"currency"});return c=>u.format(c)}),datetime:r((o,s)=>{const u=new Intl.DateTimeFormat(o,{...s});return c=>u.format(c)}),relativetime:r((o,s)=>{const u=new Intl.RelativeTimeFormat(o,{...s});return c=>u.format(c,s.range||"day")}),list:r((o,s)=>{const u=new Intl.ListFormat(o,{...s});return c=>u.format(c)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=U5(n)}format(t,n,r,o={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(c=>c.indexOf(")")>-1)){const c=s.findIndex(f=>f.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,c)].join(this.formatSeparator)}return s.reduce((c,f)=>{const{formatName:m,formatOptions:g}=YZ(f);if(this.formats[m]){let p=c;try{const y=o?.formatParams?.[o.interpolationkey]||{},b=y.locale||y.lng||o.locale||o.lng||r;p=this.formats[m](c,b,{...g,...o,...y})}catch(y){this.logger.warn(y)}return p}else this.logger.warn(`there was no format function for ${m}`);return c},t)}}const WZ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class ZZ extends r0{constructor(t,n,r,o={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Gi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,n,r,o){const s={},u={},c={},f={};return t.forEach(m=>{let g=!0;n.forEach(p=>{const y=`${m}|${p}`;!r.reload&&this.store.hasResourceBundle(m,p)?this.state[y]=2:this.state[y]<0||(this.state[y]===1?u[y]===void 0&&(u[y]=!0):(this.state[y]=1,g=!1,u[y]===void 0&&(u[y]=!0),s[y]===void 0&&(s[y]=!0),f[p]===void 0&&(f[p]=!0)))}),g||(c[m]=!0)}),(Object.keys(s).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(u),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(f)}}loaded(t,n,r){const o=t.split("|"),s=o[0],u=o[1];n&&this.emit("failedLoading",s,u,n),!n&&r&&this.store.addResourceBundle(s,u,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(f=>{IZ(f.loaded,[s],u),WZ(f,t),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(m=>{c[m]||(c[m]={});const g=f.loaded[m];g.length&&g.forEach(p=>{c[m][p]===void 0&&(c[m][p]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(f=>!f.done)}read(t,n,r,o=0,s=this.retryTimeout,u){if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:u});return}this.readingCalls++;const c=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(m&&g&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,u)},s);return}u(m,g)},f=this.backend[r].bind(this.backend);if(f.length===2){try{const m=f(t,n);m&&typeof m.then=="function"?m.then(g=>c(null,g)).catch(c):c(null,m)}catch(m){c(m)}return}return f(t,n,c)}prepareLoading(t,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Je(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Je(n)&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(u=>{this.loadOne(u)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(u,c)=>{u&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,u),!u&&c&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,c),this.loaded(t,u,c)})}saveMissing(t,n,r,o,s,u={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const f={...u,isUpdate:s},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(t,n,r,o,f):g=m(t,n,r,o),g&&typeof g.then=="function"?g.then(p=>c(null,p)).catch(c):c(null,g)}catch(g){c(g)}else m(t,n,r,o,c,f)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const nE=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Je(e[1])&&(t.defaultValue=e[1]),Je(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),q5=e=>(Je(e.ns)&&(e.ns=[e.ns]),Je(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Je(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),ry=()=>{},JZ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},Kz="__i18next_supportNoticeShown",eJ=()=>typeof globalThis<"u"&&!!globalThis[Kz],tJ=()=>{typeof globalThis<"u"&&(globalThis[Kz]=!0)},nJ=e=>!!(e?.modules?.backend?.name?.indexOf("Locize")>0||e?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||e?.options?.backend?.backends&&e.options.backend.backends.some(t=>t?.name?.indexOf("Locize")>0||t?.constructor?.name?.indexOf("Locize")>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(t=>t?.projectId));class gp extends r0{constructor(t={},n){if(super(),this.options=q5(t),this.services={},this.logger=Gi,this.modules={external:[]},JZ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Je(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=nE();this.options={...r,...this.options,...q5(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!nJ(this)&&!eJ()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),tJ());const o=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Gi.init(o(this.modules.logger),this.options):Gi.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=XZ;const g=new I5(this.options);this.store=new L5(this.options.resources,this.options);const p=this.services;p.logger=Gi,p.resourceStore=this.store,p.languageUtils=g,p.pluralResolver=new GZ(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(p.formatter=o(m),p.formatter.init&&p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new z5(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new ZZ(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",(b,...S)=>{this.emit(b,...S)}),this.modules.languageDetector&&(p.languageDetector=o(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=o(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new zy(this.services,this.options),this.translator.on("*",(b,...S)=>{this.emit(b,...S)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ry),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...g)=>this.store[m](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...g)=>(this.store[m](...g),this)});const c=Xm(),f=()=>{const m=(g,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(p),n(g,p)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),c}loadResources(t,n=ry){let r=n;const o=Je(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],u=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(m=>{m!=="cimode"&&s.indexOf(m)<0&&s.push(m)})};o?u(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>u(f)),this.options.preload?.forEach?.(c=>u(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const o=Xm();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=ry),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Hz.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Xm();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},s=(c,f)=>{f?this.isLanguageChangingTo===t&&(o(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,r.resolve((...m)=>this.t(...m)),n&&n(c,(...m)=>this.t(...m))},u=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const f=Je(c)?c:c&&c[0],m=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(Je(c)?[c]:c);m&&(this.language||o(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,g=>{s(g,m)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),r}getFixedT(t,n,r){const o=(s,u,...c)=>{let f;typeof u!="object"?f=this.options.overloadTranslationOptionHandler([s,u].concat(c)):f={...u},f.lng=f.lng||o.lng,f.lngs=f.lngs||o.lngs,f.ns=f.ns||o.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||r||o.keyPrefix);const m=this.options.keySeparator||".";let g;return f.keyPrefix&&Array.isArray(s)?g=s.map(p=>(typeof p=="function"&&(p=zT(p,{...this.options,...u})),`${f.keyPrefix}${m}${p}`)):(typeof s=="function"&&(s=zT(s,{...this.options,...u})),g=f.keyPrefix?`${f.keyPrefix}${m}${s}`:s),this.t(g,f)};return Je(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const u=(c,f)=>{const m=this.services.backendConnector.state[`${c}|${f}`];return m===-1||m===0||m===2};if(n.precheck){const c=n.precheck(this,u);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(r,t)&&(!o||u(s,t)))}loadNamespaces(t,n){const r=Xm();return this.options.ns?(Je(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Xm();Je(t)&&(t=[t]);const o=this.options.preload||[],s=t.filter(u=>o.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return s.length?(this.options.preload=o.concat(s),this.loadResources(u=>{r.resolve(),n&&n(u)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const s=o.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new I5(nE());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new gp(t,n);return r.createInstance=gp.createInstance,r}cloneInstance(t={},n=ry){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new gp(o);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const c=Object.keys(this.store.data).reduce((f,m)=>(f[m]={...this.store.data[m]},f[m]=Object.keys(f[m]).reduce((g,p)=>(g[p]={...f[m][p]},g),f[m]),f),{});s.store=new L5(c,o),s.services.resourceStore=s.store}if(t.interpolation){const f={...nE().interpolation,...this.options.interpolation,...t.interpolation},m={...o,interpolation:f};s.services.interpolator=new z5(m)}return s.translator=new zy(s.services,o),s.translator.on("*",(c,...f)=>{s.emit(c,...f)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const pr=gp.createInstance();pr.createInstance;pr.dir;pr.init;pr.loadResources;pr.reloadResources;pr.use;pr.changeLanguage;pr.getFixedT;pr.t;pr.exists;pr.setDefaultNamespace;pr.hasLoadedNamespace;pr.loadNamespaces;pr.loadLanguages;const{slice:rJ,forEach:aJ}=[];function iJ(e){return aJ.call(rJ.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function oJ(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const H5=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,sJ=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let s=`${e}=${o}`;if(r.maxAge>0){const u=r.maxAge-0;if(Number.isNaN(u))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(u)}`}if(r.domain){if(!H5.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!H5.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},F5={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=sJ(e,t,o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var lJ={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return F5.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:s}=t;n&&typeof document<"u"&&F5.create(n,e,r,o,s)}},uJ={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let u=0;u<s.length;u++){const c=s[u].indexOf("=");c>0&&s[u].substring(0,c)===t&&(n=s[u].substring(c+1))}}return n}},cJ={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const s=o.substring(1);if(t){const u=s.split("&");for(let c=0;c<u.length;c++){const f=u[c].indexOf("=");f>0&&u[c].substring(0,f)===t&&(r=u[c].substring(f+1))}}if(r)return r;if(!r&&n>-1){const u=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(u)?u[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let td=null;const K5=()=>{if(td!==null)return td;try{if(td=typeof window<"u"&&window.localStorage!==null,!td)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{td=!1}return td};var dJ={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&K5())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&K5()&&window.localStorage.setItem(n,e)}};let nd=null;const G5=()=>{if(nd!==null)return nd;try{if(nd=typeof window<"u"&&window.sessionStorage!==null,!nd)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{nd=!1}return nd};var fJ={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&G5())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&G5()&&window.sessionStorage.setItem(n,e)}},mJ={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},pJ={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},hJ={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},gJ={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let Gz=!1;try{document.cookie,Gz=!0}catch{}const Yz=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Gz||Yz.splice(1,1);const vJ=()=>({order:Yz,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class Qz{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=iJ(n,this.options||{},vJ()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(lJ),this.addDetector(uJ),this.addDetector(dJ),this.addDetector(fJ),this.addDetector(mJ),this.addDetector(pJ),this.addDetector(hJ),this.addDetector(gJ),this.addDetector(cJ)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.filter(r=>r!=null&&!oJ(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}Qz.type="languageDetector";const yJ=(e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);Ou(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},Y5={},Xz=(e,t,n,r)=>{Ou(n)&&Y5[n]||(Ou(n)&&(Y5[n]=new Date),yJ(e,t,n,r))},Wz=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},UT=(e,t,n)=>{e.loadNamespaces(t,Wz(e,n))},Q5=(e,t,n,r)=>{if(Ou(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return UT(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,Wz(e,r))},bJ=(e,t,n={})=>!t.languages||!t.languages.length?(Xz(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),Ou=e=>typeof e=="string",xJ=e=>typeof e=="object"&&e!==null,wJ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,NJ={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},EJ=e=>NJ[e],SJ=e=>e.replace(wJ,EJ);let qT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:SJ,transDefaultProps:void 0};const AJ=(e={})=>{qT={...qT,...e}},OJ=()=>qT;let Zz;const TJ=e=>{Zz=e},CJ=()=>Zz,_J={type:"3rdParty",init(e){AJ(e.options.react),TJ(e)}},DJ=R.createContext();class RJ{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var rE={exports:{}},aE={},X5;function jJ(){if(X5)return aE;X5=1;/**
|
||
* @license React
|
||
* use-sync-external-store-shim.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/return(function(){function e(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}function t(b,S){g||o.startTransition===void 0||(g=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var x=S();if(!p){var N=S();s(x,N)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}N=u({inst:{value:x,getSnapshot:S}});var T=N[0].inst,_=N[1];return f(function(){T.value=x,T.getSnapshot=S,n(T)&&_({inst:T})},[b,x,S]),c(function(){return n(T)&&_({inst:T}),b(function(){n(T)&&_({inst:T})})},[b]),m(x),x}function n(b){var S=b.getSnapshot;b=b.value;try{var x=S();return!s(b,x)}catch{return!0}}function r(b,S){return S()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Jd(),s=typeof Object.is=="function"?Object.is:e,u=o.useState,c=o.useEffect,f=o.useLayoutEffect,m=o.useDebugValue,g=!1,p=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;aE.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),aE}var W5;function PJ(){return W5||(W5=1,rE.exports=jJ()),rE.exports}var Jz=PJ();const MJ=(e,t)=>Ou(t)?t:xJ(t)&&Ou(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,LJ={t:MJ,ready:!1},kJ=()=>()=>{},q_=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=R.useContext(DJ)||{},s=n||r||CJ();s&&!s.reportNamespaces&&(s.reportNamespaces=new RJ),s||Xz(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const u=R.useMemo(()=>({...OJ(),...s?.options?.react,...t}),[s,t]),{useSuspense:c,keyPrefix:f}=u,m=o||s?.options?.defaultNS,g=Ou(m)?[m]:m||["translation"],p=R.useMemo(()=>g,g);s?.reportNamespaces?.addUsedNamespaces?.(p);const y=R.useRef(0),b=R.useCallback(V=>{if(!s)return kJ;const{bindI18n:B,bindI18nStore:z}=u,q=()=>{y.current+=1,V()};return B&&s.on(B,q),z&&s.store.on(z,q),()=>{B&&B.split(" ").forEach(F=>s.off(F,q)),z&&z.split(" ").forEach(F=>s.store.off(F,q))}},[s,u]),S=R.useRef(),x=R.useCallback(()=>{if(!s)return LJ;const V=!!(s.isInitialized||s.initializedStoreOnce)&&p.every(ee=>bJ(ee,s,u)),B=t.lng||s.language,z=y.current,q=S.current;if(q&&q.ready===V&&q.lng===B&&q.keyPrefix===f&&q.revision===z)return q;const Y={t:s.getFixedT(B,u.nsMode==="fallback"?p:p[0],f),ready:V,lng:B,keyPrefix:f,revision:z};return S.current=Y,Y},[s,p,f,u,t.lng]),[N,T]=R.useState(0),{t:_,ready:D}=Jz.useSyncExternalStore(b,x,x);R.useEffect(()=>{if(s&&!D&&!c){const V=()=>T(B=>B+1);t.lng?Q5(s,t.lng,p,V):UT(s,p,V)}},[s,t.lng,p,D,c,N]);const P=s||{},A=R.useRef(null),C=R.useRef(),j=V=>{const B=Object.getOwnPropertyDescriptors(V);B.__original&&delete B.__original;const z=Object.create(Object.getPrototypeOf(V),B);if(!Object.prototype.hasOwnProperty.call(z,"__original"))try{Object.defineProperty(z,"__original",{value:V,writable:!1,enumerable:!1,configurable:!1})}catch{}return z},L=R.useMemo(()=>{const V=P,B=V?.language;let z=V;V&&(A.current&&A.current.__original===V?C.current!==B?(z=j(V),A.current=z,C.current=B):z=A.current:(z=j(V),A.current=z,C.current=B));const q=[_,z,D];return q.t=_,q.i18n=z,q.ready=D,q},[_,P,D,P.resolvedLanguage,P.language,P.languages]);if(s&&c&&!D)throw new Promise(V=>{const B=()=>V();t.lng?Q5(s,t.lng,p,B):UT(s,p,B)});return L},IJ={common:{save:"保存",cancel:"取消",delete:"删除",edit:"编辑",add:"新增",search:"搜索",filter:"筛选",export:"导出",import:"导入",refresh:"刷新",confirm:"确认",close:"关闭",loading:"加载中...",noData:"暂无数据",success:"操作成功",error:"操作失败",warning:"警告",info:"提示",all:"全部",enable:"启用",disable:"禁用",active:"激活",inactive:"未激活",status:"状态",actions:"操作",createdAt:"创建时间",updatedAt:"更新时间",version:"版本",description:"描述",name:"名称",type:"类型",language:"语言",jurisdiction:"司法辖区",assetType:"资产类型"},auth:{login:"管理员登录",loginSubtitle:"使用您的 NAC 系统账户登录",email:"邮箱地址",password:"密码",loginButton:"登录系统",loggingIn:"登录中...",loginSuccess:"登录成功",loginFailed:"登录失败,请检查邮箱和密码",logout:"退出登录",logoutSuccess:"已退出登录",authNotice:"本系统使用 NAC 原生认证服务,所有操作均记录审计日志",verifying:"验证身份中...",unauthorized:"无访问权限",adminOnly:"此系统仅限管理员访问"},nav:{dashboard:"态势感知",knowledgeBase:"知识库管理",crawlers:"采集器监控",approvalCases:"AI审批案例",tagEngine:"标签引擎",protocolRegistry:"协议族注册表",auditLog:"权限与审计",systemTitle:"NAC 知识引擎",systemSubtitle:"管理后台",adminPanel:"管理员面板"},dashboard:{title:"全局态势感知",subtitle:"实时监控知识引擎运行状态",totalRules:"合规规则总数",activeCrawlers:"活跃采集器",pendingReviews:"待审批案例",approvalRate:"审批通过率",knowledgeGrowth:"知识库增长趋势",jurisdictionCoverage:"司法辖区覆盖",assetDistribution:"资产类型分布",crawlerHealth:"采集器健康度",recentActivity:"最近活动",systemStatus:"系统状态",allSystemsNormal:"所有系统运行正常",lastUpdated:"最后更新",viewAll:"查看全部",rules:"条规则",crawlers:"个采集器",cases:"个案例"},knowledgeBase:{title:"知识库管理",subtitle:"管理合规规则、法规条文与交易细则",addRule:"新增规则",editRule:"编辑规则",deleteRule:"删除规则",ruleTitle:"规则标题",ruleContent:"规则内容",ruleSource:"规则来源",effectiveDate:"生效日期",translationStatus:"翻译状态",original:"原文",aiTranslated:"AI翻译",humanReviewed:"人工审核",addTranslation:"添加翻译",missingTranslation:"缺少翻译",languageCoverage:"语言覆盖",contentLanguage:"内容语言",switchLanguage:"切换语言查看",ruleActivated:"规则已启用",ruleDeactivated:"规则已禁用",searchPlaceholder:"搜索规则标题、内容或来源...",filterByJurisdiction:"按辖区筛选",filterByAssetType:"按资产类型筛选",filterByStatus:"按状态筛选",totalRules:"共 {{count}} 条规则"},crawlers:{title:"采集器监控与管理",subtitle:"实时监控内部与外部数据采集器",internalCrawlers:"内部采集器",externalCrawlers:"外部采集器",crawlerName:"采集器名称",crawlerType:"采集器类型",lastRun:"最后运行",nextRun:"下次运行",successRate:"成功率",totalCollected:"采集总量",triggerNow:"立即触发",triggering:"触发中...",triggered:"已触发采集任务",addSource:"新增采集源",editSource:"编辑采集源",sourceUrl:"采集源URL",frequency:"采集频率",internal:"内部",external:"外部",running:"运行中",idle:"空闲",error:"错误",logs:"采集日志",viewLogs:"查看日志"},approvals:{title:"AI审批案例审查",subtitle:"审查AI自动审批结果,对中风险案例进行人工复核",caseId:"案例ID",assetName:"资产名称",applicant:"申请人",submittedAt:"提交时间",riskLevel:"风险等级",aiDecision:"AI决策",humanDecision:"人工决策",reviewStatus:"审核状态",pendingReview:"待审核",approved:"已通过",rejected:"已拒绝",underReview:"审核中",highRisk:"高风险",mediumRisk:"中风险",lowRisk:"低风险",approve:"通过",reject:"拒绝",reviewComment:"审核意见",addComment:"添加审核意见...",submitReview:"提交审核",aiConfidence:"AI置信度",complianceScore:"合规评分",missingDocuments:"缺失文件",reviewHistory:"审核历史",caseDetails:"案例详情",viewDetails:"查看详情"},tagEngine:{title:"标签与规则引擎治理",subtitle:"管理自动化标签序列生成规则",tagId:"标签ID",tagName:"标签名称",tagCategory:"标签分类",tagRule:"匹配规则",matchPattern:"匹配模式",priority:"优先级",addTag:"新增标签",editTag:"编辑标签",deleteTag:"删除标签",testTag:"测试标签",testInput:"测试输入",testResult:"测试结果",jurisdictionDimension:"司法辖区维度",assetTypeDimension:"资产分类维度",complianceDimension:"合规要求维度",riskDimension:"风险等级维度",crossLanguageAlignment:"跨语言对齐",standardTagId:"标准标签ID",languageMappings:"语言映射"},protocols:{title:"协议族注册表管理",subtitle:"管理接入AI审批系统的所有NAC原生协议",protocolName:"协议名称",protocolCode:"协议代码",protocolVersion:"协议版本",protocolStatus:"协议状态",triggerConditions:"触发条件",endpoint:"服务端点",addProtocol:"注册新协议",editProtocol:"编辑协议",deactivateProtocol:"停用协议",activateProtocol:"激活协议",protocolActivated:"协议已激活",protocolDeactivated:"协议已停用",registeredAt:"注册时间",lastCalled:"最后调用",callCount:"调用次数",protocolFamily:"协议族",coreProtocols:"核心协议"},audit:{title:"权限与审计管理",subtitle:"基于角色的访问控制与不可篡改审计日志",users:"用户管理",roles:"角色管理",auditLogs:"审计日志",userId:"用户ID",userName:"用户名",userEmail:"邮箱",userRole:"角色",lastLogin:"最后登录",admin:"管理员",reviewer:"审核员",legal:"法务",operator:"运营",action:"操作",resource:"资源",ipAddress:"IP地址",timestamp:"时间戳",result:"结果",details:"详情",exportLogs:"导出日志",filterByUser:"按用户筛选",filterByAction:"按操作筛选",filterByDate:"按日期筛选",immutableNote:"审计日志不可篡改,所有关键操作均被记录"},languageSwitcher:{selectLanguage:"选择语言",currentLanguage:"当前语言",knowledgeLanguage:"知识库语言"},jurisdictions:{CN:"中国",HK:"香港",US:"美国",EU:"欧盟",SG:"新加坡",AE:"阿联酋",JP:"日本",KR:"韩国",RU:"俄罗斯",GB:"英国",ALL:"全部辖区"},assetTypes:{"RE.RESIDENTIAL":"住宅房地产","RE.COMMERCIAL":"商业地产","RE.INDUSTRIAL":"工业地产","FIN.EQUITY":"股权资产","FIN.DEBT":"债权资产","FIN.FUND":"基金份额","COMM.PRECIOUS":"贵金属","COMM.ENERGY":"能源商品","IP.PATENT":"专利权","IP.COPYRIGHT":"版权","INFRA.TRANSPORT":"交通基础设施",ALL:"全部类型"}},$J={common:{save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",search:"Search",filter:"Filter",export:"Export",import:"Import",refresh:"Refresh",confirm:"Confirm",close:"Close",loading:"Loading...",noData:"No data available",success:"Operation successful",error:"Operation failed",warning:"Warning",info:"Info",all:"All",enable:"Enable",disable:"Disable",active:"Active",inactive:"Inactive",status:"Status",actions:"Actions",createdAt:"Created At",updatedAt:"Updated At",version:"Version",description:"Description",name:"Name",type:"Type",language:"Language",jurisdiction:"Jurisdiction",assetType:"Asset Type"},auth:{login:"Administrator Login",loginSubtitle:"Sign in with your NAC system account",email:"Email Address",password:"Password",loginButton:"Sign In",loggingIn:"Signing in...",loginSuccess:"Login successful",loginFailed:"Login failed. Please check your email and password.",logout:"Sign Out",logoutSuccess:"Signed out successfully",authNotice:"This system uses NAC native authentication. All operations are recorded in audit logs.",verifying:"Verifying identity...",unauthorized:"Access Denied",adminOnly:"This system is restricted to administrators only."},nav:{dashboard:"Situational Awareness",knowledgeBase:"Knowledge Base",crawlers:"Crawler Monitor",approvalCases:"AI Approval Cases",tagEngine:"Tag Engine",protocolRegistry:"Protocol Registry",auditLog:"Permissions & Audit",systemTitle:"NAC Knowledge Engine",systemSubtitle:"Admin Console",adminPanel:"Admin Panel"},dashboard:{title:"Global Situational Awareness",subtitle:"Real-time monitoring of knowledge engine status",totalRules:"Total Compliance Rules",activeCrawlers:"Active Crawlers",pendingReviews:"Pending Reviews",approvalRate:"Approval Rate",knowledgeGrowth:"Knowledge Base Growth",jurisdictionCoverage:"Jurisdiction Coverage",assetDistribution:"Asset Type Distribution",crawlerHealth:"Crawler Health",recentActivity:"Recent Activity",systemStatus:"System Status",allSystemsNormal:"All systems operational",lastUpdated:"Last Updated",viewAll:"View All",rules:"rules",crawlers:"crawlers",cases:"cases"},knowledgeBase:{title:"Knowledge Base Management",subtitle:"Manage compliance rules, regulations and transaction details",addRule:"Add Rule",editRule:"Edit Rule",deleteRule:"Delete Rule",ruleTitle:"Rule Title",ruleContent:"Rule Content",ruleSource:"Rule Source",effectiveDate:"Effective Date",translationStatus:"Translation Status",original:"Original",aiTranslated:"AI Translated",humanReviewed:"Human Reviewed",addTranslation:"Add Translation",missingTranslation:"Missing Translation",languageCoverage:"Language Coverage",contentLanguage:"Content Language",switchLanguage:"Switch language to view",ruleActivated:"Rule activated",ruleDeactivated:"Rule deactivated",searchPlaceholder:"Search rule title, content or source...",filterByJurisdiction:"Filter by Jurisdiction",filterByAssetType:"Filter by Asset Type",filterByStatus:"Filter by Status",totalRules:"{{count}} rules total"},crawlers:{title:"Crawler Monitoring & Management",subtitle:"Real-time monitoring of internal and external data crawlers",internalCrawlers:"Internal Crawlers",externalCrawlers:"External Crawlers",crawlerName:"Crawler Name",crawlerType:"Crawler Type",lastRun:"Last Run",nextRun:"Next Run",successRate:"Success Rate",totalCollected:"Total Collected",triggerNow:"Trigger Now",triggering:"Triggering...",triggered:"Crawl task triggered",addSource:"Add Source",editSource:"Edit Source",sourceUrl:"Source URL",frequency:"Frequency",internal:"Internal",external:"External",running:"Running",idle:"Idle",error:"Error",logs:"Logs",viewLogs:"View Logs"},approvals:{title:"AI Approval Case Review",subtitle:"Review AI auto-approval results and manually review medium-risk cases",caseId:"Case ID",assetName:"Asset Name",applicant:"Applicant",submittedAt:"Submitted At",riskLevel:"Risk Level",aiDecision:"AI Decision",humanDecision:"Human Decision",reviewStatus:"Review Status",pendingReview:"Pending Review",approved:"Approved",rejected:"Rejected",underReview:"Under Review",highRisk:"High Risk",mediumRisk:"Medium Risk",lowRisk:"Low Risk",approve:"Approve",reject:"Reject",reviewComment:"Review Comment",addComment:"Add review comment...",submitReview:"Submit Review",aiConfidence:"AI Confidence",complianceScore:"Compliance Score",missingDocuments:"Missing Documents",reviewHistory:"Review History",caseDetails:"Case Details",viewDetails:"View Details"},tagEngine:{title:"Tag & Rule Engine Governance",subtitle:"Manage automated tag sequence generation rules",tagId:"Tag ID",tagName:"Tag Name",tagCategory:"Tag Category",tagRule:"Tag Rule",matchPattern:"Match Pattern",priority:"Priority",addTag:"Add Tag",editTag:"Edit Tag",deleteTag:"Delete Tag",testTag:"Test Tag",testInput:"Test Input",testResult:"Test Result",jurisdictionDimension:"Jurisdiction Dimension",assetTypeDimension:"Asset Type Dimension",complianceDimension:"Compliance Dimension",riskDimension:"Risk Dimension",crossLanguageAlignment:"Cross-Language Alignment",standardTagId:"Standard Tag ID",languageMappings:"Language Mappings"},protocols:{title:"Protocol Registry Management",subtitle:"Manage all NAC native protocols integrated with the AI approval system",protocolName:"Protocol Name",protocolCode:"Protocol Code",protocolVersion:"Protocol Version",protocolStatus:"Protocol Status",triggerConditions:"Trigger Conditions",endpoint:"Service Endpoint",addProtocol:"Register Protocol",editProtocol:"Edit Protocol",deactivateProtocol:"Deactivate Protocol",activateProtocol:"Activate Protocol",protocolActivated:"Protocol activated",protocolDeactivated:"Protocol deactivated",registeredAt:"Registered At",lastCalled:"Last Called",callCount:"Call Count",protocolFamily:"Protocol Family",coreProtocols:"Core Protocols"},audit:{title:"Permissions & Audit Management",subtitle:"Role-based access control and immutable audit logs",users:"User Management",roles:"Role Management",auditLogs:"Audit Logs",userId:"User ID",userName:"Username",userEmail:"Email",userRole:"Role",lastLogin:"Last Login",admin:"Admin",reviewer:"Reviewer",legal:"Legal",operator:"Operator",action:"Action",resource:"Resource",ipAddress:"IP Address",timestamp:"Timestamp",result:"Result",details:"Details",exportLogs:"Export Logs",filterByUser:"Filter by User",filterByAction:"Filter by Action",filterByDate:"Filter by Date",immutableNote:"Audit logs are immutable. All critical operations are recorded."},languageSwitcher:{selectLanguage:"Select Language",currentLanguage:"Current Language",knowledgeLanguage:"Knowledge Base Language"},jurisdictions:{CN:"China",HK:"Hong Kong",US:"United States",EU:"European Union",SG:"Singapore",AE:"UAE",JP:"Japan",KR:"South Korea",RU:"Russia",GB:"United Kingdom",ALL:"All Jurisdictions"},assetTypes:{"RE.RESIDENTIAL":"Residential Real Estate","RE.COMMERCIAL":"Commercial Real Estate","RE.INDUSTRIAL":"Industrial Real Estate","FIN.EQUITY":"Equity Assets","FIN.DEBT":"Debt Assets","FIN.FUND":"Fund Shares","COMM.PRECIOUS":"Precious Metals","COMM.ENERGY":"Energy Commodities","IP.PATENT":"Patents","IP.COPYRIGHT":"Copyrights","INFRA.TRANSPORT":"Transport Infrastructure",ALL:"All Types"}},VJ={common:{save:"حفظ",cancel:"إلغاء",delete:"حذف",edit:"تعديل",add:"إضافة",search:"بحث",filter:"تصفية",export:"تصدير",import:"استيراد",refresh:"تحديث",confirm:"تأكيد",close:"إغلاق",loading:"جاري التحميل...",noData:"لا توجد بيانات",success:"تمت العملية بنجاح",error:"فشلت العملية",warning:"تحذير",info:"معلومات",all:"الكل",enable:"تفعيل",disable:"تعطيل",active:"نشط",inactive:"غير نشط",status:"الحالة",actions:"الإجراءات",createdAt:"تاريخ الإنشاء",updatedAt:"تاريخ التحديث",version:"الإصدار",description:"الوصف",name:"الاسم",type:"النوع",language:"اللغة",jurisdiction:"الولاية القضائية",assetType:"نوع الأصل"},auth:{login:"تسجيل دخول المسؤول",loginSubtitle:"سجّل الدخول باستخدام حساب NAC الخاص بك",email:"البريد الإلكتروني",password:"كلمة المرور",loginButton:"تسجيل الدخول",loggingIn:"جاري تسجيل الدخول...",loginSuccess:"تم تسجيل الدخول بنجاح",loginFailed:"فشل تسجيل الدخول. يرجى التحقق من البريد الإلكتروني وكلمة المرور.",logout:"تسجيل الخروج",logoutSuccess:"تم تسجيل الخروج بنجاح",authNotice:"يستخدم هذا النظام مصادقة NAC الأصلية. يتم تسجيل جميع العمليات في سجلات التدقيق.",verifying:"جاري التحقق من الهوية...",unauthorized:"تم رفض الوصول",adminOnly:"هذا النظام مقيد للمسؤولين فقط."},nav:{dashboard:"الوعي الظرفي",knowledgeBase:"قاعدة المعرفة",crawlers:"مراقبة الزواحف",approvalCases:"حالات الموافقة بالذكاء الاصطناعي",tagEngine:"محرك العلامات",protocolRegistry:"سجل البروتوكولات",auditLog:"الصلاحيات والتدقيق",systemTitle:"محرك معرفة NAC",systemSubtitle:"لوحة الإدارة",adminPanel:"لوحة المسؤول"},dashboard:{title:"الوعي الظرفي العالمي",subtitle:"مراقبة حالة محرك المعرفة في الوقت الفعلي",totalRules:"إجمالي قواعد الامتثال",activeCrawlers:"الزواحف النشطة",pendingReviews:"المراجعات المعلقة",approvalRate:"معدل الموافقة",knowledgeGrowth:"نمو قاعدة المعرفة",jurisdictionCoverage:"تغطية الولايات القضائية",assetDistribution:"توزيع أنواع الأصول",crawlerHealth:"صحة الزواحف",recentActivity:"النشاط الأخير",systemStatus:"حالة النظام",allSystemsNormal:"جميع الأنظمة تعمل بشكل طبيعي",lastUpdated:"آخر تحديث",viewAll:"عرض الكل",rules:"قاعدة",crawlers:"زاحف",cases:"حالة"},knowledgeBase:{title:"إدارة قاعدة المعرفة",subtitle:"إدارة قواعد الامتثال واللوائح وتفاصيل المعاملات",addRule:"إضافة قاعدة",editRule:"تعديل القاعدة",deleteRule:"حذف القاعدة",ruleTitle:"عنوان القاعدة",ruleContent:"محتوى القاعدة",ruleSource:"مصدر القاعدة",effectiveDate:"تاريخ السريان",translationStatus:"حالة الترجمة",original:"النص الأصلي",aiTranslated:"ترجمة ذكاء اصطناعي",humanReviewed:"مراجعة بشرية",addTranslation:"إضافة ترجمة",missingTranslation:"ترجمة مفقودة",languageCoverage:"تغطية اللغات",contentLanguage:"لغة المحتوى",switchLanguage:"تبديل اللغة للعرض",ruleActivated:"تم تفعيل القاعدة",ruleDeactivated:"تم تعطيل القاعدة",searchPlaceholder:"ابحث في عنوان القاعدة أو المحتوى أو المصدر...",filterByJurisdiction:"تصفية حسب الولاية",filterByAssetType:"تصفية حسب نوع الأصل",filterByStatus:"تصفية حسب الحالة",totalRules:"{{count}} قاعدة إجمالاً"},crawlers:{title:"مراقبة وإدارة الزواحف",subtitle:"مراقبة زواحف جمع البيانات الداخلية والخارجية في الوقت الفعلي",internalCrawlers:"الزواحف الداخلية",externalCrawlers:"الزواحف الخارجية",crawlerName:"اسم الزاحف",crawlerType:"نوع الزاحف",lastRun:"آخر تشغيل",nextRun:"التشغيل التالي",successRate:"معدل النجاح",totalCollected:"إجمالي المجموع",triggerNow:"تشغيل الآن",triggering:"جاري التشغيل...",triggered:"تم تشغيل مهمة الزحف",addSource:"إضافة مصدر",editSource:"تعديل المصدر",sourceUrl:"رابط المصدر",frequency:"التكرار",internal:"داخلي",external:"خارجي",running:"يعمل",idle:"خامل",error:"خطأ",logs:"السجلات",viewLogs:"عرض السجلات"},approvals:{title:"مراجعة حالات الموافقة بالذكاء الاصطناعي",subtitle:"مراجعة نتائج الموافقة التلقائية ومراجعة الحالات متوسطة المخاطر يدوياً",caseId:"معرف الحالة",assetName:"اسم الأصل",applicant:"مقدم الطلب",submittedAt:"تاريخ التقديم",riskLevel:"مستوى المخاطر",aiDecision:"قرار الذكاء الاصطناعي",humanDecision:"القرار البشري",reviewStatus:"حالة المراجعة",pendingReview:"في انتظار المراجعة",approved:"موافق عليه",rejected:"مرفوض",underReview:"قيد المراجعة",highRisk:"مخاطر عالية",mediumRisk:"مخاطر متوسطة",lowRisk:"مخاطر منخفضة",approve:"موافقة",reject:"رفض",reviewComment:"تعليق المراجعة",addComment:"أضف تعليق المراجعة...",submitReview:"إرسال المراجعة",aiConfidence:"ثقة الذكاء الاصطناعي",complianceScore:"درجة الامتثال",missingDocuments:"المستندات المفقودة",reviewHistory:"سجل المراجعة",caseDetails:"تفاصيل الحالة",viewDetails:"عرض التفاصيل"},tagEngine:{title:"حوكمة محرك العلامات والقواعد",subtitle:"إدارة قواعد توليد تسلسل العلامات التلقائية",tagId:"معرف العلامة",tagName:"اسم العلامة",tagCategory:"فئة العلامة",tagRule:"قاعدة العلامة",matchPattern:"نمط المطابقة",priority:"الأولوية",addTag:"إضافة علامة",editTag:"تعديل العلامة",deleteTag:"حذف العلامة",testTag:"اختبار العلامة",testInput:"مدخل الاختبار",testResult:"نتيجة الاختبار",jurisdictionDimension:"بُعد الولاية القضائية",assetTypeDimension:"بُعد نوع الأصل",complianceDimension:"بُعد الامتثال",riskDimension:"بُعد المخاطر",crossLanguageAlignment:"المحاذاة عبر اللغات",standardTagId:"معرف العلامة القياسي",languageMappings:"تعيينات اللغات"},protocols:{title:"إدارة سجل البروتوكولات",subtitle:"إدارة جميع بروتوكولات NAC الأصلية المدمجة مع نظام الموافقة بالذكاء الاصطناعي",protocolName:"اسم البروتوكول",protocolCode:"كود البروتوكول",protocolVersion:"إصدار البروتوكول",protocolStatus:"حالة البروتوكول",triggerConditions:"شروط التشغيل",endpoint:"نقطة الخدمة",addProtocol:"تسجيل بروتوكول",editProtocol:"تعديل البروتوكول",deactivateProtocol:"تعطيل البروتوكول",activateProtocol:"تفعيل البروتوكول",protocolActivated:"تم تفعيل البروتوكول",protocolDeactivated:"تم تعطيل البروتوكول",registeredAt:"تاريخ التسجيل",lastCalled:"آخر استدعاء",callCount:"عدد الاستدعاءات",protocolFamily:"عائلة البروتوكولات",coreProtocols:"البروتوكولات الأساسية"},audit:{title:"إدارة الصلاحيات والتدقيق",subtitle:"التحكم في الوصول المستند إلى الأدوار وسجلات التدقيق غير القابلة للتغيير",users:"إدارة المستخدمين",roles:"إدارة الأدوار",auditLogs:"سجلات التدقيق",userId:"معرف المستخدم",userName:"اسم المستخدم",userEmail:"البريد الإلكتروني",userRole:"دور المستخدم",lastLogin:"آخر تسجيل دخول",admin:"مسؤول",reviewer:"مراجع",legal:"قانوني",operator:"مشغل",action:"الإجراء",resource:"المورد",ipAddress:"عنوان IP",timestamp:"الطابع الزمني",result:"النتيجة",details:"التفاصيل",exportLogs:"تصدير السجلات",filterByUser:"تصفية حسب المستخدم",filterByAction:"تصفية حسب الإجراء",filterByDate:"تصفية حسب التاريخ",immutableNote:"سجلات التدقيق غير قابلة للتغيير. يتم تسجيل جميع العمليات الحرجة."},languageSwitcher:{selectLanguage:"اختر اللغة",currentLanguage:"اللغة الحالية",knowledgeLanguage:"لغة قاعدة المعرفة"},jurisdictions:{CN:"الصين",HK:"هونغ كونغ",US:"الولايات المتحدة",EU:"الاتحاد الأوروبي",SG:"سنغافورة",AE:"الإمارات العربية المتحدة",JP:"اليابان",KR:"كوريا الجنوبية",RU:"روسيا",GB:"المملكة المتحدة",ALL:"جميع الولايات"},assetTypes:{"RE.RESIDENTIAL":"العقارات السكنية","RE.COMMERCIAL":"العقارات التجارية","RE.INDUSTRIAL":"العقارات الصناعية","FIN.EQUITY":"أصول الملكية","FIN.DEBT":"أصول الدين","FIN.FUND":"حصص الصناديق","COMM.PRECIOUS":"المعادن الثمينة","COMM.ENERGY":"سلع الطاقة","IP.PATENT":"براءات الاختراع","IP.COPYRIGHT":"حقوق النشر","INFRA.TRANSPORT":"البنية التحتية للنقل",ALL:"جميع الأنواع"}},BJ={common:{save:"保存",cancel:"キャンセル",delete:"削除",edit:"編集",add:"追加",search:"検索",filter:"フィルター",export:"エクスポート",import:"インポート",refresh:"更新",confirm:"確認",close:"閉じる",loading:"読み込み中...",noData:"データなし",success:"操作成功",error:"操作失敗",warning:"警告",info:"情報",all:"すべて",enable:"有効",disable:"無効",active:"アクティブ",inactive:"非アクティブ",status:"ステータス",actions:"操作",createdAt:"作成日時",updatedAt:"更新日時",version:"バージョン",description:"説明",name:"名前",type:"タイプ",language:"言語",jurisdiction:"司法管轄",assetType:"資産タイプ"},auth:{login:"管理者ログイン",loginSubtitle:"NACシステムアカウントでサインイン",email:"メールアドレス",password:"パスワード",loginButton:"ログイン",loggingIn:"ログイン中...",loginSuccess:"ログイン成功",loginFailed:"ログイン失敗。メールとパスワードを確認してください。",logout:"ログアウト",logoutSuccess:"ログアウトしました",authNotice:"このシステムはNACネイティブ認証を使用しています。すべての操作は監査ログに記録されます。",verifying:"認証中...",unauthorized:"アクセス拒否",adminOnly:"このシステムは管理者のみアクセス可能です。"},nav:{dashboard:"状況認識",knowledgeBase:"ナレッジベース",crawlers:"クローラー監視",approvalCases:"AI承認ケース",tagEngine:"タグエンジン",protocolRegistry:"プロトコルレジストリ",auditLog:"権限と監査",systemTitle:"NACナレッジエンジン",systemSubtitle:"管理コンソール",adminPanel:"管理パネル"},dashboard:{title:"グローバル状況認識",subtitle:"ナレッジエンジンの稼働状況をリアルタイム監視",totalRules:"コンプライアンスルール総数",activeCrawlers:"アクティブクローラー",pendingReviews:"承認待ちケース",approvalRate:"承認率",knowledgeGrowth:"ナレッジベース成長",jurisdictionCoverage:"管轄カバレッジ",assetDistribution:"資産タイプ分布",crawlerHealth:"クローラー健全性",recentActivity:"最近のアクティビティ",systemStatus:"システム状態",allSystemsNormal:"すべてのシステム正常稼働",lastUpdated:"最終更新",viewAll:"すべて表示",rules:"件のルール",crawlers:"台のクローラー",cases:"件のケース"},knowledgeBase:{title:"ナレッジベース管理",subtitle:"コンプライアンスルール、規制、取引詳細の管理",addRule:"ルール追加",editRule:"ルール編集",deleteRule:"ルール削除",ruleTitle:"ルールタイトル",ruleContent:"ルール内容",ruleSource:"ルールソース",effectiveDate:"発効日",translationStatus:"翻訳ステータス",original:"原文",aiTranslated:"AI翻訳",humanReviewed:"人間によるレビュー済み",addTranslation:"翻訳追加",missingTranslation:"翻訳なし",languageCoverage:"言語カバレッジ",contentLanguage:"コンテンツ言語",switchLanguage:"言語を切り替えて表示",ruleActivated:"ルールを有効化しました",ruleDeactivated:"ルールを無効化しました",searchPlaceholder:"ルールタイトル、内容、ソースを検索...",filterByJurisdiction:"管轄でフィルター",filterByAssetType:"資産タイプでフィルター",filterByStatus:"ステータスでフィルター",totalRules:"合計{{count}}件のルール"},crawlers:{title:"クローラー監視・管理",subtitle:"内部・外部データクローラーのリアルタイム監視",internalCrawlers:"内部クローラー",externalCrawlers:"外部クローラー",crawlerName:"クローラー名",crawlerType:"クローラータイプ",lastRun:"最終実行",nextRun:"次回実行",successRate:"成功率",totalCollected:"収集総数",triggerNow:"今すぐ実行",triggering:"実行中...",triggered:"クロールタスクを開始しました",addSource:"ソース追加",editSource:"ソース編集",sourceUrl:"ソースURL",frequency:"頻度",internal:"内部",external:"外部",running:"実行中",idle:"待機中",error:"エラー",logs:"ログ",viewLogs:"ログを表示"},approvals:{title:"AI承認ケースレビュー",subtitle:"AI自動承認結果のレビューと中リスクケースの手動審査",caseId:"ケースID",assetName:"資産名",applicant:"申請者",submittedAt:"提出日時",riskLevel:"リスクレベル",aiDecision:"AI判定",humanDecision:"人間の判定",reviewStatus:"レビューステータス",pendingReview:"レビュー待ち",approved:"承認済み",rejected:"却下済み",underReview:"レビュー中",highRisk:"高リスク",mediumRisk:"中リスク",lowRisk:"低リスク",approve:"承認",reject:"却下",reviewComment:"レビューコメント",addComment:"レビューコメントを追加...",submitReview:"レビュー送信",aiConfidence:"AI信頼度",complianceScore:"コンプライアンススコア",missingDocuments:"不足書類",reviewHistory:"レビュー履歴",caseDetails:"ケース詳細",viewDetails:"詳細を表示"},tagEngine:{title:"タグ・ルールエンジンガバナンス",subtitle:"自動タグシーケンス生成ルールの管理",tagId:"タグID",tagName:"タグ名",tagCategory:"タグカテゴリ",tagRule:"タグルール",matchPattern:"マッチパターン",priority:"優先度",addTag:"タグ追加",editTag:"タグ編集",deleteTag:"タグ削除",testTag:"タグテスト",testInput:"テスト入力",testResult:"テスト結果",jurisdictionDimension:"管轄ディメンション",assetTypeDimension:"資産タイプディメンション",complianceDimension:"コンプライアンスディメンション",riskDimension:"リスクディメンション",crossLanguageAlignment:"クロス言語アライメント",standardTagId:"標準タグID",languageMappings:"言語マッピング"},protocols:{title:"プロトコルレジストリ管理",subtitle:"AIシステムに統合されたすべてのNACネイティブプロトコルの管理",protocolName:"プロトコル名",protocolCode:"プロトコルコード",protocolVersion:"プロトコルバージョン",protocolStatus:"プロトコルステータス",triggerConditions:"トリガー条件",endpoint:"サービスエンドポイント",addProtocol:"プロトコル登録",editProtocol:"プロトコル編集",deactivateProtocol:"プロトコル無効化",activateProtocol:"プロトコル有効化",protocolActivated:"プロトコルを有効化しました",protocolDeactivated:"プロトコルを無効化しました",registeredAt:"登録日時",lastCalled:"最終呼び出し",callCount:"呼び出し回数",protocolFamily:"プロトコルファミリー",coreProtocols:"コアプロトコル"},audit:{title:"権限・監査管理",subtitle:"ロールベースのアクセス制御と改ざん不可能な監査ログ",users:"ユーザー管理",roles:"ロール管理",auditLogs:"監査ログ",userId:"ユーザーID",userName:"ユーザー名",userEmail:"メール",userRole:"ロール",lastLogin:"最終ログイン",admin:"管理者",reviewer:"レビュアー",legal:"法務",operator:"オペレーター",action:"アクション",resource:"リソース",ipAddress:"IPアドレス",timestamp:"タイムスタンプ",result:"結果",details:"詳細",exportLogs:"ログエクスポート",filterByUser:"ユーザーでフィルター",filterByAction:"アクションでフィルター",filterByDate:"日付でフィルター",immutableNote:"監査ログは改ざん不可能です。すべての重要な操作が記録されます。"},languageSwitcher:{selectLanguage:"言語を選択",currentLanguage:"現在の言語",knowledgeLanguage:"ナレッジベース言語"},jurisdictions:{CN:"中国",HK:"香港",US:"米国",EU:"EU",SG:"シンガポール",AE:"UAE",JP:"日本",KR:"韓国",RU:"ロシア",GB:"英国",ALL:"すべての管轄"},assetTypes:{"RE.RESIDENTIAL":"住宅不動産","RE.COMMERCIAL":"商業不動産","RE.INDUSTRIAL":"工業不動産","FIN.EQUITY":"株式資産","FIN.DEBT":"債務資産","FIN.FUND":"ファンド持分","COMM.PRECIOUS":"貴金属","COMM.ENERGY":"エネルギー商品","IP.PATENT":"特許","IP.COPYRIGHT":"著作権","INFRA.TRANSPORT":"交通インフラ",ALL:"すべてのタイプ"}},zJ={common:{save:"저장",cancel:"취소",delete:"삭제",edit:"편집",add:"추가",search:"검색",filter:"필터",export:"내보내기",import:"가져오기",refresh:"새로고침",confirm:"확인",close:"닫기",loading:"로딩 중...",noData:"데이터 없음",success:"작업 성공",error:"작업 실패",warning:"경고",info:"정보",all:"전체",enable:"활성화",disable:"비활성화",active:"활성",inactive:"비활성",status:"상태",actions:"작업",createdAt:"생성일시",updatedAt:"수정일시",version:"버전",description:"설명",name:"이름",type:"유형",language:"언어",jurisdiction:"사법 관할",assetType:"자산 유형"},auth:{login:"관리자 로그인",loginSubtitle:"NAC 시스템 계정으로 로그인",email:"이메일 주소",password:"비밀번호",loginButton:"로그인",loggingIn:"로그인 중...",loginSuccess:"로그인 성공",loginFailed:"로그인 실패. 이메일과 비밀번호를 확인하세요.",logout:"로그아웃",logoutSuccess:"로그아웃되었습니다",authNotice:"이 시스템은 NAC 네이티브 인증을 사용합니다. 모든 작업은 감사 로그에 기록됩니다.",verifying:"신원 확인 중...",unauthorized:"접근 거부",adminOnly:"이 시스템은 관리자만 접근할 수 있습니다."},nav:{dashboard:"상황 인식",knowledgeBase:"지식 베이스",crawlers:"크롤러 모니터",approvalCases:"AI 승인 케이스",tagEngine:"태그 엔진",protocolRegistry:"프로토콜 레지스트리",auditLog:"권한 및 감사",systemTitle:"NAC 지식 엔진",systemSubtitle:"관리 콘솔",adminPanel:"관리자 패널"},dashboard:{title:"글로벌 상황 인식",subtitle:"지식 엔진 운영 상태 실시간 모니터링",totalRules:"총 컴플라이언스 규칙",activeCrawlers:"활성 크롤러",pendingReviews:"검토 대기 케이스",approvalRate:"승인율",knowledgeGrowth:"지식 베이스 성장",jurisdictionCoverage:"관할 커버리지",assetDistribution:"자산 유형 분포",crawlerHealth:"크롤러 상태",recentActivity:"최근 활동",systemStatus:"시스템 상태",allSystemsNormal:"모든 시스템 정상 운영",lastUpdated:"마지막 업데이트",viewAll:"전체 보기",rules:"개 규칙",crawlers:"개 크롤러",cases:"개 케이스"},knowledgeBase:{title:"지식 베이스 관리",subtitle:"컴플라이언스 규칙, 규정 및 거래 세부사항 관리",addRule:"규칙 추가",editRule:"규칙 편집",deleteRule:"규칙 삭제",ruleTitle:"규칙 제목",ruleContent:"규칙 내용",ruleSource:"규칙 출처",effectiveDate:"발효일",translationStatus:"번역 상태",original:"원문",aiTranslated:"AI 번역",humanReviewed:"인간 검토 완료",addTranslation:"번역 추가",missingTranslation:"번역 없음",languageCoverage:"언어 커버리지",contentLanguage:"콘텐츠 언어",switchLanguage:"언어 전환하여 보기",ruleActivated:"규칙이 활성화되었습니다",ruleDeactivated:"규칙이 비활성화되었습니다",searchPlaceholder:"규칙 제목, 내용 또는 출처 검색...",filterByJurisdiction:"관할로 필터",filterByAssetType:"자산 유형으로 필터",filterByStatus:"상태로 필터",totalRules:"총 {{count}}개 규칙"},crawlers:{title:"크롤러 모니터링 및 관리",subtitle:"내부 및 외부 데이터 크롤러 실시간 모니터링",internalCrawlers:"내부 크롤러",externalCrawlers:"외부 크롤러",crawlerName:"크롤러 이름",crawlerType:"크롤러 유형",lastRun:"마지막 실행",nextRun:"다음 실행",successRate:"성공률",totalCollected:"총 수집량",triggerNow:"지금 실행",triggering:"실행 중...",triggered:"크롤 작업이 시작되었습니다",addSource:"소스 추가",editSource:"소스 편집",sourceUrl:"소스 URL",frequency:"빈도",internal:"내부",external:"외부",running:"실행 중",idle:"대기 중",error:"오류",logs:"로그",viewLogs:"로그 보기"},approvals:{title:"AI 승인 케이스 검토",subtitle:"AI 자동 승인 결과 검토 및 중간 위험 케이스 수동 심사",caseId:"케이스 ID",assetName:"자산명",applicant:"신청자",submittedAt:"제출일시",riskLevel:"위험 수준",aiDecision:"AI 결정",humanDecision:"인간 결정",reviewStatus:"검토 상태",pendingReview:"검토 대기",approved:"승인됨",rejected:"거부됨",underReview:"검토 중",highRisk:"고위험",mediumRisk:"중간 위험",lowRisk:"저위험",approve:"승인",reject:"거부",reviewComment:"검토 의견",addComment:"검토 의견 추가...",submitReview:"검토 제출",aiConfidence:"AI 신뢰도",complianceScore:"컴플라이언스 점수",missingDocuments:"누락 서류",reviewHistory:"검토 이력",caseDetails:"케이스 상세",viewDetails:"상세 보기"},tagEngine:{title:"태그 및 규칙 엔진 거버넌스",subtitle:"자동화된 태그 시퀀스 생성 규칙 관리",tagId:"태그 ID",tagName:"태그 이름",tagCategory:"태그 카테고리",tagRule:"태그 규칙",matchPattern:"매칭 패턴",priority:"우선순위",addTag:"태그 추가",editTag:"태그 편집",deleteTag:"태그 삭제",testTag:"태그 테스트",testInput:"테스트 입력",testResult:"테스트 결과",jurisdictionDimension:"관할 차원",assetTypeDimension:"자산 유형 차원",complianceDimension:"컴플라이언스 차원",riskDimension:"위험 차원",crossLanguageAlignment:"교차 언어 정렬",standardTagId:"표준 태그 ID",languageMappings:"언어 매핑"},protocols:{title:"프로토콜 레지스트리 관리",subtitle:"AI 승인 시스템에 통합된 모든 NAC 네이티브 프로토콜 관리",protocolName:"프로토콜 이름",protocolCode:"프로토콜 코드",protocolVersion:"프로토콜 버전",protocolStatus:"프로토콜 상태",triggerConditions:"트리거 조건",endpoint:"서비스 엔드포인트",addProtocol:"프로토콜 등록",editProtocol:"프로토콜 편집",deactivateProtocol:"프로토콜 비활성화",activateProtocol:"프로토콜 활성화",protocolActivated:"프로토콜이 활성화되었습니다",protocolDeactivated:"프로토콜이 비활성화되었습니다",registeredAt:"등록일시",lastCalled:"마지막 호출",callCount:"호출 횟수",protocolFamily:"프로토콜 패밀리",coreProtocols:"핵심 프로토콜"},audit:{title:"권한 및 감사 관리",subtitle:"역할 기반 접근 제어 및 변경 불가능한 감사 로그",users:"사용자 관리",roles:"역할 관리",auditLogs:"감사 로그",userId:"사용자 ID",userName:"사용자명",userEmail:"이메일",userRole:"역할",lastLogin:"마지막 로그인",admin:"관리자",reviewer:"검토자",legal:"법무",operator:"운영자",action:"작업",resource:"리소스",ipAddress:"IP 주소",timestamp:"타임스탬프",result:"결과",details:"상세",exportLogs:"로그 내보내기",filterByUser:"사용자로 필터",filterByAction:"작업으로 필터",filterByDate:"날짜로 필터",immutableNote:"감사 로그는 변경할 수 없습니다. 모든 중요 작업이 기록됩니다."},languageSwitcher:{selectLanguage:"언어 선택",currentLanguage:"현재 언어",knowledgeLanguage:"지식 베이스 언어"},jurisdictions:{CN:"중국",HK:"홍콩",US:"미국",EU:"EU",SG:"싱가포르",AE:"UAE",JP:"일본",KR:"한국",RU:"러시아",GB:"영국",ALL:"모든 관할"},assetTypes:{"RE.RESIDENTIAL":"주거용 부동산","RE.COMMERCIAL":"상업용 부동산","RE.INDUSTRIAL":"산업용 부동산","FIN.EQUITY":"주식 자산","FIN.DEBT":"채무 자산","FIN.FUND":"펀드 지분","COMM.PRECIOUS":"귀금속","COMM.ENERGY":"에너지 상품","IP.PATENT":"특허","IP.COPYRIGHT":"저작권","INFRA.TRANSPORT":"교통 인프라",ALL:"모든 유형"}},UJ={common:{save:"Enregistrer",cancel:"Annuler",delete:"Supprimer",edit:"Modifier",add:"Ajouter",search:"Rechercher",filter:"Filtrer",export:"Exporter",import:"Importer",refresh:"Actualiser",confirm:"Confirmer",close:"Fermer",loading:"Chargement...",noData:"Aucune donnée",success:"Opération réussie",error:"Opération échouée",warning:"Avertissement",info:"Information",all:"Tout",enable:"Activer",disable:"Désactiver",active:"Actif",inactive:"Inactif",status:"Statut",actions:"Actions",createdAt:"Créé le",updatedAt:"Mis à jour le",version:"Version",description:"Description",name:"Nom",type:"Type",language:"Langue",jurisdiction:"Juridiction",assetType:"Type d'actif"},auth:{login:"Connexion Administrateur",loginSubtitle:"Connectez-vous avec votre compte système NAC",email:"Adresse e-mail",password:"Mot de passe",loginButton:"Se connecter",loggingIn:"Connexion en cours...",loginSuccess:"Connexion réussie",loginFailed:"Échec de la connexion. Vérifiez votre e-mail et mot de passe.",logout:"Se déconnecter",logoutSuccess:"Déconnexion réussie",authNotice:"Ce système utilise l'authentification native NAC. Toutes les opérations sont enregistrées dans les journaux d'audit.",verifying:"Vérification de l'identité...",unauthorized:"Accès refusé",adminOnly:"Ce système est réservé aux administrateurs."},nav:{dashboard:"Conscience Situationnelle",knowledgeBase:"Base de Connaissances",crawlers:"Surveillance des Crawlers",approvalCases:"Cas d'Approbation IA",tagEngine:"Moteur de Tags",protocolRegistry:"Registre des Protocoles",auditLog:"Permissions et Audit",systemTitle:"Moteur de Connaissances NAC",systemSubtitle:"Console d'Administration",adminPanel:"Panneau Admin"},dashboard:{title:"Conscience Situationnelle Globale",subtitle:"Surveillance en temps réel du moteur de connaissances",totalRules:"Total des Règles de Conformité",activeCrawlers:"Crawlers Actifs",pendingReviews:"Cas en Attente",approvalRate:"Taux d'Approbation",knowledgeGrowth:"Croissance de la Base",jurisdictionCoverage:"Couverture Juridictionnelle",assetDistribution:"Distribution des Types d'Actifs",crawlerHealth:"Santé des Crawlers",recentActivity:"Activité Récente",systemStatus:"État du Système",allSystemsNormal:"Tous les systèmes opérationnels",lastUpdated:"Dernière mise à jour",viewAll:"Voir tout",rules:"règles",crawlers:"crawlers",cases:"cas"},knowledgeBase:{title:"Gestion de la Base de Connaissances",subtitle:"Gérer les règles de conformité, réglementations et détails des transactions",addRule:"Ajouter une règle",editRule:"Modifier la règle",deleteRule:"Supprimer la règle",ruleTitle:"Titre de la règle",ruleContent:"Contenu de la règle",ruleSource:"Source de la règle",effectiveDate:"Date d'entrée en vigueur",translationStatus:"Statut de traduction",original:"Original",aiTranslated:"Traduit par IA",humanReviewed:"Révisé par humain",addTranslation:"Ajouter une traduction",missingTranslation:"Traduction manquante",languageCoverage:"Couverture linguistique",contentLanguage:"Langue du contenu",switchLanguage:"Changer de langue pour afficher",ruleActivated:"Règle activée",ruleDeactivated:"Règle désactivée",searchPlaceholder:"Rechercher titre, contenu ou source...",filterByJurisdiction:"Filtrer par juridiction",filterByAssetType:"Filtrer par type d'actif",filterByStatus:"Filtrer par statut",totalRules:"{{count}} règles au total"},crawlers:{title:"Surveillance et Gestion des Crawlers",subtitle:"Surveillance en temps réel des crawlers internes et externes",internalCrawlers:"Crawlers Internes",externalCrawlers:"Crawlers Externes",crawlerName:"Nom du crawler",crawlerType:"Type de crawler",lastRun:"Dernière exécution",nextRun:"Prochaine exécution",successRate:"Taux de succès",totalCollected:"Total collecté",triggerNow:"Déclencher maintenant",triggering:"Déclenchement...",triggered:"Tâche de crawl déclenchée",addSource:"Ajouter une source",editSource:"Modifier la source",sourceUrl:"URL de la source",frequency:"Fréquence",internal:"Interne",external:"Externe",running:"En cours",idle:"Inactif",error:"Erreur",logs:"Journaux",viewLogs:"Voir les journaux"},approvals:{title:"Révision des Cas d'Approbation IA",subtitle:"Réviser les résultats d'approbation automatique et examiner manuellement les cas à risque moyen",caseId:"ID du cas",assetName:"Nom de l'actif",applicant:"Demandeur",submittedAt:"Soumis le",riskLevel:"Niveau de risque",aiDecision:"Décision IA",humanDecision:"Décision humaine",reviewStatus:"Statut de révision",pendingReview:"En attente de révision",approved:"Approuvé",rejected:"Rejeté",underReview:"En cours de révision",highRisk:"Risque élevé",mediumRisk:"Risque moyen",lowRisk:"Risque faible",approve:"Approuver",reject:"Rejeter",reviewComment:"Commentaire de révision",addComment:"Ajouter un commentaire...",submitReview:"Soumettre la révision",aiConfidence:"Confiance IA",complianceScore:"Score de conformité",missingDocuments:"Documents manquants",reviewHistory:"Historique de révision",caseDetails:"Détails du cas",viewDetails:"Voir les détails"},tagEngine:{title:"Gouvernance du Moteur de Tags",subtitle:"Gérer les règles de génération automatique de séquences de tags",tagId:"ID du tag",tagName:"Nom du tag",tagCategory:"Catégorie du tag",tagRule:"Règle du tag",matchPattern:"Modèle de correspondance",priority:"Priorité",addTag:"Ajouter un tag",editTag:"Modifier le tag",deleteTag:"Supprimer le tag",testTag:"Tester le tag",testInput:"Entrée de test",testResult:"Résultat du test",jurisdictionDimension:"Dimension juridictionnelle",assetTypeDimension:"Dimension type d'actif",complianceDimension:"Dimension conformité",riskDimension:"Dimension risque",crossLanguageAlignment:"Alignement multilingue",standardTagId:"ID de tag standard",languageMappings:"Mappages de langues"},protocols:{title:"Gestion du Registre des Protocoles",subtitle:"Gérer tous les protocoles natifs NAC intégrés au système d'approbation IA",protocolName:"Nom du protocole",protocolCode:"Code du protocole",protocolVersion:"Version du protocole",protocolStatus:"Statut du protocole",triggerConditions:"Conditions de déclenchement",endpoint:"Point de service",addProtocol:"Enregistrer un protocole",editProtocol:"Modifier le protocole",deactivateProtocol:"Désactiver le protocole",activateProtocol:"Activer le protocole",protocolActivated:"Protocole activé",protocolDeactivated:"Protocole désactivé",registeredAt:"Enregistré le",lastCalled:"Dernier appel",callCount:"Nombre d'appels",protocolFamily:"Famille de protocoles",coreProtocols:"Protocoles principaux"},audit:{title:"Gestion des Permissions et Audit",subtitle:"Contrôle d'accès basé sur les rôles et journaux d'audit immuables",users:"Gestion des utilisateurs",roles:"Gestion des rôles",auditLogs:"Journaux d'audit",userId:"ID utilisateur",userName:"Nom d'utilisateur",userEmail:"E-mail",userRole:"Rôle",lastLogin:"Dernière connexion",admin:"Administrateur",reviewer:"Réviseur",legal:"Juridique",operator:"Opérateur",action:"Action",resource:"Ressource",ipAddress:"Adresse IP",timestamp:"Horodatage",result:"Résultat",details:"Détails",exportLogs:"Exporter les journaux",filterByUser:"Filtrer par utilisateur",filterByAction:"Filtrer par action",filterByDate:"Filtrer par date",immutableNote:"Les journaux d'audit sont immuables. Toutes les opérations critiques sont enregistrées."},languageSwitcher:{selectLanguage:"Sélectionner la langue",currentLanguage:"Langue actuelle",knowledgeLanguage:"Langue de la base"},jurisdictions:{CN:"Chine",HK:"Hong Kong",US:"États-Unis",EU:"Union Européenne",SG:"Singapour",AE:"EAU",JP:"Japon",KR:"Corée du Sud",RU:"Russie",GB:"Royaume-Uni",ALL:"Toutes les juridictions"},assetTypes:{"RE.RESIDENTIAL":"Immobilier résidentiel","RE.COMMERCIAL":"Immobilier commercial","RE.INDUSTRIAL":"Immobilier industriel","FIN.EQUITY":"Actifs en actions","FIN.DEBT":"Actifs de dette","FIN.FUND":"Parts de fonds","COMM.PRECIOUS":"Métaux précieux","COMM.ENERGY":"Matières premières énergétiques","IP.PATENT":"Brevets","IP.COPYRIGHT":"Droits d'auteur","INFRA.TRANSPORT":"Infrastructure de transport",ALL:"Tous les types"}},qJ={common:{save:"Сохранить",cancel:"Отмена",delete:"Удалить",edit:"Редактировать",add:"Добавить",search:"Поиск",filter:"Фильтр",export:"Экспорт",import:"Импорт",refresh:"Обновить",confirm:"Подтвердить",close:"Закрыть",loading:"Загрузка...",noData:"Нет данных",success:"Операция выполнена",error:"Ошибка операции",warning:"Предупреждение",info:"Информация",all:"Все",enable:"Включить",disable:"Отключить",active:"Активный",inactive:"Неактивный",status:"Статус",actions:"Действия",createdAt:"Создано",updatedAt:"Обновлено",version:"Версия",description:"Описание",name:"Название",type:"Тип",language:"Язык",jurisdiction:"Юрисдикция",assetType:"Тип актива"},auth:{login:"Вход для администратора",loginSubtitle:"Войдите с учётной записью системы NAC",email:"Адрес электронной почты",password:"Пароль",loginButton:"Войти",loggingIn:"Вход в систему...",loginSuccess:"Вход выполнен успешно",loginFailed:"Ошибка входа. Проверьте email и пароль.",logout:"Выйти",logoutSuccess:"Выход выполнен успешно",authNotice:"Эта система использует нативную аутентификацию NAC. Все операции записываются в журналы аудита.",verifying:"Проверка личности...",unauthorized:"Доступ запрещён",adminOnly:"Эта система доступна только администраторам."},nav:{dashboard:"Ситуационная осведомлённость",knowledgeBase:"База знаний",crawlers:"Мониторинг краулеров",approvalCases:"Дела об одобрении ИИ",tagEngine:"Движок тегов",protocolRegistry:"Реестр протоколов",auditLog:"Права и аудит",systemTitle:"Движок знаний NAC",systemSubtitle:"Консоль управления",adminPanel:"Панель администратора"},dashboard:{title:"Глобальная ситуационная осведомлённость",subtitle:"Мониторинг состояния движка знаний в реальном времени",totalRules:"Всего правил соответствия",activeCrawlers:"Активные краулеры",pendingReviews:"Ожидающие проверки",approvalRate:"Уровень одобрения",knowledgeGrowth:"Рост базы знаний",jurisdictionCoverage:"Охват юрисдикций",assetDistribution:"Распределение типов активов",crawlerHealth:"Состояние краулеров",recentActivity:"Последняя активность",systemStatus:"Состояние системы",allSystemsNormal:"Все системы работают нормально",lastUpdated:"Последнее обновление",viewAll:"Показать все",rules:"правил",crawlers:"краулеров",cases:"дел"},knowledgeBase:{title:"Управление базой знаний",subtitle:"Управление правилами соответствия, нормативными актами и деталями транзакций",addRule:"Добавить правило",editRule:"Редактировать правило",deleteRule:"Удалить правило",ruleTitle:"Заголовок правила",ruleContent:"Содержание правила",ruleSource:"Источник правила",effectiveDate:"Дата вступления в силу",translationStatus:"Статус перевода",original:"Оригинал",aiTranslated:"Перевод ИИ",humanReviewed:"Проверено человеком",addTranslation:"Добавить перевод",missingTranslation:"Перевод отсутствует",languageCoverage:"Языковой охват",contentLanguage:"Язык контента",switchLanguage:"Переключить язык для просмотра",ruleActivated:"Правило активировано",ruleDeactivated:"Правило деактивировано",searchPlaceholder:"Поиск по заголовку, содержанию или источнику...",filterByJurisdiction:"Фильтр по юрисдикции",filterByAssetType:"Фильтр по типу актива",filterByStatus:"Фильтр по статусу",totalRules:"Всего {{count}} правил"},crawlers:{title:"Мониторинг и управление краулерами",subtitle:"Мониторинг внутренних и внешних краулеров данных в реальном времени",internalCrawlers:"Внутренние краулеры",externalCrawlers:"Внешние краулеры",crawlerName:"Название краулера",crawlerType:"Тип краулера",lastRun:"Последний запуск",nextRun:"Следующий запуск",successRate:"Уровень успеха",totalCollected:"Всего собрано",triggerNow:"Запустить сейчас",triggering:"Запуск...",triggered:"Задача краулинга запущена",addSource:"Добавить источник",editSource:"Редактировать источник",sourceUrl:"URL источника",frequency:"Частота",internal:"Внутренний",external:"Внешний",running:"Работает",idle:"Простаивает",error:"Ошибка",logs:"Журналы",viewLogs:"Просмотр журналов"},approvals:{title:"Проверка дел об одобрении ИИ",subtitle:"Проверка результатов автоматического одобрения ИИ и ручная проверка дел среднего риска",caseId:"ID дела",assetName:"Название актива",applicant:"Заявитель",submittedAt:"Подано",riskLevel:"Уровень риска",aiDecision:"Решение ИИ",humanDecision:"Решение человека",reviewStatus:"Статус проверки",pendingReview:"Ожидает проверки",approved:"Одобрено",rejected:"Отклонено",underReview:"На проверке",highRisk:"Высокий риск",mediumRisk:"Средний риск",lowRisk:"Низкий риск",approve:"Одобрить",reject:"Отклонить",reviewComment:"Комментарий проверки",addComment:"Добавить комментарий...",submitReview:"Отправить проверку",aiConfidence:"Уверенность ИИ",complianceScore:"Оценка соответствия",missingDocuments:"Отсутствующие документы",reviewHistory:"История проверок",caseDetails:"Детали дела",viewDetails:"Просмотр деталей"},tagEngine:{title:"Управление движком тегов и правил",subtitle:"Управление правилами генерации автоматических последовательностей тегов",tagId:"ID тега",tagName:"Название тега",tagCategory:"Категория тега",tagRule:"Правило тега",matchPattern:"Шаблон совпадения",priority:"Приоритет",addTag:"Добавить тег",editTag:"Редактировать тег",deleteTag:"Удалить тег",testTag:"Тестировать тег",testInput:"Тестовый ввод",testResult:"Результат теста",jurisdictionDimension:"Измерение юрисдикции",assetTypeDimension:"Измерение типа актива",complianceDimension:"Измерение соответствия",riskDimension:"Измерение риска",crossLanguageAlignment:"Межъязыковое выравнивание",standardTagId:"Стандартный ID тега",languageMappings:"Языковые маппинги"},protocols:{title:"Управление реестром протоколов",subtitle:"Управление всеми нативными протоколами NAC, интегрированными с системой одобрения ИИ",protocolName:"Название протокола",protocolCode:"Код протокола",protocolVersion:"Версия протокола",protocolStatus:"Статус протокола",triggerConditions:"Условия запуска",endpoint:"Конечная точка сервиса",addProtocol:"Зарегистрировать протокол",editProtocol:"Редактировать протокол",deactivateProtocol:"Деактивировать протокол",activateProtocol:"Активировать протокол",protocolActivated:"Протокол активирован",protocolDeactivated:"Протокол деактивирован",registeredAt:"Зарегистрировано",lastCalled:"Последний вызов",callCount:"Количество вызовов",protocolFamily:"Семейство протоколов",coreProtocols:"Основные протоколы"},audit:{title:"Управление правами и аудитом",subtitle:"Управление доступом на основе ролей и неизменяемые журналы аудита",users:"Управление пользователями",roles:"Управление ролями",auditLogs:"Журналы аудита",userId:"ID пользователя",userName:"Имя пользователя",userEmail:"Email",userRole:"Роль",lastLogin:"Последний вход",admin:"Администратор",reviewer:"Проверяющий",legal:"Юридический",operator:"Оператор",action:"Действие",resource:"Ресурс",ipAddress:"IP-адрес",timestamp:"Временная метка",result:"Результат",details:"Детали",exportLogs:"Экспорт журналов",filterByUser:"Фильтр по пользователю",filterByAction:"Фильтр по действию",filterByDate:"Фильтр по дате",immutableNote:"Журналы аудита неизменяемы. Все критические операции записываются."},languageSwitcher:{selectLanguage:"Выбрать язык",currentLanguage:"Текущий язык",knowledgeLanguage:"Язык базы знаний"},jurisdictions:{CN:"Китай",HK:"Гонконг",US:"США",EU:"Европейский союз",SG:"Сингапур",AE:"ОАЭ",JP:"Япония",KR:"Южная Корея",RU:"Россия",GB:"Великобритания",ALL:"Все юрисдикции"},assetTypes:{"RE.RESIDENTIAL":"Жилая недвижимость","RE.COMMERCIAL":"Коммерческая недвижимость","RE.INDUSTRIAL":"Промышленная недвижимость","FIN.EQUITY":"Долевые активы","FIN.DEBT":"Долговые активы","FIN.FUND":"Паи фондов","COMM.PRECIOUS":"Драгоценные металлы","COMM.ENERGY":"Энергетические товары","IP.PATENT":"Патенты","IP.COPYRIGHT":"Авторские права","INFRA.TRANSPORT":"Транспортная инфраструктура",ALL:"Все типы"}},HJ=[{code:"zh",name:"简体中文",nativeName:"简体中文",dir:"ltr",flag:"🇨🇳"},{code:"en",name:"English",nativeName:"English",dir:"ltr",flag:"🇺🇸"},{code:"ar",name:"Arabic",nativeName:"العربية",dir:"rtl",flag:"🇦🇪"},{code:"ja",name:"Japanese",nativeName:"日本語",dir:"ltr",flag:"🇯🇵"},{code:"ko",name:"Korean",nativeName:"한국어",dir:"ltr",flag:"🇰🇷"},{code:"fr",name:"French",nativeName:"Français",dir:"ltr",flag:"🇫🇷"},{code:"ru",name:"Russian",nativeName:"Русский",dir:"ltr",flag:"🇷🇺"}];pr.use(Qz).use(_J).init({resources:{zh:{translation:IJ},en:{translation:$J},ar:{translation:VJ},ja:{translation:BJ},ko:{translation:zJ},fr:{translation:UJ},ru:{translation:qJ}},fallbackLng:"zh",supportedLngs:["zh","en","ar","ja","ko","fr","ru"],detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"nac-admin-language"},interpolation:{escapeValue:!1}});pr.on("languageChanged",e=>{const t=HJ.find(n=>n.code===e);document.documentElement.dir=t?.dir??"ltr",document.documentElement.lang=e});const FJ="Please login (10001)";var iE={exports:{}},Wm={},oE={exports:{}},sE={},Z5;function KJ(){return Z5||(Z5=1,(function(e){/**
|
||
* @license React
|
||
* scheduler.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(){function t(){if(A=!1,V){var U=e.unstable_now();q=U;var G=!0;try{e:{D=!1,P&&(P=!1,j(B),B=-1),_=!0;var K=T;try{t:{for(u(U),N=r(b);N!==null&&!(N.expirationTime>U&&f());){var te=N.callback;if(typeof te=="function"){N.callback=null,T=N.priorityLevel;var ne=te(N.expirationTime<=U);if(U=e.unstable_now(),typeof ne=="function"){N.callback=ne,u(U),G=!0;break t}N===r(b)&&o(b),u(U)}else o(b);N=r(b)}if(N!==null)G=!0;else{var I=r(S);I!==null&&m(c,I.startTime-U),G=!1}}break e}finally{N=null,T=K,_=!1}G=void 0}}finally{G?F():V=!1}}}function n(U,G){var K=U.length;U.push(G);e:for(;0<K;){var te=K-1>>>1,ne=U[te];if(0<s(ne,G))U[te]=G,U[K]=ne,K=te;else break e}}function r(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var G=U[0],K=U.pop();if(K!==G){U[0]=K;e:for(var te=0,ne=U.length,I=ne>>>1;te<I;){var Z=2*(te+1)-1,W=U[Z],ae=Z+1,ge=U[ae];if(0>s(W,K))ae<ne&&0>s(ge,W)?(U[te]=ge,U[ae]=K,te=ae):(U[te]=W,U[Z]=K,te=Z);else if(ae<ne&&0>s(ge,K))U[te]=ge,U[ae]=K,te=ae;else break e}}return G}function s(U,G){var K=U.sortIndex-G.sortIndex;return K!==0?K:U.id-G.id}function u(U){for(var G=r(S);G!==null;){if(G.callback===null)o(S);else if(G.startTime<=U)o(S),G.sortIndex=G.expirationTime,n(b,G);else break;G=r(S)}}function c(U){if(P=!1,u(U),!D)if(r(b)!==null)D=!0,V||(V=!0,F());else{var G=r(S);G!==null&&m(c,G.startTime-U)}}function f(){return A?!0:!(e.unstable_now()-q<z)}function m(U,G){B=C(function(){U(e.unstable_now())},G)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;e.unstable_now=function(){return g.now()}}else{var p=Date,y=p.now();e.unstable_now=function(){return p.now()-y}}var b=[],S=[],x=1,N=null,T=3,_=!1,D=!1,P=!1,A=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null,V=!1,B=-1,z=5,q=-1;if(typeof L=="function")var F=function(){L(t)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,ee=Y.port2;Y.port1.onmessage=t,F=function(){ee.postMessage(null)}}else F=function(){C(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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(U){switch(T){case 1:case 2:case 3:var G=3;break;default:G=T}var K=T;T=G;try{return U()}finally{T=K}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(U,G){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var K=T;T=U;try{return G()}finally{T=K}},e.unstable_scheduleCallback=function(U,G,K){var te=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?te+K:te):K=te,U){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=K+ne,U={id:x++,callback:G,priorityLevel:U,startTime:K,expirationTime:ne,sortIndex:-1},K>te?(U.sortIndex=K,n(S,U),r(b)===null&&U===r(S)&&(P?(j(B),B=-1):P=!0,m(c,K-te))):(U.sortIndex=ne,n(b,U),D||_||(D=!0,V||(V=!0,F()))),U},e.unstable_shouldYield=f,e.unstable_wrapCallback=function(U){var G=T;return function(){var K=T;T=G;try{return U.apply(this,arguments)}finally{T=K}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(sE)),sE}var J5;function GJ(){return J5||(J5=1,oE.exports=KJ()),oE.exports}var lE={exports:{}},ur={},e3;function YJ(){if(e3)return ur;e3=1;/**
|
||
* @license React
|
||
* react-dom.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/return(function(){function e(){}function t(p){return""+p}function n(p,y,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(S);var x=!1}catch{x=!0}return x&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object"),t(S)),{$$typeof:m,key:S==null?null:""+S,children:p,containerInfo:y,implementation:b}}function r(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}function o(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":'something with type "'+typeof p+'"'}function s(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":typeof p=="string"?JSON.stringify(p):typeof p=="number"?"`"+p+"`":'something with type "'+typeof p+'"'}function u(){var p=g.H;return p===null&&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:
|
||
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
||
2. You might be breaking the Rules of Hooks
|
||
3. You might have more than one copy of React in the same app
|
||
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=Jd(),f={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},m=Symbol.for("react.portal"),g=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||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"),ur.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,ur.createPortal=function(p,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error("Target container is not a DOM element.");return n(p,y,null,b)},ur.flushSync=function(p){var y=g.T,b=f.p;try{if(g.T=null,f.p=2,p)return p()}finally{g.T=y,f.p=b,f.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.")}},ur.preconnect=function(p,y){typeof p=="string"&&p?y!=null&&typeof y!="object"?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.",s(y)):y!=null&&typeof y.crossOrigin!="string"&&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.",o(y.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(p)),typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,f.d.C(p,y))},ur.prefetchDNS=function(p){if(typeof p!="string"||!p)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(p));else if(1<arguments.length){var y=arguments[1];typeof y=="object"&&y.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`.",s(y)):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`.",s(y))}typeof p=="string"&&f.d.D(p)},ur.preinit=function(p,y){if(typeof p=="string"&&p?y==null||typeof y!="object"?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.",s(y)):y.as!=="style"&&y.as!=="script"&&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".',s(y.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(p)),typeof p=="string"&&y&&typeof y.as=="string"){var b=y.as,S=r(b,y.crossOrigin),x=typeof y.integrity=="string"?y.integrity:void 0,N=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?f.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:x,fetchPriority:N}):b==="script"&&f.d.X(p,{crossOrigin:S,integrity:x,fetchPriority:N,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ur.preinitModule=function(p,y){var b="";if(typeof p=="string"&&p||(b+=" The `href` argument encountered was "+o(p)+"."),y!==void 0&&typeof y!="object"?b+=" The `options` argument encountered was "+o(y)+".":y&&"as"in y&&y.as!=="script"&&(b+=" The `as` option encountered was "+s(y.as)+"."),b)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",b);else switch(b=y&&typeof y.as=="string"?y.as:"script",b){case"script":break;default:b=s(b),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)',b,p)}typeof p=="string"&&(typeof y=="object"&&y!==null?(y.as==null||y.as==="script")&&(b=r(y.as,y.crossOrigin),f.d.M(p,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})):y==null&&f.d.M(p))},ur.preload=function(p,y){var b="";if(typeof p=="string"&&p||(b+=" The `href` argument encountered was "+o(p)+"."),y==null||typeof y!="object"?b+=" The `options` argument encountered was "+o(y)+".":typeof y.as=="string"&&y.as||(b+=" The `as` option encountered was "+o(y.as)+"."),b&&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',b),typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){b=y.as;var S=r(b,y.crossOrigin);f.d.L(p,b,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ur.preloadModule=function(p,y){var b="";typeof p=="string"&&p||(b+=" The `href` argument encountered was "+o(p)+"."),y!==void 0&&typeof y!="object"?b+=" The `options` argument encountered was "+o(y)+".":y&&"as"in y&&typeof y.as!="string"&&(b+=" The `as` option encountered was "+o(y.as)+"."),b&&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',b),typeof p=="string"&&(y?(b=r(y.as,y.crossOrigin),f.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})):f.d.m(p))},ur.requestFormReset=function(p){f.d.r(p)},ur.unstable_batchedUpdates=function(p,y){return p(y)},ur.useFormState=function(p,y,b){return u().useFormState(p,y,b)},ur.useFormStatus=function(){return u().useHostTransitionStatus()},ur.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),ur}var t3;function eU(){return t3||(t3=1,lE.exports=YJ()),lE.exports}var n3;function QJ(){if(n3)return Wm;n3=1;/**
|
||
* @license React
|
||
* react-dom-client.development.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/return(function(){function e(a,i){for(a=a.memoizedState;a!==null&&0<i;)a=a.next,i--;return a}function t(a,i,l,d){if(l>=i.length)return d;var h=i[l],v=jn(a)?a.slice():dt({},a);return v[h]=t(a[h],i,l+1,d),v}function n(a,i,l){if(i.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var d=0;d<l.length-1;d++)if(i[d]!==l[d]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return r(a,i,l,0)}}function r(a,i,l,d){var h=i[d],v=jn(a)?a.slice():dt({},a);return d+1===i.length?(v[l[d]]=v[h],jn(v)?v.splice(h,1):delete v[h]):v[h]=r(a[h],i,l,d+1),v}function o(a,i,l){var d=i[l],h=jn(a)?a.slice():dt({},a);return l+1===i.length?(jn(h)?h.splice(d,1):delete h[d],h):(h[d]=o(a[d],i,l+1),h)}function s(){return!1}function u(){return null}function c(){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 f(){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 m(){}function g(){}function p(a){var i=[];return a.forEach(function(l){i.push(l)}),i.sort().join(", ")}function y(a,i,l,d){return new fG(a,i,l,d)}function b(a,i){a.context===Rs&&(fw(a.current,2,i,a,null,null),dc())}function S(a,i){if(xa!==null){var l=i.staleFamilies;i=i.updatedFamilies,qf(),hj(a.current,i,l),dc()}}function x(a){xa=a}function N(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function T(a){var i=a,l=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(l=i.return),a=i.return;while(a)}return i.tag===3?l:null}function _(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function D(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function P(a){if(T(a)!==a)throw Error("Unable to find node on an unmounted component.")}function A(a){var i=a.alternate;if(!i){if(i=T(a),i===null)throw Error("Unable to find node on an unmounted component.");return i!==a?null:a}for(var l=a,d=i;;){var h=l.return;if(h===null)break;var v=h.alternate;if(v===null){if(d=h.return,d!==null){l=d;continue}break}if(h.child===v.child){for(v=h.child;v;){if(v===l)return P(h),a;if(v===d)return P(h),i;v=v.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==d.return)l=h,d=v;else{for(var E=!1,O=h.child;O;){if(O===l){E=!0,l=h,d=v;break}if(O===d){E=!0,d=h,l=v;break}O=O.sibling}if(!E){for(O=v.child;O;){if(O===l){E=!0,l=v,d=h;break}if(O===d){E=!0,d=v,l=h;break}O=O.sibling}if(!E)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(l.alternate!==d)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(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?a:i}function C(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=C(a),i!==null)return i;a=a.sibling}return null}function j(a){return a===null||typeof a!="object"?null:(a=NL&&a[NL]||a["@@iterator"],typeof a=="function"?a:null)}function L(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===MY?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case yc:return"Fragment";case bw:return"Profiler";case Fg:return"StrictMode";case ww:return"Suspense";case Nw:return"SuspenseList";case Ew:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case vc:return"Portal";case ji:return a.displayName||"Context";case xw:return(a._context.displayName||"Context")+".Consumer";case Jf:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Kg:return i=a.displayName||null,i!==null?i:L(a.type)||"Memo";case ta:i=a._payload,a=a._init;try{return L(a(i))}catch{}}return null}function V(a){return typeof a.tag=="number"?B(a):typeof a.name=="string"?a.name:null}function B(a){var i=a.type;switch(a.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(i._context.displayName||"Context")+".Consumer";case 10:return i.displayName||"Context";case 18:return"DehydratedFragment";case 11:return a=i.render,a=a.displayName||a.name||"",i.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return L(i);case 8:return i===Fg?"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(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;break;case 29:if(i=a._debugInfo,i!=null){for(var l=i.length-1;0<=l;l--)if(typeof i[l].name=="string")return i[l].name}if(a.return!==null)return B(a.return)}return null}function z(a){return{current:a}}function q(a,i){0>Eo?console.error("Unexpected pop."):(i!==Aw[Eo]&&console.error("Unexpected Fiber popped."),a.current=Sw[Eo],Sw[Eo]=null,Aw[Eo]=null,Eo--)}function F(a,i,l){Eo++,Sw[Eo]=a.current,Aw[Eo]=l,a.current=i}function Y(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function ee(a,i){F(As,i,a),F(em,a,a),F(Ss,null,a);var l=i.nodeType;switch(l){case 9:case 11:l=l===9?"#document":"#fragment",i=(i=i.documentElement)&&(i=i.namespaceURI)?KM(i):$o;break;default:if(l=i.tagName,i=i.namespaceURI)i=KM(i),i=GM(i,l);else switch(l){case"svg":i=Zc;break;case"math":i=Hv;break;default:i=$o}}l=l.toLowerCase(),l=BR(null,l),l={context:i,ancestorInfo:l},q(Ss,a),F(Ss,l,a)}function U(a){q(Ss,a),q(em,a),q(As,a)}function G(){return Y(Ss.current)}function K(a){a.memoizedState!==null&&F(Gg,a,a);var i=Y(Ss.current),l=a.type,d=GM(i.context,l);l=BR(i.ancestorInfo,l),d={context:d,ancestorInfo:l},i!==d&&(F(em,a,a),F(Ss,d,a))}function te(a){em.current===a&&(q(Ss,a),q(em,a)),Gg.current===a&&(q(Gg,a),Fm._currentValue=ru)}function ne(){}function I(){if(tm===0){EL=console.log,SL=console.info,AL=console.warn,OL=console.error,TL=console.group,CL=console.groupCollapsed,_L=console.groupEnd;var a={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}tm++}function Z(){if(tm--,tm===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:dt({},a,{value:EL}),info:dt({},a,{value:SL}),warn:dt({},a,{value:AL}),error:dt({},a,{value:OL}),group:dt({},a,{value:TL}),groupCollapsed:dt({},a,{value:CL}),groupEnd:dt({},a,{value:_L})})}0>tm&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W(a){var i=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=i,a.startsWith(`Error: react-stack-top-frame
|
||
`)&&(a=a.slice(29)),i=a.indexOf(`
|
||
`),i!==-1&&(a=a.slice(i+1)),i=a.indexOf("react_stack_bottom_frame"),i!==-1&&(i=a.lastIndexOf(`
|
||
`,i)),i!==-1)a=a.slice(0,i);else return"";return a}function ae(a){if(Ow===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);Ow=i&&i[1]||"",DL=-1<l.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Ow+a+DL}function ge(a,i){if(!a||Tw)return"";var l=Cw.get(a);if(l!==void 0)return l;Tw=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var d=null;d=he.H,he.H=null,I();try{var h={DetermineComponentFrameRoot:function(){try{if(i){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(Ce){var fe=Ce}Reflect.construct(a,[],X)}else{try{X.call()}catch(Ce){fe=Ce}a.call(X.prototype)}}else{try{throw Error()}catch(Ce){fe=Ce}(X=a())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(Ce){if(Ce&&fe&&typeof Ce.stack=="string")return[Ce.stack,fe.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=h.DetermineComponentFrameRoot(),O=E[0],M=E[1];if(O&&M){var k=O.split(`
|
||
`),oe=M.split(`
|
||
`);for(E=v=0;v<k.length&&!k[v].includes("DetermineComponentFrameRoot");)v++;for(;E<oe.length&&!oe[E].includes("DetermineComponentFrameRoot");)E++;if(v===k.length||E===oe.length)for(v=k.length-1,E=oe.length-1;1<=v&&0<=E&&k[v]!==oe[E];)E--;for(;1<=v&&0<=E;v--,E--)if(k[v]!==oe[E]){if(v!==1||E!==1)do if(v--,E--,0>E||k[v]!==oe[E]){var se=`
|
||
`+k[v].replace(" at new "," at ");return a.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",a.displayName)),typeof a=="function"&&Cw.set(a,se),se}while(1<=v&&0<=E);break}}}finally{Tw=!1,he.H=d,Z(),Error.prepareStackTrace=l}return k=(k=a?a.displayName||a.name:"")?ae(k):"",typeof a=="function"&&Cw.set(a,k),k}function Ne(a,i){switch(a.tag){case 26:case 27:case 5:return ae(a.type);case 16:return ae("Lazy");case 13:return a.child!==i&&i!==null?ae("Suspense Fallback"):ae("Suspense");case 19:return ae("SuspenseList");case 0:case 15:return ge(a.type,!1);case 11:return ge(a.type.render,!1);case 1:return ge(a.type,!0);case 31:return ae("Activity");default:return""}}function ue(a){try{var i="",l=null;do{i+=Ne(a,l);var d=a._debugInfo;if(d)for(var h=d.length-1;0<=h;h--){var v=d[h];if(typeof v.name=="string"){var E=i;e:{var O=v.name,M=v.env,k=v.debugLocation;if(k!=null){var oe=W(k),se=oe.lastIndexOf(`
|
||
`),X=se===-1?oe:oe.slice(se+1);if(X.indexOf(O)!==-1){var fe=`
|
||
`+X;break e}}fe=ae(O+(M?" ["+M+"]":""))}i=E+fe}}l=a,a=a.return}while(a);return i}catch(Ce){return`
|
||
Error generating stack: `+Ce.message+`
|
||
`+Ce.stack}}function xe(a){return(a=a?a.displayName||a.name:"")?ae(a):""}function me(){if(na===null)return null;var a=na._debugOwner;return a!=null?V(a):null}function be(){if(na===null)return"";var a=na;try{var i="";switch(a.tag===6&&(a=a.return),a.tag){case 26:case 27:case 5:i+=ae(a.type);break;case 13:i+=ae("Suspense");break;case 19:i+=ae("SuspenseList");break;case 31:i+=ae("Activity");break;case 30:case 0:case 15:case 1:a._debugOwner||i!==""||(i+=xe(a.type));break;case 11:a._debugOwner||i!==""||(i+=xe(a.type.render))}for(;a;)if(typeof a.tag=="number"){var l=a;a=l._debugOwner;var d=l._debugStack;if(a&&d){var h=W(d);h!==""&&(i+=`
|
||
`+h)}}else if(a.debugStack!=null){var v=a.debugStack;(a=a.owner)&&v&&(i+=`
|
||
`+W(v))}else break;var E=i}catch(O){E=`
|
||
Error generating stack: `+O.message+`
|
||
`+O.stack}return E}function de(a,i,l,d,h,v,E){var O=na;ie(a);try{return a!==null&&a._debugTask?a._debugTask.run(i.bind(null,l,d,h,v,E)):i(l,d,h,v,E)}finally{ie(O)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ie(a){he.getCurrentStack=a===null?null:be,Pi=!1,na=a}function ze(a){return typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function we(a){try{return lt(a),!1}catch{return!0}}function lt(a){return""+a}function $e(a,i){if(we(a))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",i,ze(a)),lt(a)}function et(a,i){if(we(a))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.",i,ze(a)),lt(a)}function zn(a){if(we(a))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.",ze(a)),lt(a)}function xn(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(i.isDisabled)return!0;if(!i.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{xc=i.inject(a),sr=i}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!i.checkDCE}function je(a){if(typeof zY=="function"&&UY(a),sr&&typeof sr.setStrictMode=="function")try{sr.setStrictMode(xc,a)}catch(i){Mi||(Mi=!0,console.error("React instrumentation encountered an error: %o",i))}}function ir(a){return a>>>=0,a===0?32:31-(qY(a)/HY|0)|0}function wt(a){var i=a&42;if(i!==0)return i;switch(a&-a){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:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;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."),a}}function Un(a,i,l){var d=a.pendingLanes;if(d===0)return 0;var h=0,v=a.suspendedLanes,E=a.pingedLanes;a=a.warmLanes;var O=d&134217727;return O!==0?(d=O&~v,d!==0?h=wt(d):(E&=O,E!==0?h=wt(E):l||(l=O&~a,l!==0&&(h=wt(l))))):(O=d&~v,O!==0?h=wt(O):E!==0?h=wt(E):l||(l=d&~a,l!==0&&(h=wt(l)))),h===0?0:i!==0&&i!==h&&(i&v)===0&&(v=h&-h,l=i&-i,v>=l||v===32&&(l&4194048)!==0)?i:h}function Mr(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function di(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;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 Gr(){var a=Xg;return Xg<<=1,(Xg&62914560)===0&&(Xg=4194304),a}function fi(a){for(var i=[],l=0;31>l;l++)i.push(a);return i}function Ba(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function cs(a,i,l,d,h,v){var E=a.pendingLanes;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=l,a.entangledLanes&=l,a.errorRecoveryDisabledLanes&=l,a.shellSuspendCounter=0;var O=a.entanglements,M=a.expirationTimes,k=a.hiddenUpdates;for(l=E&~l;0<l;){var oe=31-vr(l),se=1<<oe;O[oe]=0,M[oe]=-1;var X=k[oe];if(X!==null)for(k[oe]=null,oe=0;oe<X.length;oe++){var fe=X[oe];fe!==null&&(fe.lane&=-536870913)}l&=~se}d!==0&&pa(a,d,0),v!==0&&h===0&&a.tag!==0&&(a.suspendedLanes|=v&~(E&~i))}function pa(a,i,l){a.pendingLanes|=i,a.suspendedLanes&=~i;var d=31-vr(i);a.entangledLanes|=i,a.entanglements[d]=a.entanglements[d]|1073741824|l&261930}function ds(a,i){var l=a.entangledLanes|=i;for(a=a.entanglements;l;){var d=31-vr(l),h=1<<d;h&i|a[d]&i&&(a[d]|=i),l&=~h}}function Lr(a,i){var l=i&-i;return l=(l&42)!==0?1:mi(l),(l&(a.suspendedLanes|i))!==0?0:l}function mi(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function uo(a,i,l){if(Li)for(a=a.pendingUpdatersLaneMap;0<l;){var d=31-vr(l),h=1<<d;a[d].add(i),l&=~h}}function co(a,i){if(Li)for(var l=a.pendingUpdatersLaneMap,d=a.memoizedUpdaters;0<i;){var h=31-vr(i);a=1<<h,h=l[h],0<h.size&&(h.forEach(function(v){var E=v.alternate;E!==null&&d.has(E)||d.add(v)}),h.clear()),i&=~a}}function fo(a){return a&=-a,va<a?ki<a?(a&134217727)!==0?So:Wg:ki:va}function pi(){var a=Ot.p;return a!==0?a:(a=window.event,a===void 0?So:hL(a.type))}function $(a,i){var l=Ot.p;try{return Ot.p=a,i()}finally{Ot.p=l}}function le(a){delete a[tr],delete a[yr],delete a[Pw],delete a[FY],delete a[KY]}function Ee(a){var i=a[tr];if(i)return i;for(var l=a.parentNode;l;){if(i=l[Ts]||l[tr]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(a=tL(a);a!==null;){if(l=a[tr])return l;a=tL(a)}return i}a=l,l=a.parentNode}return null}function Te(a){if(a=a[tr]||a[Ts]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function Me(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Ze(a){var i=a[RL];return i||(i=a[RL]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Se(a){a[nm]=!0}function He(a,i){Be(a,i),Be(a+"Capture",i)}function Be(a,i){Ml[a]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),Ml[a]=i;var l=a.toLowerCase();for(Mw[l]=a,a==="onDoubleClick"&&(Mw.ondblclick=a),a=0;a<i.length;a++)jL.add(i[a])}function It(a,i){GY[i.type]||i.onChange||i.onInput||i.readOnly||i.disabled||i.value==null||console.error(a==="select"?"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`.":"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`."),i.onChange||i.readOnly||i.disabled||i.checked==null||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 hr(a){return Fa.call(ML,a)?!0:Fa.call(PL,a)?!1:YY.test(a)?ML[a]=!0:(PL[a]=!0,console.error("Invalid attribute name: `%s`",a),!1)}function dn(a,i,l){if(hr(i)){if(!a.hasAttribute(i)){switch(typeof l){case"symbol":case"object":return l;case"function":return l;case"boolean":if(l===!1)return l}return l===void 0?void 0:null}return a=a.getAttribute(i),a===""&&l===!0?!0:($e(l,i),a===""+l?l:a)}}function Rn(a,i,l){if(hr(i))if(l===null)a.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var d=i.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){a.removeAttribute(i);return}}$e(l,i),a.setAttribute(i,""+l)}}function mo(a,i,l){if(l===null)a.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}$e(l,i),a.setAttribute(i,""+l)}}function gn(a,i,l,d){if(d===null)a.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}$e(d,l),a.setAttributeNS(i,l,""+d)}}function rn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return zn(a),a;default:return""}}function yf(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function po(a,i,l){var d=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);if(!a.hasOwnProperty(i)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var h=d.get,v=d.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return h.call(this)},set:function(E){zn(E),l=""+E,v.call(this,E)}}),Object.defineProperty(a,i,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(E){zn(E),l=""+E},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function $h(a){if(!a._valueTracker){var i=yf(a)?"checked":"value";a._valueTracker=po(a,i,""+a[i])}}function TR(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var l=i.getValue(),d="";return a&&(d=yf(a)?a.checked?"true":"false":a.value),a=d,a!==l?(i.setValue(a),!0):!1}function Vh(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function ha(a){return a.replace(QY,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function CR(a,i){i.checked===void 0||i.defaultChecked===void 0||kL||(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",me()||"A component",i.type),kL=!0),i.value===void 0||i.defaultValue===void 0||LL||(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",me()||"A component",i.type),LL=!0)}function mx(a,i,l,d,h,v,E,O){a.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?($e(E,"type"),a.type=E):a.removeAttribute("type"),i!=null?E==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+rn(i)):a.value!==""+rn(i)&&(a.value=""+rn(i)):E!=="submit"&&E!=="reset"||a.removeAttribute("value"),i!=null?px(a,E,rn(i)):l!=null?px(a,E,rn(l)):d!=null&&a.removeAttribute("value"),h==null&&v!=null&&(a.defaultChecked=!!v),h!=null&&(a.checked=h&&typeof h!="function"&&typeof h!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?($e(O,"name"),a.name=""+rn(O)):a.removeAttribute("name")}function _R(a,i,l,d,h,v,E,O){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&($e(v,"type"),a.type=v),i!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||i!=null)){$h(a);return}l=l!=null?""+rn(l):"",i=i!=null?""+rn(i):l,O||i===a.value||(a.value=i),a.defaultValue=i}d=d??h,d=typeof d!="function"&&typeof d!="symbol"&&!!d,a.checked=O?a.checked:!!d,a.defaultChecked=!!d,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&($e(E,"name"),a.name=E),$h(a)}function px(a,i,l){i==="number"&&Vh(a.ownerDocument)===a||a.defaultValue===""+l||(a.defaultValue=""+l)}function DR(a,i){i.value==null&&(typeof i.children=="object"&&i.children!==null?yw.Children.forEach(i.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||$L||($L=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):i.dangerouslySetInnerHTML==null||VL||(VL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),i.selected==null||IL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),IL=!0)}function RR(){var a=me();return a?`
|
||
|
||
Check the render method of \``+a+"`.":""}function Ju(a,i,l,d){if(a=a.options,i){i={};for(var h=0;h<l.length;h++)i["$"+l[h]]=!0;for(l=0;l<a.length;l++)h=i.hasOwnProperty("$"+a[l].value),a[l].selected!==h&&(a[l].selected=h),h&&d&&(a[l].defaultSelected=!0)}else{for(l=""+rn(l),i=null,h=0;h<a.length;h++){if(a[h].value===l){a[h].selected=!0,d&&(a[h].defaultSelected=!0);return}i!==null||a[h].disabled||(i=a[h])}i!==null&&(i.selected=!0)}}function jR(a,i){for(a=0;a<zL.length;a++){var l=zL[a];if(i[l]!=null){var d=jn(i[l]);i.multiple&&!d?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,RR()):!i.multiple&&d&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,RR())}}i.value===void 0||i.defaultValue===void 0||BL||(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"),BL=!0)}function PR(a,i){i.value===void 0||i.defaultValue===void 0||UL||(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",me()||"A component"),UL=!0),i.children!=null&&i.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function MR(a,i,l){if(i!=null&&(i=""+rn(i),i!==a.value&&(a.value=i),l==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=l!=null?""+rn(l):""}function LR(a,i,l,d){if(i==null){if(d!=null){if(l!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jn(d)){if(1<d.length)throw Error("<textarea> can only have at most one child.");d=d[0]}l=d}l==null&&(l=""),i=l}l=rn(i),a.defaultValue=l,d=a.textContent,d===l&&d!==""&&d!==null&&(a.value=d),$h(a)}function kR(a,i){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-i?kR(a.children[0],i):a}function Yr(a){return" "+" ".repeat(a)}function ec(a){return"+ "+" ".repeat(a)}function bl(a){return"- "+" ".repeat(a)}function IR(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function bf(a,i){return qL.test(a)?(a=JSON.stringify(a),a.length>i-2?8>i?'{"..."}':"{"+a.slice(0,i-7)+'..."}':"{"+a+"}"):a.length>i?5>i?'{"..."}':a.slice(0,i-3)+"...":a}function Bh(a,i,l){var d=120-2*l;if(i===null)return ec(l)+bf(a,d)+`
|
||
`;if(typeof i=="string"){for(var h=0;h<i.length&&h<a.length&&i.charCodeAt(h)===a.charCodeAt(h);h++);return h>d-8&&10<h&&(a="..."+a.slice(h-8),i="..."+i.slice(h-8)),ec(l)+bf(a,d)+`
|
||
`+bl(l)+bf(i,d)+`
|
||
`}return Yr(l)+bf(a,d)+`
|
||
`}function hx(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(i,l){return l})}function xf(a,i){switch(typeof a){case"string":return a=JSON.stringify(a),a.length>i?5>i?'"..."':a.slice(0,i-4)+'..."':a;case"object":if(a===null)return"null";if(jn(a))return"[...]";if(a.$$typeof===Ri)return(i=L(a.type))?"<"+i+">":"<...>";var l=hx(a);if(l==="Object"){l="",i-=2;for(var d in a)if(a.hasOwnProperty(d)){var h=JSON.stringify(d);if(h!=='"'+d+'"'&&(d=h),i-=d.length-2,h=xf(a[d],15>i?i:15),i-=h.length,0>i){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+d+":"+h}return"{"+l+"}"}return l;case"function":return(i=a.displayName||a.name)?"function "+i:"function";default:return String(a)}}function tc(a,i){return typeof a!="string"||qL.test(a)?"{"+xf(a,i-2)+"}":a.length>i-2?5>i?'"..."':'"'+a.slice(0,i-5)+'..."':'"'+a+'"'}function gx(a,i,l){var d=120-l.length-a.length,h=[],v;for(v in i)if(i.hasOwnProperty(v)&&v!=="children"){var E=tc(i[v],120-l.length-v.length-1);d-=v.length+E.length+2,h.push(v+"="+E)}return h.length===0?l+"<"+a+`>
|
||
`:0<d?l+"<"+a+" "+h.join(" ")+`>
|
||
`:l+"<"+a+`
|
||
`+l+" "+h.join(`
|
||
`+l+" ")+`
|
||
`+l+`>
|
||
`}function HK(a,i,l){var d="",h=dt({},i),v;for(v in a)if(a.hasOwnProperty(v)){delete h[v];var E=120-2*l-v.length-2,O=xf(a[v],E);i.hasOwnProperty(v)?(E=xf(i[v],E),d+=ec(l)+v+": "+O+`
|
||
`,d+=bl(l)+v+": "+E+`
|
||
`):d+=ec(l)+v+": "+O+`
|
||
`}for(var M in h)h.hasOwnProperty(M)&&(a=xf(h[M],120-2*l-M.length-2),d+=bl(l)+M+": "+a+`
|
||
`);return d}function FK(a,i,l,d){var h="",v=new Map;for(k in l)l.hasOwnProperty(k)&&v.set(k.toLowerCase(),k);if(v.size===1&&v.has("children"))h+=gx(a,i,Yr(d));else{for(var E in i)if(i.hasOwnProperty(E)&&E!=="children"){var O=120-2*(d+1)-E.length-1,M=v.get(E.toLowerCase());if(M!==void 0){v.delete(E.toLowerCase());var k=i[E];M=l[M];var oe=tc(k,O);O=tc(M,O),typeof k=="object"&&k!==null&&typeof M=="object"&&M!==null&&hx(k)==="Object"&&hx(M)==="Object"&&(2<Object.keys(k).length||2<Object.keys(M).length||-1<oe.indexOf("...")||-1<O.indexOf("..."))?h+=Yr(d+1)+E+`={{
|
||
`+HK(k,M,d+2)+Yr(d+1)+`}}
|
||
`:(h+=ec(d+1)+E+"="+oe+`
|
||
`,h+=bl(d+1)+E+"="+O+`
|
||
`)}else h+=Yr(d+1)+E+"="+tc(i[E],O)+`
|
||
`}v.forEach(function(se){if(se!=="children"){var X=120-2*(d+1)-se.length-1;h+=bl(d+1)+se+"="+tc(l[se],X)+`
|
||
`}}),h=h===""?Yr(d)+"<"+a+`>
|
||
`:Yr(d)+"<"+a+`
|
||
`+h+Yr(d)+`>
|
||
`}return a=l.children,i=i.children,typeof a=="string"||typeof a=="number"||typeof a=="bigint"?(v="",(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(v=""+i),h+=Bh(v,""+a,d+1)):(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(h=a==null?h+Bh(""+i,null,d+1):h+Bh(""+i,void 0,d+1)),h}function $R(a,i){var l=IR(a);if(l===null){for(l="",a=a.child;a;)l+=$R(a,i),a=a.sibling;return l}return Yr(i)+"<"+l+`>
|
||
`}function vx(a,i){var l=kR(a,i);if(l!==a&&(a.children.length!==1||a.children[0]!==l))return Yr(i)+`...
|
||
`+vx(l,i+1);l="";var d=a.fiber._debugInfo;if(d)for(var h=0;h<d.length;h++){var v=d[h].name;typeof v=="string"&&(l+=Yr(i)+"<"+v+`>
|
||
`,i++)}if(d="",h=a.fiber.pendingProps,a.fiber.tag===6)d=Bh(h,a.serverProps,i),i++;else if(v=IR(a.fiber),v!==null)if(a.serverProps===void 0){d=i;var E=120-2*d-v.length-2,O="";for(k in h)if(h.hasOwnProperty(k)&&k!=="children"){var M=tc(h[k],15);if(E-=k.length+M.length+2,0>E){O+=" ...";break}O+=" "+k+"="+M}d=Yr(d)+"<"+v+O+`>
|
||
`,i++}else a.serverProps===null?(d=gx(v,h,ec(i)),i++):typeof a.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(d=FK(v,h,a.serverProps,i),i++);var k="";for(h=a.fiber.child,v=0;h&&v<a.children.length;)E=a.children[v],E.fiber===h?(k+=vx(E,i),v++):k+=$R(h,i),h=h.sibling;for(h&&0<a.children.length&&(k+=Yr(i)+`...
|
||
`),h=a.serverTail,a.serverProps===null&&i--,a=0;a<h.length;a++)v=h[a],k=typeof v=="string"?k+(bl(i)+bf(v,120-2*i)+`
|
||
`):k+gx(v.type,v.props,bl(i));return l+d+k}function yx(a){try{return`
|
||
|
||
`+vx(a,0)}catch{return""}}function VR(a,i,l){for(var d=i,h=null,v=0;d;)d===a&&(v=0),h={fiber:d,children:h!==null?[h]:[],serverProps:d===i?l:d===a?null:void 0,serverTail:[],distanceFromLeaf:v},v++,d=d.return;return h!==null?yx(h).replaceAll(/^[+-]/gm,">"):""}function BR(a,i){var l=dt({},a||FL),d={tag:i};return HL.indexOf(i)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),WY.indexOf(i)!==-1&&(l.pTagInButtonScope=null),XY.indexOf(i)!==-1&&i!=="address"&&i!=="div"&&i!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=d,i==="form"&&(l.formTag=d),i==="a"&&(l.aTagInScope=d),i==="button"&&(l.buttonTagInScope=d),i==="nobr"&&(l.nobrTagInScope=d),i==="p"&&(l.pTagInButtonScope=d),i==="li"&&(l.listItemTagAutoclosing=d),(i==="dd"||i==="dt")&&(l.dlItemTagAutoclosing=d),i==="#document"||i==="html"?l.containerTagInScope=null:l.containerTagInScope||(l.containerTagInScope=d),a!==null||i!=="#document"&&i!=="html"&&i!=="body"?l.implicitRootScope===!0&&(l.implicitRootScope=!1):l.implicitRootScope=!0,l}function zR(a,i,l){switch(i){case"select":return a==="hr"||a==="option"||a==="optgroup"||a==="script"||a==="template"||a==="#text";case"optgroup":return a==="option"||a==="#text";case"option":return a==="#text";case"tr":return a==="th"||a==="td"||a==="style"||a==="script"||a==="template";case"tbody":case"thead":case"tfoot":return a==="tr"||a==="style"||a==="script"||a==="template";case"colgroup":return a==="col"||a==="template";case"table":return a==="caption"||a==="colgroup"||a==="tbody"||a==="tfoot"||a==="thead"||a==="style"||a==="script"||a==="template";case"head":return a==="base"||a==="basefont"||a==="bgsound"||a==="link"||a==="meta"||a==="title"||a==="noscript"||a==="noframes"||a==="style"||a==="script"||a==="template";case"html":if(l)break;return a==="head"||a==="body"||a==="frameset";case"frameset":return a==="frame";case"#document":if(!l)return a==="html"}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i!=="h1"&&i!=="h2"&&i!=="h3"&&i!=="h4"&&i!=="h5"&&i!=="h6";case"rp":case"rt":return ZY.indexOf(i)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return i==null;case"head":return l||i===null;case"html":return l&&i==="#document"||i===null;case"body":return l&&(i==="#document"||i==="html")||i===null}return!0}function KK(a,i){switch(a){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 i.pTagInButtonScope;case"form":return i.formTag||i.pTagInButtonScope;case"li":return i.listItemTagAutoclosing;case"dd":case"dt":return i.dlItemTagAutoclosing;case"button":return i.buttonTagInScope;case"a":return i.aTagInScope;case"nobr":return i.nobrTagInScope}return null}function UR(a,i){for(;a;){switch(a.tag){case 5:case 26:case 27:if(a.type===i)return a}a=a.return}return null}function bx(a,i){i=i||FL;var l=i.current;if(i=(l=zR(a,l&&l.tag,i.implicitRootScope)?null:l)?null:KK(a,i),i=l||i,!i)return!0;var d=i.tag;if(i=String(!!l)+"|"+a+"|"+d,Zg[i])return!1;Zg[i]=!0;var h=(i=na)?UR(i.return,d):null,v=i!==null&&h!==null?VR(h,i,null):"",E="<"+a+">";return l?(l="",d==="table"&&a==="tr"&&(l+=" 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
|
||
This will cause a hydration error.%s`,E,d,l,v)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
||
This will cause a hydration error.%s`,E,d,v),i&&(a=i.return,h===null||a===null||h===a&&a._debugOwner===i._debugOwner||de(h,function(){console.error(`<%s> cannot contain a nested %s.
|
||
See this log for the ancestor stack trace.`,d,E)})),!1}function zh(a,i,l){if(l||zR("#text",i,!1))return!0;if(l="#text|"+i,Zg[l])return!1;Zg[l]=!0;var d=(l=na)?UR(l,i):null;return l=l!==null&&d!==null?VR(d,l,l.tag!==6?{children:null}:null):"",/\S/.test(a)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
||
This will cause a hydration error.%s`,i,l):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.
|
||
This will cause a hydration error.%s`,i,l),!1}function wf(a,i){if(i){var l=a.firstChild;if(l&&l===a.lastChild&&l.nodeType===3){l.nodeValue=i;return}}a.textContent=i}function GK(a){return a.replace(tQ,function(i,l){return l.toUpperCase()})}function qR(a,i,l){var d=i.indexOf("--")===0;d||(-1<i.indexOf("-")?wc.hasOwnProperty(i)&&wc[i]||(wc[i]=!0,console.error("Unsupported style property %s. Did you mean %s?",i,GK(i.replace(eQ,"ms-")))):JY.test(i)?wc.hasOwnProperty(i)&&wc[i]||(wc[i]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",i,i.charAt(0).toUpperCase()+i.slice(1))):!YL.test(l)||kw.hasOwnProperty(l)&&kw[l]||(kw[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,i,l.replace(YL,""))),typeof l=="number"&&(isNaN(l)?QL||(QL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",i)):isFinite(l)||XL||(XL=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",i)))),l==null||typeof l=="boolean"||l===""?d?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":d?a.setProperty(i,l):typeof l!="number"||l===0||WL.has(i)?i==="float"?a.cssFloat=l:(et(l,i),a[i]=(""+l).trim()):a[i]=l+"px"}function HR(a,i,l){if(i!=null&&typeof i!="object")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(i&&Object.freeze(i),a=a.style,l!=null){if(i){var d={};if(l){for(var h in l)if(l.hasOwnProperty(h)&&!i.hasOwnProperty(h))for(var v=Lw[h]||[h],E=0;E<v.length;E++)d[v[E]]=h}for(var O in i)if(i.hasOwnProperty(O)&&(!l||l[O]!==i[O]))for(h=Lw[O]||[O],v=0;v<h.length;v++)d[h[v]]=O;O={};for(var M in i)for(h=Lw[M]||[M],v=0;v<h.length;v++)O[h[v]]=M;M={};for(var k in d)if(h=d[k],(v=O[k])&&h!==v&&(E=h+","+v,!M[E])){M[E]=!0,E=console;var oe=i[h];E.error.call(E,"%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.",oe==null||typeof oe=="boolean"||oe===""?"Removing":"Updating",h,v)}}for(var se in l)!l.hasOwnProperty(se)||i!=null&&i.hasOwnProperty(se)||(se.indexOf("--")===0?a.setProperty(se,""):se==="float"?a.cssFloat="":a[se]="");for(var X in i)k=i[X],i.hasOwnProperty(X)&&l[X]!==k&&qR(a,X,k)}else for(d in i)i.hasOwnProperty(d)&&qR(a,d,i[d])}function Nf(a){if(a.indexOf("-")===-1)return!1;switch(a){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 FR(a){return nQ.get(a)||a}function YK(a,i){if(Fa.call(Ec,i)&&Ec[i])return!0;if(aQ.test(i)){if(a="aria-"+i.slice(4).toLowerCase(),a=ZL.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",i),Ec[i]=!0;if(i!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",i,a),Ec[i]=!0}if(rQ.test(i)){if(a=i.toLowerCase(),a=ZL.hasOwnProperty(a)?a:null,a==null)return Ec[i]=!0,!1;i!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",i,a),Ec[i]=!0)}return!0}function QK(a,i){var l=[],d;for(d in i)YK(a,d)||l.push(d);i=l.map(function(h){return"`"+h+"`"}).join(", "),l.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",i,a):1<l.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",i,a)}function XK(a,i,l,d){if(Fa.call(br,i)&&br[i])return!0;var h=i.toLowerCase();if(h==="onfocusin"||h==="onfocusout")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."),br[i]=!0;if(typeof l=="function"&&(a==="form"&&i==="action"||a==="input"&&i==="formAction"||a==="button"&&i==="formAction"))return!0;if(d!=null){if(a=d.possibleRegistrationNames,d.registrationNameDependencies.hasOwnProperty(i))return!0;if(d=a.hasOwnProperty(h)?a[h]:null,d!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",i,d),br[i]=!0;if(ek.test(i))return console.error("Unknown event handler property `%s`. It will be ignored.",i),br[i]=!0}else if(ek.test(i))return iQ.test(i)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",i),br[i]=!0;if(oQ.test(i)||sQ.test(i))return!0;if(h==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),br[i]=!0;if(h==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),br[i]=!0;if(h==="is"&&l!==null&&l!==void 0&&typeof l!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),br[i]=!0;if(typeof l=="number"&&isNaN(l))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",i),br[i]=!0;if(ev.hasOwnProperty(h)){if(h=ev[h],h!==i)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",i,h),br[i]=!0}else if(i!==h)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.",i,h),br[i]=!0;switch(i){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof l){case"boolean":switch(i){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 h=i.toLowerCase().slice(0,5),h==="data-"||h==="aria-"?!0:(l?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()}.',l,i,i,l,i):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.',l,i,i,l,i,i,i),br[i]=!0)}case"function":case"symbol":return br[i]=!0,!1;case"string":if(l==="false"||l==="true"){switch(i){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}?",l,i,l==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',i,l),br[i]=!0}}return!0}function WK(a,i,l){var d=[],h;for(h in i)XK(a,h,i[h],l)||d.push(h);i=d.map(function(v){return"`"+v+"`"}).join(", "),d.length===1?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 ",i,a):1<d.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 ",i,a)}function Ef(a){return lQ.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function ho(){}function xx(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function KR(a){var i=Te(a);if(i&&(a=i.stateNode)){var l=a[yr]||null;e:switch(a=i.stateNode,i.type){case"input":if(mx(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=a;l.parentNode;)l=l.parentNode;for($e(i,"name"),l=l.querySelectorAll('input[name="'+ha(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var d=l[i];if(d!==a&&d.form===a.form){var h=d[yr]||null;if(!h)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");mx(d,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<l.length;i++)d=l[i],d.form===a.form&&TR(d)}break e;case"textarea":MR(a,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&Ju(a,!!l.multiple,i,!1)}}}function GR(a,i,l){if(Iw)return a(i,l);Iw=!0;try{var d=a(i);return d}finally{if(Iw=!1,(Sc!==null||Ac!==null)&&(dc(),Sc&&(i=Sc,a=Ac,Ac=Sc=null,KR(i),a)))for(i=0;i<a.length;i++)KR(a[i])}}function Sf(a,i){var l=a.stateNode;if(l===null)return null;var d=l[yr]||null;if(d===null)return null;l=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(a=a.type,d=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!d;break e;default:a=!1}if(a)return null;if(l&&typeof l!="function")throw Error("Expected `"+i+"` listener to be a function, instead got a value of `"+typeof l+"` type.");return l}function YR(){if(tv)return tv;var a,i=Vw,l=i.length,d,h="value"in Cs?Cs.value:Cs.textContent,v=h.length;for(a=0;a<l&&i[a]===h[a];a++);var E=l-a;for(d=1;d<=E&&i[l-d]===h[v-d];d++);return tv=h.slice(a,1<d?1-d:void 0)}function Uh(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function qh(){return!0}function QR(){return!1}function kr(a){function i(l,d,h,v,E){this._reactName=l,this._targetInst=h,this.type=d,this.nativeEvent=v,this.target=E,this.currentTarget=null;for(var O in a)a.hasOwnProperty(O)&&(l=a[O],this[O]=l?l(v):v[O]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?qh:QR,this.isPropagationStopped=QR,this}return dt(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=qh)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=qh)},persist:function(){},isPersistent:qh}),i}function ZK(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=wQ[a])?!!i[a]:!1}function wx(){return ZK}function XR(a,i){switch(a){case"keyup":return PQ.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==ak;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WR(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}function JK(a,i){switch(a){case"compositionend":return WR(i);case"keypress":return i.which!==ok?null:(lk=!0,sk);case"textInput":return a=i.data,a===sk&&lk?null:a;default:return null}}function eG(a,i){if(Oc)return a==="compositionend"||!qw&&XR(a,i)?(a=YR(),tv=Vw=Cs=null,Oc=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return ik&&i.locale!=="ko"?null:i.data;default:return null}}function ZR(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!LQ[a.type]:i==="textarea"}function tG(a){if(!Ii)return!1;a="on"+a;var i=a in document;return i||(i=document.createElement("div"),i.setAttribute(a,"return;"),i=typeof i[a]=="function"),i}function JR(a,i,l,d){Sc?Ac?Ac.push(d):Ac=[d]:Sc=d,i=Lg(i,"onChange"),0<i.length&&(l=new nv("onChange","change",null,l,d),a.push({event:l,listeners:i}))}function nG(a){LM(a,0)}function Hh(a){var i=Me(a);if(TR(i))return a}function ej(a,i){if(a==="change")return i}function tj(){lm&&(lm.detachEvent("onpropertychange",nj),um=lm=null)}function nj(a){if(a.propertyName==="value"&&Hh(um)){var i=[];JR(i,um,a,xx(a)),GR(nG,i)}}function rG(a,i,l){a==="focusin"?(tj(),lm=i,um=l,lm.attachEvent("onpropertychange",nj)):a==="focusout"&&tj()}function aG(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Hh(um)}function iG(a,i){if(a==="click")return Hh(i)}function oG(a,i){if(a==="input"||a==="change")return Hh(i)}function sG(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}function Af(a,i){if(xr(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var l=Object.keys(a),d=Object.keys(i);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var h=l[d];if(!Fa.call(i,h)||!xr(a[h],i[h]))return!1}return!0}function rj(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function aj(a,i){var l=rj(a);a=0;for(var d;l;){if(l.nodeType===3){if(d=a+l.textContent.length,a<=i&&d>=i)return{node:l,offset:i-a};a=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=rj(l)}}function ij(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?ij(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function oj(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=Vh(a.document);i instanceof a.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)a=i.contentWindow;else break;i=Vh(a.document)}return i}function Nx(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}function sj(a,i,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fw||Tc==null||Tc!==Vh(d)||(d=Tc,"selectionStart"in d&&Nx(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),cm&&Af(cm,d)||(cm=d,d=Lg(Hw,"onSelect"),0<d.length&&(i=new nv("onSelect","select",null,i,l),a.push({event:i,listeners:d}),i.target=Tc)))}function xl(a,i){var l={};return l[a.toLowerCase()]=i.toLowerCase(),l["Webkit"+a]="webkit"+i,l["Moz"+a]="moz"+i,l}function wl(a){if(Kw[a])return Kw[a];if(!Cc[a])return a;var i=Cc[a],l;for(l in i)if(i.hasOwnProperty(l)&&l in ck)return Kw[a]=i[l];return a}function za(a,i){hk.set(a,i),He(i,[a])}function lG(a){for(var i=av,l=0;l<a.length;l++){var d=a[l];if(typeof d=="object"&&d!==null)if(jn(d)&&d.length===2&&typeof d[0]=="string"){if(i!==av&&i!==Ww)return Qw;i=Ww}else return Qw;else{if(typeof d=="function"||typeof d=="string"&&50<d.length||i!==av&&i!==Xw)return Qw;i=Xw}}return i}function Ex(a,i,l,d){for(var h in a)Fa.call(a,h)&&h[0]!=="_"&&hi(h,a[h],i,l,d)}function hi(a,i,l,d,h){switch(typeof i){case"object":if(i===null){i="null";break}else{if(i.$$typeof===Ri){var v=L(i.type)||"…",E=i.key;i=i.props;var O=Object.keys(i),M=O.length;if(E==null&&M===0){i="<"+v+" />";break}if(3>d||M===1&&O[0]==="children"&&E==null){i="<"+v+" … />";break}l.push([h+" ".repeat(d)+a,"<"+v]),E!==null&&hi("key",E,l,d+1,h),a=!1;for(var k in i)k==="children"?i.children!=null&&(!jn(i.children)||0<i.children.length)&&(a=!0):Fa.call(i,k)&&k[0]!=="_"&&hi(k,i[k],l,d+1,h);l.push(["",a?">…</"+v+">":"/>"]);return}if(v=Object.prototype.toString.call(i),v=v.slice(8,v.length-1),v==="Array"){if(k=lG(i),k===Xw||k===av){i=JSON.stringify(i);break}else if(k===Ww){for(l.push([h+" ".repeat(d)+a,""]),a=0;a<i.length;a++)v=i[a],hi(v[0],v[1],l,d+1,h);return}}if(v==="Promise"){if(i.status==="fulfilled"){if(v=l.length,hi(a,i.value,l,d,h),l.length>v){l=l[v],l[1]="Promise<"+(l[1]||"Object")+">";return}}else if(i.status==="rejected"&&(v=l.length,hi(a,i.reason,l,d,h),l.length>v)){l=l[v],l[1]="Rejected Promise<"+l[1]+">";return}l.push([" ".repeat(d)+a,"Promise"]);return}v==="Object"&&(k=Object.getPrototypeOf(i))&&typeof k.constructor=="function"&&(v=k.constructor.name),l.push([h+" ".repeat(d)+a,v==="Object"?3>d?"":"…":v]),3>d&&Ex(i,l,d+1,h);return}case"function":i=i.name===""?"() => {}":i.name+"() {}";break;case"string":i=i===UQ?"…":JSON.stringify(i);break;case"undefined":i="undefined";break;case"boolean":i=i?"true":"false";break;default:i=String(i)}l.push([h+" ".repeat(d)+a,i])}function lj(a,i,l,d){var h=!0;for(E in a)E in i||(l.push([iv+" ".repeat(d)+E,"…"]),h=!1);for(var v in i)if(v in a){var E=a[v],O=i[v];if(E!==O){if(d===0&&v==="children")h=" ".repeat(d)+v,l.push([iv+h,"…"],[ov+h,"…"]);else{if(!(3<=d)){if(typeof E=="object"&&typeof O=="object"&&E!==null&&O!==null&&E.$$typeof===O.$$typeof)if(O.$$typeof===Ri){if(E.type===O.type&&E.key===O.key){E=L(O.type)||"…",h=" ".repeat(d)+v,E="<"+E+" … />",l.push([iv+h,E],[ov+h,E]),h=!1;continue}}else{var M=Object.prototype.toString.call(E),k=Object.prototype.toString.call(O);if(M===k&&(k==="[object Object]"||k==="[object Array]")){M=[yk+" ".repeat(d)+v,k==="[object Array]"?"Array":""],l.push(M),k=l.length,lj(E,O,l,d+1)?k===l.length&&(M[1]="Referentially unequal but deeply equal objects. Consider memoization."):h=!1;continue}}else if(typeof E=="function"&&typeof O=="function"&&E.name===O.name&&E.length===O.length&&(M=Function.prototype.toString.call(E),k=Function.prototype.toString.call(O),M===k)){E=O.name===""?"() => {}":O.name+"() {}",l.push([yk+" ".repeat(d)+v,E+" Referentially unequal function closure. Consider memoization."]);continue}}hi(v,E,l,d,iv),hi(v,O,l,d,ov)}h=!1}}else l.push([ov+" ".repeat(d)+v,"…"]),h=!1;return h}function Ua(a){yt=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function gi(a,i,l,d){Kt&&(Ds.start=i,Ds.end=l,Ao.color="warning",Ao.tooltipText=d,Ao.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,d,Ds)):performance.measure(d,Ds))}function Fh(a,i,l){gi(a,i,l,"Reconnect")}function Kh(a,i,l,d,h){var v=B(a);if(v!==null&&Kt){var E=a.alternate,O=a.actualDuration;if(E===null||E.child!==a.child)for(var M=a.child;M!==null;M=M.sibling)O-=M.actualDuration;d=.5>O?d?"tertiary-light":"primary-light":10>O?d?"tertiary":"primary":100>O?d?"tertiary-dark":"primary-dark":"error";var k=a.memoizedProps;O=a._debugTask,k!==null&&E!==null&&E.memoizedProps!==k?(M=[qQ],k=lj(E.memoizedProps,k,M,0),1<M.length&&(k&&!_s&&(E.lanes&h)===0&&100<a.actualDuration?(_s=!0,M[0]=HQ,Ao.color="warning",Ao.tooltipText=bk):(Ao.color=d,Ao.tooltipText=v),Ao.properties=M,Ds.start=i,Ds.end=l,O!=null?O.run(performance.measure.bind(performance,""+v,Ds)):performance.measure(""+v,Ds))):O!=null?O.run(console.timeStamp.bind(console,v,i,l,ya,void 0,d)):console.timeStamp(v,i,l,ya,void 0,d)}}function Sx(a,i,l,d){if(Kt){var h=B(a);if(h!==null){for(var v=null,E=[],O=0;O<d.length;O++){var M=d[O];v==null&&M.source!==null&&(v=M.source._debugTask),M=M.value,E.push(["Error",typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M)])}a.key!==null&&hi("key",a.key,E,0,""),a.memoizedProps!==null&&Ex(a.memoizedProps,E,0,""),v==null&&(v=a._debugTask),a={start:i,end:l,detail:{devtools:{color:"error",track:ya,tooltipText:a.tag===13?"Hydration failed":"Error boundary caught an error",properties:E}}},v?v.run(performance.measure.bind(performance,""+h,a)):performance.measure(""+h,a)}}}function vi(a,i,l,d,h){if(h!==null){if(Kt){var v=B(a);if(v!==null){d=[];for(var E=0;E<h.length;E++){var O=h[E].value;d.push(["Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}a.key!==null&&hi("key",a.key,d,0,""),a.memoizedProps!==null&&Ex(a.memoizedProps,d,0,""),i={start:i,end:l,detail:{devtools:{color:"error",track:ya,tooltipText:"A lifecycle or effect errored",properties:d}}},(a=a._debugTask)?a.run(performance.measure.bind(performance,""+v,i)):performance.measure(""+v,i)}}}else v=B(a),v!==null&&Kt&&(h=1>d?"secondary-light":100>d?"secondary":500>d?"secondary-dark":"error",(a=a._debugTask)?a.run(console.timeStamp.bind(console,v,i,l,ya,void 0,h)):console.timeStamp(v,i,l,ya,void 0,h))}function uG(a,i,l,d){if(Kt&&!(i<=a)){var h=(l&738197653)===l?"tertiary-dark":"primary-dark";l=(l&536870912)===l?"Prepared":(l&201326741)===l?"Hydrated":"Render",d?d.run(console.timeStamp.bind(console,l,a,i,yt,gt,h)):console.timeStamp(l,a,i,yt,gt,h)}}function uj(a,i,l,d){!Kt||i<=a||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Prewarm",a,i,yt,gt,l)):console.timeStamp("Prewarm",a,i,yt,gt,l))}function cj(a,i,l,d){!Kt||i<=a||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Suspended",a,i,yt,gt,l)):console.timeStamp("Suspended",a,i,yt,gt,l))}function cG(a,i,l,d,h,v){if(Kt&&!(i<=a)){l=[];for(var E=0;E<d.length;E++){var O=d[E].value;l.push(["Recoverable Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}a={start:a,end:i,detail:{devtools:{color:"primary-dark",track:yt,trackGroup:gt,tooltipText:h?"Hydration Failed":"Recovered after Error",properties:l}}},v?v.run(performance.measure.bind(performance,"Recovered",a)):performance.measure("Recovered",a)}}function Ax(a,i,l,d){!Kt||i<=a||(d?d.run(console.timeStamp.bind(console,"Errored",a,i,yt,gt,"error")):console.timeStamp("Errored",a,i,yt,gt,"error"))}function dG(a,i,l,d){!Kt||i<=a||(d?d.run(console.timeStamp.bind(console,l,a,i,yt,gt,"secondary-light")):console.timeStamp(l,a,i,yt,gt,"secondary-light"))}function dj(a,i,l,d,h){if(Kt&&!(i<=a)){for(var v=[],E=0;E<l.length;E++){var O=l[E].value;v.push(["Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}a={start:a,end:i,detail:{devtools:{color:"error",track:yt,trackGroup:gt,tooltipText:d?"Remaining Effects Errored":"Commit Errored",properties:v}}},h?h.run(performance.measure.bind(performance,"Errored",a)):performance.measure("Errored",a)}}function Ox(a,i,l){!Kt||i<=a||console.timeStamp("Animating",a,i,yt,gt,"secondary-dark")}function Gh(){for(var a=_c,i=Zw=_c=0;i<a;){var l=ba[i];ba[i++]=null;var d=ba[i];ba[i++]=null;var h=ba[i];ba[i++]=null;var v=ba[i];if(ba[i++]=null,d!==null&&h!==null){var E=d.pending;E===null?h.next=h:(h.next=E.next,E.next=h),d.pending=h}v!==0&&fj(l,h,v)}}function Yh(a,i,l,d){ba[_c++]=a,ba[_c++]=i,ba[_c++]=l,ba[_c++]=d,Zw|=d,a.lanes|=d,a=a.alternate,a!==null&&(a.lanes|=d)}function Tx(a,i,l,d){return Yh(a,i,l,d),Qh(a)}function or(a,i){return Yh(a,null,null,i),Qh(a)}function fj(a,i,l){a.lanes|=l;var d=a.alternate;d!==null&&(d.lanes|=l);for(var h=!1,v=a.return;v!==null;)v.childLanes|=l,d=v.alternate,d!==null&&(d.childLanes|=l),v.tag===22&&(a=v.stateNode,a===null||a._visibility&dm||(h=!0)),a=v,v=v.return;return a.tag===3?(v=a.stateNode,h&&i!==null&&(h=31-vr(l),a=v.hiddenUpdates,d=a[h],d===null?a[h]=[i]:d.push(i),i.lane=l|536870912),v):null}function Qh(a){if($m>oX)throw Wl=$m=0,Vm=RN=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.");Wl>sX&&(Wl=0,Vm=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.")),a.alternate===null&&(a.flags&4098)!==0&&CM(a);for(var i=a,l=i.return;l!==null;)i.alternate===null&&(i.flags&4098)!==0&&CM(a),i=l,l=i.return;return i.tag===3?i.stateNode:null}function Nl(a){if(xa===null)return a;var i=xa(a);return i===void 0?a:i.current}function Cx(a){if(xa===null)return a;var i=xa(a);return i===void 0?a!=null&&typeof a.render=="function"&&(i=Nl(a.render),a.render!==i)?(i={$$typeof:Jf,render:i},a.displayName!==void 0&&(i.displayName=a.displayName),i):a:i.current}function mj(a,i){if(xa===null)return!1;var l=a.elementType;i=i.type;var d=!1,h=typeof i=="object"&&i!==null?i.$$typeof:null;switch(a.tag){case 1:typeof i=="function"&&(d=!0);break;case 0:(typeof i=="function"||h===ta)&&(d=!0);break;case 11:(h===Jf||h===ta)&&(d=!0);break;case 14:case 15:(h===Kg||h===ta)&&(d=!0);break;default:return!1}return!!(d&&(a=xa(l),a!==void 0&&a===xa(i)))}function pj(a){xa!==null&&typeof WeakSet=="function"&&(Dc===null&&(Dc=new WeakSet),Dc.add(a))}function hj(a,i,l){do{var d=a,h=d.alternate,v=d.child,E=d.sibling,O=d.tag;d=d.type;var M=null;switch(O){case 0:case 15:case 1:M=d;break;case 11:M=d.render}if(xa===null)throw Error("Expected resolveFamily to be set during hot reload.");var k=!1;if(d=!1,M!==null&&(M=xa(M),M!==void 0&&(l.has(M)?d=!0:i.has(M)&&(O===1?d=!0:k=!0))),Dc!==null&&(Dc.has(a)||h!==null&&Dc.has(h))&&(d=!0),d&&(a._debugNeedsRemount=!0),(d||k)&&(h=or(a,2),h!==null&&ln(h,a,2)),v===null||d||hj(v,i,l),E===null)break;a=E}while(!0)}function fG(a,i,l,d){this.tag=a,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,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,xk||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function _x(a){return a=a.prototype,!(!a||!a.isReactComponent)}function go(a,i){var l=a.alternate;switch(l===null?(l=y(a.tag,i,a.key,a.mode),l.elementType=a.elementType,l.type=a.type,l.stateNode=a.stateNode,l._debugOwner=a._debugOwner,l._debugStack=a._debugStack,l._debugTask=a._debugTask,l._debugHookTypes=a._debugHookTypes,l.alternate=a,a.alternate=l):(l.pendingProps=i,l.type=a.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=a.flags&65011712,l.childLanes=a.childLanes,l.lanes=a.lanes,l.child=a.child,l.memoizedProps=a.memoizedProps,l.memoizedState=a.memoizedState,l.updateQueue=a.updateQueue,i=a.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},l.sibling=a.sibling,l.index=a.index,l.ref=a.ref,l.refCleanup=a.refCleanup,l.selfBaseDuration=a.selfBaseDuration,l.treeBaseDuration=a.treeBaseDuration,l._debugInfo=a._debugInfo,l._debugNeedsRemount=a._debugNeedsRemount,l.tag){case 0:case 15:l.type=Nl(a.type);break;case 1:l.type=Nl(a.type);break;case 11:l.type=Cx(a.type)}return l}function gj(a,i){a.flags&=65011714;var l=a.alternate;return l===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,i=l.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},a.selfBaseDuration=l.selfBaseDuration,a.treeBaseDuration=l.treeBaseDuration),a}function Dx(a,i,l,d,h,v){var E=0,O=a;if(typeof a=="function")_x(a)&&(E=1),O=Nl(O);else if(typeof a=="string")E=G(),E=wY(a,l,E)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case Ew:return i=y(31,l,i,h),i.elementType=Ew,i.lanes=v,i;case yc:return El(l.children,h,v,i);case Fg:E=8,h|=lr,h|=Ka;break;case bw:return a=l,d=h,typeof a.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof a.id),i=y(12,a,i,d|at),i.elementType=bw,i.lanes=v,i.stateNode={effectDuration:0,passiveEffectDuration:0},i;case ww:return i=y(13,l,i,h),i.elementType=ww,i.lanes=v,i;case Nw:return i=y(19,l,i,h),i.elementType=Nw,i.lanes=v,i;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ji:E=10;break e;case xw:E=9;break e;case Jf:E=11,O=Cx(O);break e;case Kg:E=14;break e;case ta:E=16,O=null;break e}O="",(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),a===null?l="null":jn(a)?l="array":a!==void 0&&a.$$typeof===Ri?(l="<"+(L(a.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):l=typeof a,(E=d?V(d):null)&&(O+=`
|
||
|
||
Check the render method of \``+E+"`."),E=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+O)),O=null}return i=y(E,l,i,h),i.elementType=a,i.type=O,i.lanes=v,i._debugOwner=d,i}function Xh(a,i,l){return i=Dx(a.type,a.key,a.props,a._owner,i,l),i._debugOwner=a._owner,i._debugStack=a._debugStack,i._debugTask=a._debugTask,i}function El(a,i,l,d){return a=y(7,a,d,i),a.lanes=l,a}function Rx(a,i,l){return a=y(6,a,null,i),a.lanes=l,a}function vj(a){var i=y(18,null,null,Ge);return i.stateNode=a,i}function jx(a,i,l){return i=y(4,a.children!==null?a.children:[],a.key,i),i.lanes=l,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}function Qr(a,i){if(typeof a=="object"&&a!==null){var l=Jw.get(a);return l!==void 0?l:(i={value:a,source:i,stack:ue(i)},Jw.set(a,i),i)}return{value:a,source:i,stack:ue(i)}}function vo(a,i){fs(),Rc[jc++]=fm,Rc[jc++]=sv,sv=a,fm=i}function yj(a,i,l){fs(),wa[Na++]=To,wa[Na++]=Co,wa[Na++]=kl,kl=a;var d=To;a=Co;var h=32-vr(d)-1;d&=~(1<<h),l+=1;var v=32-vr(i)+h;if(30<v){var E=h-h%5;v=(d&(1<<E)-1).toString(32),d>>=E,h-=E,To=1<<32-vr(i)+h|l<<h|d,Co=v+a}else To=1<<v|l<<h|d,Co=a}function Px(a){fs(),a.return!==null&&(vo(a,1),yj(a,1,0))}function Mx(a){for(;a===sv;)sv=Rc[--jc],Rc[jc]=null,fm=Rc[--jc],Rc[jc]=null;for(;a===kl;)kl=wa[--Na],wa[Na]=null,Co=wa[--Na],wa[Na]=null,To=wa[--Na],wa[Na]=null}function bj(){return fs(),kl!==null?{id:To,overflow:Co}:null}function xj(a,i){fs(),wa[Na++]=To,wa[Na++]=Co,wa[Na++]=kl,To=i.id,Co=i.overflow,kl=a}function fs(){mt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Sl(a,i){if(a.return===null){if(ra===null)ra={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i};else{if(ra.fiber!==a)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");ra.distanceFromLeaf>i&&(ra.distanceFromLeaf=i)}return ra}var l=Sl(a.return,i+1).children;return 0<l.length&&l[l.length-1].fiber===a?(l=l[l.length-1],l.distanceFromLeaf>i&&(l.distanceFromLeaf=i),l):(i={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i},l.push(i),i)}function wj(){mt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Wh(a,i){$i||(a=Sl(a,0),a.serverProps=null,i!==null&&(i=JM(i),a.serverTail.push(i)))}function ms(a){var i=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l="",d=ra;throw d!==null&&(ra=null,l=yx(d)),Of(Qr(Error("Hydration failed because the server rendered "+(i?"text":"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:
|
||
|
||
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
||
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
||
- Date formatting in a user's locale which doesn't match the server.
|
||
- External changing data without sending a snapshot of it along with the HTML.
|
||
- Invalid HTML tag nesting.
|
||
|
||
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
||
|
||
https://react.dev/link/hydration-mismatch`+l),a)),eN}function Nj(a){var i=a.stateNode,l=a.type,d=a.memoizedProps;switch(i[tr]=a,i[yr]=d,ew(l,d),l){case"dialog":ht("cancel",i),ht("close",i);break;case"iframe":case"object":case"embed":ht("load",i);break;case"video":case"audio":for(l=0;l<Bm.length;l++)ht(Bm[l],i);break;case"source":ht("error",i);break;case"img":case"image":case"link":ht("error",i),ht("load",i);break;case"details":ht("toggle",i);break;case"input":It("input",d),ht("invalid",i),CR(i,d),_R(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"option":DR(i,d);break;case"select":It("select",d),ht("invalid",i),jR(i,d);break;case"textarea":It("textarea",d),ht("invalid",i),PR(i,d),LR(i,d.value,d.defaultValue,d.children)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||d.suppressHydrationWarning===!0||VM(i.textContent,l)?(d.popover!=null&&(ht("beforetoggle",i),ht("toggle",i)),d.onScroll!=null&&ht("scroll",i),d.onScrollEnd!=null&&ht("scrollend",i),d.onClick!=null&&(i.onclick=ho),i=!0):i=!1,i||ms(a,!0)}function Ej(a){for(nr=a.return;nr;)switch(nr.tag){case 5:case 31:case 13:Ea=!1;return;case 27:case 3:Ea=!0;return;default:nr=nr.return}}function nc(a){if(a!==nr)return!1;if(!mt)return Ej(a),mt=!0,!1;var i=a.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=a.type,l=!(l!=="form"&&l!=="button")||iw(a.type,a.memoizedProps)),l=!l),l&&Gt){for(l=Gt;l;){var d=Sl(a,0),h=JM(l);d.serverTail.push(h),l=h.type==="Suspense"?uw(l):ea(l.nextSibling)}ms(a)}if(Ej(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Gt=uw(a)}else if(i===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Gt=uw(a)}else i===27?(i=Gt,Es(a.type)?(a=qN,qN=null,Gt=a):Gt=i):Gt=nr?ea(a.stateNode.nextSibling):null;return!0}function Al(){Gt=nr=null,$i=mt=!1}function Lx(){var a=js;return a!==null&&(Sr===null?Sr=a:Sr.push.apply(Sr,a),js=null),a}function Of(a){js===null?js=[a]:js.push(a)}function kx(){var a=ra;if(a!==null){ra=null;for(var i=yx(a);0<a.children.length;)a=a.children[0];de(a.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:
|
||
|
||
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
||
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
||
- Date formatting in a user's locale which doesn't match the server.
|
||
- External changing data without sending a snapshot of it along with the HTML.
|
||
- Invalid HTML tag nesting.
|
||
|
||
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
||
|
||
%s%s`,"https://react.dev/link/hydration-mismatch",i)})}}function Zh(){Pc=lv=null,Mc=!1}function ps(a,i,l){F(tN,i._currentValue,a),i._currentValue=l,F(nN,i._currentRenderer,a),i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==Nk&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=Nk}function yo(a,i){a._currentValue=tN.current;var l=nN.current;q(nN,i),a._currentRenderer=l,q(tN,i)}function Ix(a,i,l){for(;a!==null;){var d=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),a===l)break;a=a.return}a!==l&&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 $x(a,i,l,d){var h=a.child;for(h!==null&&(h.return=a);h!==null;){var v=h.dependencies;if(v!==null){var E=h.child;v=v.firstContext;e:for(;v!==null;){var O=v;v=h;for(var M=0;M<i.length;M++)if(O.context===i[M]){v.lanes|=l,O=v.alternate,O!==null&&(O.lanes|=l),Ix(v.return,l,a),d||(E=null);break e}v=O.next}}else if(h.tag===18){if(E=h.return,E===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");E.lanes|=l,v=E.alternate,v!==null&&(v.lanes|=l),Ix(E,l,a),E=null}else E=h.child;if(E!==null)E.return=h;else for(E=h;E!==null;){if(E===a){E=null;break}if(h=E.sibling,h!==null){h.return=E.return,E=h;break}E=E.return}h=E}}function rc(a,i,l,d){a=null;for(var h=i,v=!1;h!==null;){if(!v){if((h.flags&524288)!==0)v=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var E=h.alternate;if(E===null)throw Error("Should have a current fiber. This is a bug in React.");if(E=E.memoizedProps,E!==null){var O=h.type;xr(h.pendingProps.value,E.value)||(a!==null?a.push(O):a=[O])}}else if(h===Gg.current){if(E=h.alternate,E===null)throw Error("Should have a current fiber. This is a bug in React.");E.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(a!==null?a.push(Fm):a=[Fm])}h=h.return}a!==null&&$x(i,a,l,d),i.flags|=262144}function Jh(a){for(a=a.firstContext;a!==null;){if(!xr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ol(a){lv=a,Pc=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function en(a){return Mc&&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()."),Sj(lv,a)}function eg(a,i){return lv===null&&Ol(a),Sj(a,i)}function Sj(a,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},Pc===null){if(a===null)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().");Pc=i,a.dependencies={lanes:0,firstContext:i,_debugThenableState:null},a.flags|=524288}else Pc=Pc.next=i;return l}function Vx(){return{controller:new GQ,data:new Map,refCount:0}}function Tl(a){a.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),a.refCount++}function Tf(a){a.refCount--,0>a.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),a.refCount===0&&YQ(QQ,function(){a.controller.abort()})}function yi(a,i,l){(a&127)!==0?0>Vi&&(Vi=En(),pm=uv(i),rN=i,l!=null&&(aN=B(l)),(bt&(Mn|oa))!==Gn&&(un=!0,Ms=mm),a=Yf(),i=Gf(),a!==Lc||i!==hm?Lc=-1.1:i!==null&&(Ms=mm),Vl=a,hm=i):(a&4194048)!==0&&0>Sa&&(Sa=En(),gm=uv(i),Ek=i,l!=null&&(Sk=B(l)),0>jo)&&(a=Yf(),i=Gf(),(a!==ks||i!==Bl)&&(ks=-1.1),Ls=a,Bl=i)}function mG(a){if(0>Vi){Vi=En(),pm=a._debugTask!=null?a._debugTask:null,(bt&(Mn|oa))!==Gn&&(Ms=mm);var i=Yf(),l=Gf();i!==Lc||l!==hm?Lc=-1.1:l!==null&&(Ms=mm),Vl=i,hm=l}0>Sa&&(Sa=En(),gm=a._debugTask!=null?a._debugTask:null,0>jo)&&(a=Yf(),i=Gf(),(a!==ks||i!==Bl)&&(ks=-1.1),Ls=a,Bl=i)}function bo(){var a=Il;return Il=0,a}function tg(a){var i=Il;return Il=a,i}function Cf(a){var i=Il;return Il+=a,i}function ng(){Ke=qe=-1.1}function Xr(){var a=qe;return qe=-1.1,a}function Wr(a){0<=a&&(qe=a)}function bi(){var a=an;return an=-0,a}function xi(a){0<=a&&(an=a)}function wi(){var a=tn;return tn=null,a}function Ni(){var a=un;return un=!1,a}function Bx(a){wr=En(),0>a.actualStartTime&&(a.actualStartTime=wr)}function zx(a){if(0<=wr){var i=En()-wr;a.actualDuration+=i,a.selfBaseDuration=i,wr=-1}}function Aj(a){if(0<=wr){var i=En()-wr;a.actualDuration+=i,wr=-1}}function Ei(){if(0<=wr){var a=En(),i=a-wr;wr=-1,Il+=i,an+=i,Ke=a}}function Oj(a){tn===null&&(tn=[]),tn.push(a),Do===null&&(Do=[]),Do.push(a)}function Si(){wr=En(),0>qe&&(qe=wr)}function _f(a){for(var i=a.child;i;)a.actualDuration+=i.actualDuration,i=i.sibling}function pG(a,i){if(ym===null){var l=ym=[];oN=0,zl=X1(),kc={status:"pending",value:void 0,then:function(d){l.push(d)}}}return oN++,i.then(Tj,Tj),i}function Tj(){if(--oN===0&&(-1<Sa||(jo=-1.1),ym!==null)){kc!==null&&(kc.status="fulfilled");var a=ym;ym=null,zl=0,kc=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function hG(a,i){var l=[],d={status:"pending",value:null,reason:null,then:function(h){l.push(h)}};return a.then(function(){d.status="fulfilled",d.value=i;for(var h=0;h<l.length;h++)(0,l[h])(i)},function(h){for(d.status="rejected",d.reason=h,h=0;h<l.length;h++)(0,l[h])(void 0)}),d}function Ux(){var a=Ul.current;return a!==null?a:zt.pooledCache}function rg(a,i){i===null?F(Ul,Ul.current,a):F(Ul,i.pool,a)}function Cj(){var a=Ux();return a===null?null:{parent:Nn._currentValue,pool:a}}function _j(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Dj(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Rj(a,i,l){he.actQueue!==null&&(he.didUsePromise=!0);var d=a.thenables;if(l=d[l],l===void 0?d.push(i):l!==i&&(a.didWarnAboutUncachedPromise||(a.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.")),i.then(ho,ho),i=l),i._debugInfo===void 0){a=performance.now(),d=i.displayName;var h={name:typeof d=="string"?d:"Promise",start:a,end:a,value:i};i._debugInfo=[{awaited:h}],i.status!=="fulfilled"&&i.status!=="rejected"&&(a=function(){h.end=performance.now()},i.then(a,a))}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Pj(a),a;default:if(typeof i.status=="string")i.then(ho,ho);else{if(a=zt,a!==null&&100<a.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.");a=i,a.status="pending",a.then(function(v){if(i.status==="pending"){var E=i;E.status="fulfilled",E.value=v}},function(v){if(i.status==="pending"){var E=i;E.status="rejected",E.reason=v}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Pj(a),a}throw Hl=i,Am=!0,Ic}}function hs(a){try{return eX(a)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Hl=i,Am=!0,Ic):i}}function jj(){if(Hl===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Hl;return Hl=null,Am=!1,a}function Pj(a){if(a===Ic||a===vv)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 Zn(a){var i=it;return a!=null&&(it=i===null?a:i.concat(a)),i}function qx(){var a=it;if(a!=null){for(var i=a.length-1;0<=i;i--)if(a[i].name!=null){var l=a[i].debugTask;if(l!=null)return l}}return null}function ag(a,i,l){for(var d=Object.keys(a.props),h=0;h<d.length;h++){var v=d[h];if(v!=="children"&&v!=="key"){i===null&&(i=Xh(a,l.mode,0),i._debugInfo=it,i.return=l),de(i,function(E){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E)},v);break}}}function ig(a){var i=Om;return Om+=1,$c===null&&($c=_j()),Rj($c,a,i)}function Df(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function Mj(a,i){throw i.$$typeof===jY?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
||
- Multiple copies of the "react" package is used.
|
||
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
||
- A compiler tries to "inline" JSX instead of using the runtime.`):(a=Object.prototype.toString.call(i),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead."))}function og(a,i){var l=qx();l!==null?l.run(Mj.bind(null,a,i)):Mj(a,i)}function Lj(a,i){var l=B(a)||"Component";Hk[l]||(Hk[l]=!0,i=i.displayName||i.name||"Component",a.tag===3?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.
|
||
root.render(%s)`,i,i,i):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.
|
||
<%s>{%s}</%s>`,i,i,l,i,l))}function sg(a,i){var l=qx();l!==null?l.run(Lj.bind(null,a,i)):Lj(a,i)}function kj(a,i){var l=B(a)||"Component";Fk[l]||(Fk[l]=!0,i=String(i),a.tag===3?console.error(`Symbols are not valid as a React child.
|
||
root.render(%s)`,i):console.error(`Symbols are not valid as a React child.
|
||
<%s>%s</%s>`,l,i,l))}function lg(a,i){var l=qx();l!==null?l.run(kj.bind(null,a,i)):kj(a,i)}function Ij(a){function i(Q,J){if(a){var re=Q.deletions;re===null?(Q.deletions=[J],Q.flags|=16):re.push(J)}}function l(Q,J){if(!a)return null;for(;J!==null;)i(Q,J),J=J.sibling;return null}function d(Q){for(var J=new Map;Q!==null;)Q.key!==null?J.set(Q.key,Q):J.set(Q.index,Q),Q=Q.sibling;return J}function h(Q,J){return Q=go(Q,J),Q.index=0,Q.sibling=null,Q}function v(Q,J,re){return Q.index=re,a?(re=Q.alternate,re!==null?(re=re.index,re<J?(Q.flags|=67108866,J):re):(Q.flags|=67108866,J)):(Q.flags|=1048576,J)}function E(Q){return a&&Q.alternate===null&&(Q.flags|=67108866),Q}function O(Q,J,re,ve){return J===null||J.tag!==6?(J=Rx(re,Q.mode,ve),J.return=Q,J._debugOwner=Q,J._debugTask=Q._debugTask,J._debugInfo=it,J):(J=h(J,re),J.return=Q,J._debugInfo=it,J)}function M(Q,J,re,ve){var _e=re.type;return _e===yc?(J=oe(Q,J,re.props.children,ve,re.key),ag(re,J,Q),J):J!==null&&(J.elementType===_e||mj(J,re)||typeof _e=="object"&&_e!==null&&_e.$$typeof===ta&&hs(_e)===J.type)?(J=h(J,re.props),Df(J,re),J.return=Q,J._debugOwner=re._owner,J._debugInfo=it,J):(J=Xh(re,Q.mode,ve),Df(J,re),J.return=Q,J._debugInfo=it,J)}function k(Q,J,re,ve){return J===null||J.tag!==4||J.stateNode.containerInfo!==re.containerInfo||J.stateNode.implementation!==re.implementation?(J=jx(re,Q.mode,ve),J.return=Q,J._debugInfo=it,J):(J=h(J,re.children||[]),J.return=Q,J._debugInfo=it,J)}function oe(Q,J,re,ve,_e){return J===null||J.tag!==7?(J=El(re,Q.mode,ve,_e),J.return=Q,J._debugOwner=Q,J._debugTask=Q._debugTask,J._debugInfo=it,J):(J=h(J,re),J.return=Q,J._debugInfo=it,J)}function se(Q,J,re){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=Rx(""+J,Q.mode,re),J.return=Q,J._debugOwner=Q,J._debugTask=Q._debugTask,J._debugInfo=it,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case Ri:return re=Xh(J,Q.mode,re),Df(re,J),re.return=Q,Q=Zn(J._debugInfo),re._debugInfo=it,it=Q,re;case vc:return J=jx(J,Q.mode,re),J.return=Q,J._debugInfo=it,J;case ta:var ve=Zn(J._debugInfo);return J=hs(J),Q=se(Q,J,re),it=ve,Q}if(jn(J)||j(J))return re=El(J,Q.mode,re,null),re.return=Q,re._debugOwner=Q,re._debugTask=Q._debugTask,Q=Zn(J._debugInfo),re._debugInfo=it,it=Q,re;if(typeof J.then=="function")return ve=Zn(J._debugInfo),Q=se(Q,ig(J),re),it=ve,Q;if(J.$$typeof===ji)return se(Q,eg(Q,J),re);og(Q,J)}return typeof J=="function"&&sg(Q,J),typeof J=="symbol"&&lg(Q,J),null}function X(Q,J,re,ve){var _e=J!==null?J.key:null;if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return _e!==null?null:O(Q,J,""+re,ve);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case Ri:return re.key===_e?(_e=Zn(re._debugInfo),Q=M(Q,J,re,ve),it=_e,Q):null;case vc:return re.key===_e?k(Q,J,re,ve):null;case ta:return _e=Zn(re._debugInfo),re=hs(re),Q=X(Q,J,re,ve),it=_e,Q}if(jn(re)||j(re))return _e!==null?null:(_e=Zn(re._debugInfo),Q=oe(Q,J,re,ve,null),it=_e,Q);if(typeof re.then=="function")return _e=Zn(re._debugInfo),Q=X(Q,J,ig(re),ve),it=_e,Q;if(re.$$typeof===ji)return X(Q,J,eg(Q,re),ve);og(Q,re)}return typeof re=="function"&&sg(Q,re),typeof re=="symbol"&&lg(Q,re),null}function fe(Q,J,re,ve,_e){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return Q=Q.get(re)||null,O(J,Q,""+ve,_e);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case Ri:return re=Q.get(ve.key===null?re:ve.key)||null,Q=Zn(ve._debugInfo),J=M(J,re,ve,_e),it=Q,J;case vc:return Q=Q.get(ve.key===null?re:ve.key)||null,k(J,Q,ve,_e);case ta:var We=Zn(ve._debugInfo);return ve=hs(ve),J=fe(Q,J,re,ve,_e),it=We,J}if(jn(ve)||j(ve))return re=Q.get(re)||null,Q=Zn(ve._debugInfo),J=oe(J,re,ve,_e,null),it=Q,J;if(typeof ve.then=="function")return We=Zn(ve._debugInfo),J=fe(Q,J,re,ig(ve),_e),it=We,J;if(ve.$$typeof===ji)return fe(Q,J,re,eg(J,ve),_e);og(J,ve)}return typeof ve=="function"&&sg(J,ve),typeof ve=="symbol"&&lg(J,ve),null}function Ce(Q,J,re,ve){if(typeof re!="object"||re===null)return ve;switch(re.$$typeof){case Ri:case vc:g(Q,J,re);var _e=re.key;if(typeof _e!="string")break;if(ve===null){ve=new Set,ve.add(_e);break}if(!ve.has(_e)){ve.add(_e);break}de(J,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.",_e)});break;case ta:re=hs(re),Ce(Q,J,re,ve)}return ve}function De(Q,J,re,ve){for(var _e=null,We=null,Ue=null,Ve=J,tt=J=0,Yt=null;Ve!==null&&tt<re.length;tt++){Ve.index>tt?(Yt=Ve,Ve=null):Yt=Ve.sibling;var yn=X(Q,Ve,re[tt],ve);if(yn===null){Ve===null&&(Ve=Yt);break}_e=Ce(Q,yn,re[tt],_e),a&&Ve&&yn.alternate===null&&i(Q,Ve),J=v(yn,J,tt),Ue===null?We=yn:Ue.sibling=yn,Ue=yn,Ve=Yt}if(tt===re.length)return l(Q,Ve),mt&&vo(Q,tt),We;if(Ve===null){for(;tt<re.length;tt++)Ve=se(Q,re[tt],ve),Ve!==null&&(_e=Ce(Q,Ve,re[tt],_e),J=v(Ve,J,tt),Ue===null?We=Ve:Ue.sibling=Ve,Ue=Ve);return mt&&vo(Q,tt),We}for(Ve=d(Ve);tt<re.length;tt++)Yt=fe(Ve,Q,tt,re[tt],ve),Yt!==null&&(_e=Ce(Q,Yt,re[tt],_e),a&&Yt.alternate!==null&&Ve.delete(Yt.key===null?tt:Yt.key),J=v(Yt,J,tt),Ue===null?We=Yt:Ue.sibling=Yt,Ue=Yt);return a&&Ve.forEach(function(Bo){return i(Q,Bo)}),mt&&vo(Q,tt),We}function Ht(Q,J,re,ve){if(re==null)throw Error("An iterable object provided no iterator.");for(var _e=null,We=null,Ue=J,Ve=J=0,tt=null,Yt=null,yn=re.next();Ue!==null&&!yn.done;Ve++,yn=re.next()){Ue.index>Ve?(tt=Ue,Ue=null):tt=Ue.sibling;var Bo=X(Q,Ue,yn.value,ve);if(Bo===null){Ue===null&&(Ue=tt);break}Yt=Ce(Q,Bo,yn.value,Yt),a&&Ue&&Bo.alternate===null&&i(Q,Ue),J=v(Bo,J,Ve),We===null?_e=Bo:We.sibling=Bo,We=Bo,Ue=tt}if(yn.done)return l(Q,Ue),mt&&vo(Q,Ve),_e;if(Ue===null){for(;!yn.done;Ve++,yn=re.next())Ue=se(Q,yn.value,ve),Ue!==null&&(Yt=Ce(Q,Ue,yn.value,Yt),J=v(Ue,J,Ve),We===null?_e=Ue:We.sibling=Ue,We=Ue);return mt&&vo(Q,Ve),_e}for(Ue=d(Ue);!yn.done;Ve++,yn=re.next())tt=fe(Ue,Q,Ve,yn.value,ve),tt!==null&&(Yt=Ce(Q,tt,yn.value,Yt),a&&tt.alternate!==null&&Ue.delete(tt.key===null?Ve:tt.key),J=v(tt,J,Ve),We===null?_e=tt:We.sibling=tt,We=tt);return a&&Ue.forEach(function(SX){return i(Q,SX)}),mt&&vo(Q,Ve),_e}function vt(Q,J,re,ve){if(typeof re=="object"&&re!==null&&re.type===yc&&re.key===null&&(ag(re,null,Q),re=re.props.children),typeof re=="object"&&re!==null){switch(re.$$typeof){case Ri:var _e=Zn(re._debugInfo);e:{for(var We=re.key;J!==null;){if(J.key===We){if(We=re.type,We===yc){if(J.tag===7){l(Q,J.sibling),ve=h(J,re.props.children),ve.return=Q,ve._debugOwner=re._owner,ve._debugInfo=it,ag(re,ve,Q),Q=ve;break e}}else if(J.elementType===We||mj(J,re)||typeof We=="object"&&We!==null&&We.$$typeof===ta&&hs(We)===J.type){l(Q,J.sibling),ve=h(J,re.props),Df(ve,re),ve.return=Q,ve._debugOwner=re._owner,ve._debugInfo=it,Q=ve;break e}l(Q,J);break}else i(Q,J);J=J.sibling}re.type===yc?(ve=El(re.props.children,Q.mode,ve,re.key),ve.return=Q,ve._debugOwner=Q,ve._debugTask=Q._debugTask,ve._debugInfo=it,ag(re,ve,Q),Q=ve):(ve=Xh(re,Q.mode,ve),Df(ve,re),ve.return=Q,ve._debugInfo=it,Q=ve)}return Q=E(Q),it=_e,Q;case vc:e:{for(_e=re,re=_e.key;J!==null;){if(J.key===re)if(J.tag===4&&J.stateNode.containerInfo===_e.containerInfo&&J.stateNode.implementation===_e.implementation){l(Q,J.sibling),ve=h(J,_e.children||[]),ve.return=Q,Q=ve;break e}else{l(Q,J);break}else i(Q,J);J=J.sibling}ve=jx(_e,Q.mode,ve),ve.return=Q,Q=ve}return E(Q);case ta:return _e=Zn(re._debugInfo),re=hs(re),Q=vt(Q,J,re,ve),it=_e,Q}if(jn(re))return _e=Zn(re._debugInfo),Q=De(Q,J,re,ve),it=_e,Q;if(j(re)){if(_e=Zn(re._debugInfo),We=j(re),typeof We!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ue=We.call(re);return Ue===re?(Q.tag!==0||Object.prototype.toString.call(Q.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ue)!=="[object Generator]")&&(Uk||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."),Uk=!0):re.entries!==We||cN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),cN=!0),Q=Ht(Q,J,Ue,ve),it=_e,Q}if(typeof re.then=="function")return _e=Zn(re._debugInfo),Q=vt(Q,J,ig(re),ve),it=_e,Q;if(re.$$typeof===ji)return vt(Q,J,eg(Q,re),ve);og(Q,re)}return typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint"?(_e=""+re,J!==null&&J.tag===6?(l(Q,J.sibling),ve=h(J,_e),ve.return=Q,Q=ve):(l(Q,J),ve=Rx(_e,Q.mode,ve),ve.return=Q,ve._debugOwner=Q,ve._debugTask=Q._debugTask,ve._debugInfo=it,Q=ve),E(Q)):(typeof re=="function"&&sg(Q,re),typeof re=="symbol"&&lg(Q,re),l(Q,J))}return function(Q,J,re,ve){var _e=it;it=null;try{Om=0;var We=vt(Q,J,re,ve);return $c=null,We}catch(Yt){if(Yt===Ic||Yt===vv)throw Yt;var Ue=y(29,Yt,null,Q.mode);Ue.lanes=ve,Ue.return=Q;var Ve=Ue._debugInfo=it;if(Ue._debugOwner=Q._debugOwner,Ue._debugTask=Q._debugTask,Ve!=null){for(var tt=Ve.length-1;0<=tt;tt--)if(typeof Ve[tt].stack=="string"){Ue._debugOwner=Ve[tt],Ue._debugTask=Ve[tt].debugTask;break}}return Ue}finally{it=_e}}}function $j(a,i){var l=jn(a);return a=!l&&typeof j(a)=="function",l||a?(l=l?"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>",l,i,l),!1):!0}function Hx(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fx(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function gs(a){return{lane:a,tag:Gk,payload:null,callback:null,next:null}}function vs(a,i,l){var d=a.updateQueue;if(d===null)return null;if(d=d.shared,fN===d&&!Xk){var h=B(a);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.
|
||
|
||
Please update the following component: %s`,h),Xk=!0}return(bt&Mn)!==Gn?(h=d.pending,h===null?i.next=i:(i.next=h.next,h.next=i),d.pending=i,i=Qh(a),fj(a,null,l),i):(Yh(a,d,i,l),Qh(a))}function Rf(a,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var d=i.lanes;d&=a.pendingLanes,l|=d,i.lanes=l,ds(a,l)}}function ug(a,i){var l=a.updateQueue,d=a.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var h=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var E={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?h=v=E:v=v.next=E,l=l.next}while(l!==null);v===null?h=v=i:v=v.next=i}else h=v=i;l={baseState:d.baseState,firstBaseUpdate:h,lastBaseUpdate:v,shared:d.shared,callbacks:d.callbacks},a.updateQueue=l;return}a=l.lastBaseUpdate,a===null?l.firstBaseUpdate=i:a.next=i,l.lastBaseUpdate=i}function jf(){if(mN){var a=kc;if(a!==null)throw a}}function Pf(a,i,l,d){mN=!1;var h=a.updateQueue;Is=!1,fN=h.shared;var v=h.firstBaseUpdate,E=h.lastBaseUpdate,O=h.shared.pending;if(O!==null){h.shared.pending=null;var M=O,k=M.next;M.next=null,E===null?v=k:E.next=k,E=M;var oe=a.alternate;oe!==null&&(oe=oe.updateQueue,O=oe.lastBaseUpdate,O!==E&&(O===null?oe.firstBaseUpdate=k:O.next=k,oe.lastBaseUpdate=M))}if(v!==null){var se=h.baseState;E=0,oe=k=M=null,O=v;do{var X=O.lane&-536870913,fe=X!==O.lane;if(fe?(ot&X)===X:(d&X)===X){X!==0&&X===zl&&(mN=!0),oe!==null&&(oe=oe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{X=a;var Ce=O,De=i,Ht=l;switch(Ce.tag){case Yk:if(Ce=Ce.payload,typeof Ce=="function"){Mc=!0;var vt=Ce.call(Ht,se,De);if(X.mode&lr){je(!0);try{Ce.call(Ht,se,De)}finally{je(!1)}}Mc=!1,se=vt;break e}se=Ce;break e;case dN:X.flags=X.flags&-65537|128;case Gk:if(vt=Ce.payload,typeof vt=="function"){if(Mc=!0,Ce=vt.call(Ht,se,De),X.mode&lr){je(!0);try{vt.call(Ht,se,De)}finally{je(!1)}}Mc=!1}else Ce=vt;if(Ce==null)break e;se=dt({},se,Ce);break e;case Qk:Is=!0}}X=O.callback,X!==null&&(a.flags|=64,fe&&(a.flags|=8192),fe=h.callbacks,fe===null?h.callbacks=[X]:fe.push(X))}else fe={lane:X,tag:O.tag,payload:O.payload,callback:O.callback,next:null},oe===null?(k=oe=fe,M=se):oe=oe.next=fe,E|=X;if(O=O.next,O===null){if(O=h.shared.pending,O===null)break;fe=O,O=fe.next,fe.next=null,h.lastBaseUpdate=fe,h.shared.pending=null}}while(!0);oe===null&&(M=se),h.baseState=M,h.firstBaseUpdate=k,h.lastBaseUpdate=oe,v===null&&(h.shared.lanes=0),Bs|=E,a.lanes=E,a.memoizedState=se}fN=null}function Vj(a,i){if(typeof a!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(i)}function gG(a,i){var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)Vj(l[a],i)}function Bj(a,i){var l=a.callbacks;if(l!==null)for(a.callbacks=null,a=0;a<l.length;a++)Vj(l[a],i)}function zj(a,i){var l=zi;F(bv,l,a),F(Vc,i,a),zi=l|i.baseLanes}function Kx(a){F(bv,zi,a),F(Vc,Vc.current,a)}function Gx(a){zi=bv.current,q(Vc,a),q(bv,a)}function ys(a){var i=a.alternate;F(vn,vn.current&Bc,a),F(aa,a,a),Aa===null&&(i===null||Vc.current!==null||i.memoizedState!==null)&&(Aa=a)}function Yx(a){F(vn,vn.current,a),F(aa,a,a),Aa===null&&(Aa=a)}function Uj(a){a.tag===22?(F(vn,vn.current,a),F(aa,a,a),Aa===null&&(Aa=a)):bs(a)}function bs(a){F(vn,vn.current,a),F(aa,aa.current,a)}function Zr(a){q(aa,a),Aa===a&&(Aa=null),q(vn,a)}function cg(a){for(var i=a;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||sw(l)||lw(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function ct(){var a=pe;Ta===null?Ta=[a]:Ta.push(a)}function Ae(){var a=pe;if(Ta!==null&&(Lo++,Ta[Lo]!==a)){var i=B(Xe);if(!Wk.has(i)&&(Wk.add(i),Ta!==null)){for(var l="",d=0;d<=Lo;d++){var h=Ta[d],v=d===Lo?a:h;for(h=d+1+". "+h;30>h.length;)h+=" ";h+=v+`
|
||
`,l+=h}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
|
||
|
||
Previous render Next render
|
||
------------------------------------------------------
|
||
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
`,i,l)}}}function ac(a){a==null||jn(a)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",pe,typeof a)}function dg(){var a=B(Xe);Jk.has(a)||(Jk.add(a),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",a))}function fn(){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:
|
||
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
||
2. You might be breaking the Rules of Hooks
|
||
3. You might have more than one copy of React in the same app
|
||
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Qx(a,i){if(_m)return!1;if(i===null)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.",pe),!1;a.length!==i.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
||
|
||
Previous: %s
|
||
Incoming: %s`,pe,"["+i.join(", ")+"]","["+a.join(", ")+"]");for(var l=0;l<i.length&&l<a.length;l++)if(!xr(a[l],i[l]))return!1;return!0}function Xx(a,i,l,d,h,v){Po=v,Xe=i,Ta=a!==null?a._debugHookTypes:null,Lo=-1,_m=a!==null&&a.type!==i.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(v=B(Xe),pN.has(v)||(pN.add(v),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.",v===null?"An unknown Component":"<"+v+">"))),i.memoizedState=null,i.updateQueue=null,i.lanes=0,he.H=a!==null&&a.memoizedState!==null?gN:Ta!==null?eI:hN,Kl=v=(i.mode&lr)!==Ge;var E=sN(l,d,h);if(Kl=!1,Uc&&(E=Wx(i,l,d,h)),v){je(!0);try{E=Wx(i,l,d,h)}finally{je(!1)}}return qj(a,i),E}function qj(a,i){i._debugHookTypes=Ta,i.dependencies===null?Mo!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:Mo}):i.dependencies._debugThenableState=Mo,he.H=Dm;var l=Bt!==null&&Bt.next!==null;if(Po=0,Ta=pe=Sn=Bt=Xe=null,Lo=-1,a!==null&&(a.flags&65011712)!==(i.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),wv=!1,Cm=0,Mo=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");a===null||An||(a=a.dependencies,a!==null&&Jh(a)&&(An=!0)),Am?(Am=!1,a=!0):a=!1,a&&(i=B(i)||"Unknown",Zk.has(i)||pN.has(i)||(Zk.add(i),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 Wx(a,i,l,d){Xe=a;var h=0;do{if(Uc&&(Mo=null),Cm=0,Uc=!1,h>=nX)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h+=1,_m=!1,Sn=Bt=null,a.updateQueue!=null){var v=a.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}Lo=-1,he.H=tI,v=sN(i,l,d)}while(Uc);return v}function vG(){var a=he.H,i=a.useState()[0];return i=typeof i.then=="function"?Mf(i):i,a=a.useState()[0],(Bt!==null?Bt.memoizedState:null)!==a&&(Xe.flags|=1024),i}function Zx(){var a=Nv!==0;return Nv=0,a}function Jx(a,i,l){i.updateQueue=a.updateQueue,i.flags=(i.mode&Ka)!==Ge?i.flags&-402655237:i.flags&-2053,a.lanes&=~l}function e1(a){if(wv){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}wv=!1}Po=0,Ta=Sn=Bt=Xe=null,Lo=-1,pe=null,Uc=!1,Cm=Nv=0,Mo=null}function gr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?Xe.memoizedState=Sn=a:Sn=Sn.next=a,Sn}function Rt(){if(Bt===null){var a=Xe.alternate;a=a!==null?a.memoizedState:null}else a=Bt.next;var i=Sn===null?Xe.memoizedState:Sn.next;if(i!==null)Sn=i,Bt=a;else{if(a===null)throw Xe.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Bt=a,a={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},Sn===null?Xe.memoizedState=Sn=a:Sn=Sn.next=a}return Sn}function fg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mf(a){var i=Cm;return Cm+=1,Mo===null&&(Mo=_j()),a=Rj(Mo,a,i),i=Xe,(Sn===null?i |