@botfabrik/engine-webclient 4.93.3 → 4.93.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
var tC=Object.defineProperty;var nC=(n,a,o)=>a in n?tC(n,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[a]=o;var Xe=(n,a,o)=>nC(n,typeof a!="symbol"?a+"":a,o);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function o(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(u){if(u.ep)return;u.ep=!0;const f=o(u);fetch(u.href,f)}})();var rf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Hp={exports:{}},af={},zp={exports:{}},Xl={exports:{}};Xl.exports;var Tw;function rC(){return Tw||(Tw=1,function(n,a){/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/(function(){function o(S,B){Object.defineProperty(f.prototype,S,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",B[0],B[1])}})}function l(S){return S===null||typeof S!="object"?null:(S=pr&&S[pr]||S["@@iterator"],typeof S=="function"?S:null)}function u(S,B){S=(S=S.constructor)&&(S.displayName||S.name)||"ReactClass";var J=S+"."+B;oe[J]||(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.",B,S),oe[J]=!0)}function f(S,B,J){this.props=S,this.context=B,this.refs=ya,this.updater=J||Rt}function d(){}function h(S,B,J){this.props=S,this.context=B,this.refs=ya,this.updater=J||Rt}function p(S){return""+S}function y(S){try{p(S);var B=!1}catch{B=!0}if(B){B=console;var J=B.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return J.call(B,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),p(S)}}function v(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===fd?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case Y:return"Fragment";case le:return"Profiler";case me:return"StrictMode";case ke:return"Suspense";case sn:return"SuspenseList";case Dt:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case Te:return"Portal";case qe:return(S.displayName||"Context")+".Provider";case Ee:return(S._context.displayName||"Context")+".Consumer";case st:var B=S.render;return S=S.displayName,S||(S=B.displayName||B.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case at:return B=S.displayName||null,B!==null?B:v(S.type)||"Memo";case ft:B=S._payload,S=S._init;try{return v(S(B))}catch{}}return null}function _(S){if(S===Y)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===ft)return"<...>";try{var B=v(S);return B?"<"+B+">":"<...>"}catch{return"<...>"}}function g(){var S=Ue.A;return S===null?null:S.getOwner()}function A(){return Error("react-stack-top-frame")}function U(S){if(ai.call(S,"key")){var B=Object.getOwnPropertyDescriptor(S,"key").get;if(B&&B.isReactWarning)return!1}return S.key!==void 0}function I(S,B){function J(){_a||(_a=!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)",B))}J.isReactWarning=!0,Object.defineProperty(S,"key",{get:J,configurable:!0})}function j(){var S=v(this.type);return ds[S]||(ds[S]=!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.")),S=this.props.ref,S!==void 0?S:null}function w(S,B,J,ae,pe,De,Ne,Fe){return J=De.ref,S={$$typeof:ue,type:S,key:B,props:De,_owner:pe},(J!==void 0?J:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:j}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Fe}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function R(S,B){return B=w(S.type,B,void 0,void 0,S._owner,S.props,S._debugStack,S._debugTask),S._store&&(B._store.validated=S._store.validated),B}function T(S){return typeof S=="object"&&S!==null&&S.$$typeof===ue}function N(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(J){return B[J]})}function D(S,B){return typeof S=="object"&&S!==null&&S.key!=null?(y(S.key),N(""+S.key)):B.toString(36)}function z(){}function X(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(z,z):(S.status="pending",S.then(function(B){S.status==="pending"&&(S.status="fulfilled",S.value=B)},function(B){S.status==="pending"&&(S.status="rejected",S.reason=B)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function re(S,B,J,ae,pe){var De=typeof S;(De==="undefined"||De==="boolean")&&(S=null);var Ne=!1;if(S===null)Ne=!0;else switch(De){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(S.$$typeof){case ue:case Te:Ne=!0;break;case ft:return Ne=S._init,re(Ne(S._payload),B,J,ae,pe)}}if(Ne){Ne=S,pe=pe(Ne);var Fe=ae===""?"."+D(Ne,0):ae;return va(pe)?(J="",Fe!=null&&(J=Fe.replace(ps,"$&/")+"/"),re(pe,B,J,"",function(Mt){return Mt})):pe!=null&&(T(pe)&&(pe.key!=null&&(Ne&&Ne.key===pe.key||y(pe.key)),J=R(pe,J+(pe.key==null||Ne&&Ne.key===pe.key?"":(""+pe.key).replace(ps,"$&/")+"/")+Fe),ae!==""&&Ne!=null&&T(Ne)&&Ne.key==null&&Ne._store&&!Ne._store.validated&&(J._store.validated=2),pe=J),B.push(pe)),1}if(Ne=0,Fe=ae===""?".":ae+":",va(S))for(var Re=0;Re<S.length;Re++)ae=S[Re],De=Fe+D(ae,Re),Ne+=re(ae,B,J,De,pe);else if(Re=l(S),typeof Re=="function")for(Re===S.entries&&(ms||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ms=!0),S=Re.call(S),Re=0;!(ae=S.next()).done;)ae=ae.value,De=Fe+D(ae,Re++),Ne+=re(ae,B,J,De,pe);else if(De==="object"){if(typeof S.then=="function")return re(X(S),B,J,ae,pe);throw B=String(S),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function Z(S,B,J){if(S==null)return S;var ae=[],pe=0;return re(S,ae,"","",function(De){return B.call(J,De,pe++)}),ae}function ee(S){if(S._status===-1){var B=S._result;B=B(),B.then(function(J){(S._status===0||S._status===-1)&&(S._status=1,S._result=J)},function(J){(S._status===0||S._status===-1)&&(S._status=2,S._result=J)}),S._status===-1&&(S._status=0,S._result=B)}if(S._status===1)return B=S._result,B===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
10
|
+
|
|
11
|
+
Your code should look like:
|
|
12
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
13
|
+
|
|
14
|
+
Did you accidentally put curly braces around the import?`,B),"default"in B||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
15
|
+
|
|
16
|
+
Your code should look like:
|
|
17
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,B),B.default;throw S._result}function Q(){var S=Ue.H;return S===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:
|
|
18
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
|
+
2. You might be breaking the Rules of Hooks
|
|
20
|
+
3. You might have more than one copy of React in the same app
|
|
21
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),S}function ie(){}function ce(S){if(ao===null)try{var B=("require"+Math.random()).slice(0,7);ao=(n&&n[B]).call(n,"timers").setImmediate}catch{ao=function(ae){bs===!1&&(bs=!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 pe=new MessageChannel;pe.port1.onmessage=ae,pe.port2.postMessage(void 0)}}return ao(S)}function Ye(S){return 1<S.length&&typeof AggregateError=="function"?new AggregateError(S):S[0]}function Ce(S,B){B!==Ea-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. "),Ea=B}function W(S,B,J){var ae=Ue.actQueue;if(ae!==null)if(ae.length!==0)try{he(ae),ce(function(){return W(S,B,J)});return}catch(pe){Ue.thrownErrors.push(pe)}else Ue.actQueue=null;0<Ue.thrownErrors.length?(ae=Ye(Ue.thrownErrors),Ue.thrownErrors.length=0,J(ae)):B(S)}function he(S){if(!tr){tr=!0;var B=0;try{for(;B<S.length;B++){var J=S[B];do{Ue.didUsePromise=!1;var ae=J(!1);if(ae!==null){if(Ue.didUsePromise){S[B]=J,S.splice(0,B);return}J=ae}else break}while(!0)}S.length=0}catch(pe){S.splice(0,B+1),Ue.thrownErrors.push(pe)}finally{tr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ue=Symbol.for("react.transitional.element"),Te=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),me=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),Ee=Symbol.for("react.consumer"),qe=Symbol.for("react.context"),st=Symbol.for("react.forward_ref"),ke=Symbol.for("react.suspense"),sn=Symbol.for("react.suspense_list"),at=Symbol.for("react.memo"),ft=Symbol.for("react.lazy"),Dt=Symbol.for("react.activity"),pr=Symbol.iterator,oe={},Rt={isMounted:function(){return!1},enqueueForceUpdate:function(S){u(S,"forceUpdate")},enqueueReplaceState:function(S){u(S,"replaceState")},enqueueSetState:function(S){u(S,"setState")}},Ir=Object.assign,ya={};Object.freeze(ya),f.prototype.isReactComponent={},f.prototype.setState=function(S,B){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,B,"setState")},f.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};var wt={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)."]},Vr;for(Vr in wt)wt.hasOwnProperty(Vr)&&o(Vr,wt[Vr]);d.prototype=f.prototype,wt=h.prototype=new d,wt.constructor=h,Ir(wt,f.prototype),wt.isPureReactComponent=!0;var va=Array.isArray,fd=Symbol.for("react.client.reference"),Ue={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ai=Object.prototype.hasOwnProperty,no=console.createTask?console.createTask:function(){return null};wt={"react-stack-bottom-frame":function(S){return S()}};var _a,lc,ds={},cc=wt["react-stack-bottom-frame"].bind(wt,A)(),hs=no(_(A)),ms=!1,ps=/\/+/g,ro=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},bs=!1,ao=null,Ea=0,er=!1,tr=!1,wa=typeof queueMicrotask=="function"?function(S){queueMicrotask(function(){return queueMicrotask(S)})}:ce;wt=Object.freeze({__proto__:null,c:function(S){return Q().useMemoCache(S)}}),a.Children={map:Z,forEach:function(S,B,J){Z(S,function(){B.apply(this,arguments)},J)},count:function(S){var B=0;return Z(S,function(){B++}),B},toArray:function(S){return Z(S,function(B){return B})||[]},only:function(S){if(!T(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},a.Component=f,a.Fragment=Y,a.Profiler=le,a.PureComponent=h,a.StrictMode=me,a.Suspense=ke,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ue,a.__COMPILER_RUNTIME=wt,a.act=function(S){var B=Ue.actQueue,J=Ea;Ea++;var ae=Ue.actQueue=B!==null?B:[],pe=!1;try{var De=S()}catch(Re){Ue.thrownErrors.push(Re)}if(0<Ue.thrownErrors.length)throw Ce(B,J),S=Ye(Ue.thrownErrors),Ue.thrownErrors.length=0,S;if(De!==null&&typeof De=="object"&&typeof De.then=="function"){var Ne=De;return wa(function(){pe||er||(er=!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(Re,Mt){pe=!0,Ne.then(function(Gr){if(Ce(B,J),J===0){try{he(ae),ce(function(){return W(Gr,Re,Mt)})}catch(hd){Ue.thrownErrors.push(hd)}if(0<Ue.thrownErrors.length){var dd=Ye(Ue.thrownErrors);Ue.thrownErrors.length=0,Mt(dd)}}else Re(Gr)},function(Gr){Ce(B,J),0<Ue.thrownErrors.length&&(Gr=Ye(Ue.thrownErrors),Ue.thrownErrors.length=0),Mt(Gr)})}}}var Fe=De;if(Ce(B,J),J===0&&(he(ae),ae.length!==0&&wa(function(){pe||er||(er=!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(() => ...)"))}),Ue.actQueue=null),0<Ue.thrownErrors.length)throw S=Ye(Ue.thrownErrors),Ue.thrownErrors.length=0,S;return{then:function(Re,Mt){pe=!0,J===0?(Ue.actQueue=ae,ce(function(){return W(Fe,Re,Mt)})):Re(Fe)}}},a.cache=function(S){return function(){return S.apply(null,arguments)}},a.captureOwnerStack=function(){var S=Ue.getCurrentStack;return S===null?null:S()},a.cloneElement=function(S,B,J){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ae=Ir({},S.props),pe=S.key,De=S._owner;if(B!=null){var Ne;e:{if(ai.call(B,"ref")&&(Ne=Object.getOwnPropertyDescriptor(B,"ref").get)&&Ne.isReactWarning){Ne=!1;break e}Ne=B.ref!==void 0}Ne&&(De=g()),U(B)&&(y(B.key),pe=""+B.key);for(Fe in B)!ai.call(B,Fe)||Fe==="key"||Fe==="__self"||Fe==="__source"||Fe==="ref"&&B.ref===void 0||(ae[Fe]=B[Fe])}var Fe=arguments.length-2;if(Fe===1)ae.children=J;else if(1<Fe){Ne=Array(Fe);for(var Re=0;Re<Fe;Re++)Ne[Re]=arguments[Re+2];ae.children=Ne}for(ae=w(S.type,pe,void 0,void 0,De,ae,S._debugStack,S._debugTask),pe=2;pe<arguments.length;pe++)De=arguments[pe],T(De)&&De._store&&(De._store.validated=1);return ae},a.createContext=function(S){return S={$$typeof:qe,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:Ee,_context:S},S._currentRenderer=null,S._currentRenderer2=null,S},a.createElement=function(S,B,J){for(var ae=2;ae<arguments.length;ae++){var pe=arguments[ae];T(pe)&&pe._store&&(pe._store.validated=1)}if(ae={},pe=null,B!=null)for(Re in lc||!("__self"in B)||"key"in B||(lc=!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")),U(B)&&(y(B.key),pe=""+B.key),B)ai.call(B,Re)&&Re!=="key"&&Re!=="__self"&&Re!=="__source"&&(ae[Re]=B[Re]);var De=arguments.length-2;if(De===1)ae.children=J;else if(1<De){for(var Ne=Array(De),Fe=0;Fe<De;Fe++)Ne[Fe]=arguments[Fe+2];Object.freeze&&Object.freeze(Ne),ae.children=Ne}if(S&&S.defaultProps)for(Re in De=S.defaultProps,De)ae[Re]===void 0&&(ae[Re]=De[Re]);pe&&I(ae,typeof S=="function"?S.displayName||S.name||"Unknown":S);var Re=1e4>Ue.recentlyCreatedOwnerStacks++;return w(S,pe,void 0,void 0,g(),ae,Re?Error("react-stack-top-frame"):cc,Re?no(_(S)):hs)},a.createRef=function(){var S={current:null};return Object.seal(S),S},a.forwardRef=function(S){S!=null&&S.$$typeof===at?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?console.error("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&S.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var B={$$typeof:st,render:S},J;return Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return J},set:function(ae){J=ae,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ae}),S.displayName=ae)}}),B},a.isValidElement=T,a.lazy=function(S){return{$$typeof:ft,_payload:{_status:-1,_result:S},_init:ee}},a.memo=function(S,B){S==null&&console.error("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S),B={$$typeof:at,type:S,compare:B===void 0?null:B};var J;return Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return J},set:function(ae){J=ae,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ae}),S.displayName=ae)}}),B},a.startTransition=function(S){var B=Ue.T,J={};Ue.T=J,J._updatedFibers=new Set;try{var ae=S(),pe=Ue.S;pe!==null&&pe(J,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(ie,ro)}catch(De){ro(De)}finally{B===null&&J._updatedFibers&&(S=J._updatedFibers.size,J._updatedFibers.clear(),10<S&&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.")),Ue.T=B}},a.unstable_useCacheRefresh=function(){return Q().useCacheRefresh()},a.use=function(S){return Q().use(S)},a.useActionState=function(S,B,J){return Q().useActionState(S,B,J)},a.useCallback=function(S,B){return Q().useCallback(S,B)},a.useContext=function(S){var B=Q();return S.$$typeof===Ee&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),B.useContext(S)},a.useDebugValue=function(S,B){return Q().useDebugValue(S,B)},a.useDeferredValue=function(S,B){return Q().useDeferredValue(S,B)},a.useEffect=function(S,B,J){S==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var ae=Q();if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(S,B)},a.useId=function(){return Q().useId()},a.useImperativeHandle=function(S,B,J){return Q().useImperativeHandle(S,B,J)},a.useInsertionEffect=function(S,B){return S==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Q().useInsertionEffect(S,B)},a.useLayoutEffect=function(S,B){return S==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Q().useLayoutEffect(S,B)},a.useMemo=function(S,B){return Q().useMemo(S,B)},a.useOptimistic=function(S,B){return Q().useOptimistic(S,B)},a.useReducer=function(S,B,J){return Q().useReducer(S,B,J)},a.useRef=function(S){return Q().useRef(S)},a.useState=function(S){return Q().useState(S)},a.useSyncExternalStore=function(S,B,J){return Q().useSyncExternalStore(S,B,J)},a.useTransition=function(){return Q().useTransition()},a.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(Xl,Xl.exports)),Xl.exports}var kw;function to(){return kw||(kw=1,zp.exports=rC()),zp.exports}var Nw;function aC(){if(Nw)return af;Nw=1;/**
|
|
22
|
+
* @license React
|
|
23
|
+
* react-jsx-dev-runtime.development.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/return function(){function n(Y){if(Y==null)return null;if(typeof Y=="function")return Y.$$typeof===ee?null:Y.displayName||Y.name||null;if(typeof Y=="string")return Y;switch(Y){case I:return"Fragment";case w:return"Profiler";case j:return"StrictMode";case D:return"Suspense";case z:return"SuspenseList";case Z:return"Activity"}if(typeof Y=="object")switch(typeof Y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Y.$$typeof){case U:return"Portal";case T:return(Y.displayName||"Context")+".Provider";case R:return(Y._context.displayName||"Context")+".Consumer";case N:var me=Y.render;return Y=Y.displayName,Y||(Y=me.displayName||me.name||"",Y=Y!==""?"ForwardRef("+Y+")":"ForwardRef"),Y;case X:return me=Y.displayName||null,me!==null?me:n(Y.type)||"Memo";case re:me=Y._payload,Y=Y._init;try{return n(Y(me))}catch{}}return null}function a(Y){return""+Y}function o(Y){try{a(Y);var me=!1}catch{me=!0}if(me){me=console;var le=me.error,Ee=typeof Symbol=="function"&&Symbol.toStringTag&&Y[Symbol.toStringTag]||Y.constructor.name||"Object";return le.call(me,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ee),a(Y)}}function l(Y){if(Y===I)return"<>";if(typeof Y=="object"&&Y!==null&&Y.$$typeof===re)return"<...>";try{var me=n(Y);return me?"<"+me+">":"<...>"}catch{return"<...>"}}function u(){var Y=Q.A;return Y===null?null:Y.getOwner()}function f(){return Error("react-stack-top-frame")}function d(Y){if(ie.call(Y,"key")){var me=Object.getOwnPropertyDescriptor(Y,"key").get;if(me&&me.isReactWarning)return!1}return Y.key!==void 0}function h(Y,me){function le(){Ce||(Ce=!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)",me))}le.isReactWarning=!0,Object.defineProperty(Y,"key",{get:le,configurable:!0})}function p(){var Y=n(this.type);return W[Y]||(W[Y]=!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.")),Y=this.props.ref,Y!==void 0?Y:null}function y(Y,me,le,Ee,qe,st,ke,sn){return le=st.ref,Y={$$typeof:A,type:Y,key:me,props:st,_owner:qe},(le!==void 0?le:null)!==null?Object.defineProperty(Y,"ref",{enumerable:!1,get:p}):Object.defineProperty(Y,"ref",{enumerable:!1,value:null}),Y._store={},Object.defineProperty(Y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ke}),Object.defineProperty(Y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:sn}),Object.freeze&&(Object.freeze(Y.props),Object.freeze(Y)),Y}function v(Y,me,le,Ee,qe,st,ke,sn){var at=me.children;if(at!==void 0)if(Ee)if(ce(at)){for(Ee=0;Ee<at.length;Ee++)_(at[Ee]);Object.freeze&&Object.freeze(at)}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 _(at);if(ie.call(me,"key")){at=n(Y);var ft=Object.keys(me).filter(function(pr){return pr!=="key"});Ee=0<ft.length?"{key: someKey, "+ft.join(": ..., ")+": ...}":"{key: someKey}",Te[at+Ee]||(ft=0<ft.length?"{"+ft.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
30
|
+
let props = %s;
|
|
31
|
+
<%s {...props} />
|
|
32
|
+
React keys must be passed directly to JSX without using spread:
|
|
33
|
+
let props = %s;
|
|
34
|
+
<%s key={someKey} {...props} />`,Ee,at,ft,at),Te[at+Ee]=!0)}if(at=null,le!==void 0&&(o(le),at=""+le),d(me)&&(o(me.key),at=""+me.key),"key"in me){le={};for(var Dt in me)Dt!=="key"&&(le[Dt]=me[Dt])}else le=me;return at&&h(le,typeof Y=="function"?Y.displayName||Y.name||"Unknown":Y),y(Y,at,st,qe,u(),le,ke,sn)}function _(Y){typeof Y=="object"&&Y!==null&&Y.$$typeof===A&&Y._store&&(Y._store.validated=1)}var g=to(),A=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),Q=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=Object.prototype.hasOwnProperty,ce=Array.isArray,Ye=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(Y){return Y()}};var Ce,W={},he=g["react-stack-bottom-frame"].bind(g,f)(),ue=Ye(l(f)),Te={};af.Fragment=I,af.jsxDEV=function(Y,me,le,Ee,qe,st){var ke=1e4>Q.recentlyCreatedOwnerStacks++;return v(Y,me,le,Ee,qe,st,ke?Error("react-stack-top-frame"):he,ke?Ye(l(Y)):ue)}}(),af}var Rw;function iC(){return Rw||(Rw=1,Hp.exports=aC()),Hp.exports}var E=iC(),Ip={exports:{}},zl={},Vp={exports:{}},Gp={},Aw;function oC(){return Aw||(Aw=1,function(n){/**
|
|
35
|
+
* @license React
|
|
36
|
+
* scheduler.development.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/(function(){function a(){if(D=!1,Z){var W=n.unstable_now();ie=W;var he=!0;try{e:{T=!1,N&&(N=!1,X(ee),ee=-1),R=!0;var ue=w;try{t:{for(d(W),j=l(A);j!==null&&!(j.expirationTime>W&&p());){var Te=j.callback;if(typeof Te=="function"){j.callback=null,w=j.priorityLevel;var Y=Te(j.expirationTime<=W);if(W=n.unstable_now(),typeof Y=="function"){j.callback=Y,d(W),he=!0;break t}j===l(A)&&u(A),d(W)}else u(A);j=l(A)}if(j!==null)he=!0;else{var me=l(U);me!==null&&y(h,me.startTime-W),he=!1}}break e}finally{j=null,w=ue,R=!1}he=void 0}}finally{he?ce():Z=!1}}}function o(W,he){var ue=W.length;W.push(he);e:for(;0<ue;){var Te=ue-1>>>1,Y=W[Te];if(0<f(Y,he))W[Te]=he,W[ue]=Y,ue=Te;else break e}}function l(W){return W.length===0?null:W[0]}function u(W){if(W.length===0)return null;var he=W[0],ue=W.pop();if(ue!==he){W[0]=ue;e:for(var Te=0,Y=W.length,me=Y>>>1;Te<me;){var le=2*(Te+1)-1,Ee=W[le],qe=le+1,st=W[qe];if(0>f(Ee,ue))qe<Y&&0>f(st,Ee)?(W[Te]=st,W[qe]=ue,Te=qe):(W[Te]=Ee,W[le]=ue,Te=le);else if(qe<Y&&0>f(st,ue))W[Te]=st,W[qe]=ue,Te=qe;else break e}}return he}function f(W,he){var ue=W.sortIndex-he.sortIndex;return ue!==0?ue:W.id-he.id}function d(W){for(var he=l(U);he!==null;){if(he.callback===null)u(U);else if(he.startTime<=W)u(U),he.sortIndex=he.expirationTime,o(A,he);else break;he=l(U)}}function h(W){if(N=!1,d(W),!T)if(l(A)!==null)T=!0,Z||(Z=!0,ce());else{var he=l(U);he!==null&&y(h,he.startTime-W)}}function p(){return D?!0:!(n.unstable_now()-ie<Q)}function y(W,he){ee=z(function(){W(n.unstable_now())},he)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;n.unstable_now=function(){return v.now()}}else{var _=Date,g=_.now();n.unstable_now=function(){return _.now()-g}}var A=[],U=[],I=1,j=null,w=3,R=!1,T=!1,N=!1,D=!1,z=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,re=typeof setImmediate<"u"?setImmediate:null,Z=!1,ee=-1,Q=5,ie=-1;if(typeof re=="function")var ce=function(){re(a)};else if(typeof MessageChannel<"u"){var Ye=new MessageChannel,Ce=Ye.port2;Ye.port1.onmessage=a,ce=function(){Ce.postMessage(null)}}else ce=function(){z(a,0)};n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(W){W.callback=null},n.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<W?Math.floor(1e3/W):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(W){switch(w){case 1:case 2:case 3:var he=3;break;default:he=w}var ue=w;w=he;try{return W()}finally{w=ue}},n.unstable_requestPaint=function(){D=!0},n.unstable_runWithPriority=function(W,he){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var ue=w;w=W;try{return he()}finally{w=ue}},n.unstable_scheduleCallback=function(W,he,ue){var Te=n.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?Te+ue:Te):ue=Te,W){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=ue+Y,W={id:I++,callback:he,priorityLevel:W,startTime:ue,expirationTime:Y,sortIndex:-1},ue>Te?(W.sortIndex=ue,o(U,W),l(A)===null&&W===l(U)&&(N?(X(ee),ee=-1):N=!0,y(h,ue-Te))):(W.sortIndex=Y,o(A,W),T||R||(T=!0,Z||(Z=!0,ce()))),W},n.unstable_shouldYield=p,n.unstable_wrapCallback=function(W){var he=w;return function(){var ue=w;w=he;try{return W.apply(this,arguments)}finally{w=ue}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(Gp)),Gp}var Ow;function sC(){return Ow||(Ow=1,Vp.exports=oC()),Vp.exports}var qp={exports:{}},Qt={},Cw;function lC(){if(Cw)return Qt;Cw=1;/**
|
|
43
|
+
* @license React
|
|
44
|
+
* react-dom.development.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/return function(){function n(){}function a(_){return""+_}function o(_,g,A){var U=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(U);var I=!1}catch{I=!0}return I&&(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&&U[Symbol.toStringTag]||U.constructor.name||"Object"),a(U)),{$$typeof:y,key:U==null?null:""+U,children:_,containerInfo:g,implementation:A}}function l(_,g){if(_==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}function u(_){return _===null?"`null`":_===void 0?"`undefined`":_===""?"an empty string":'something with type "'+typeof _+'"'}function f(_){return _===null?"`null`":_===void 0?"`undefined`":_===""?"an empty string":typeof _=="string"?JSON.stringify(_):typeof _=="number"?"`"+_+"`":'something with type "'+typeof _+'"'}function d(){var _=v.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:
|
|
51
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
52
|
+
2. You might be breaking the Rules of Hooks
|
|
53
|
+
3. You might have more than one copy of React in the same app
|
|
54
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),_}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h=to(),p={d:{f:n,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},y=Symbol.for("react.portal"),v=h.__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"),Qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,Qt.createPortal=function(_,g){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error("Target container is not a DOM element.");return o(_,g,null,A)},Qt.flushSync=function(_){var g=v.T,A=p.p;try{if(v.T=null,p.p=2,_)return _()}finally{v.T=g,p.p=A,p.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.")}},Qt.preconnect=function(_,g){typeof _=="string"&&_?g!=null&&typeof g!="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.",f(g)):g!=null&&typeof g.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.",u(g.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(_)),typeof _=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,p.d.C(_,g))},Qt.prefetchDNS=function(_){if(typeof _!="string"||!_)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(_));else if(1<arguments.length){var g=arguments[1];typeof g=="object"&&g.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`.",f(g)):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`.",f(g))}typeof _=="string"&&p.d.D(_)},Qt.preinit=function(_,g){if(typeof _=="string"&&_?g==null||typeof g!="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.",f(g)):g.as!=="style"&&g.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".',f(g.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(_)),typeof _=="string"&&g&&typeof g.as=="string"){var A=g.as,U=l(A,g.crossOrigin),I=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?p.d.S(_,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:U,integrity:I,fetchPriority:j}):A==="script"&&p.d.X(_,{crossOrigin:U,integrity:I,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Qt.preinitModule=function(_,g){var A="";if(typeof _=="string"&&_||(A+=" The `href` argument encountered was "+u(_)+"."),g!==void 0&&typeof g!="object"?A+=" The `options` argument encountered was "+u(g)+".":g&&"as"in g&&g.as!=="script"&&(A+=" The `as` option encountered was "+f(g.as)+"."),A)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",A);else switch(A=g&&typeof g.as=="string"?g.as:"script",A){case"script":break;default:A=f(A),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)',A,_)}typeof _=="string"&&(typeof g=="object"&&g!==null?(g.as==null||g.as==="script")&&(A=l(g.as,g.crossOrigin),p.d.M(_,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})):g==null&&p.d.M(_))},Qt.preload=function(_,g){var A="";if(typeof _=="string"&&_||(A+=" The `href` argument encountered was "+u(_)+"."),g==null||typeof g!="object"?A+=" The `options` argument encountered was "+u(g)+".":typeof g.as=="string"&&g.as||(A+=" The `as` option encountered was "+u(g.as)+"."),A&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',A),typeof _=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){A=g.as;var U=l(A,g.crossOrigin);p.d.L(_,A,{crossOrigin:U,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Qt.preloadModule=function(_,g){var A="";typeof _=="string"&&_||(A+=" The `href` argument encountered was "+u(_)+"."),g!==void 0&&typeof g!="object"?A+=" The `options` argument encountered was "+u(g)+".":g&&"as"in g&&typeof g.as!="string"&&(A+=" The `as` option encountered was "+u(g.as)+"."),A&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',A),typeof _=="string"&&(g?(A=l(g.as,g.crossOrigin),p.d.m(_,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0})):p.d.m(_))},Qt.requestFormReset=function(_){p.d.r(_)},Qt.unstable_batchedUpdates=function(_,g){return _(g)},Qt.useFormState=function(_,g,A){return d().useFormState(_,g,A)},Qt.useFormStatus=function(){return d().useHostTransitionStatus()},Qt.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Qt}var Dw;function cC(){return Dw||(Dw=1,qp.exports=lC()),qp.exports}var Mw;function uC(){if(Mw)return zl;Mw=1;/**
|
|
55
|
+
* @license React
|
|
56
|
+
* react-dom-client.development.js
|
|
57
|
+
*
|
|
58
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the MIT license found in the
|
|
61
|
+
* LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/return function(){function n(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function a(e,t,r,i){if(r>=t.length)return i;var s=t[r],c=Vt(e)?e.slice():Me({},e);return c[s]=a(e[s],t,r+1,i),c}function o(e,t,r){if(t.length!==r.length)console.warn("copyWithRename() expects paths of the same length");else{for(var i=0;i<r.length-1;i++)if(t[i]!==r[i]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return l(e,t,r,0)}}function l(e,t,r,i){var s=t[i],c=Vt(e)?e.slice():Me({},e);return i+1===t.length?(c[r[i]]=c[s],Vt(c)?c.splice(s,1):delete c[s]):c[s]=l(e[s],t,r,i+1),c}function u(e,t,r){var i=t[r],s=Vt(e)?e.slice():Me({},e);return r+1===t.length?(Vt(s)?s.splice(i,1):delete s[i],s):(s[i]=u(e[i],t,r+1),s)}function f(){return!1}function d(){return null}function h(){}function p(){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 y(){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 v(){}function _(e){var t=[];return e.forEach(function(r){t.push(r)}),t.sort().join(", ")}function g(e,t,r,i){return new JN(e,t,r,i)}function A(e,t){e.context===Ha&&(cm(e.current,2,t,e,null,null),bo())}function U(e,t){if(Vn!==null){var r=t.staleFamilies;t=t.updatedFamilies,Gs(),Rd(e.current,t,r),bo()}}function I(e){Vn=e}function j(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function w(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function R(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T(e){if(w(e)!==e)throw Error("Unable to find node on an unmounted component.")}function N(e){var t=e.alternate;if(!t){if(t=w(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var r=e,i=t;;){var s=r.return;if(s===null)break;var c=s.alternate;if(c===null){if(i=s.return,i!==null){r=i;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===r)return T(s),e;if(c===i)return T(s),t;c=c.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==i.return)r=s,i=c;else{for(var m=!1,b=s.child;b;){if(b===r){m=!0,r=s,i=c;break}if(b===i){m=!0,i=s,r=c;break}b=b.sibling}if(!m){for(b=c.child;b;){if(b===r){m=!0,r=c,i=s;break}if(b===i){m=!0,i=c,r=s;break}b=b.sibling}if(!m)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(r.alternate!==i)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(r.tag!==3)throw Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function D(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=D(e),t!==null)return t;e=e.sibling}return null}function z(e){return e===null||typeof e!="object"?null:(e=Y1&&e[Y1]||e["@@iterator"],typeof e=="function"?e:null)}function X(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pA?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case So:return"Fragment";case bm:return"Profiler";case uu:return"StrictMode";case ym:return"Suspense";case vm:return"SuspenseList";case _m:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case wo:return"Portal";case Sr:return(e.displayName||"Context")+".Provider";case gm:return(e._context.displayName||"Context")+".Consumer";case Ws:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fu:return t=e.displayName||null,t!==null?t:X(e.type)||"Memo";case Sn:t=e._payload,e=e._init;try{return X(e(t))}catch{}}return null}function re(e){return typeof e.tag=="number"?Z(e):typeof e.name=="string"?e.name:null}function Z(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return X(t);case 8:return t===uu?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var r=t.length-1;0<=r;r--)if(typeof t[r].name=="string")return t[r].name}if(e.return!==null)return Z(e.return)}return null}function ee(e){return{current:e}}function Q(e,t){0>Kr?console.error("Unexpected pop."):(t!==wm[Kr]&&console.error("Unexpected Fiber popped."),e.current=Em[Kr],Em[Kr]=null,wm[Kr]=null,Kr--)}function ie(e,t,r){Kr++,Em[Kr]=e.current,wm[Kr]=r,e.current=t}function ce(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Ye(e,t){ie(Ua,t,e),ie(Ks,e,e),ie(Ma,null,e);var r=t.nodeType;switch(r){case 9:case 11:r=r===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?E1(t):ca;break;default:if(r=t.tagName,t=t.namespaceURI)t=E1(t),t=w1(t,r);else switch(r){case"svg":t=as;break;case"math":t=Qu;break;default:t=ca}}r=r.toLowerCase(),r=Cy(null,r),r={context:t,ancestorInfo:r},Q(Ma,e),ie(Ma,r,e)}function Ce(e){Q(Ma,e),Q(Ks,e),Q(Ua,e)}function W(){return ce(Ma.current)}function he(e){e.memoizedState!==null&&ie(du,e,e);var t=ce(Ma.current),r=e.type,i=w1(t.context,r);r=Cy(t.ancestorInfo,r),i={context:i,ancestorInfo:r},t!==i&&(ie(Ks,e,e),ie(Ma,i,e))}function ue(e){Ks.current===e&&(Q(Ma,e),Q(Ks,e)),du.current===e&&(Q(du,e),Ll._currentValue=Vi)}function Te(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Y(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function le(e,t){if(Y(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Te(e)),me(e)}function Ee(e,t){if(Y(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Te(e)),me(e)}function qe(e){if(Y(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Te(e)),me(e)}function st(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{To=t.inject(e),Yt=t}catch(r){console.error("React instrumentation encountered an error: %s.",r)}return!!t.checkDCE}function ke(e){if(typeof wA=="function"&&SA(e),Yt&&typeof Yt.setStrictMode=="function")try{Yt.setStrictMode(To,e)}catch(t){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",t))}}function sn(e){se=e}function at(){se!==null&&typeof se.markCommitStopped=="function"&&se.markCommitStopped()}function ft(e){se!==null&&typeof se.markComponentRenderStarted=="function"&&se.markComponentRenderStarted(e)}function Dt(){se!==null&&typeof se.markComponentRenderStopped=="function"&&se.markComponentRenderStopped()}function pr(e){se!==null&&typeof se.markRenderStarted=="function"&&se.markRenderStarted(e)}function oe(){se!==null&&typeof se.markRenderStopped=="function"&&se.markRenderStopped()}function Rt(e,t){se!==null&&typeof se.markStateUpdateScheduled=="function"&&se.markStateUpdateScheduled(e,t)}function Ir(e){return e>>>=0,e===0?32:31-(xA(e)/TA|0)|0}function ya(e){if(e&1)return"SyncHydrationLane";if(e&2)return"Sync";if(e&4)return"InputContinuousHydration";if(e&8)return"InputContinuous";if(e&16)return"DefaultHydration";if(e&32)return"Default";if(e&128)return"TransitionHydration";if(e&4194048)return"Transition";if(e&62914560)return"Retry";if(e&67108864)return"SelectiveHydration";if(e&134217728)return"IdleHydration";if(e&268435456)return"Idle";if(e&536870912)return"Offscreen";if(e&1073741824)return"Deferred"}function wt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&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."),e}}function Vr(e,t,r){var i=e.pendingLanes;if(i===0)return 0;var s=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~c,i!==0?s=wt(i):(m&=b,m!==0?s=wt(m):r||(r=b&~e,r!==0&&(s=wt(r))))):(b=i&~c,b!==0?s=wt(b):m!==0?s=wt(m):r||(r=i&~e,r!==0&&(s=wt(r)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,r=t&-t,c>=r||c===32&&(r&4194048)!==0)?t:s}function va(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fd(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432: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 Ue(){var e=hu;return hu<<=1,(hu&4194048)===0&&(hu=256),e}function ai(){var e=mu;return mu<<=1,(mu&62914560)===0&&(mu=4194304),e}function no(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function _a(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lc(e,t,r,i,s,c){var m=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var b=e.entanglements,x=e.expirationTimes,k=e.hiddenUpdates;for(r=m&~r;0<r;){var H=31-Wt(r),F=1<<H;b[H]=0,x[H]=-1;var L=k[H];if(L!==null)for(k[H]=null,H=0;H<L.length;H++){var P=L[H];P!==null&&(P.lane&=-536870913)}r&=~F}i!==0&&ds(e,i,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function ds(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|r&4194090}function cc(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-Wt(r),s=1<<i;s&t|e[i]&t&&(e[i]|=t),r&=~s}}function hs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ms(e,t,r){if(ar)for(e=e.pendingUpdatersLaneMap;0<r;){var i=31-Wt(r),s=1<<i;e[i].add(t),r&=~s}}function ps(e,t){if(ar)for(var r=e.pendingUpdatersLaneMap,i=e.memoizedUpdaters;0<t;){var s=31-Wt(t);e=1<<s,s=r[s],0<s.size&&(s.forEach(function(c){var m=c.alternate;m!==null&&i.has(m)||i.add(c)}),s.clear()),t&=~e}}function ro(e){return e&=-e,zn<e?kr<e?(e&134217727)!==0?ea:pu:kr:zn}function bs(){var e=Ze.p;return e!==0?e:(e=window.event,e===void 0?ea:V1(e.type))}function ao(e,t){var r=Ze.p;try{return Ze.p=e,t()}finally{Ze.p=r}}function Ea(e){delete e[Xt],delete e[dn],delete e[Nm],delete e[kA],delete e[NA]}function er(e){var t=e[Xt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[La]||r[Xt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=R1(e);e!==null;){if(r=e[Xt])return r;e=R1(e)}return t}e=r,r=e.parentNode}return null}function tr(e){if(e=e[Xt]||e[La]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function S(e){var t=e[X1];return t||(t=e[X1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function B(e){e[Js]=!0}function J(e,t){ae(e,t),ae(e+"Capture",t)}function ae(e,t){Ei[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ei[e]=t;var r=e.toLowerCase();for(Rm[r]=e,e==="onDoubleClick"&&(Rm.ondblclick=e),e=0;e<t.length;e++)Z1.add(t[e])}function pe(e,t){RA[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="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`."),t.onChange||t.readOnly||t.disabled||t.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 De(e){return Jr.call(W1,e)?!0:Jr.call(Q1,e)?!1:AA.test(e)?W1[e]=!0:(Q1[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Ne(e,t,r){if(De(t)){if(!e.hasAttribute(t)){switch(typeof r){case"symbol":case"object":return r;case"function":return r;case"boolean":if(r===!1)return r}return r===void 0?void 0:null}return e=e.getAttribute(t),e===""&&r===!0?!0:(le(r,t),e===""+r?r:e)}}function Fe(e,t,r){if(De(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}le(r,t),e.setAttribute(t,""+r)}}function Re(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}le(r,t),e.setAttribute(t,""+r)}}function Mt(e,t,r,i){if(i===null)e.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}le(i,r),e.setAttributeNS(t,r,""+i)}}function Gr(){}function dd(){if(el===0){K1=console.log,J1=console.info,e_=console.warn,t_=console.error,n_=console.group,r_=console.groupCollapsed,a_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Gr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}el++}function hd(){if(el--,el===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Me({},e,{value:K1}),info:Me({},e,{value:J1}),warn:Me({},e,{value:e_}),error:Me({},e,{value:t_}),group:Me({},e,{value:n_}),groupCollapsed:Me({},e,{value:r_}),groupEnd:Me({},e,{value:a_})})}0>el&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Un(e){if(Am===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Am=t&&t[1]||"",i_=-1<r.stack.indexOf(`
|
|
63
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
64
|
+
`+Am+e+i_}function md(e,t){if(!e||Om)return"";var r=Cm.get(e);if(r!==void 0)return r;Om=!0,r=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var i=null;i=q.H,q.H=null,dd();try{var s={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(fe){var P=fe}Reflect.construct(e,[],L)}else{try{L.call()}catch(fe){P=fe}e.call(L.prototype)}}else{try{throw Error()}catch(fe){P=fe}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(fe){if(fe&&P&&typeof fe.stack=="string")return[fe.stack,P.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=s.DetermineComponentFrameRoot(),b=m[0],x=m[1];if(b&&x){var k=b.split(`
|
|
65
|
+
`),H=x.split(`
|
|
66
|
+
`);for(m=c=0;c<k.length&&!k[c].includes("DetermineComponentFrameRoot");)c++;for(;m<H.length&&!H[m].includes("DetermineComponentFrameRoot");)m++;if(c===k.length||m===H.length)for(c=k.length-1,m=H.length-1;1<=c&&0<=m&&k[c]!==H[m];)m--;for(;1<=c&&0<=m;c--,m--)if(k[c]!==H[m]){if(c!==1||m!==1)do if(c--,m--,0>m||k[c]!==H[m]){var F=`
|
|
67
|
+
`+k[c].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),typeof e=="function"&&Cm.set(e,F),F}while(1<=c&&0<=m);break}}}finally{Om=!1,q.H=i,hd(),Error.prepareStackTrace=r}return k=(k=e?e.displayName||e.name:"")?Un(k):"",typeof e=="function"&&Cm.set(e,k),k}function my(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
68
|
+
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
69
|
+
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react-stack-bottom-frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
70
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function DN(e){switch(e.tag){case 26:case 27:case 5:return Un(e.type);case 16:return Un("Lazy");case 13:return Un("Suspense");case 19:return Un("SuspenseList");case 0:case 15:return md(e.type,!1);case 11:return md(e.type.render,!1);case 1:return md(e.type,!0);case 31:return Un("Activity");default:return""}}function py(e){try{var t="";do{t+=DN(e);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var s=r[i];if(typeof s.name=="string"){var c=t,m=s.env,b=Un(s.name+(m?" ["+m+"]":""));t=c+b}}e=e.return}while(e);return t}catch(x){return`
|
|
71
|
+
Error generating stack: `+x.message+`
|
|
72
|
+
`+x.stack}}function by(e){return(e=e?e.displayName||e.name:"")?Un(e):""}function uc(){if(xn===null)return null;var e=xn._debugOwner;return e!=null?re(e):null}function MN(){if(xn===null)return"";var e=xn;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Un(e.type);break;case 13:t+=Un("Suspense");break;case 19:t+=Un("SuspenseList");break;case 31:t+=Un("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=by(e.type));break;case 11:e._debugOwner||t!==""||(t+=by(e.type.render))}for(;e;)if(typeof e.tag=="number"){var r=e;e=r._debugOwner;var i=r._debugStack;e&&i&&(typeof i!="string"&&(r._debugStack=i=my(i)),i!==""&&(t+=`
|
|
73
|
+
`+i))}else if(e.debugStack!=null){var s=e.debugStack;(e=e.owner)&&s&&(t+=`
|
|
74
|
+
`+my(s))}else break;var c=t}catch(m){c=`
|
|
75
|
+
Error generating stack: `+m.message+`
|
|
76
|
+
`+m.stack}return c}function ge(e,t,r,i,s,c,m){var b=xn;pd(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,r,i,s,c,m)):t(r,i,s,c,m)}finally{pd(b)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function pd(e){q.getCurrentStack=e===null?null:MN,Nr=!1,xn=e}function Bn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return qe(e),e;default:return""}}function gy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function UN(e){var t=gy(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);qe(e[t]);var i=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(m){qe(m),i=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(m){qe(m),i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fc(e){e._valueTracker||(e._valueTracker=UN(e))}function yy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=gy(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function dc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ln(e){return e.replace(OA,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vy(e,t){t.checked===void 0||t.defaultChecked===void 0||s_||(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",uc()||"A component",t.type),s_=!0),t.value===void 0||t.defaultValue===void 0||o_||(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",uc()||"A component",t.type),o_=!0)}function bd(e,t,r,i,s,c,m,b){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?(le(m,"type"),e.type=m):e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bn(t)):e.value!==""+Bn(t)&&(e.value=""+Bn(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?gd(e,m,Bn(t)):r!=null?gd(e,m,Bn(r)):i!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?(le(b,"name"),e.name=""+Bn(b)):e.removeAttribute("name")}function _y(e,t,r,i,s,c,m,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(le(c,"type"),e.type=c),t!=null||r!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;r=r!=null?""+Bn(r):"",t=t!=null?""+Bn(t):r,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(le(m,"name"),e.name=m)}function gd(e,t,r){t==="number"&&dc(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Ey(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?pm.Children.forEach(t.children,function(r){r==null||typeof r=="string"||typeof r=="number"||typeof r=="bigint"||c_||(c_=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||u_||(u_=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||l_||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),l_=!0)}function wy(){var e=uc();return e?`
|
|
77
|
+
|
|
78
|
+
Check the render method of \``+e+"`.":""}function io(e,t,r,i){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&i&&(e[r].defaultSelected=!0)}else{for(r=""+Bn(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Sy(e,t){for(e=0;e<d_.length;e++){var r=d_[e];if(t[r]!=null){var i=Vt(t[r]);t.multiple&&!i?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",r,wy()):!t.multiple&&i&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",r,wy())}}t.value===void 0||t.defaultValue===void 0||f_||(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"),f_=!0)}function xy(e,t){t.value===void 0||t.defaultValue===void 0||h_||(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",uc()||"A component"),h_=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Ty(e,t,r){if(t!=null&&(t=""+Bn(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+Bn(r):""}function ky(e,t,r,i){if(t==null){if(i!=null){if(r!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Vt(i)){if(1<i.length)throw Error("<textarea> can only have at most one child.");i=i[0]}r=i}r==null&&(r=""),t=r}r=Bn(t),e.defaultValue=r,i=e.textContent,i===r&&i!==""&&i!==null&&(e.value=i)}function Ny(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ny(e.children[0],t):e}function yn(e){return" "+" ".repeat(e)}function oo(e){return"+ "+" ".repeat(e)}function ii(e){return"- "+" ".repeat(e)}function Ry(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function gs(e,t){return m_.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function hc(e,t,r){var i=120-2*r;if(t===null)return oo(r)+gs(e,i)+`
|
|
79
|
+
`;if(typeof t=="string"){for(var s=0;s<t.length&&s<e.length&&t.charCodeAt(s)===e.charCodeAt(s);s++);return s>i-8&&10<s&&(e="..."+e.slice(s-8),t="..."+t.slice(s-8)),oo(r)+gs(e,i)+`
|
|
80
|
+
`+ii(r)+gs(t,i)+`
|
|
81
|
+
`}return yn(r)+gs(e,i)+`
|
|
82
|
+
`}function yd(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,r){return r})}function ys(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Vt(e))return"[...]";if(e.$$typeof===Da)return(t=X(e.type))?"<"+t+">":"<...>";var r=yd(e);if(r==="Object"){r="",t-=2;for(var i in e)if(e.hasOwnProperty(i)){var s=JSON.stringify(i);if(s!=='"'+i+'"'&&(i=s),t-=i.length-2,s=ys(e[i],15>t?t:15),t-=s.length,0>t){r+=r===""?"...":", ...";break}r+=(r===""?"":",")+i+":"+s}return"{"+r+"}"}return r;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function so(e,t){return typeof e!="string"||m_.test(e)?"{"+ys(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function vd(e,t,r){var i=120-r.length-e.length,s=[],c;for(c in t)if(t.hasOwnProperty(c)&&c!=="children"){var m=so(t[c],120-r.length-c.length-1);i-=c.length+m.length+2,s.push(c+"="+m)}return s.length===0?r+"<"+e+`>
|
|
83
|
+
`:0<i?r+"<"+e+" "+s.join(" ")+`>
|
|
84
|
+
`:r+"<"+e+`
|
|
85
|
+
`+r+" "+s.join(`
|
|
86
|
+
`+r+" ")+`
|
|
87
|
+
`+r+`>
|
|
88
|
+
`}function BN(e,t,r){var i="",s=Me({},t),c;for(c in e)if(e.hasOwnProperty(c)){delete s[c];var m=120-2*r-c.length-2,b=ys(e[c],m);t.hasOwnProperty(c)?(m=ys(t[c],m),i+=oo(r)+c+": "+b+`
|
|
89
|
+
`,i+=ii(r)+c+": "+m+`
|
|
90
|
+
`):i+=oo(r)+c+": "+b+`
|
|
91
|
+
`}for(var x in s)s.hasOwnProperty(x)&&(e=ys(s[x],120-2*r-x.length-2),i+=ii(r)+x+": "+e+`
|
|
92
|
+
`);return i}function LN(e,t,r,i){var s="",c=new Map;for(k in r)r.hasOwnProperty(k)&&c.set(k.toLowerCase(),k);if(c.size===1&&c.has("children"))s+=vd(e,t,yn(i));else{for(var m in t)if(t.hasOwnProperty(m)&&m!=="children"){var b=120-2*(i+1)-m.length-1,x=c.get(m.toLowerCase());if(x!==void 0){c.delete(m.toLowerCase());var k=t[m];x=r[x];var H=so(k,b);b=so(x,b),typeof k=="object"&&k!==null&&typeof x=="object"&&x!==null&&yd(k)==="Object"&&yd(x)==="Object"&&(2<Object.keys(k).length||2<Object.keys(x).length||-1<H.indexOf("...")||-1<b.indexOf("..."))?s+=yn(i+1)+m+`={{
|
|
93
|
+
`+BN(k,x,i+2)+yn(i+1)+`}}
|
|
94
|
+
`:(s+=oo(i+1)+m+"="+H+`
|
|
95
|
+
`,s+=ii(i+1)+m+"="+b+`
|
|
96
|
+
`)}else s+=yn(i+1)+m+"="+so(t[m],b)+`
|
|
97
|
+
`}c.forEach(function(F){if(F!=="children"){var L=120-2*(i+1)-F.length-1;s+=ii(i+1)+F+"="+so(r[F],L)+`
|
|
98
|
+
`}}),s=s===""?yn(i)+"<"+e+`>
|
|
99
|
+
`:yn(i)+"<"+e+`
|
|
100
|
+
`+s+yn(i)+`>
|
|
101
|
+
`}return e=r.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(c="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(c=""+t),s+=hc(c,""+e,i+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(s=e==null?s+hc(""+t,null,i+1):s+hc(""+t,void 0,i+1)),s}function Ay(e,t){var r=Ry(e);if(r===null){for(r="",e=e.child;e;)r+=Ay(e,t),e=e.sibling;return r}return yn(t)+"<"+r+`>
|
|
102
|
+
`}function _d(e,t){var r=Ny(e,t);if(r!==e&&(e.children.length!==1||e.children[0]!==r))return yn(t)+`...
|
|
103
|
+
`+_d(r,t+1);r="";var i=e.fiber._debugInfo;if(i)for(var s=0;s<i.length;s++){var c=i[s].name;typeof c=="string"&&(r+=yn(t)+"<"+c+`>
|
|
104
|
+
`,t++)}if(i="",s=e.fiber.pendingProps,e.fiber.tag===6)i=hc(s,e.serverProps,t),t++;else if(c=Ry(e.fiber),c!==null)if(e.serverProps===void 0){i=t;var m=120-2*i-c.length-2,b="";for(k in s)if(s.hasOwnProperty(k)&&k!=="children"){var x=so(s[k],15);if(m-=k.length+x.length+2,0>m){b+=" ...";break}b+=" "+k+"="+x}i=yn(i)+"<"+c+b+`>
|
|
105
|
+
`,t++}else e.serverProps===null?(i=vd(c,s,oo(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(i=LN(c,s,e.serverProps,t),t++);var k="";for(s=e.fiber.child,c=0;s&&c<e.children.length;)m=e.children[c],m.fiber===s?(k+=_d(m,t),c++):k+=Ay(s,t),s=s.sibling;for(s&&0<e.children.length&&(k+=yn(t)+`...
|
|
106
|
+
`),s=e.serverTail,e.serverProps===null&&t--,e=0;e<s.length;e++)c=s[e],k=typeof c=="string"?k+(ii(t)+gs(c,120-2*t)+`
|
|
107
|
+
`):k+vd(c.type,c.props,ii(t));return r+i+k}function Ed(e){try{return`
|
|
108
|
+
|
|
109
|
+
`+_d(e,0)}catch{return""}}function Oy(e,t,r){for(var i=t,s=null,c=0;i;)i===e&&(c=0),s={fiber:i,children:s!==null?[s]:[],serverProps:i===t?r:i===e?null:void 0,serverTail:[],distanceFromLeaf:c},c++,i=i.return;return s!==null?Ed(s).replaceAll(/^[+-]/gm,">"):""}function Cy(e,t){var r=Me({},e||b_),i={tag:t};return p_.indexOf(t)!==-1&&(r.aTagInScope=null,r.buttonTagInScope=null,r.nobrTagInScope=null),DA.indexOf(t)!==-1&&(r.pTagInButtonScope=null),CA.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(r.listItemTagAutoclosing=null,r.dlItemTagAutoclosing=null),r.current=i,t==="form"&&(r.formTag=i),t==="a"&&(r.aTagInScope=i),t==="button"&&(r.buttonTagInScope=i),t==="nobr"&&(r.nobrTagInScope=i),t==="p"&&(r.pTagInButtonScope=i),t==="li"&&(r.listItemTagAutoclosing=i),(t==="dd"||t==="dt")&&(r.dlItemTagAutoclosing=i),t==="#document"||t==="html"?r.containerTagInScope=null:r.containerTagInScope||(r.containerTagInScope=i),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?r.implicitRootScope===!0&&(r.implicitRootScope=!1):r.implicitRootScope=!0,r}function Dy(e,t,r){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(r)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!r)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return MA.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return r||t===null;case"html":return r&&t==="#document"||t===null;case"body":return r&&(t==="#document"||t==="html")||t===null}return!0}function jN(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function My(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function wd(e,t){t=t||b_;var r=t.current;if(t=(r=Dy(e,r&&r.tag,t.implicitRootScope)?null:r)?null:jN(e,t),t=r||t,!t)return!0;var i=t.tag;if(t=String(!!r)+"|"+e+"|"+i,bu[t])return!1;bu[t]=!0;var s=(t=xn)?My(t.return,i):null,c=t!==null&&s!==null?Oy(s,t,null):"",m="<"+e+">";return r?(r="",i==="table"&&e==="tr"&&(r+=" 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
|
|
110
|
+
This will cause a hydration error.%s`,m,i,r,c)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
111
|
+
This will cause a hydration error.%s`,m,i,c),t&&(e=t.return,s===null||e===null||s===e&&e._debugOwner===t._debugOwner||ge(s,function(){console.error(`<%s> cannot contain a nested %s.
|
|
112
|
+
See this log for the ancestor stack trace.`,i,m)})),!1}function mc(e,t,r){if(r||Dy("#text",t,!1))return!0;if(r="#text|"+t,bu[r])return!1;bu[r]=!0;var i=(r=xn)?My(r,t):null;return r=r!==null&&i!==null?Oy(i,r,r.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
113
|
+
This will cause a hydration error.%s`,t,r):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.
|
|
114
|
+
This will cause a hydration error.%s`,t,r),!1}function vs(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}function HN(e){return e.replace(LA,function(t,r){return r.toUpperCase()})}function Uy(e,t,r){var i=t.indexOf("--")===0;i||(-1<t.indexOf("-")?ko.hasOwnProperty(t)&&ko[t]||(ko[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,HN(t.replace(BA,"ms-")))):UA.test(t)?ko.hasOwnProperty(t)&&ko[t]||(ko[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!v_.test(r)||Mm.hasOwnProperty(r)&&Mm[r]||(Mm[r]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,r.replace(v_,""))),typeof r=="number"&&(isNaN(r)?__||(__=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(r)||E_||(E_=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),r==null||typeof r=="boolean"||r===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,r):typeof r!="number"||r===0||w_.has(t)?t==="float"?e.cssFloat=r:(Ee(r,t),e[t]=(""+r).trim()):e[t]=r+"px"}function By(e,t,r){if(t!=null&&typeof t!="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(t&&Object.freeze(t),e=e.style,r!=null){if(t){var i={};if(r){for(var s in r)if(r.hasOwnProperty(s)&&!t.hasOwnProperty(s))for(var c=Dm[s]||[s],m=0;m<c.length;m++)i[c[m]]=s}for(var b in t)if(t.hasOwnProperty(b)&&(!r||r[b]!==t[b]))for(s=Dm[b]||[b],c=0;c<s.length;c++)i[s[c]]=b;b={};for(var x in t)for(s=Dm[x]||[x],c=0;c<s.length;c++)b[s[c]]=x;x={};for(var k in i)if(s=i[k],(c=b[k])&&s!==c&&(m=s+","+c,!x[m])){x[m]=!0,m=console;var H=t[s];m.error.call(m,"%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.",H==null||typeof H=="boolean"||H===""?"Removing":"Updating",s,c)}}for(var F in r)!r.hasOwnProperty(F)||t!=null&&t.hasOwnProperty(F)||(F.indexOf("--")===0?e.setProperty(F,""):F==="float"?e.cssFloat="":e[F]="");for(var L in t)k=t[L],t.hasOwnProperty(L)&&r[L]!==k&&Uy(e,L,k)}else for(i in t)t.hasOwnProperty(i)&&Uy(e,i,t[i])}function _s(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ly(e){return jA.get(e)||e}function zN(e,t){if(Jr.call(Ro,t)&&Ro[t])return!0;if(zA.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=S_.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ro[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ro[t]=!0}if(HA.test(t)){if(e=t.toLowerCase(),e=S_.hasOwnProperty(e)?e:null,e==null)return Ro[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ro[t]=!0)}return!0}function IN(e,t){var r=[],i;for(i in t)zN(e,i)||r.push(i);t=r.map(function(s){return"`"+s+"`"}).join(", "),r.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<r.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function VN(e,t,r,i){if(Jr.call(Kt,t)&&Kt[t])return!0;var s=t.toLowerCase();if(s==="onfocusin"||s==="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."),Kt[t]=!0;if(typeof r=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(i!=null){if(e=i.possibleRegistrationNames,i.registrationNameDependencies.hasOwnProperty(t))return!0;if(i=e.hasOwnProperty(s)?e[s]:null,i!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,i),Kt[t]=!0;if(T_.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Kt[t]=!0}else if(T_.test(t))return IA.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Kt[t]=!0;if(VA.test(t)||GA.test(t))return!0;if(s==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Kt[t]=!0;if(s==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Kt[t]=!0;if(s==="is"&&r!==null&&r!==void 0&&typeof r!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof r),Kt[t]=!0;if(typeof r=="number"&&isNaN(r))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Kt[t]=!0;if(yu.hasOwnProperty(s)){if(s=yu[s],s!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,s),Kt[t]=!0}else if(t!==s)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,s),Kt[t]=!0;switch(t){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 r){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return s=t.toLowerCase().slice(0,5),s==="data-"||s==="aria-"?!0:(r?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()}.',r,t,t,r,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',r,t,t,r,t,t,t),Kt[t]=!0)}case"function":case"symbol":return Kt[t]=!0,!1;case"string":if(r==="false"||r==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",r,t,r==="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".',t,r),Kt[t]=!0}}return!0}function GN(e,t,r){var i=[],s;for(s in t)VN(e,s,t[s],r)||i.push(s);t=i.map(function(c){return"`"+c+"`"}).join(", "),i.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 ",t,e):1<i.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function Es(e){return qA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Sd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function jy(e){var t=tr(e);if(t&&(e=t.stateNode)){var r=e[dn]||null;e:switch(e=t.stateNode,t.type){case"input":if(bd(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(le(t,"name"),r=r.querySelectorAll('input[name="'+Ln(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var s=i[dn]||null;if(!s)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");bd(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<r.length;t++)i=r[t],i.form===e.form&&yy(i)}break e;case"textarea":Ty(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&io(e,!!r.multiple,t,!1)}}}function Hy(e,t,r){if(Um)return e(t,r);Um=!0;try{var i=e(t);return i}finally{if(Um=!1,(Ao!==null||Oo!==null)&&(bo(),Ao&&(t=Ao,e=Oo,Oo=Ao=null,jy(t),e)))for(t=0;t<e.length;t++)jy(e[t])}}function ws(e,t){var r=e.stateNode;if(r===null)return null;var i=r[dn]||null;if(i===null)return null;r=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}function zy(){if(vu)return vu;var e,t=Lm,r=t.length,i,s="value"in ja?ja.value:ja.textContent,c=s.length;for(e=0;e<r&&t[e]===s[e];e++);var m=r-e;for(i=1;i<=m&&t[r-i]===s[c-i];i++);return vu=s.slice(e,1<i?1-i:void 0)}function pc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bc(){return!0}function Iy(){return!1}function ln(e){function t(r,i,s,c,m){this._reactName=r,this._targetInst=s,this.type=i,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(r=e[b],this[b]=r?r(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?bc:Iy,this.isPropagationStopped=Iy,this}return Me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=bc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=bc)},persist:function(){},isPersistent:bc}),t}function qN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nO[e])?!!t[e]:!1}function xd(){return qN}function Vy(e,t){switch(e){case"keyup":return mO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==A_;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function FN(e,t){switch(e){case"compositionend":return Gy(t);case"keypress":return t.which!==C_?null:(M_=!0,D_);case"textInput":return e=t.data,e===D_&&M_?null:e;default:return null}}function PN(e,t){if(Co)return e==="compositionend"||!Im&&Vy(e,t)?(e=zy(),vu=Lm=ja=null,Co=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return O_&&t.locale!=="ko"?null:t.data;default:return null}}function qy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bO[e.type]:t==="textarea"}function $N(e){if(!Rr)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Fy(e,t,r,i){Ao?Oo?Oo.push(i):Oo=[i]:Ao=i,t=eu(t,"onChange"),0<t.length&&(r=new _u("onChange","change",null,r,i),e.push({event:r,listeners:t}))}function YN(e){f1(e,0)}function gc(e){var t=wa(e);if(yy(t))return e}function Py(e,t){if(e==="change")return t}function $y(){ol&&(ol.detachEvent("onpropertychange",Yy),sl=ol=null)}function Yy(e){if(e.propertyName==="value"&&gc(sl)){var t=[];Fy(t,sl,e,Sd(e)),Hy(YN,t)}}function XN(e,t,r){e==="focusin"?($y(),ol=t,sl=r,ol.attachEvent("onpropertychange",Yy)):e==="focusout"&&$y()}function ZN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gc(sl)}function QN(e,t){if(e==="click")return gc(t)}function WN(e,t){if(e==="input"||e==="change")return gc(t)}function KN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ss(e,t){if(Jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var s=r[i];if(!Jr.call(t,s)||!Jt(e[s],t[s]))return!1}return!0}function Xy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zy(e,t){var r=Xy(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=t&&i>=t)return{node:r,offset:t-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Xy(r)}}function Qy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wy(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=dc(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=dc(e.document)}return t}function Td(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ky(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Gm||Do==null||Do!==dc(i)||(i=Do,"selectionStart"in i&&Td(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ll&&Ss(ll,i)||(ll=i,i=eu(Vm,"onSelect"),0<i.length&&(t=new _u("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=Do)))}function oi(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}function si(e){if(qm[e])return qm[e];if(!Mo[e])return e;var t=Mo[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in B_)return qm[e]=t[r];return e}function nr(e,t){I_.set(e,t),J(t,[e])}function vn(e,t){if(typeof e=="object"&&e!==null){var r=Pm.get(e);return r!==void 0?r:(t={value:e,source:t,stack:py(t)},Pm.set(e,t),t)}return{value:e,source:t,stack:py(t)}}function yc(){for(var e=Uo,t=Ym=Uo=0;t<e;){var r=In[t];In[t++]=null;var i=In[t];In[t++]=null;var s=In[t];In[t++]=null;var c=In[t];if(In[t++]=null,i!==null&&s!==null){var m=i.pending;m===null?s.next=s:(s.next=m.next,m.next=s),i.pending=s}c!==0&&Jy(r,s,c)}}function vc(e,t,r,i){In[Uo++]=e,In[Uo++]=t,In[Uo++]=r,In[Uo++]=i,Ym|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function kd(e,t,r,i){return vc(e,t,r,i),_c(e)}function cn(e,t){return vc(e,null,null,t),_c(e)}function Jy(e,t,r){e.lanes|=r;var i=e.alternate;i!==null&&(i.lanes|=r);for(var s=!1,c=e.return;c!==null;)c.childLanes|=r,i=c.alternate,i!==null&&(i.childLanes|=r),c.tag===22&&(e=c.stateNode,e===null||e._visibility&$m||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-Wt(r),e=c.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=r|536870912),c):null}function _c(e){if(Ol>zO)throw Li=Ol=0,Cl=Sp=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.");Li>IO&&(Li=0,Cl=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.")),e.alternate===null&&(e.flags&4098)!==0&&a1(e);for(var t=e,r=t.return;r!==null;)t.alternate===null&&(t.flags&4098)!==0&&a1(e),t=r,r=t.return;return t.tag===3?t.stateNode:null}function li(e){if(Vn===null)return e;var t=Vn(e);return t===void 0?e:t.current}function Nd(e){if(Vn===null)return e;var t=Vn(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=li(e.render),e.render!==t)?(t={$$typeof:Ws,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function e0(e,t){if(Vn===null)return!1;var r=e.elementType;t=t.type;var i=!1,s=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(i=!0);break;case 0:(typeof t=="function"||s===Sn)&&(i=!0);break;case 11:(s===Ws||s===Sn)&&(i=!0);break;case 14:case 15:(s===fu||s===Sn)&&(i=!0);break;default:return!1}return!!(i&&(e=Vn(r),e!==void 0&&e===Vn(t)))}function t0(e){Vn!==null&&typeof WeakSet=="function"&&(Bo===null&&(Bo=new WeakSet),Bo.add(e))}function Rd(e,t,r){var i=e.alternate,s=e.child,c=e.sibling,m=e.tag,b=e.type,x=null;switch(m){case 0:case 15:case 1:x=b;break;case 11:x=b.render}if(Vn===null)throw Error("Expected resolveFamily to be set during hot reload.");var k=!1;b=!1,x!==null&&(x=Vn(x),x!==void 0&&(r.has(x)?b=!0:t.has(x)&&(m===1?b=!0:k=!0))),Bo!==null&&(Bo.has(e)||i!==null&&Bo.has(i))&&(b=!0),b&&(e._debugNeedsRemount=!0),(b||k)&&(i=cn(e,2),i!==null&&vt(i,e,2)),s===null||b||Rd(s,t,r),c!==null&&Rd(c,t,r)}function JN(e,t,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,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,G_||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Ad(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qr(e,t){var r=e.alternate;switch(r===null?(r=g(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r._debugOwner=e._debugOwner,r._debugStack=e._debugStack,r._debugTask=e._debugTask,r._debugHookTypes=e._debugHookTypes,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null,r.actualDuration=-0,r.actualStartTime=-1.1),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r.selfBaseDuration=e.selfBaseDuration,r.treeBaseDuration=e.treeBaseDuration,r._debugInfo=e._debugInfo,r._debugNeedsRemount=e._debugNeedsRemount,r.tag){case 0:case 15:r.type=li(e.type);break;case 1:r.type=li(e.type);break;case 11:r.type=Nd(e.type)}return r}function n0(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=r.selfBaseDuration,e.treeBaseDuration=r.treeBaseDuration),e}function Od(e,t,r,i,s,c){var m=0,b=e;if(typeof e=="function")Ad(e)&&(m=1),b=li(b);else if(typeof e=="string")m=W(),m=JR(e,r,m)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case _m:return t=g(31,r,t,s),t.elementType=_m,t.lanes=c,t;case So:return ci(r.children,s,c,t);case uu:m=8,s|=Zt,s|=ir;break;case bm:return e=r,i=s,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=g(12,e,t,i|Gt),t.elementType=bm,t.lanes=c,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case ym:return t=g(13,r,t,s),t.elementType=ym,t.lanes=c,t;case vm:return t=g(19,r,t,s),t.elementType=vm,t.lanes=c,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hA:case Sr:m=10;break e;case gm:m=9;break e;case Ws:m=11,b=Nd(b);break e;case fu:m=14;break e;case Sn:m=16,b=null;break e}b="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?r="null":Vt(e)?r="array":e!==void 0&&e.$$typeof===Da?(r="<"+(X(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):r=typeof e,(m=i?re(i):null)&&(b+=`
|
|
115
|
+
|
|
116
|
+
Check the render method of \``+m+"`."),m=29,r=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(r+"."+b)),b=null}return t=g(m,r,t,s),t.elementType=e,t.type=b,t.lanes=c,t._debugOwner=i,t}function Ec(e,t,r){return t=Od(e.type,e.key,e.props,e._owner,t,r),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function ci(e,t,r,i){return e=g(7,e,i,t),e.lanes=r,e}function Cd(e,t,r){return e=g(6,e,null,t),e.lanes=r,e}function Dd(e,t,r){return t=g(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ui(e,t){fi(),Lo[jo++]=Su,Lo[jo++]=wu,wu=e,Su=t}function r0(e,t,r){fi(),Gn[qn++]=ta,Gn[qn++]=na,Gn[qn++]=xi,xi=e;var i=ta;e=na;var s=32-Wt(i)-1;i&=~(1<<s),r+=1;var c=32-Wt(t)+s;if(30<c){var m=s-s%5;c=(i&(1<<m)-1).toString(32),i>>=m,s-=m,ta=1<<32-Wt(t)+s|r<<s|i,na=c+e}else ta=1<<c|r<<s|i,na=e}function Md(e){fi(),e.return!==null&&(ui(e,1),r0(e,1,0))}function Ud(e){for(;e===wu;)wu=Lo[--jo],Lo[jo]=null,Su=Lo[--jo],Lo[jo]=null;for(;e===xi;)xi=Gn[--qn],Gn[qn]=null,na=Gn[--qn],Gn[qn]=null,ta=Gn[--qn],Gn[qn]=null}function fi(){Pe||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function di(e,t){if(e.return===null){if(Fn===null)Fn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Fn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Fn.distanceFromLeaf>t&&(Fn.distanceFromLeaf=t)}return Fn}var r=di(e.return,t+1).children;return 0<r.length&&r[r.length-1].fiber===e?(r=r[r.length-1],r.distanceFromLeaf>t&&(r.distanceFromLeaf=t),r):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},r.push(t),t)}function Bd(e,t){ra||(e=di(e,0),e.serverProps=null,t!==null&&(t=T1(t),e.serverTail.push(t)))}function hi(e){var t="",r=Fn;throw r!==null&&(Fn=null,t=Ed(r)),ks(vn(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
117
|
+
|
|
118
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
119
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
120
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
121
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
122
|
+
- Invalid HTML tag nesting.
|
|
123
|
+
|
|
124
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
125
|
+
|
|
126
|
+
https://react.dev/link/hydration-mismatch`+t),e)),Xm}function a0(e){var t=e.stateNode,r=e.type,i=e.memoizedProps;switch(t[Xt]=e,t[dn]=i,Kh(r,i),r){case"dialog":He("cancel",t),He("close",t);break;case"iframe":case"object":case"embed":He("load",t);break;case"video":case"audio":for(r=0;r<Dl.length;r++)He(Dl[r],t);break;case"source":He("error",t);break;case"img":case"image":case"link":He("error",t),He("load",t);break;case"details":He("toggle",t);break;case"input":pe("input",i),He("invalid",t),vy(t,i),_y(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),fc(t);break;case"option":Ey(t,i);break;case"select":pe("select",i),He("invalid",t),Sy(t,i);break;case"textarea":pe("textarea",i),He("invalid",t),xy(t,i),ky(t,i.value,i.defaultValue,i.children),fc(t)}r=i.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||i.suppressHydrationWarning===!0||p1(t.textContent,r)?(i.popover!=null&&(He("beforetoggle",t),He("toggle",t)),i.onScroll!=null&&He("scroll",t),i.onScrollEnd!=null&&He("scrollend",t),i.onClick!=null&&(t.onclick=tu),t=!0):t=!1,t||hi(e)}function i0(e){for(en=e.return;en;)switch(en.tag){case 5:case 13:Ar=!1;return;case 27:case 3:Ar=!0;return;default:en=en.return}}function xs(e){if(e!==en)return!1;if(!Pe)return i0(e),Pe=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||rm(e.type,e.memoizedProps)),r=!r),r&&pt){for(r=pt;r;){var i=di(e,0),s=T1(r);i.serverTail.push(s),r=s.type==="Suspense"?N1(r):Hn(r.nextSibling)}hi(e)}if(i0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");pt=N1(e)}else t===27?(t=pt,Ca(e.type)?(e=Bp,Bp=null,pt=e):pt=t):pt=en?Hn(e.stateNode.nextSibling):null;return!0}function Ts(){pt=en=null,ra=Pe=!1}function o0(){var e=Ti;return e!==null&&(rn===null?rn=e:rn.push.apply(rn,e),Ti=null),e}function ks(e){Ti===null?Ti=[e]:Ti.push(e)}function s0(){var e=Fn;if(e!==null){Fn=null;for(var t=Ed(e);0<e.children.length;)e=e.children[0];ge(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
127
|
+
|
|
128
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
129
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
130
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
131
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
132
|
+
- Invalid HTML tag nesting.
|
|
133
|
+
|
|
134
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
135
|
+
|
|
136
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function wc(){Ho=xu=null,zo=!1}function Sa(e,t,r){ie(Zm,t._currentValue,e),t._currentValue=r,ie(Qm,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==$_&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=$_}function Fr(e,t){e._currentValue=Zm.current;var r=Qm.current;Q(Qm,t),e._currentRenderer=r,Q(Zm,t)}function Ld(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}e!==r&&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 jd(e,t,r,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var m=s.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=s;for(var x=0;x<t.length;x++)if(b.context===t[x]){c.lanes|=r,b=c.alternate,b!==null&&(b.lanes|=r),Ld(c.return,r,e),i||(m=null);break e}c=b.next}}else if(s.tag===18){if(m=s.return,m===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");m.lanes|=r,c=m.alternate,c!==null&&(c.lanes|=r),Ld(m,r,e),m=null}else m=s.child;if(m!==null)m.return=s;else for(m=s;m!==null;){if(m===e){m=null;break}if(s=m.sibling,s!==null){s.return=m.return,m=s;break}m=m.return}s=m}}function Ns(e,t,r,i){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var m=s.alternate;if(m===null)throw Error("Should have a current fiber. This is a bug in React.");if(m=m.memoizedProps,m!==null){var b=s.type;Jt(s.pendingProps.value,m.value)||(e!==null?e.push(b):e=[b])}}else if(s===du.current){if(m=s.alternate,m===null)throw Error("Should have a current fiber. This is a bug in React.");m.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ll):e=[Ll])}s=s.return}e!==null&&jd(t,e,r,i),t.flags|=262144}function Sc(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function mi(e){xu=e,Ho=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return zo&&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()."),l0(xu,e)}function xc(e,t){return xu===null&&mi(e),l0(e,t)}function l0(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Ho===null){if(e===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().");Ho=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Ho=Ho.next=t;return r}function Hd(){return{controller:new xO,data:new Map,refCount:0}}function pi(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function Rs(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&TO(kO,function(){e.controller.abort()})}function Pr(){var e=ki;return ki=0,e}function Tc(e){var t=ki;return ki=e,t}function As(e){var t=ki;return ki+=e,t}function zd(e){hn=Io(),0>e.actualStartTime&&(e.actualStartTime=hn)}function Id(e){if(0<=hn){var t=Io()-hn;e.actualDuration+=t,e.selfBaseDuration=t,hn=-1}}function c0(e){if(0<=hn){var t=Io()-hn;e.actualDuration+=t,hn=-1}}function br(){if(0<=hn){var e=Io()-hn;hn=-1,ki+=e}}function gr(){hn=Io()}function kc(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function eR(e,t){if(cl===null){var r=cl=[];Wm=0,Ni=Xh(),Vo={status:"pending",value:void 0,then:function(i){r.push(i)}}}return Wm++,t.then(u0,u0),t}function u0(){if(--Wm===0&&cl!==null){Vo!==null&&(Vo.status="fulfilled");var e=cl;cl=null,Ni=0,Vo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tR(e,t){var r=[],i={status:"pending",value:null,reason:null,then:function(s){r.push(s)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var s=0;s<r.length;s++)(0,r[s])(t)},function(s){for(i.status="rejected",i.reason=s,s=0;s<r.length;s++)(0,r[s])(void 0)}),i}function Vd(){var e=Ri.current;return e!==null?e:it.pooledCache}function Nc(e,t){t===null?ie(Ri,Ri.current,e):ie(Ri,t.pool,e)}function f0(){var e=Vd();return e===null?null:{parent:At._currentValue,pool:e}}function d0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function h0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rc(){}function m0(e,t,r){q.actQueue!==null&&(q.didUsePromise=!0);var i=e.thenables;switch(r=i[r],r===void 0?i.push(t):r!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Rc,Rc),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,b0(e),e;default:if(typeof t.status=="string")t.then(Rc,Rc);else{if(e=it,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=s}},function(s){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,b0(e),e}throw gl=t,Ou=!0,bl}}function p0(){if(gl===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=gl;return gl=null,Ou=!1,e}function b0(e){if(e===bl||e===Au)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 Gd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xa(e){return{lane:e,tag:W_,payload:null,callback:null,next:null}}function Ta(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,ep===i&&!eE){var s=Z(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
137
|
+
|
|
138
|
+
Please update the following component: %s`,s),eE=!0}return(Qe&nn)!==Tn?(s=i.pending,s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=_c(e),Jy(e,null,r),t):(vc(e,i,t,r),_c(e))}function Os(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,cc(e,r)}}function Ac(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var s=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var m={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};c===null?s=c=m:c=c.next=m,r=r.next}while(r!==null);c===null?s=c=t:c=c.next=t}else s=c=t;r={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Cs(){if(tp){var e=Vo;if(e!==null)throw e}}function Ds(e,t,r,i){tp=!1;var s=e.updateQueue;za=!1,ep=s.shared;var c=s.firstBaseUpdate,m=s.lastBaseUpdate,b=s.shared.pending;if(b!==null){s.shared.pending=null;var x=b,k=x.next;x.next=null,m===null?c=k:m.next=k,m=x;var H=e.alternate;H!==null&&(H=H.updateQueue,b=H.lastBaseUpdate,b!==m&&(b===null?H.firstBaseUpdate=k:b.next=k,H.lastBaseUpdate=x))}if(c!==null){var F=s.baseState;m=0,H=k=x=null,b=c;do{var L=b.lane&-536870913,P=L!==b.lane;if(P?(je&L)===L:(i&L)===L){L!==0&&L===Ni&&(tp=!0),H!==null&&(H=H.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{L=e;var fe=b,ye=t,ot=r;switch(fe.tag){case K_:if(fe=fe.payload,typeof fe=="function"){zo=!0;var ze=fe.call(ot,F,ye);if(L.mode&Zt){ke(!0);try{fe.call(ot,F,ye)}finally{ke(!1)}}zo=!1,F=ze;break e}F=fe;break e;case Jm:L.flags=L.flags&-65537|128;case W_:if(ze=fe.payload,typeof ze=="function"){if(zo=!0,fe=ze.call(ot,F,ye),L.mode&Zt){ke(!0);try{ze.call(ot,F,ye)}finally{ke(!1)}}zo=!1}else fe=ze;if(fe==null)break e;F=Me({},F,fe);break e;case J_:za=!0}}L=b.callback,L!==null&&(e.flags|=64,P&&(e.flags|=8192),P=s.callbacks,P===null?s.callbacks=[L]:P.push(L))}else P={lane:L,tag:b.tag,payload:b.payload,callback:b.callback,next:null},H===null?(k=H=P,x=F):H=H.next=P,m|=L;if(b=b.next,b===null){if(b=s.shared.pending,b===null)break;P=b,b=P.next,P.next=null,s.lastBaseUpdate=P,s.shared.pending=null}}while(!0);H===null&&(x=F),s.baseState=x,s.firstBaseUpdate=k,s.lastBaseUpdate=H,c===null&&(s.shared.lanes=0),qa|=m,e.lanes=m,e.memoizedState=F}ep=null}function g0(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function nR(e,t){var r=e.shared.hiddenCallbacks;if(r!==null)for(e.shared.hiddenCallbacks=null,e=0;e<r.length;e++)g0(r[e],t)}function y0(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)g0(r[e],t)}function v0(e,t){var r=Dr;ie(Cu,r,e),ie(Go,t,e),Dr=r|t.baseLanes}function Fd(e){ie(Cu,Dr,e),ie(Go,Go.current,e)}function Pd(e){Dr=Cu.current,Q(Go,e),Q(Cu,e)}function Le(){var e=G;Yn===null?Yn=[e]:Yn.push(e)}function K(){var e=G;if(Yn!==null&&(ia++,Yn[ia]!==e)){var t=Z(_e);if(!tE.has(t)&&(tE.add(t),Yn!==null)){for(var r="",i=0;i<=ia;i++){var s=Yn[i],c=i===ia?e:s;for(s=i+1+". "+s;30>s.length;)s+=" ";s+=c+`
|
|
139
|
+
`,r+=s}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
|
|
140
|
+
|
|
141
|
+
Previous render Next render
|
|
142
|
+
------------------------------------------------------
|
|
143
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
144
|
+
`,t,r)}}}function lo(e){e==null||Vt(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",G,typeof e)}function Oc(){var e=Z(_e);rE.has(e)||(rE.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function yt(){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:
|
|
145
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
146
|
+
2. You might be breaking the Rules of Hooks
|
|
147
|
+
3. You might have more than one copy of React in the same app
|
|
148
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function $d(e,t){if(vl)return!1;if(t===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.",G),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
149
|
+
|
|
150
|
+
Previous: %s
|
|
151
|
+
Incoming: %s`,G,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var r=0;r<t.length&&r<e.length;r++)if(!Jt(e[r],t[r]))return!1;return!0}function Yd(e,t,r,i,s,c){Ia=c,_e=t,Yn=e!==null?e._debugHookTypes:null,ia=-1,vl=e!==null&&e.type!==t.type,(Object.prototype.toString.call(r)==="[object AsyncFunction]"||Object.prototype.toString.call(r)==="[object AsyncGeneratorFunction]")&&(c=Z(_e),np.has(c)||(np.add(c),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.",c===null?"An unknown Component":"<"+c+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e!==null&&e.memoizedState!==null?ap:Yn!==null?aE:rp,Oi=c=(t.mode&Zt)!==lt;var m=ip(r,i,s);if(Oi=!1,Fo&&(m=Xd(t,r,i,s)),c){ke(!0);try{m=Xd(t,r,i,s)}finally{ke(!1)}}return _0(e,t),m}function _0(e,t){t._debugHookTypes=Yn,t.dependencies===null?aa!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:aa}):t.dependencies._debugThenableState=aa,q.H=Uu;var r=rt!==null&&rt.next!==null;if(Ia=0,Yn=G=xt=rt=_e=null,ia=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Du=!1,yl=0,aa=null,r)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Bt||(e=e.dependencies,e!==null&&Sc(e)&&(Bt=!0)),Ou?(Ou=!1,e=!0):e=!1,e&&(t=Z(t)||"Unknown",nE.has(t)||np.has(t)||(nE.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Xd(e,t,r,i){_e=e;var s=0;do{if(Fo&&(aa=null),yl=0,Fo=!1,s>=RO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(s+=1,vl=!1,xt=rt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}ia=-1,q.H=iE,c=ip(t,r,i)}while(Fo);return c}function rR(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?Ms(t):t,e=e.useState()[0],(rt!==null?rt.memoizedState:null)!==e&&(_e.flags|=1024),t}function Zd(){var e=Mu!==0;return Mu=0,e}function Qd(e,t,r){t.updateQueue=e.updateQueue,t.flags=(t.mode&ir)!==lt?t.flags&-402655237:t.flags&-2053,e.lanes&=~r}function Wd(e){if(Du){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Du=!1}Ia=0,Yn=xt=rt=_e=null,ia=-1,G=null,Fo=!1,yl=Mu=0,aa=null}function un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?_e.memoizedState=xt=e:xt=xt.next=e,xt}function Je(){if(rt===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var t=xt===null?_e.memoizedState:xt.next;if(t!==null)xt=t,rt=e;else{if(e===null)throw _e.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.");rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},xt===null?_e.memoizedState=xt=e:xt=xt.next=e}return xt}function Kd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ms(e){var t=yl;return yl+=1,aa===null&&(aa=d0()),e=m0(aa,e,t),t=_e,(xt===null?t.memoizedState:xt.next)===null&&(t=t.alternate,q.H=t!==null&&t.memoizedState!==null?ap:rp),e}function ka(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ms(e);if(e.$$typeof===Sr)return dt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function bi(e){var t=null,r=_e.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var i=_e.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Kd(),_e.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0||vl)for(r=t.data[t.index]=Array(e),i=0;i<e;i++)r[i]=mA;else r.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",r.length,e);return t.index++,r}function rr(e,t){return typeof t=="function"?t(e):t}function Jd(e,t,r){var i=un();if(r!==void 0){var s=r(t);if(Oi){ke(!0);try{r(t)}finally{ke(!1)}}}else s=t;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=sR.bind(null,_e,e),[i.memoizedState,e]}function co(e){var t=Je();return eh(t,rt,e)}function eh(e,t,r){var i=e.queue;if(i===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");i.lastRenderedReducer=r;var s=e.baseQueue,c=i.pending;if(c!==null){if(s!==null){var m=s.next;s.next=c.next,c.next=m}t.baseQueue!==s&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=s=c,i.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var b=m=null,x=null,k=t,H=!1;do{var F=k.lane&-536870913;if(F!==k.lane?(je&F)===F:(Ia&F)===F){var L=k.revertLane;if(L===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),F===Ni&&(H=!0);else if((Ia&L)===L){k=k.next,L===Ni&&(H=!0);continue}else F={lane:0,revertLane:k.revertLane,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(b=x=F,m=c):x=x.next=F,_e.lanes|=L,qa|=L;F=k.action,Oi&&r(c,F),c=k.hasEagerState?k.eagerState:r(c,F)}else L={lane:F,revertLane:k.revertLane,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(b=x=L,m=c):x=x.next=L,_e.lanes|=F,qa|=F;k=k.next}while(k!==null&&k!==t);if(x===null?m=c:x.next=b,!Jt(c,e.memoizedState)&&(Bt=!0,H&&(r=Vo,r!==null)))throw r;e.memoizedState=c,e.baseState=m,e.baseQueue=x,i.lastRenderedState=c}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Us(e){var t=Je(),r=t.queue;if(r===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=e;var i=r.dispatch,s=r.pending,c=t.memoizedState;if(s!==null){r.pending=null;var m=s=s.next;do c=e(c,m.action),m=m.next;while(m!==s);Jt(c,t.memoizedState)||(Bt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,i]}function th(e,t,r){var i=_e,s=un();if(Pe){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var c=r();qo||c===r()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),qo=!0)}else{if(c=t(),qo||(r=t(),Jt(c,r)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),qo=!0)),it===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(je&124)!==0||E0(i,t,c)}return s.memoizedState=c,r={value:c,getSnapshot:t},s.queue=r,Bc(S0.bind(null,i,r,e),[e]),i.flags|=2048,fo($n|Ot,Uc(),w0.bind(null,i,r,c,t),null),c}function Cc(e,t,r){var i=_e,s=Je(),c=Pe;if(c){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=r()}else if(r=t(),!qo){var m=t();Jt(r,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),qo=!0)}(m=!Jt((rt||s).memoizedState,r))&&(s.memoizedState=r,Bt=!0),s=s.queue;var b=S0.bind(null,i,s,e);if(fn(2048,Ot,b,[e]),s.getSnapshot!==t||m||xt!==null&&xt.memoizedState.tag&$n){if(i.flags|=2048,fo($n|Ot,Uc(),w0.bind(null,i,s,r,t),null),it===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");c||(Ia&124)!==0||E0(i,t,r)}return r}function E0(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=_e.updateQueue,t===null?(t=Kd(),_e.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function w0(e,t,r,i){t.value=r,t.getSnapshot=i,x0(t)&&T0(e)}function S0(e,t,r){return r(function(){x0(t)&&T0(e)})}function x0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Jt(e,r)}catch{return!0}}function T0(e){var t=cn(e,2);t!==null&&vt(t,e,2)}function nh(e){var t=un();if(typeof e=="function"){var r=e;if(e=r(),Oi){ke(!0);try{r()}finally{ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:e},t}function rh(e){e=nh(e);var t=e.queue,r=F0.bind(null,_e,t);return t.dispatch=r,[e.memoizedState,r]}function ah(e){var t=un();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=gh.bind(null,_e,!0,r),r.dispatch=t,[e,t]}function k0(e,t){var r=Je();return N0(r,rt,e,t)}function N0(e,t,r,i){return e.baseState=r,eh(e,rt,typeof i=="function"?i:rr)}function R0(e,t){var r=Je();return rt!==null?N0(r,rt,e,t):(r.baseState=e,[e,r.queue.dispatch])}function aR(e,t,r,i,s){if(zc(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};q.T!==null?r(!0):c.isTransition=!1,i(c),r=t.pending,r===null?(c.next=t.pending=c,A0(t,c)):(c.next=r.next,t.pending=r.next=c)}}function A0(e,t){var r=t.action,i=t.payload,s=e.state;if(t.isTransition){var c=q.T,m={};q.T=m,q.T._updatedFibers=new Set;try{var b=r(s,i),x=q.S;x!==null&&x(m,b),O0(e,t,b)}catch(k){ih(e,t,k)}finally{q.T=c,c===null&&m._updatedFibers&&(e=m._updatedFibers.size,m._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{m=r(s,i),O0(e,t,m)}catch(k){ih(e,t,k)}}function O0(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?(r.then(function(i){C0(e,t,i)},function(i){return ih(e,t,i)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):C0(e,t,r)}function C0(e,t,r){t.status="fulfilled",t.value=r,D0(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,A0(e,r)))}function ih(e,t,r){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=r,D0(t),t=t.next;while(t!==i)}e.action=null}function D0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function M0(e,t){return t}function uo(e,t){if(Pe){var r=it.formState;if(r!==null){e:{var i=_e;if(Pe){if(pt){t:{for(var s=pt,c=Ar;s.nodeType!==8;){if(!c){s=null;break t}if(s=Hn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c===Cp||c===rw?s:null}if(s){pt=Hn(s.nextSibling),i=s.data===Cp;break e}}hi(i)}i=!1}i&&(t=r[0])}}return r=un(),r.memoizedState=r.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:M0,lastRenderedState:t},r.queue=i,r=F0.bind(null,_e,i),i.dispatch=r,i=nh(!1),c=gh.bind(null,_e,!1,i.queue),i=un(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,r=aR.bind(null,_e,s,c,r),s.dispatch=r,i.memoizedState=e,[t,r,!1]}function Dc(e){var t=Je();return U0(t,rt,e)}function U0(e,t,r){if(t=eh(e,t,M0)[0],e=co(rr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ms(t)}catch(m){throw m===bl?Au:m}else i=t;t=Je();var s=t.queue,c=s.dispatch;return r!==t.memoizedState&&(_e.flags|=2048,fo($n|Ot,Uc(),iR.bind(null,s,r),null)),[i,c,e]}function iR(e,t){e.action=t}function Mc(e){var t=Je(),r=rt;if(r!==null)return U0(t,r,e);Je(),t=t.memoizedState,r=Je();var i=r.queue.dispatch;return r.memoizedState=e,[t,i,!1]}function fo(e,t,r,i){return e={tag:e,create:r,deps:i,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Kd(),_e.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,t.lastEffect=e),e}function Uc(){return{destroy:void 0,resource:void 0}}function oh(e){var t=un();return e={current:e},t.memoizedState=e}function gi(e,t,r,i){var s=un();i=i===void 0?null:i,_e.flags|=e,s.memoizedState=fo($n|t,Uc(),r,i)}function fn(e,t,r,i){var s=Je();i=i===void 0?null:i;var c=s.memoizedState.inst;rt!==null&&i!==null&&$d(i,rt.memoizedState.deps)?s.memoizedState=fo(t,c,r,i):(_e.flags|=e,s.memoizedState=fo($n|t,c,r,i))}function Bc(e,t){(_e.mode&ir)!==lt&&(_e.mode&V_)===lt?gi(276826112,Ot,e,t):gi(8390656,Ot,e,t)}function sh(e,t){var r=4194308;return(_e.mode&ir)!==lt&&(r|=134217728),gi(r,qt,e,t)}function B0(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function lh(e,t,r){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),r=r!=null?r.concat([e]):null;var i=4194308;(_e.mode&ir)!==lt&&(i|=134217728),gi(i,qt,B0.bind(null,t,e),r)}function Lc(e,t,r){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),r=r!=null?r.concat([e]):null,fn(4,qt,B0.bind(null,t,e),r)}function ch(e,t){return un().memoizedState=[e,t===void 0?null:t],e}function jc(e,t){var r=Je();t=t===void 0?null:t;var i=r.memoizedState;return t!==null&&$d(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function uh(e,t){var r=un();t=t===void 0?null:t;var i=e();if(Oi){ke(!0);try{e()}finally{ke(!1)}}return r.memoizedState=[i,t],i}function Hc(e,t){var r=Je();t=t===void 0?null:t;var i=r.memoizedState;if(t!==null&&$d(t,i[1]))return i[0];if(i=e(),Oi){ke(!0);try{e()}finally{ke(!1)}}return r.memoizedState=[i,t],i}function fh(e,t){var r=un();return dh(r,e,t)}function L0(e,t){var r=Je();return H0(r,rt.memoizedState,e,t)}function j0(e,t){var r=Je();return rt===null?dh(r,e,t):H0(r,rt.memoizedState,e,t)}function dh(e,t,r){return r===void 0||(Ia&1073741824)!==0?e.memoizedState=t:(e.memoizedState=r,e=zv(),_e.lanes|=e,qa|=e,r)}function H0(e,t,r,i){return Jt(r,t)?r:Go.current!==null?(e=dh(e,r,i),Jt(e,t)||(Bt=!0),e):(Ia&42)===0?(Bt=!0,e.memoizedState=r):(e=zv(),_e.lanes|=e,qa|=e,t)}function z0(e,t,r,i,s){var c=Ze.p;Ze.p=c!==0&&c<kr?c:kr;var m=q.T,b={};q.T=b,gh(e,!1,t,r),b._updatedFibers=new Set;try{var x=s(),k=q.S;if(k!==null&&k(b,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var H=tR(x,i);Bs(e,t,H,wn(e))}else Bs(e,t,i,wn(e))}catch(F){Bs(e,t,{then:function(){},status:"rejected",reason:F},wn(e))}finally{Ze.p=c,q.T=m,m===null&&b._updatedFibers&&(e=b._updatedFibers.size,b._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function hh(e,t,r,i){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var s=I0(e).queue;z0(e,s,t,Vi,r===null?v:function(){return V0(e),r(i)})}function I0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Vi,baseState:Vi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:Vi},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function V0(e){q.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=I0(e).next.queue;Bs(e,t,{},wn(e))}function mh(){var e=nh(!1);return e=z0.bind(null,_e,e.queue,!0,!1),un().memoizedState=e,[!1,e]}function G0(){var e=co(rr)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Ms(e),t]}function q0(){var e=Us(rr)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Ms(e),t]}function yi(){return dt(Ll)}function ph(){var e=un(),t=it.identifierPrefix;if(Pe){var r=na,i=ta;r=(i&~(1<<32-Wt(i)-1)).toString(32)+r,t="«"+t+"R"+r,r=Mu++,0<r&&(t+="H"+r.toString(32)),t+="»"}else r=NO++,t="«"+t+"r"+r.toString(32)+"»";return e.memoizedState=t}function bh(){return un().memoizedState=oR.bind(null,_e)}function oR(e,t){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var i=wn(r);e=xa(i);var s=Ta(r,e,i);s!==null&&(vt(s,r,i),Os(s,r,i)),r=Hd(),t!=null&&s!==null&&console.error("The seed argument is not enabled outside experimental channels."),e.payload={cache:r};return}r=r.return}}function sR(e,t,r){var i=arguments;typeof i[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),i=wn(e);var s={lane:i,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};zc(e)?P0(t,s):(s=kd(e,t,s,i),s!==null&&(vt(s,e,i),$0(s,t,i))),Rt(e,i)}function F0(e,t,r){var i=arguments;typeof i[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),i=wn(e),Bs(e,t,r,i),Rt(e,i)}function Bs(e,t,r,i){var s={lane:i,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(zc(e))P0(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null)){var m=q.H;q.H=sr;try{var b=t.lastRenderedState,x=c(b,r);if(s.hasEagerState=!0,s.eagerState=x,Jt(x,b))return vc(e,t,s,0),it===null&&yc(),!1}catch{}finally{q.H=m}}if(r=kd(e,t,s,i),r!==null)return vt(r,e,i),$0(r,t,i),!0}return!1}function gh(e,t,r,i){if(q.T===null&&Ni===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),i={lane:2,revertLane:Xh(),action:i,hasEagerState:!1,eagerState:null,next:null},zc(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=kd(e,r,i,2),t!==null&&vt(t,e,2);Rt(e,2)}function zc(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function P0(e,t){Fo=Du=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function $0(e,t,r){if((r&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,cc(e,r)}}function Ht(e){var t=Oe;return e!=null&&(Oe=t===null?e:t.concat(e)),t}function Ic(e,t,r){for(var i=Object.keys(e.props),s=0;s<i.length;s++){var c=i[s];if(c!=="children"&&c!=="key"){t===null&&(t=Ec(e,r.mode,0),t._debugInfo=Oe,t.return=r),ge(t,function(m){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m)},c);break}}}function Vc(e){var t=_l;return _l+=1,Po===null&&(Po=d0()),m0(Po,e,t)}function Ls(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gc(e,t){throw t.$$typeof===dA?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
152
|
+
- Multiple copies of the "react" package is used.
|
|
153
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
154
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function qc(e,t){var r=Z(e)||"Component";_E[r]||(_E[r]=!0,t=t.displayName||t.name||"Component",e.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.
|
|
155
|
+
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
156
|
+
<%s>{%s}</%s>`,t,t,r,t,r))}function Fc(e,t){var r=Z(e)||"Component";EE[r]||(EE[r]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
157
|
+
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
158
|
+
<%s>%s</%s>`,r,t,r))}function Y0(e){function t(O,C){if(e){var M=O.deletions;M===null?(O.deletions=[C],O.flags|=16):M.push(C)}}function r(O,C){if(!e)return null;for(;C!==null;)t(O,C),C=C.sibling;return null}function i(O){for(var C=new Map;O!==null;)O.key!==null?C.set(O.key,O):C.set(O.index,O),O=O.sibling;return C}function s(O,C){return O=qr(O,C),O.index=0,O.sibling=null,O}function c(O,C,M){return O.index=M,e?(M=O.alternate,M!==null?(M=M.index,M<C?(O.flags|=67108866,C):M):(O.flags|=67108866,C)):(O.flags|=1048576,C)}function m(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function b(O,C,M,$){return C===null||C.tag!==6?(C=Cd(M,O.mode,$),C.return=O,C._debugOwner=O,C._debugTask=O._debugTask,C._debugInfo=Oe,C):(C=s(C,M),C.return=O,C._debugInfo=Oe,C)}function x(O,C,M,$){var ne=M.type;return ne===So?(C=H(O,C,M.props.children,$,M.key),Ic(M,C,O),C):C!==null&&(C.elementType===ne||e0(C,M)||typeof ne=="object"&&ne!==null&&ne.$$typeof===Sn&&Va(ne)===C.type)?(C=s(C,M.props),Ls(C,M),C.return=O,C._debugOwner=M._owner,C._debugInfo=Oe,C):(C=Ec(M,O.mode,$),Ls(C,M),C.return=O,C._debugInfo=Oe,C)}function k(O,C,M,$){return C===null||C.tag!==4||C.stateNode.containerInfo!==M.containerInfo||C.stateNode.implementation!==M.implementation?(C=Dd(M,O.mode,$),C.return=O,C._debugInfo=Oe,C):(C=s(C,M.children||[]),C.return=O,C._debugInfo=Oe,C)}function H(O,C,M,$,ne){return C===null||C.tag!==7?(C=ci(M,O.mode,$,ne),C.return=O,C._debugOwner=O,C._debugTask=O._debugTask,C._debugInfo=Oe,C):(C=s(C,M),C.return=O,C._debugInfo=Oe,C)}function F(O,C,M){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Cd(""+C,O.mode,M),C.return=O,C._debugOwner=O,C._debugTask=O._debugTask,C._debugInfo=Oe,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Da:return M=Ec(C,O.mode,M),Ls(M,C),M.return=O,O=Ht(C._debugInfo),M._debugInfo=Oe,Oe=O,M;case wo:return C=Dd(C,O.mode,M),C.return=O,C._debugInfo=Oe,C;case Sn:var $=Ht(C._debugInfo);return C=Va(C),O=F(O,C,M),Oe=$,O}if(Vt(C)||z(C))return M=ci(C,O.mode,M,null),M.return=O,M._debugOwner=O,M._debugTask=O._debugTask,O=Ht(C._debugInfo),M._debugInfo=Oe,Oe=O,M;if(typeof C.then=="function")return $=Ht(C._debugInfo),O=F(O,Vc(C),M),Oe=$,O;if(C.$$typeof===Sr)return F(O,xc(O,C),M);Gc(O,C)}return typeof C=="function"&&qc(O,C),typeof C=="symbol"&&Fc(O,C),null}function L(O,C,M,$){var ne=C!==null?C.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ne!==null?null:b(O,C,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Da:return M.key===ne?(ne=Ht(M._debugInfo),O=x(O,C,M,$),Oe=ne,O):null;case wo:return M.key===ne?k(O,C,M,$):null;case Sn:return ne=Ht(M._debugInfo),M=Va(M),O=L(O,C,M,$),Oe=ne,O}if(Vt(M)||z(M))return ne!==null?null:(ne=Ht(M._debugInfo),O=H(O,C,M,$,null),Oe=ne,O);if(typeof M.then=="function")return ne=Ht(M._debugInfo),O=L(O,C,Vc(M),$),Oe=ne,O;if(M.$$typeof===Sr)return L(O,C,xc(O,M),$);Gc(O,M)}return typeof M=="function"&&qc(O,M),typeof M=="symbol"&&Fc(O,M),null}function P(O,C,M,$,ne){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return O=O.get(M)||null,b(C,O,""+$,ne);if(typeof $=="object"&&$!==null){switch($.$$typeof){case Da:return M=O.get($.key===null?M:$.key)||null,O=Ht($._debugInfo),C=x(C,M,$,ne),Oe=O,C;case wo:return O=O.get($.key===null?M:$.key)||null,k(C,O,$,ne);case Sn:var we=Ht($._debugInfo);return $=Va($),C=P(O,C,M,$,ne),Oe=we,C}if(Vt($)||z($))return M=O.get(M)||null,O=Ht($._debugInfo),C=H(C,M,$,ne,null),Oe=O,C;if(typeof $.then=="function")return we=Ht($._debugInfo),C=P(O,C,M,Vc($),ne),Oe=we,C;if($.$$typeof===Sr)return P(O,C,M,xc(C,$),ne);Gc(C,$)}return typeof $=="function"&&qc(C,$),typeof $=="symbol"&&Fc(C,$),null}function fe(O,C,M,$){if(typeof M!="object"||M===null)return $;switch(M.$$typeof){case Da:case wo:h(O,C,M);var ne=M.key;if(typeof ne!="string")break;if($===null){$=new Set,$.add(ne);break}if(!$.has(ne)){$.add(ne);break}ge(C,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.",ne)});break;case Sn:M=Va(M),fe(O,C,M,$)}return $}function ye(O,C,M,$){for(var ne=null,we=null,de=null,Se=C,xe=C=0,ct=null;Se!==null&&xe<M.length;xe++){Se.index>xe?(ct=Se,Se=null):ct=Se.sibling;var Et=L(O,Se,M[xe],$);if(Et===null){Se===null&&(Se=ct);break}ne=fe(O,Et,M[xe],ne),e&&Se&&Et.alternate===null&&t(O,Se),C=c(Et,C,xe),de===null?we=Et:de.sibling=Et,de=Et,Se=ct}if(xe===M.length)return r(O,Se),Pe&&ui(O,xe),we;if(Se===null){for(;xe<M.length;xe++)Se=F(O,M[xe],$),Se!==null&&(ne=fe(O,Se,M[xe],ne),C=c(Se,C,xe),de===null?we=Se:de.sibling=Se,de=Se);return Pe&&ui(O,xe),we}for(Se=i(Se);xe<M.length;xe++)ct=P(Se,O,xe,M[xe],$),ct!==null&&(ne=fe(O,ct,M[xe],ne),e&&ct.alternate!==null&&Se.delete(ct.key===null?xe:ct.key),C=c(ct,C,xe),de===null?we=ct:de.sibling=ct,de=ct);return e&&Se.forEach(function(fa){return t(O,fa)}),Pe&&ui(O,xe),we}function ot(O,C,M,$){if(M==null)throw Error("An iterable object provided no iterator.");for(var ne=null,we=null,de=C,Se=C=0,xe=null,ct=null,Et=M.next();de!==null&&!Et.done;Se++,Et=M.next()){de.index>Se?(xe=de,de=null):xe=de.sibling;var fa=L(O,de,Et.value,$);if(fa===null){de===null&&(de=xe);break}ct=fe(O,fa,Et.value,ct),e&&de&&fa.alternate===null&&t(O,de),C=c(fa,C,Se),we===null?ne=fa:we.sibling=fa,we=fa,de=xe}if(Et.done)return r(O,de),Pe&&ui(O,Se),ne;if(de===null){for(;!Et.done;Se++,Et=M.next())de=F(O,Et.value,$),de!==null&&(ct=fe(O,de,Et.value,ct),C=c(de,C,Se),we===null?ne=de:we.sibling=de,we=de);return Pe&&ui(O,Se),ne}for(de=i(de);!Et.done;Se++,Et=M.next())xe=P(de,O,Se,Et.value,$),xe!==null&&(ct=fe(O,xe,Et.value,ct),e&&xe.alternate!==null&&de.delete(xe.key===null?Se:xe.key),C=c(xe,C,Se),we===null?ne=xe:we.sibling=xe,we=xe);return e&&de.forEach(function(eC){return t(O,eC)}),Pe&&ui(O,Se),ne}function ze(O,C,M,$){if(typeof M=="object"&&M!==null&&M.type===So&&M.key===null&&(Ic(M,null,O),M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case Da:var ne=Ht(M._debugInfo);e:{for(var we=M.key;C!==null;){if(C.key===we){if(we=M.type,we===So){if(C.tag===7){r(O,C.sibling),$=s(C,M.props.children),$.return=O,$._debugOwner=M._owner,$._debugInfo=Oe,Ic(M,$,O),O=$;break e}}else if(C.elementType===we||e0(C,M)||typeof we=="object"&&we!==null&&we.$$typeof===Sn&&Va(we)===C.type){r(O,C.sibling),$=s(C,M.props),Ls($,M),$.return=O,$._debugOwner=M._owner,$._debugInfo=Oe,O=$;break e}r(O,C);break}else t(O,C);C=C.sibling}M.type===So?($=ci(M.props.children,O.mode,$,M.key),$.return=O,$._debugOwner=O,$._debugTask=O._debugTask,$._debugInfo=Oe,Ic(M,$,O),O=$):($=Ec(M,O.mode,$),Ls($,M),$.return=O,$._debugInfo=Oe,O=$)}return O=m(O),Oe=ne,O;case wo:e:{for(ne=M,M=ne.key;C!==null;){if(C.key===M)if(C.tag===4&&C.stateNode.containerInfo===ne.containerInfo&&C.stateNode.implementation===ne.implementation){r(O,C.sibling),$=s(C,ne.children||[]),$.return=O,O=$;break e}else{r(O,C);break}else t(O,C);C=C.sibling}$=Dd(ne,O.mode,$),$.return=O,O=$}return m(O);case Sn:return ne=Ht(M._debugInfo),M=Va(M),O=ze(O,C,M,$),Oe=ne,O}if(Vt(M))return ne=Ht(M._debugInfo),O=ye(O,C,M,$),Oe=ne,O;if(z(M)){if(ne=Ht(M._debugInfo),we=z(M),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 de=we.call(M);return de===M?(O.tag!==0||Object.prototype.toString.call(O.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(de)!=="[object Generator]")&&(yE||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."),yE=!0):M.entries!==we||sp||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),sp=!0),O=ot(O,C,de,$),Oe=ne,O}if(typeof M.then=="function")return ne=Ht(M._debugInfo),O=ze(O,C,Vc(M),$),Oe=ne,O;if(M.$$typeof===Sr)return ze(O,C,xc(O,M),$);Gc(O,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(ne=""+M,C!==null&&C.tag===6?(r(O,C.sibling),$=s(C,ne),$.return=O,O=$):(r(O,C),$=Cd(ne,O.mode,$),$.return=O,$._debugOwner=O,$._debugTask=O._debugTask,$._debugInfo=Oe,O=$),m(O)):(typeof M=="function"&&qc(O,M),typeof M=="symbol"&&Fc(O,M),r(O,C))}return function(O,C,M,$){var ne=Oe;Oe=null;try{_l=0;var we=ze(O,C,M,$);return Po=null,we}catch(ct){if(ct===bl||ct===Au)throw ct;var de=g(29,ct,null,O.mode);de.lanes=$,de.return=O;var Se=de._debugInfo=Oe;if(de._debugOwner=O._debugOwner,de._debugTask=O._debugTask,Se!=null){for(var xe=Se.length-1;0<=xe;xe--)if(typeof Se[xe].stack=="string"){de._debugOwner=Se[xe],de._debugTask=Se[xe].debugTask;break}}return de}finally{Oe=ne}}}function Na(e){var t=e.alternate;ie(Ct,Ct.current&Yo,e),ie(Xn,e,e),Cr===null&&(t===null||Go.current!==null||t.memoizedState!==null)&&(Cr=e)}function X0(e){if(e.tag===22){if(ie(Ct,Ct.current,e),ie(Xn,e,e),Cr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Cr=e)}}else Ra(e)}function Ra(e){ie(Ct,Ct.current,e),ie(Xn,Xn.current,e)}function $r(e){Q(Xn,e),Cr===e&&(Cr=null),Q(Ct,e)}function Pc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data===la||im(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function yh(e){if(e!==null&&typeof e!="function"){var t=String(e);ME.has(t)||(ME.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function vh(e,t,r,i){var s=e.memoizedState,c=r(i,s);if(e.mode&Zt){ke(!0);try{c=r(i,s)}finally{ke(!1)}}c===void 0&&(t=X(t)||"Component",AE.has(t)||(AE.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),s=c==null?s:Me({},s,c),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}function Z0(e,t,r,i,s,c,m){var b=e.stateNode;if(typeof b.shouldComponentUpdate=="function"){if(r=b.shouldComponentUpdate(i,c,m),e.mode&Zt){ke(!0);try{r=b.shouldComponentUpdate(i,c,m)}finally{ke(!1)}}return r===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",X(t)||"Component"),r}return t.prototype&&t.prototype.isPureReactComponent?!Ss(r,i)||!Ss(s,c):!0}function Q0(e,t,r,i){var s=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,i),t.state!==s&&(e=Z(e)||"Component",xE.has(e)||(xE.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),lp.enqueueReplaceState(t,t.state,null))}function vi(e,t){var r=t;if("ref"in t){r={};for(var i in t)i!=="ref"&&(r[i]=t[i])}if(e=e.defaultProps){r===t&&(r=Me({},r));for(var s in e)r[s]===void 0&&(r[s]=e[s])}return r}function W0(e){cp(e),console.warn(`%s
|
|
159
|
+
|
|
160
|
+
%s
|
|
161
|
+
`,Xo?"An error occurred in the <"+Xo+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
162
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function K0(e){var t=Xo?"The above error occurred in the <"+Xo+"> component.":"The above error occurred in one of your React components.",r="React will try to recreate this component tree from scratch using the error boundary you provided, "+((up||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var i=e.environmentName;e=[`%o
|
|
163
|
+
|
|
164
|
+
%s
|
|
165
|
+
|
|
166
|
+
%s
|
|
167
|
+
`,e,t,r].slice(0),typeof e[0]=="string"?e.splice(0,1,fw+e[0],dw,Ju+i+Ju,hw):e.splice(0,0,fw,dw,Ju+i+Ju,hw),e.unshift(console),i=KO.apply(console.error,e),i()}else console.error(`%o
|
|
168
|
+
|
|
169
|
+
%s
|
|
170
|
+
|
|
171
|
+
%s
|
|
172
|
+
`,e,t,r)}function J0(e){cp(e)}function $c(e,t){try{Xo=t.source?Z(t.source):null,up=null;var r=t.value;if(q.actQueue!==null)q.thrownErrors.push(r);else{var i=e.onUncaughtError;i(r,{componentStack:t.stack})}}catch(s){setTimeout(function(){throw s})}}function ev(e,t,r){try{Xo=r.source?Z(r.source):null,up=Z(t);var i=e.onCaughtError;i(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function _h(e,t,r){return r=xa(r),r.tag=Jm,r.payload={element:null},r.callback=function(){ge(t.source,$c,e,t)},r}function Eh(e){return e=xa(e),e.tag=Jm,e}function wh(e,t,r,i){var s=r.type.getDerivedStateFromError;if(typeof s=="function"){var c=i.value;e.payload=function(){return s(c)},e.callback=function(){t0(r),ge(i.source,ev,t,r,i)}}var m=r.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){t0(r),ge(i.source,ev,t,r,i),typeof s!="function"&&(Pa===null?Pa=new Set([this]):Pa.add(this)),AO(this,i),typeof s=="function"||(r.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Z(r)||"Unknown")})}function lR(e,t,r,i,s){if(r.flags|=32768,ar&&qs(e,s),i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=r.alternate,t!==null&&Ns(t,r,s,!0),Pe&&(ra=!0),r=Xn.current,r!==null){switch(r.tag){case 13:return Cr===null?Vh():r.alternate===null&&bt===sa&&(bt=mp),r.flags&=-257,r.flags|=65536,r.lanes=s,i===Km?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([i]):t.add(i),Fh(e,i,s)),!1;case 22:return r.flags|=65536,i===Km?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([i]):r.add(i)),Fh(e,i,s)),!1}throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}return Fh(e,i,s),Vh(),!1}if(Pe)return ra=!0,t=Xn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==Xm&&ks(vn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:i}),r))):(i!==Xm&&ks(vn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:i}),r)),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=vn(i,r),s=_h(e.stateNode,i,s),Ac(e,s),bt!==Ci&&(bt=Ko)),!1;var c=vn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:i}),r);if(Rl===null?Rl=[c]:Rl.push(c),bt!==Ci&&(bt=Ko),t===null)return!0;i=vn(i,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=s&-s,r.lanes|=e,e=_h(r.stateNode,i,e),Ac(r,e),!1;case 1:if(t=r.type,c=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Pa===null||!Pa.has(c))))return r.flags|=65536,s&=-s,r.lanes|=s,s=Eh(s),wh(s,e,r,i),Ac(r,s),!1}r=r.return}while(r!==null);return!1}function zt(e,t,r,i){t.child=e===null?wE(t,null,r,i):$o(t,e.child,r,i)}function tv(e,t,r,i,s){r=r.render;var c=t.ref;if("ref"in i){var m={};for(var b in i)b!=="ref"&&(m[b]=i[b])}else m=i;return mi(t),ft(t),i=Yd(e,t,r,m,c,s),b=Zd(),Dt(),e!==null&&!Bt?(Qd(e,t,s),Yr(e,t,s)):(Pe&&b&&Md(t),t.flags|=1,zt(e,t,i,s),t.child)}function nv(e,t,r,i,s){if(e===null){var c=r.type;return typeof c=="function"&&!Ad(c)&&c.defaultProps===void 0&&r.compare===null?(r=li(c),t.tag=15,t.type=r,xh(t,c),rv(e,t,r,i,s)):(e=Od(r.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Oh(e,s)){var m=c.memoizedProps;if(r=r.compare,r=r!==null?r:Ss,r(m,i)&&e.ref===t.ref)return Yr(e,t,s)}return t.flags|=1,e=qr(c,i),e.ref=t.ref,e.return=t,t.child=e}function rv(e,t,r,i,s){if(e!==null){var c=e.memoizedProps;if(Ss(c,i)&&e.ref===t.ref&&t.type===e.type)if(Bt=!1,t.pendingProps=i=c,Oh(e,s))(e.flags&131072)!==0&&(Bt=!0);else return t.lanes=e.lanes,Yr(e,t,s)}return Sh(e,t,r,i,s)}function av(e,t,r){var i=t.pendingProps,s=i.children,c=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=c!==null?c.baseLanes|r:r,e!==null){for(s=t.child=e.child,c=0;s!==null;)c=c|s.lanes|s.childLanes,s=s.sibling;t.childLanes=c&~i}else t.childLanes=0,t.child=null;return iv(e,t,i,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Nc(t,c!==null?c.cachePool:null),c!==null?v0(t,c):Fd(t),X0(t);else return t.lanes=t.childLanes=536870912,iv(e,t,c!==null?c.baseLanes|r:r,r)}else c!==null?(Nc(t,c.cachePool),v0(t,c),Ra(t),t.memoizedState=null):(e!==null&&Nc(t,null),Fd(t),Ra(t));return zt(e,t,s,r),t.child}function iv(e,t,r,i){var s=Vd();return s=s===null?null:{parent:At._currentValue,pool:s},t.memoizedState={baseLanes:r,cachePool:s},e!==null&&Nc(t,null),Fd(t),X0(t),e!==null&&Ns(e,t,i,!0),null}function Yc(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Sh(e,t,r,i,s){if(r.prototype&&typeof r.prototype.render=="function"){var c=X(r)||"Unknown";BE[c]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",c,c),BE[c]=!0)}return t.mode&Zt&&or.recordLegacyContextWarning(t,null),e===null&&(xh(t,t.type),r.contextTypes&&(c=X(r)||"Unknown",jE[c]||(jE[c]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",c)))),mi(t),ft(t),r=Yd(e,t,r,i,void 0,s),i=Zd(),Dt(),e!==null&&!Bt?(Qd(e,t,s),Yr(e,t,s)):(Pe&&i&&Md(t),t.flags|=1,zt(e,t,r,s),t.child)}function ov(e,t,r,i,s,c){return mi(t),ft(t),ia=-1,vl=e!==null&&e.type!==t.type,t.updateQueue=null,r=Xd(t,i,r,s),_0(e,t),i=Zd(),Dt(),e!==null&&!Bt?(Qd(e,t,c),Yr(e,t,c)):(Pe&&i&&Md(t),t.flags|=1,zt(e,t,r,c),t.child)}function sv(e,t,r,i,s){switch(d(t)){case!1:var c=t.stateNode,m=new t.type(t.memoizedProps,c.context).state;c.updater.enqueueSetState(c,m,null);break;case!0:t.flags|=128,t.flags|=65536,c=Error("Simulated error coming from DevTools");var b=s&-s;if(t.lanes|=b,m=it,m===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");b=Eh(b),wh(b,m,t,vn(c,t)),Ac(t,b)}if(mi(t),t.stateNode===null){if(m=Ha,c=r.contextType,"contextType"in r&&c!==null&&(c===void 0||c.$$typeof!==Sr)&&!DE.has(r)&&(DE.add(r),b=c===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof c!="object"?" However, it is set to a "+typeof c+".":c.$$typeof===gm?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(c).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",X(r)||"Component",b)),typeof c=="object"&&c!==null&&(m=dt(c)),c=new r(i,m),t.mode&Zt){ke(!0);try{c=new r(i,m)}finally{ke(!1)}}if(m=t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=lp,t.stateNode=c,c._reactInternals=t,c._reactInternalInstance=SE,typeof r.getDerivedStateFromProps=="function"&&m===null&&(m=X(r)||"Component",TE.has(m)||(TE.add(m),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",m,c.state===null?"null":"undefined",m))),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"){var x=b=m=null;if(typeof c.componentWillMount=="function"&&c.componentWillMount.__suppressDeprecationWarning!==!0?m="componentWillMount":typeof c.UNSAFE_componentWillMount=="function"&&(m="UNSAFE_componentWillMount"),typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps.__suppressDeprecationWarning!==!0?b="componentWillReceiveProps":typeof c.UNSAFE_componentWillReceiveProps=="function"&&(b="UNSAFE_componentWillReceiveProps"),typeof c.componentWillUpdate=="function"&&c.componentWillUpdate.__suppressDeprecationWarning!==!0?x="componentWillUpdate":typeof c.UNSAFE_componentWillUpdate=="function"&&(x="UNSAFE_componentWillUpdate"),m!==null||b!==null||x!==null){c=X(r)||"Component";var k=typeof r.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";NE.has(c)||(NE.add(c),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
173
|
+
|
|
174
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
175
|
+
|
|
176
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
177
|
+
https://react.dev/link/unsafe-component-lifecycles`,c,k,m!==null?`
|
|
178
|
+
`+m:"",b!==null?`
|
|
179
|
+
`+b:"",x!==null?`
|
|
180
|
+
`+x:""))}}c=t.stateNode,m=X(r)||"Component",c.render||(r.prototype&&typeof r.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",m):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",m)),!c.getInitialState||c.getInitialState.isReactClassApproved||c.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",m),c.getDefaultProps&&!c.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",m),c.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",m),r.childContextTypes&&!CE.has(r)&&(CE.add(r),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",m)),r.contextTypes&&!OE.has(r)&&(OE.add(r),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",m)),typeof c.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",m),r.prototype&&r.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",X(r)||"A pure component"),typeof c.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",m),typeof c.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",m),typeof c.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",m),typeof c.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",m),b=c.props!==i,c.props!==void 0&&b&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m),c.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",m,m),typeof c.getSnapshotBeforeUpdate!="function"||typeof c.componentDidUpdate=="function"||kE.has(r)||(kE.add(r),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",X(r))),typeof c.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof c.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof r.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",m),(b=c.state)&&(typeof b!="object"||Vt(b))&&console.error("%s.state: must be set to an object or null",m),typeof c.getChildContext=="function"&&typeof r.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",m),c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Gd(t),m=r.contextType,c.context=typeof m=="object"&&m!==null?dt(m):Ha,c.state===i&&(m=X(r)||"Component",RE.has(m)||(RE.add(m),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",m))),t.mode&Zt&&or.recordLegacyContextWarning(t,c),or.recordUnsafeLifecycleWarnings(t,c),c.state=t.memoizedState,m=r.getDerivedStateFromProps,typeof m=="function"&&(vh(t,r,m,i),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z(t)||"Component"),lp.enqueueReplaceState(c,c.state,null)),Ds(t,i,c,s),Cs(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ir)!==lt&&(t.flags|=134217728),c=!0}else if(e===null){c=t.stateNode;var H=t.memoizedProps;b=vi(r,H),c.props=b;var F=c.context;x=r.contextType,m=Ha,typeof x=="object"&&x!==null&&(m=dt(x)),k=r.getDerivedStateFromProps,x=typeof k=="function"||typeof c.getSnapshotBeforeUpdate=="function",H=t.pendingProps!==H,x||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(H||F!==m)&&Q0(t,c,i,m),za=!1;var L=t.memoizedState;c.state=L,Ds(t,i,c,s),Cs(),F=t.memoizedState,H||L!==F||za?(typeof k=="function"&&(vh(t,r,k,i),F=t.memoizedState),(b=za||Z0(t,r,b,i,L,F,m))?(x||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ir)!==lt&&(t.flags|=134217728)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ir)!==lt&&(t.flags|=134217728),t.memoizedProps=i,t.memoizedState=F),c.props=i,c.state=F,c.context=m,c=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ir)!==lt&&(t.flags|=134217728),c=!1)}else{c=t.stateNode,qd(e,t),m=t.memoizedProps,x=vi(r,m),c.props=x,k=t.pendingProps,L=c.context,F=r.contextType,b=Ha,typeof F=="object"&&F!==null&&(b=dt(F)),H=r.getDerivedStateFromProps,(F=typeof H=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==k||L!==b)&&Q0(t,c,i,b),za=!1,L=t.memoizedState,c.state=L,Ds(t,i,c,s),Cs();var P=t.memoizedState;m!==k||L!==P||za||e!==null&&e.dependencies!==null&&Sc(e.dependencies)?(typeof H=="function"&&(vh(t,r,H,i),P=t.memoizedState),(x=za||Z0(t,r,x,i,L,P,b)||e!==null&&e.dependencies!==null&&Sc(e.dependencies))?(F||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,P,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,P,b)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=P),c.props=i,c.state=P,c.context=b,c=x):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),c=!1)}if(b=c,Yc(e,t),m=(t.flags&128)!==0,b||m){if(b=t.stateNode,pd(t),m&&typeof r.getDerivedStateFromError!="function")r=null,hn=-1;else{if(ft(t),r=lE(b),t.mode&Zt){ke(!0);try{lE(b)}finally{ke(!1)}}Dt()}t.flags|=1,e!==null&&m?(t.child=$o(t,e.child,null,s),t.child=$o(t,null,r,s)):zt(e,t,r,s),t.memoizedState=b.state,e=t.child}else e=Yr(e,t,s);return s=t.stateNode,c&&s.props!==i&&(Zo||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Z(t)||"a component"),Zo=!0),e}function lv(e,t,r,i){return Ts(),t.flags|=256,zt(e,t,r,i),t.child}function xh(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
181
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=X(t)||"Unknown",HE[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),HE[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=X(t)||"Unknown",LE[t]||(console.error("%s: Function components do not support contextType.",t),LE[t]=!0))}function Th(e){return{baseLanes:e,cachePool:f0()}}function kh(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Nn),e}function cv(e,t,r){var i,s=t.pendingProps;f(t)&&(t.flags|=128);var c=!1,m=(t.flags&128)!==0;if((i=m)||(i=e!==null&&e.memoizedState===null?!1:(Ct.current&El)!==0),i&&(c=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Pe){if(c?Na(t):Ra(t),Pe){var b=pt,x;if(!(x=!b)){e:{var k=b;for(x=Ar;k.nodeType!==8;){if(!x){x=null;break e}if(k=Hn(k.nextSibling),k===null){x=null;break e}}x=k}x!==null?(fi(),t.memoizedState={dehydrated:x,treeContext:xi!==null?{id:ta,overflow:na}:null,retryLane:536870912,hydrationErrors:null},k=g(18,null,null,lt),k.stateNode=x,k.return=t,t.child=k,en=t,pt=null,x=!0):x=!1,x=!x}x&&(Bd(t,b),hi(t))}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return im(b)?t.lanes=32:t.lanes=536870912,null;$r(t)}return b=s.children,s=s.fallback,c?(Ra(t),c=t.mode,b=Xc({mode:"hidden",children:b},c),s=ci(s,c,r,null),b.return=t,s.return=t,b.sibling=s,t.child=b,c=t.child,c.memoizedState=Th(r),c.childLanes=kh(e,i,r),t.memoizedState=dp,s):(Na(t),Nh(t,b))}var H=e.memoizedState;if(H!==null&&(b=H.dehydrated,b!==null)){if(m)t.flags&256?(Na(t),t.flags&=-257,t=Rh(e,t,r)):t.memoizedState!==null?(Ra(t),t.child=e.child,t.flags|=128,t=null):(Ra(t),c=s.fallback,b=t.mode,s=Xc({mode:"visible",children:s.children},b),c=ci(c,b,r,null),c.flags|=2,s.return=t,c.return=t,s.sibling=c,t.child=s,$o(t,e.child,null,r),s=t.child,s.memoizedState=Th(r),s.childLanes=kh(e,i,r),t.memoizedState=dp,t=c);else if(Na(t),Pe&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),im(b)){if(i=b.nextSibling&&b.nextSibling.dataset,i){x=i.dgst;var F=i.msg;k=i.stck;var L=i.cstck}b=F,i=x,s=k,x=c=L,c=Error(b||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),c.stack=s||"",c.digest=i,i=x===void 0?null:x,s={value:c,source:null,stack:i},typeof i=="string"&&Pm.set(c,s),ks(s),t=Rh(e,t,r)}else if(Bt||Ns(e,t,r,!1),i=(r&e.childLanes)!==0,Bt||i){if(i=it,i!==null&&(s=r&-r,s=(s&42)!==0?1:hs(s),s=(s&(i.suspendedLanes|r))!==0?0:s,s!==0&&s!==H.retryLane))throw H.retryLane=s,cn(e,s),vt(i,e,s),UE;b.data===la||Vh(),t=Rh(e,t,r)}else b.data===la?(t.flags|=192,t.child=e.child,t=null):(e=H.treeContext,pt=Hn(b.nextSibling),en=t,Pe=!0,Ti=null,ra=!1,Fn=null,Ar=!1,e!==null&&(fi(),Gn[qn++]=ta,Gn[qn++]=na,Gn[qn++]=xi,ta=e.id,na=e.overflow,xi=t),t=Nh(t,s.children),t.flags|=4096);return t}return c?(Ra(t),c=s.fallback,b=t.mode,x=e.child,k=x.sibling,s=qr(x,{mode:"hidden",children:s.children}),s.subtreeFlags=x.subtreeFlags&65011712,k!==null?c=qr(k,c):(c=ci(c,b,r,null),c.flags|=2),c.return=t,s.return=t,s.sibling=c,t.child=s,s=c,c=t.child,b=e.child.memoizedState,b===null?b=Th(r):(x=b.cachePool,x!==null?(k=At._currentValue,x=x.parent!==k?{parent:k,pool:k}:x):x=f0(),b={baseLanes:b.baseLanes|r,cachePool:x}),c.memoizedState=b,c.childLanes=kh(e,i,r),t.memoizedState=dp,s):(Na(t),r=e.child,e=r.sibling,r=qr(r,{mode:"visible",children:s.children}),r.return=t,r.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=r,t.memoizedState=null,r)}function Nh(e,t){return t=Xc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Xc(e,t){return e=g(22,e,null,t),e.lanes=0,e.stateNode={_visibility:$m,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Rh(e,t,r){return $o(t,e.child,null,r),e=Nh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uv(e,t,r){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Ld(e.return,t,r)}function fv(e,t){var r=Vt(e);return e=!r&&typeof z(e)=="function",r||e?(r=r?"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>",r,t,r),!1):!0}function Ah(e,t,r,i,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=i,c.tail=r,c.tailMode=s)}function dv(e,t,r){var i=t.pendingProps,s=i.revealOrder,c=i.tail;if(i=i.children,s!==void 0&&s!=="forwards"&&s!=="backwards"&&s!=="together"&&!zE[s])if(zE[s]=!0,typeof s=="string")switch(s.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',s,s.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',s,s.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',s)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',s);c===void 0||fp[c]||(c!=="collapsed"&&c!=="hidden"?(fp[c]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',c)):s!=="forwards"&&s!=="backwards"&&(fp[c]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',c)));e:if((s==="forwards"||s==="backwards")&&i!==void 0&&i!==null&&i!==!1)if(Vt(i)){for(var m=0;m<i.length;m++)if(!fv(i[m],m))break e}else if(m=z(i),typeof m=="function"){if(m=m.call(i))for(var b=m.next(),x=0;!b.done;b=m.next()){if(!fv(b.value,x))break e;x++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',s);if(zt(e,t,i,r),i=Ct.current,(i&El)!==0)i=i&Yo|El,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uv(e,r,t);else if(e.tag===19)uv(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=Yo}switch(ie(Ct,i,t),s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Pc(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),Ah(t,!1,s,r,c);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Pc(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}Ah(t,!0,r,null,c);break;case"together":Ah(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),hn=-1,qa|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(Ns(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,r=qr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=qr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Oh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Sc(e)))}function cR(e,t,r){switch(t.tag){case 3:Ye(t,t.stateNode.containerInfo),Sa(t,At,e.memoizedState.cache),Ts();break;case 27:case 5:he(t);break;case 4:Ye(t,t.stateNode.containerInfo);break;case 10:Sa(t,t.type,t.memoizedProps.value);break;case 12:(r&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var i=t.stateNode;i.effectDuration=-0,i.passiveEffectDuration=-0;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(Na(t),t.flags|=128,null):(r&t.child.childLanes)!==0?cv(e,t,r):(Na(t),e=Yr(e,t,r),e!==null?e.sibling:null);Na(t);break;case 19:var s=(e.flags&128)!==0;if(i=(r&t.childLanes)!==0,i||(Ns(e,t,r,!1),i=(r&t.childLanes)!==0),s){if(i)return dv(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ie(Ct,Ct.current,t),i)break;return null;case 22:case 23:return t.lanes=0,av(e,t,r);case 24:Sa(t,At,e.memoizedState.cache)}return Yr(e,t,r)}function Ch(e,t,r){if(t._debugNeedsRemount&&e!==null){r=Od(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),r._debugStack=t._debugStack,r._debugTask=t._debugTask;var i=t.return;if(i===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,r.index=t.index,r.sibling=t.sibling,r.return=t.return,r.ref=t.ref,r._debugInfo=t._debugInfo,t===i.child)i.child=r;else{var s=i.child;if(s===null)throw Error("Expected parent to have a child.");for(;s.sibling!==t;)if(s=s.sibling,s===null)throw Error("Expected to find the previous sibling.");s.sibling=r}return t=i.deletions,t===null?(i.deletions=[e],i.flags|=16):t.push(e),r.flags|=2,r}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Bt=!0;else{if(!Oh(e,r)&&(t.flags&128)===0)return Bt=!1,cR(e,t,r);Bt=(e.flags&131072)!==0}else Bt=!1,(i=Pe)&&(fi(),i=(t.flags&1048576)!==0),i&&(i=t.index,fi(),r0(t,Su,i));switch(t.lanes=0,t.tag){case 16:e:if(i=t.pendingProps,e=Va(t.elementType),t.type=e,typeof e=="function")Ad(e)?(i=vi(e,i),t.tag=1,t.type=e=li(e),t=sv(null,t,e,i,r)):(t.tag=0,xh(t,e),t.type=e=li(e),t=Sh(null,t,e,i,r));else{if(e!=null){if(s=e.$$typeof,s===Ws){t.tag=11,t.type=e=Nd(e),t=tv(null,t,e,i,r);break e}else if(s===fu){t.tag=14,t=nv(null,t,e,i,r);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Sn&&(t=" Did you wrap a component in React.lazy() more than once?"),e=X(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return Sh(e,t,t.type,t.pendingProps,r);case 1:return i=t.type,s=vi(i,t.pendingProps),sv(e,t,i,s,r);case 3:e:{if(Ye(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");i=t.pendingProps;var c=t.memoizedState;s=c.element,qd(e,t),Ds(t,i,null,r);var m=t.memoizedState;if(i=m.cache,Sa(t,At,i),i!==c.cache&&jd(t,[At],r,!0),Cs(),i=m.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=lv(e,t,i,r);break e}else if(i!==s){s=vn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),ks(s),t=lv(e,t,i,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(pt=Hn(e.firstChild),en=t,Pe=!0,Ti=null,ra=!1,Fn=null,Ar=!0,e=wE(t,null,i,r),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Ts(),i===s){t=Yr(e,t,r);break e}zt(e,t,i,r)}t=t.child}return t;case 26:return Yc(e,t),e===null?(e=C1(t.type,null,t.pendingProps,null))?t.memoizedState=e:Pe||(e=t.type,r=t.pendingProps,i=ce(Ua.current),i=nu(i).createElement(e),i[Xt]=t,i[dn]=r,It(i,e,r),B(i),t.stateNode=i):t.memoizedState=C1(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&Pe&&(i=ce(Ua.current),s=W(),i=t.stateNode=A1(t.type,t.pendingProps,i,s,!1),ra||(s=_1(i,t.type,t.pendingProps,s),s!==null&&(di(t,0).serverProps=s)),en=t,Ar=!0,s=pt,Ca(t.type)?(Bp=s,pt=Hn(i.firstChild)):pt=s),zt(e,t,t.pendingProps.children,r),Yc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pe&&(c=W(),i=wd(t.type,c.ancestorInfo),s=pt,(m=!s)||(m=$R(s,t.type,t.pendingProps,Ar),m!==null?(t.stateNode=m,ra||(c=_1(m,t.type,t.pendingProps,c),c!==null&&(di(t,0).serverProps=c)),en=t,pt=Hn(m.firstChild),Ar=!1,c=!0):c=!1,m=!c),m&&(i&&Bd(t,s),hi(t))),he(t),s=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,i=c.children,rm(s,c)?i=null:m!==null&&rm(s,m)&&(t.flags|=32),t.memoizedState!==null&&(s=Yd(e,t,rR,null,null,r),Ll._currentValue=s),Yc(e,t),zt(e,t,i,r),t.child;case 6:return e===null&&Pe&&(e=t.pendingProps,r=W(),i=r.ancestorInfo.current,e=i!=null?mc(e,i.tag,r.ancestorInfo.implicitRootScope):!0,r=pt,(i=!r)||(i=YR(r,t.pendingProps,Ar),i!==null?(t.stateNode=i,en=t,pt=null,i=!0):i=!1,i=!i),i&&(e&&Bd(t,r),hi(t))),null;case 13:return cv(e,t,r);case 4:return Ye(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=$o(t,null,i,r):zt(e,t,i,r),t.child;case 11:return tv(e,t,t.type,t.pendingProps,r);case 7:return zt(e,t,t.pendingProps,r),t.child;case 8:return zt(e,t,t.pendingProps.children,r),t.child;case 12:return t.flags|=4,t.flags|=2048,i=t.stateNode,i.effectDuration=-0,i.passiveEffectDuration=-0,zt(e,t,t.pendingProps.children,r),t.child;case 10:return i=t.type,s=t.pendingProps,c=s.value,"value"in s||IE||(IE=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Sa(t,i,c),zt(e,t,s.children,r),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,typeof i!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),mi(t),s=dt(s),ft(t),i=ip(i,s,void 0),Dt(),t.flags|=1,zt(e,t,i,r),t.child;case 14:return nv(e,t,t.type,t.pendingProps,r);case 15:return rv(e,t,t.type,t.pendingProps,r);case 19:return dv(e,t,r);case 31:return i=t.pendingProps,r=t.mode,i={mode:i.mode,children:i.children},e===null?(e=Xc(i,r),e.ref=t.ref,t.child=e,e.return=t,t=e):(e=qr(e.child,i),e.ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return av(e,t,r);case 24:return mi(t),i=dt(At),e===null?(s=Vd(),s===null&&(s=it,c=Hd(),s.pooledCache=c,pi(c),c!==null&&(s.pooledCacheLanes|=r),s=c),t.memoizedState={parent:i,cache:s},Gd(t),Sa(t,At,s)):((e.lanes&r)!==0&&(qd(e,t),Ds(t,null,null,r),Cs()),s=e.memoizedState,c=t.memoizedState,s.parent!==i?(s={parent:i,cache:i},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Sa(t,At,i)):(i=c.cache,Sa(t,At,i),i!==s.cache&&jd(t,[At],r,!0))),zt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Xr(e){e.flags|=4}function hv(e,t){if(t.type!=="stylesheet"||(t.state.loading&Zn)!==Ii)e.flags&=-16777217;else if(e.flags|=16777216,!L1(t)){if(t=Xn.current,t!==null&&((je&4194048)===je?Cr!==null:(je&62914560)!==je&&(je&536870912)===0||t!==Cr))throw gl=Km,Q_;e.flags|=8192}}function Zc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ai():536870912,e.lanes|=t,Ui|=t)}function js(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(t)if((e.mode&Gt)!==lt){for(var s=e.selfBaseDuration,c=e.child;c!==null;)r|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,s+=c.treeBaseDuration,c=c.sibling;e.treeBaseDuration=s}else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else if((e.mode&Gt)!==lt){s=e.actualDuration,c=e.selfBaseDuration;for(var m=e.child;m!==null;)r|=m.lanes|m.childLanes,i|=m.subtreeFlags,i|=m.flags,s+=m.actualDuration,c+=m.treeBaseDuration,m=m.sibling;e.actualDuration=s,e.treeBaseDuration=c}else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=r,t}function uR(e,t,r){var i=t.pendingProps;switch(Ud(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return ht(t),null;case 3:return r=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Fr(At,t),Ce(t),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xs(t)?(s0(),Xr(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,o0())),ht(t),null;case 26:return r=t.memoizedState,e===null?(Xr(t),r!==null?(ht(t),hv(t,r)):(ht(t),t.flags&=-16777217)):r?r!==e.memoizedState?(Xr(t),ht(t),hv(t,r)):(ht(t),t.flags&=-16777217):(e.memoizedProps!==i&&Xr(t),ht(t),t.flags&=-16777217),null;case 27:ue(t),r=ce(Ua.current);var s=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Xr(t);else{if(!i){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ht(t),null}e=W(),xs(t)?a0(t):(e=A1(s,i,r,e,!0),t.stateNode=e,Xr(t))}return ht(t),null;case 5:if(ue(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Xr(t);else{if(!i){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ht(t),null}if(s=W(),xs(t))a0(t);else{switch(e=ce(Ua.current),wd(r,s.ancestorInfo),s=s.context,e=nu(e),s){case as:e=e.createElementNS(No,r);break;case Qu:e=e.createElementNS(gu,r);break;default:switch(r){case"svg":e=e.createElementNS(No,r);break;case"math":e=e.createElementNS(gu,r);break;case"script":e=e.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?e.createElement("select",{is:i.is}):e.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?e.createElement(r,{is:i.is}):e.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(e)!=="[object HTMLUnknownElement]"||Jr.call(iw,r)||(iw[r]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)))}}e[Xt]=t,e[dn]=i;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=e;e:switch(It(e,r,i),r){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Xr(t)}}return ht(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Xr(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=ce(Ua.current),r=W(),xs(t)){e=t.stateNode,r=t.memoizedProps,s=!ra,i=null;var c=en;if(c!==null)switch(c.tag){case 3:s&&(s=k1(e,r,i),s!==null&&(di(t,0).serverProps=s));break;case 27:case 5:i=c.memoizedProps,s&&(s=k1(e,r,i),s!==null&&(di(t,0).serverProps=s))}e[Xt]=t,e=!!(e.nodeValue===r||i!==null&&i.suppressHydrationWarning===!0||p1(e.nodeValue,r)),e||hi(t)}else s=r.ancestorInfo.current,s!=null&&mc(i,s.tag,r.ancestorInfo.implicitRootScope),e=nu(e).createTextNode(i),e[Xt]=t,t.stateNode=e}return ht(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=xs(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");s[Xt]=t,ht(t),(t.mode&Gt)!==lt&&i!==null&&(s=t.child,s!==null&&(t.treeBaseDuration-=s.treeBaseDuration))}else s0(),Ts(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4,ht(t),(t.mode&Gt)!==lt&&i!==null&&(s=t.child,s!==null&&(t.treeBaseDuration-=s.treeBaseDuration));s=!1}else s=o0(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?($r(t),t):($r(t),null)}return $r(t),(t.flags&128)!==0?(t.lanes=r,(t.mode&Gt)!==lt&&kc(t),t):(r=i!==null,e=e!==null&&e.memoizedState!==null,r&&(i=t.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==s&&(i.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),Zc(t,t.updateQueue),ht(t),(t.mode&Gt)!==lt&&r&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Ce(t),e===null&&Qh(t.stateNode.containerInfo),ht(t),null;case 10:return Fr(t.type,t),ht(t),null;case 19:if(Q(Ct,t),s=t.memoizedState,s===null)return ht(t),null;if(i=(t.flags&128)!==0,c=s.rendering,c===null)if(i)js(s,!1);else{if(bt!==sa||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Pc(e),c!==null){for(t.flags|=128,js(s,!1),e=c.updateQueue,t.updateQueue=e,Zc(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)n0(r,e),r=r.sibling;return ie(Ct,Ct.current&Yo|El,t),t.child}e=e.sibling}s.tail!==null&&xr()>Hu&&(t.flags|=128,i=!0,js(s,!1),t.lanes=4194304)}else{if(!i)if(e=Pc(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Zc(t,e),js(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!Pe)return ht(t),null}else 2*xr()-s.renderingStartTime>Hu&&r!==536870912&&(t.flags|=128,i=!0,js(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(e=s.last,e!==null?e.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=xr(),e.sibling=null,r=Ct.current,r=i?r&Yo|El:r&Yo,ie(Ct,r,t),e):(ht(t),null);case 22:case 23:return $r(t),Pd(t),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(r&536870912)!==0&&(t.flags&128)===0&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),r=t.updateQueue,r!==null&&Zc(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==r&&(t.flags|=2048),e!==null&&Q(Ri,t),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Fr(At,t),ht(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function fR(e,t){switch(Ud(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Gt)!==lt&&kc(t),t):null;case 3:return Fr(At,t),Ce(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ue(t),null;case 13:if($r(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Ts()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Gt)!==lt&&kc(t),t):null;case 19:return Q(Ct,t),null;case 4:return Ce(t),null;case 10:return Fr(t.type,t),null;case 22:case 23:return $r(t),Pd(t),e!==null&&Q(Ri,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Gt)!==lt&&kc(t),t):null;case 24:return Fr(At,t),null;case 25:return null;default:return null}}function mv(e,t){switch(Ud(t),t.tag){case 3:Fr(At,t),Ce(t);break;case 26:case 27:case 5:ue(t);break;case 4:Ce(t);break;case 13:$r(t);break;case 19:Q(Ct,t);break;case 10:Fr(t.type,t);break;case 22:case 23:$r(t),Pd(t),e!==null&&Q(Ri,t);break;case 24:Fr(At,t)}}function yr(e){return(e.mode&Gt)!==lt}function pv(e,t){yr(e)?(gr(),Hs(t,e),br()):Hs(t,e)}function Dh(e,t,r){yr(e)?(gr(),ho(r,e,t),br()):ho(r,e,t)}function Hs(e,t){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var s=i.next;r=s;do{if((r.tag&e)===e&&((e&Ot)!==Pn?se!==null&&typeof se.markComponentPassiveEffectMountStarted=="function"&&se.markComponentPassiveEffectMountStarted(t):(e&qt)!==Pn&&se!==null&&typeof se.markComponentLayoutEffectMountStarted=="function"&&se.markComponentLayoutEffectMountStarted(t),i=void 0,(e&tn)!==Pn&&(ns=!0),i=ge(t,OO,r),(e&tn)!==Pn&&(ns=!1),(e&Ot)!==Pn?se!==null&&typeof se.markComponentPassiveEffectMountStopped=="function"&&se.markComponentPassiveEffectMountStopped():(e&qt)!==Pn&&se!==null&&typeof se.markComponentLayoutEffectMountStopped=="function"&&se.markComponentLayoutEffectMountStopped(),i!==void 0&&typeof i!="function")){var c=void 0;c=(r.tag&qt)!==0?"useLayoutEffect":(r.tag&tn)!==0?"useInsertionEffect":"useEffect";var m=void 0;m=i===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof i.then=="function"?`
|
|
182
|
+
|
|
183
|
+
It looks like you wrote `+c+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
184
|
+
|
|
185
|
+
`+c+`(() => {
|
|
186
|
+
async function fetchData() {
|
|
187
|
+
// You can await here
|
|
188
|
+
const response = await MyAPI.getData(someId);
|
|
189
|
+
// ...
|
|
190
|
+
}
|
|
191
|
+
fetchData();
|
|
192
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
193
|
+
|
|
194
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+i,ge(t,function(b,x){console.error("%s must not return anything besides a function, which is used for clean-up.%s",b,x)},c,m)}r=r.next}while(r!==s)}}catch(b){tt(t,t.return,b)}}function ho(e,t,r){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var c=s.next;i=c;do{if((i.tag&e)===e){var m=i.inst,b=m.destroy;b!==void 0&&(m.destroy=void 0,(e&Ot)!==Pn?se!==null&&typeof se.markComponentPassiveEffectUnmountStarted=="function"&&se.markComponentPassiveEffectUnmountStarted(t):(e&qt)!==Pn&&se!==null&&typeof se.markComponentLayoutEffectUnmountStarted=="function"&&se.markComponentLayoutEffectUnmountStarted(t),(e&tn)!==Pn&&(ns=!0),s=t,ge(s,CO,s,r,b),(e&tn)!==Pn&&(ns=!1),(e&Ot)!==Pn?se!==null&&typeof se.markComponentPassiveEffectUnmountStopped=="function"&&se.markComponentPassiveEffectUnmountStopped():(e&qt)!==Pn&&se!==null&&typeof se.markComponentLayoutEffectUnmountStopped=="function"&&se.markComponentLayoutEffectUnmountStopped())}i=i.next}while(i!==c)}}catch(x){tt(t,t.return,x)}}function bv(e,t){yr(e)?(gr(),Hs(t,e),br()):Hs(t,e)}function Mh(e,t,r){yr(e)?(gr(),ho(r,e,t),br()):ho(r,e,t)}function gv(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Zo||(r.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(e)||"instance"),r.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(e)||"instance"));try{ge(e,y0,t,r)}catch(i){tt(e,e.return,i)}}}function dR(e,t,r){return e.getSnapshotBeforeUpdate(t,r)}function hR(e,t){var r=t.memoizedProps,i=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Zo||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(e)||"instance"));try{var s=vi(e.type,r,e.elementType===e.type),c=ge(e,dR,t,s,i);r=VE,c!==void 0||r.has(e.type)||(r.add(e.type),ge(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Z(e))})),t.__reactInternalSnapshotBeforeUpdate=c}catch(m){tt(e,e.return,m)}}function yv(e,t,r){r.props=vi(e.type,e.memoizedProps),r.state=e.memoizedState,yr(e)?(gr(),ge(e,mE,e,t,r),br()):ge(e,mE,e,t,r)}function mR(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}if(typeof t=="function")if(yr(e))try{gr(),e.refCleanup=t(r)}finally{br()}else e.refCleanup=t(r);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Z(e)),t.current=r}}function zs(e,t){try{ge(e,mR,e)}catch(r){tt(e,t,r)}}function vr(e,t){var r=e.ref,i=e.refCleanup;if(r!==null)if(typeof i=="function")try{if(yr(e))try{gr(),ge(e,i)}finally{br(e)}else ge(e,i)}catch(s){tt(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{if(yr(e))try{gr(),ge(e,r,null)}finally{br(e)}else ge(e,r,null)}catch(s){tt(e,t,s)}else r.current=null}function vv(e,t,r,i){var s=e.memoizedProps,c=s.id,m=s.onCommit;s=s.onRender,t=t===null?"mount":"update",ku&&(t="nested-update"),typeof s=="function"&&s(c,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,r),typeof m=="function"&&m(e.memoizedProps.id,t,i,r)}function pR(e,t,r,i){var s=e.memoizedProps;e=s.id,s=s.onPostCommit,t=t===null?"mount":"update",ku&&(t="nested-update"),typeof s=="function"&&s(e,t,i,r)}function _v(e){var t=e.type,r=e.memoizedProps,i=e.stateNode;try{ge(e,jR,i,t,r,e)}catch(s){tt(e,e.return,s)}}function Uh(e,t,r){try{ge(e,HR,e.stateNode,e.type,r,t,e)}catch(i){tt(e,e.return,i)}}function Ev(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ca(e.type)||e.tag===4}function Bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ev(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ca(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lh(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=tu));else if(i!==4&&(i===27&&Ca(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Lh(e,t,r),e=e.sibling;e!==null;)Lh(e,t,r),e=e.sibling}function Qc(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(i===27&&Ca(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Qc(e,t,r),e=e.sibling;e!==null;)Qc(e,t,r),e=e.sibling}function bR(e){for(var t,r=e.return;r!==null;){if(Ev(r)){t=r;break}r=r.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,r=Bh(e),Qc(e,r,t);break;case 5:r=t.stateNode,t.flags&32&&(S1(r),t.flags&=-33),t=Bh(e),Qc(e,t,r);break;case 3:case 4:t=t.stateNode.containerInfo,r=Bh(e),Lh(e,r,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function wv(e){var t=e.stateNode,r=e.memoizedProps;try{ge(e,WR,e.type,r,t,e)}catch(i){tt(e,e.return,i)}}function gR(e,t){if(e=e.containerInfo,Dp=ef,e=Wy(e),Td(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var s=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var m=0,b=-1,x=-1,k=0,H=0,F=e,L=null;t:for(;;){for(var P;F!==r||s!==0&&F.nodeType!==3||(b=m+s),F!==c||i!==0&&F.nodeType!==3||(x=m+i),F.nodeType===3&&(m+=F.nodeValue.length),(P=F.firstChild)!==null;)L=F,F=P;for(;;){if(F===e)break t;if(L===r&&++k===s&&(b=m),L===c&&++H===i&&(x=m),(P=F.nextSibling)!==null)break;F=L,L=F.parentNode}F=P}r=b===-1||x===-1?null:{start:b,end:x}}else r=null}r=r||{start:0,end:0}}else r=null;for(Mp={focusedElem:e,selectionRange:r},ef=!1,Lt=t;Lt!==null;)if(t=Lt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Lt=e;else for(;Lt!==null;){switch(e=t=Lt,r=e.alternate,s=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:(s&1024)!==0&&r!==null&&hR(e,r);break;case 3:if((s&1024)!==0){if(e=e.stateNode.containerInfo,r=e.nodeType,r===9)am(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":am(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Lt=e;break}Lt=t.return}}function Sv(e,t,r){var i=r.flags;switch(r.tag){case 0:case 11:case 15:Qr(e,r),i&4&&pv(r,qt|$n);break;case 1:if(Qr(e,r),i&4)if(e=r.stateNode,t===null)r.type.defaultProps||"ref"in r.memoizedProps||Zo||(e.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(r)||"instance"),e.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(r)||"instance")),yr(r)?(gr(),ge(r,op,r,e),br()):ge(r,op,r,e);else{var s=vi(r.type,t.memoizedProps);t=t.memoizedState,r.type.defaultProps||"ref"in r.memoizedProps||Zo||(e.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(r)||"instance"),e.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(r)||"instance")),yr(r)?(gr(),ge(r,fE,r,e,s,t,e.__reactInternalSnapshotBeforeUpdate),br()):ge(r,fE,r,e,s,t,e.__reactInternalSnapshotBeforeUpdate)}i&64&&gv(r),i&512&&zs(r,r.return);break;case 3:if(t=Pr(),Qr(e,r),i&64&&(i=r.updateQueue,i!==null)){if(s=null,r.child!==null)switch(r.child.tag){case 27:case 5:s=r.child.stateNode;break;case 1:s=r.child.stateNode}try{ge(r,y0,i,s)}catch(m){tt(r,r.return,m)}}e.effectDuration+=Tc(t);break;case 27:t===null&&i&4&&wv(r);case 26:case 5:Qr(e,r),t===null&&i&4&&_v(r),i&512&&zs(r,r.return);break;case 12:if(i&4){i=Pr(),Qr(e,r),e=r.stateNode,e.effectDuration+=As(i);try{ge(r,vv,r,t,Tu,e.effectDuration)}catch(m){tt(r,r.return,m)}}else Qr(e,r);break;case 13:Qr(e,r),i&4&&kv(e,r),i&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=kR.bind(null,r),XR(e,r))));break;case 22:if(i=r.memoizedState!==null||oa,!i){t=t!==null&&t.memoizedState!==null||_t,s=oa;var c=_t;oa=i,(_t=t)&&!c?Wr(e,r,(r.subtreeFlags&8772)!==0):Qr(e,r),oa=s,_t=c}break;case 30:break;default:Qr(e,r)}}function xv(e){var t=e.alternate;t!==null&&(e.alternate=null,xv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ea(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zr(e,t,r){for(r=r.child;r!==null;)Tv(e,t,r),r=r.sibling}function Tv(e,t,r){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(To,r)}catch(c){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",c))}switch(r.tag){case 26:_t||vr(r,t),Zr(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:_t||vr(r,t);var i=Tt,s=mn;Ca(r.type)&&(Tt=r.stateNode,mn=!1),Zr(e,t,r),ge(r,$s,r.stateNode),Tt=i,mn=s;break;case 5:_t||vr(r,t);case 6:if(i=Tt,s=mn,Tt=null,Zr(e,t,r),Tt=i,mn=s,Tt!==null)if(mn)try{ge(r,VR,Tt,r.stateNode)}catch(c){tt(r,t,c)}else try{ge(r,IR,Tt,r.stateNode)}catch(c){tt(r,t,c)}break;case 18:Tt!==null&&(mn?(e=Tt,x1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Qs(e)):x1(Tt,r.stateNode));break;case 4:i=Tt,s=mn,Tt=r.stateNode.containerInfo,mn=!0,Zr(e,t,r),Tt=i,mn=s;break;case 0:case 11:case 14:case 15:_t||ho(tn,r,t),_t||Dh(r,t,qt),Zr(e,t,r);break;case 1:_t||(vr(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"&&yv(r,t,i)),Zr(e,t,r);break;case 21:Zr(e,t,r);break;case 22:_t=(i=_t)||r.memoizedState!==null,Zr(e,t,r),_t=i;break;default:Zr(e,t,r)}}function kv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ge(t,QR,e)}catch(r){tt(t,t.return,r)}}function yR(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new GE),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new GE),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function jh(e,t){var r=yR(e);t.forEach(function(i){var s=NR.bind(null,e,i);if(!r.has(i)){if(r.add(i),ar)if(Qo!==null&&Wo!==null)qs(Wo,Qo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");i.then(s,s)}})}function _n(e,t){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var s=e,c=t,m=r[i],b=c;e:for(;b!==null;){switch(b.tag){case 27:if(Ca(b.type)){Tt=b.stateNode,mn=!1;break e}break;case 5:Tt=b.stateNode,mn=!1;break e;case 3:case 4:Tt=b.stateNode.containerInfo,mn=!0;break e}b=b.return}if(Tt===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Tv(s,c,m),Tt=null,mn=!1,s=m,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Nv(t,e),t=t.sibling}function Nv(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_n(t,e),En(e),i&4&&(ho(tn|$n,e,e.return),Hs(tn|$n,e),Dh(e,e.return,qt|$n));break;case 1:_n(t,e),En(e),i&512&&(_t||r===null||vr(r,r.return)),i&64&&oa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?i:r.concat(i))));break;case 26:var s=lr;if(_n(t,e),En(e),i&512&&(_t||r===null||vr(r,r.return)),i&4)if(t=r!==null?r.memoizedState:null,i=e.memoizedState,r===null)if(i===null)if(e.stateNode===null){e:{i=e.type,r=e.memoizedProps,t=s.ownerDocument||s;t:switch(i){case"title":s=t.getElementsByTagName("title")[0],(!s||s[Js]||s[Xt]||s.namespaceURI===No||s.hasAttribute("itemprop"))&&(s=t.createElement(i),t.head.insertBefore(s,t.querySelector("head > title"))),It(s,i,r),s[Xt]=e,B(s),i=s;break e;case"link":var c=U1("link","href",t).get(i+(r.href||""));if(c){for(var m=0;m<c.length;m++)if(s=c[m],s.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&s.getAttribute("rel")===(r.rel==null?null:r.rel)&&s.getAttribute("title")===(r.title==null?null:r.title)&&s.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){c.splice(m,1);break t}}s=t.createElement(i),It(s,i,r),t.head.appendChild(s);break;case"meta":if(c=U1("meta","content",t).get(i+(r.content||""))){for(m=0;m<c.length;m++)if(s=c[m],le(r.content,"content"),s.getAttribute("content")===(r.content==null?null:""+r.content)&&s.getAttribute("name")===(r.name==null?null:r.name)&&s.getAttribute("property")===(r.property==null?null:r.property)&&s.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&s.getAttribute("charset")===(r.charSet==null?null:r.charSet)){c.splice(m,1);break t}}s=t.createElement(i),It(s,i,r),t.head.appendChild(s);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+i+'". This is a bug in React.')}s[Xt]=e,B(s),i=s}e.stateNode=i}else B1(s,e.type,e.stateNode);else e.stateNode=M1(s,i,e.memoizedProps);else t!==i?(t===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):t.count--,i===null?B1(s,e.type,e.stateNode):M1(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Uh(e,e.memoizedProps,r.memoizedProps);break;case 27:_n(t,e),En(e),i&512&&(_t||r===null||vr(r,r.return)),r!==null&&i&4&&Uh(e,e.memoizedProps,r.memoizedProps);break;case 5:if(_n(t,e),En(e),i&512&&(_t||r===null||vr(r,r.return)),e.flags&32){t=e.stateNode;try{ge(e,S1,t)}catch(H){tt(e,e.return,H)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Uh(e,t,r!==null?r.memoizedProps:t)),i&1024&&(hp=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(_n(t,e),En(e),i&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");i=e.memoizedProps,r=r!==null?r.memoizedProps:i,t=e.stateNode;try{ge(e,zR,t,r,i)}catch(H){tt(e,e.return,H)}}break;case 3:if(s=Pr(),Wu=null,c=lr,lr=ru(t.containerInfo),_n(t,e),lr=c,En(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{ge(e,ZR,t.containerInfo)}catch(H){tt(e,e.return,H)}hp&&(hp=!1,Rv(e)),t.effectDuration+=Tc(s);break;case 4:i=lr,lr=ru(e.stateNode.containerInfo),_n(t,e),En(e),lr=i;break;case 12:i=Pr(),_n(t,e),En(e),e.stateNode.effectDuration+=As(i);break;case 13:_n(t,e),En(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(vp=xr()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,jh(e,i)));break;case 22:s=e.memoizedState!==null;var b=r!==null&&r.memoizedState!==null,x=oa,k=_t;if(oa=x||s,_t=k||b,_n(t,e),_t=k,oa=x,En(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|$m,s&&(r===null||b||oa||_t||_i(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){b=r=t;try{c=b.stateNode,s?ge(b,GR,c):ge(b,FR,b.stateNode,b.memoizedProps)}catch(H){tt(b,b.return,H)}}}else if(t.tag===6){if(r===null){b=t;try{m=b.stateNode,s?ge(b,qR,m):ge(b,PR,m,b.memoizedProps)}catch(H){tt(b,b.return,H)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(r=i.retryQueue,r!==null&&(i.retryQueue=null,jh(e,r))));break;case 19:_n(t,e),En(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,jh(e,i)));break;case 30:break;case 21:break;default:_n(t,e),En(e)}}function En(e){var t=e.flags;if(t&2){try{ge(e,bR,e)}catch(r){tt(e,e.return,r)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Sv(e,t.alternate,t),t=t.sibling}function Av(e){switch(e.tag){case 0:case 11:case 14:case 15:Dh(e,e.return,qt),_i(e);break;case 1:vr(e,e.return);var t=e.stateNode;typeof t.componentWillUnmount=="function"&&yv(e,e.return,t),_i(e);break;case 27:ge(e,$s,e.stateNode);case 26:case 5:vr(e,e.return),_i(e);break;case 22:e.memoizedState===null&&_i(e);break;case 30:_i(e);break;default:_i(e)}}function _i(e){for(e=e.child;e!==null;)Av(e),e=e.sibling}function Ov(e,t,r,i){var s=r.flags;switch(r.tag){case 0:case 11:case 15:Wr(e,r,i),pv(r,qt);break;case 1:if(Wr(e,r,i),t=r.stateNode,typeof t.componentDidMount=="function"&&ge(r,op,r,t),t=r.updateQueue,t!==null){e=r.stateNode;try{ge(r,nR,t,e)}catch(c){tt(r,r.return,c)}}i&&s&64&&gv(r),zs(r,r.return);break;case 27:wv(r);case 26:case 5:Wr(e,r,i),i&&t===null&&s&4&&_v(r),zs(r,r.return);break;case 12:if(i&&s&4){s=Pr(),Wr(e,r,i),i=r.stateNode,i.effectDuration+=As(s);try{ge(r,vv,r,t,Tu,i.effectDuration)}catch(c){tt(r,r.return,c)}}else Wr(e,r,i);break;case 13:Wr(e,r,i),i&&s&4&&kv(e,r);break;case 22:r.memoizedState===null&&Wr(e,r,i),zs(r,r.return);break;case 30:break;default:Wr(e,r,i)}}function Wr(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Ov(e,t.alternate,t,r),t=t.sibling}function Hh(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&pi(e),r!=null&&Rs(r))}function zh(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(pi(t),e!=null&&Rs(e))}function _r(e,t,r,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cv(e,t,r,i),t=t.sibling}function Cv(e,t,r,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:_r(e,t,r,i),s&2048&&bv(t,Ot|$n);break;case 1:_r(e,t,r,i);break;case 3:var c=Pr();_r(e,t,r,i),s&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==r&&(pi(t),r!=null&&Rs(r))),e.passiveEffectDuration+=Tc(c);break;case 12:if(s&2048){s=Pr(),_r(e,t,r,i),e=t.stateNode,e.passiveEffectDuration+=As(s);try{ge(t,pR,t,t.alternate,Tu,e.passiveEffectDuration)}catch(b){tt(t,t.return,b)}}else _r(e,t,r,i);break;case 13:_r(e,t,r,i);break;case 23:break;case 22:c=t.stateNode;var m=t.alternate;t.memoizedState!==null?c._visibility&Si?_r(e,t,r,i):Is(e,t):c._visibility&Si?_r(e,t,r,i):(c._visibility|=Si,mo(e,t,r,i,(t.subtreeFlags&10256)!==0)),s&2048&&Hh(m,t);break;case 24:_r(e,t,r,i),s&2048&&zh(t.alternate,t);break;default:_r(e,t,r,i)}}function mo(e,t,r,i,s){for(s=s&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;)Dv(e,t,r,i,s),t=t.sibling}function Dv(e,t,r,i,s){var c=t.flags;switch(t.tag){case 0:case 11:case 15:mo(e,t,r,i,s),bv(t,Ot);break;case 23:break;case 22:var m=t.stateNode;t.memoizedState!==null?m._visibility&Si?mo(e,t,r,i,s):Is(e,t):(m._visibility|=Si,mo(e,t,r,i,s)),s&&c&2048&&Hh(t.alternate,t);break;case 24:mo(e,t,r,i,s),s&&c&2048&&zh(t.alternate,t);break;default:mo(e,t,r,i,s)}}function Is(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,i=t,s=i.flags;switch(i.tag){case 22:Is(r,i),s&2048&&Hh(i.alternate,i);break;case 24:Is(r,i),s&2048&&zh(i.alternate,i);break;default:Is(r,i)}t=t.sibling}}function po(e){if(e.subtreeFlags&wl)for(e=e.child;e!==null;)Mv(e),e=e.sibling}function Mv(e){switch(e.tag){case 26:po(e),e.flags&wl&&e.memoizedState!==null&&tA(lr,e.memoizedState,e.memoizedProps);break;case 5:po(e);break;case 3:case 4:var t=lr;lr=ru(e.stateNode.containerInfo),po(e),lr=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=wl,wl=16777216,po(e),wl=t):po(e));break;default:po(e)}}function Uv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var i=t[r];Lt=i,jv(i,e)}Uv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bv(e),e=e.sibling}function Bv(e){switch(e.tag){case 0:case 11:case 15:Vs(e),e.flags&2048&&Mh(e,e.return,Ot|$n);break;case 3:var t=Pr();Vs(e),e.stateNode.passiveEffectDuration+=Tc(t);break;case 12:t=Pr(),Vs(e),e.stateNode.passiveEffectDuration+=As(t);break;case 22:t=e.stateNode,e.memoizedState!==null&&t._visibility&Si&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wc(e)):Vs(e);break;default:Vs(e)}}function Wc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var i=t[r];Lt=i,jv(i,e)}Uv(e)}for(e=e.child;e!==null;)Lv(e),e=e.sibling}function Lv(e){switch(e.tag){case 0:case 11:case 15:Mh(e,e.return,Ot),Wc(e);break;case 22:var t=e.stateNode;t._visibility&Si&&(t._visibility&=-3,Wc(e));break;default:Wc(e)}}function jv(e,t){for(;Lt!==null;){var r=Lt,i=r;switch(i.tag){case 0:case 11:case 15:Mh(i,t,Ot);break;case 23:case 22:i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(i=i.memoizedState.cachePool.pool,i!=null&&pi(i));break;case 24:Rs(i.memoizedState.cache)}if(i=r.child,i!==null)i.return=r,Lt=i;else e:for(r=e;Lt!==null;){i=Lt;var s=i.sibling,c=i.return;if(xv(i),i===r){Lt=null;break e}if(s!==null){s.return=c,Lt=s;break e}Lt=c}}}function vR(){MO.forEach(function(e){return e()})}function Hv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||q.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function wn(e){if((Qe&nn)!==Tn&&je!==0)return je&-je;var t=q.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),e=Ni,e!==0?e:Xh()):bs()}function zv(){Nn===0&&(Nn=(je&536870912)===0||Pe?Ue():536870912);var e=Xn.current;return e!==null&&(e.flags|=32),Nn}function vt(e,t,r){if(ns&&console.error("useInsertionEffect must not schedule updates."),xp&&(zu=!0),(e===it&&(We===Di||We===Mi)||e.cancelPendingCommit!==null)&&(go(e,0),Aa(e,je,Nn,!1)),_a(e,r),(Qe&nn)!==0&&e===it){if(Nr)switch(t.tag){case 0:case 11:case 15:e=Be&&Z(Be)||"Unknown",KE.has(e)||(KE.add(e),t=Z(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:WE||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),WE=!0)}}else ar&&ms(e,t,r),AR(t),e===it&&((Qe&nn)===Tn&&(Fa|=r),bt===Ci&&Aa(e,je,Nn,!1)),Er(e)}function Iv(e,t,r){if((Qe&(nn|cr))!==Tn)throw Error("Should not already be working.");var i=!r&&(t&124)===0&&(t&e.expiredLanes)===0||va(e,t),s=i?ER(e,t):Gh(e,t,!0),c=i;do{if(s===sa){es&&!i&&Aa(e,t,0,!1);break}else{if(r=e.current.alternate,c&&!_R(r)){s=Gh(e,t,!1),c=!1;continue}if(s===Ko){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{s=e;var b=m;m=Rl;var x=s.current.memoizedState.isDehydrated;if(x&&(go(s,b).flags|=256),b=Gh(s,b,!1),b!==Ko){if(gp&&!x){s.errorRecoveryDisabledLanes|=c,Fa|=c,s=Ci;break e}s=rn,rn=m,s!==null&&(rn===null?rn=s:rn.push.apply(rn,s))}s=b}if(c=!1,s!==Ko)continue}}if(s===xl){go(e,0),Aa(e,t,0,!0);break}e:{switch(i=e,s){case sa:case xl:throw Error("Root did not complete. This is a bug in React.");case Ci:if((t&4194048)!==t)break;case Lu:Aa(i,t,Nn,!Ga);break e;case Ko:rn=null;break;case mp:case qE:break;default:throw Error("Unknown root exit status.")}if(q.actQueue!==null)qh(i,r,t,rn,Al,ju,Nn,Fa,Ui);else{if((t&62914560)===t&&(c=vp+PE-xr(),10<c)){if(Aa(i,t,Nn,!Ga),Vr(i,0,!0)!==0)break e;i.timeoutHandle=ow(Vv.bind(null,i,r,rn,Al,ju,t,Nn,Fa,Ui,Ga,s,jO,Y_,0),c);break e}Vv(i,r,rn,Al,ju,t,Nn,Fa,Ui,Ga,s,BO,Y_,0)}}}break}while(!0);Er(e)}function Vv(e,t,r,i,s,c,m,b,x,k,H,F,L,P){if(e.timeoutHandle=zi,F=t.subtreeFlags,(F&8192||(F&16785408)===16785408)&&(Bl={stylesheets:null,count:0,unsuspend:eA},Mv(t),F=nA(),F!==null)){e.cancelPendingCommit=F(qh.bind(null,e,t,c,r,i,s,m,b,x,H,LO,L,P)),Aa(e,c,m,!k);return}qh(e,t,c,r,i,s,m,b,x)}function _R(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var i=0;i<r.length;i++){var s=r[i],c=s.getSnapshot;s=s.value;try{if(!Jt(c(),s))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Aa(e,t,r,i){t&=~yp,t&=~Fa,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var c=31-Wt(s),m=1<<c;i[c]=-1,s&=~m}r!==0&&ds(e,r,t)}function bo(){return(Qe&(nn|cr))===Tn?(Fs(0),!1):!0}function Ih(){if(Be!==null){if(We===pn)var e=Be.return;else e=Be,wc(),Wd(e),Po=null,_l=0,e=Be;for(;e!==null;)mv(e.alternate,e),e=e.return;Be=null}}function go(e,t){var r=e.timeoutHandle;r!==zi&&(e.timeoutHandle=zi,QO(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Ih(),it=e,Be=r=qr(e.current,null),je=t,We=pn,kn=null,Ga=!1,es=va(e,t),gp=!1,bt=sa,Ui=Nn=yp=Fa=qa=0,rn=Rl=null,ju=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var s=31-Wt(i),c=1<<s;t|=e[s],i&=~c}return Dr=t,yc(),t=P_(),1e3<t-F_&&(q.recentlyCreatedOwnerStacks=0,F_=t),or.discardPendingWarnings(),r}function Gv(e,t){_e=null,q.H=Uu,q.getCurrentStack=null,Nr=!1,xn=null,t===bl||t===Au?(t=p0(),We=kl):t===Q_?(t=p0(),We=FE):We=t===UE?bp:t!==null&&typeof t=="object"&&typeof t.then=="function"?Jo:Tl,kn=t;var r=Be;if(r===null)bt=xl,$c(e,vn(t,e.current));else switch(r.mode&Gt&&Id(r),Dt(),We){case Tl:se!==null&&typeof se.markComponentErrored=="function"&&se.markComponentErrored(r,t,je);break;case Di:case Mi:case kl:case Jo:case Nl:se!==null&&typeof se.markComponentSuspended=="function"&&se.markComponentSuspended(r,t,je)}}function qv(){var e=q.H;return q.H=Uu,e===null?Uu:e}function Fv(){var e=q.A;return q.A=DO,e}function Vh(){bt=Ci,Ga||(je&4194048)!==je&&Xn.current!==null||(es=!0),(qa&134217727)===0&&(Fa&134217727)===0||it===null||Aa(it,je,Nn,!1)}function Gh(e,t,r){var i=Qe;Qe|=nn;var s=qv(),c=Fv();if(it!==e||je!==t){if(ar){var m=e.memoizedUpdaters;0<m.size&&(qs(e,je),m.clear()),ps(e,t)}Al=null,go(e,t)}pr(t),t=!1,m=bt;e:do try{if(We!==pn&&Be!==null){var b=Be,x=kn;switch(We){case bp:Ih(),m=Lu;break e;case kl:case Di:case Mi:case Jo:Xn.current===null&&(t=!0);var k=We;if(We=pn,kn=null,yo(e,b,x,k),r&&es){m=sa;break e}break;default:k=We,We=pn,kn=null,yo(e,b,x,k)}}Pv(),m=bt;break}catch(H){Gv(e,H)}while(!0);return t&&e.shellSuspendCounter++,wc(),Qe=i,q.H=s,q.A=c,oe(),Be===null&&(it=null,je=0,yc()),m}function Pv(){for(;Be!==null;)$v(Be)}function ER(e,t){var r=Qe;Qe|=nn;var i=qv(),s=Fv();if(it!==e||je!==t){if(ar){var c=e.memoizedUpdaters;0<c.size&&(qs(e,je),c.clear()),ps(e,t)}Al=null,Hu=xr()+$E,go(e,t)}else es=va(e,t);pr(t);e:do try{if(We!==pn&&Be!==null)t:switch(t=Be,c=kn,We){case Tl:We=pn,kn=null,yo(e,t,c,Tl);break;case Di:case Mi:if(h0(c)){We=pn,kn=null,Yv(t);break}t=function(){We!==Di&&We!==Mi||it!==e||(We=Nl),Er(e)},c.then(t,t);break e;case kl:We=Nl;break e;case FE:We=pp;break e;case Nl:h0(c)?(We=pn,kn=null,Yv(t)):(We=pn,kn=null,yo(e,t,c,Nl));break;case pp:var m=null;switch(Be.tag){case 26:m=Be.memoizedState;case 5:case 27:var b=Be;if(!m||L1(m)){We=pn,kn=null;var x=b.sibling;if(x!==null)Be=x;else{var k=b.return;k!==null?(Be=k,Kc(k)):Be=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}We=pn,kn=null,yo(e,t,c,pp);break;case Jo:We=pn,kn=null,yo(e,t,c,Jo);break;case bp:Ih(),bt=Lu;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}q.actQueue!==null?Pv():wR();break}catch(H){Gv(e,H)}while(!0);return wc(),q.H=i,q.A=s,Qe=r,Be!==null?(se!==null&&typeof se.markRenderYielded=="function"&&se.markRenderYielded(),sa):(oe(),it=null,je=0,yc(),bt)}function wR(){for(;Be!==null&&!yA();)$v(Be)}function $v(e){var t=e.alternate;(e.mode&Gt)!==lt?(zd(e),t=ge(e,Ch,t,e,Dr),Id(e)):t=ge(e,Ch,t,e,Dr),e.memoizedProps=e.pendingProps,t===null?Kc(e):Be=t}function Yv(e){var t=ge(e,SR,e);e.memoizedProps=e.pendingProps,t===null?Kc(e):Be=t}function SR(e){var t=e.alternate,r=(e.mode&Gt)!==lt;switch(r&&zd(e),e.tag){case 15:case 0:t=ov(t,e,e.pendingProps,e.type,void 0,je);break;case 11:t=ov(t,e,e.pendingProps,e.type.render,e.ref,je);break;case 5:Wd(e);default:mv(t,e),e=Be=n0(e,Dr),t=Ch(t,e,Dr)}return r&&Id(e),t}function yo(e,t,r,i){wc(),Wd(t),Po=null,_l=0;var s=t.return;try{if(lR(e,s,t,r,je)){bt=xl,$c(e,vn(r,e.current)),Be=null;return}}catch(c){if(s!==null)throw Be=s,c;bt=xl,$c(e,vn(r,e.current)),Be=null;return}t.flags&32768?(Pe||i===Tl?e=!0:es||(je&536870912)!==0?e=!1:(Ga=e=!0,(i===Di||i===Mi||i===kl||i===Jo)&&(i=Xn.current,i!==null&&i.tag===13&&(i.flags|=16384))),Xv(t,e)):Kc(t)}function Kc(e){var t=e;do{if((t.flags&32768)!==0){Xv(t,Ga);return}var r=t.alternate;if(e=t.return,zd(t),r=ge(t,uR,r,t,Dr),(t.mode&Gt)!==lt&&c0(t),r!==null){Be=r;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);bt===sa&&(bt=qE)}function Xv(e,t){do{var r=fR(e.alternate,e);if(r!==null){r.flags&=32767,Be=r;return}if((e.mode&Gt)!==lt){c0(e),r=e.actualDuration;for(var i=e.child;i!==null;)r+=i.actualDuration,i=i.sibling;e.actualDuration=r}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Be=e;return}Be=e=r}while(e!==null);bt=Lu,Be=null}function qh(e,t,r,i,s,c,m,b,x){e.cancelPendingCommit=null;do Gs();while(Ft!==Bi);if(or.flushLegacyContextWarning(),or.flushPendingUnsafeLifecycleWarnings(),(Qe&(nn|cr))!==Tn)throw Error("Should not already be working.");if(se!==null&&typeof se.markCommitStarted=="function"&&se.markCommitStarted(r),t===null)at();else{if(r===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(c=t.lanes|t.childLanes,c|=Ym,lc(e,r,c,m,b,x),e===it&&(Be=it=null,je=0),ts=t,$a=e,Ya=r,Ep=c,wp=s,QE=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,RR(xo,function(){return Jv(),null})):(e.callbackNode=null,e.callbackPriority=0),Tu=Io(),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=q.T,q.T=null,s=Ze.p,Ze.p=zn,m=Qe,Qe|=cr;try{gR(e,t,r)}finally{Qe=m,Ze.p=s,q.T=i}}Ft=YE,Zv(),Qv(),Wv()}}function Zv(){if(Ft===YE){Ft=Bi;var e=$a,t=ts,r=Ya,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=q.T,q.T=null;var s=Ze.p;Ze.p=zn;var c=Qe;Qe|=cr;try{Qo=r,Wo=e,Nv(t,e),Wo=Qo=null,r=Mp;var m=Wy(e.containerInfo),b=r.focusedElem,x=r.selectionRange;if(m!==b&&b&&b.ownerDocument&&Qy(b.ownerDocument.documentElement,b)){if(x!==null&&Td(b)){var k=x.start,H=x.end;if(H===void 0&&(H=k),"selectionStart"in b)b.selectionStart=k,b.selectionEnd=Math.min(H,b.value.length);else{var F=b.ownerDocument||document,L=F&&F.defaultView||window;if(L.getSelection){var P=L.getSelection(),fe=b.textContent.length,ye=Math.min(x.start,fe),ot=x.end===void 0?ye:Math.min(x.end,fe);!P.extend&&ye>ot&&(m=ot,ot=ye,ye=m);var ze=Zy(b,ye),O=Zy(b,ot);if(ze&&O&&(P.rangeCount!==1||P.anchorNode!==ze.node||P.anchorOffset!==ze.offset||P.focusNode!==O.node||P.focusOffset!==O.offset)){var C=F.createRange();C.setStart(ze.node,ze.offset),P.removeAllRanges(),ye>ot?(P.addRange(C),P.extend(O.node,O.offset)):(C.setEnd(O.node,O.offset),P.addRange(C))}}}}for(F=[],P=b;P=P.parentNode;)P.nodeType===1&&F.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<F.length;b++){var M=F[b];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}ef=!!Dp,Mp=Dp=null}finally{Qe=c,Ze.p=s,q.T=i}}e.current=t,Ft=XE}}function Qv(){if(Ft===XE){Ft=Bi;var e=$a,t=ts,r=Ya,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=q.T,q.T=null;var s=Ze.p;Ze.p=zn;var c=Qe;Qe|=cr;try{se!==null&&typeof se.markLayoutEffectsStarted=="function"&&se.markLayoutEffectsStarted(r),Qo=r,Wo=e,Sv(e,t.alternate,t),Wo=Qo=null,se!==null&&typeof se.markLayoutEffectsStopped=="function"&&se.markLayoutEffectsStopped()}finally{Qe=c,Ze.p=s,q.T=i}}Ft=ZE}}function Wv(){if(Ft===HO||Ft===ZE){Ft=Bi,vA();var e=$a,t=ts,r=Ya,i=QE,s=(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0;s?Ft=_p:(Ft=Bi,ts=$a=null,Kv(e,e.pendingLanes),Li=0,Cl=null);var c=e.pendingLanes;if(c===0&&(Pa=null),s||r1(e),s=ro(r),t=t.stateNode,Yt&&typeof Yt.onCommitFiberRoot=="function")try{var m=(t.current.flags&128)===128;switch(s){case zn:var b=xm;break;case kr:b=Tm;break;case ea:b=xo;break;case pu:b=km;break;default:b=xo}Yt.onCommitFiberRoot(To,t,b,m)}catch(F){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",F))}if(ar&&e.memoizedUpdaters.clear(),vR(),i!==null){m=q.T,b=Ze.p,Ze.p=zn,q.T=null;try{var x=e.onRecoverableError;for(t=0;t<i.length;t++){var k=i[t],H=xR(k.stack);ge(k.source,x,k.value,H)}}finally{q.T=m,Ze.p=b}}(Ya&3)!==0&&Gs(),Er(e),c=e.pendingLanes,(r&4194090)!==0&&(c&42)!==0?(Nu=!0,e===Sp?Ol++:(Ol=0,Sp=e)):Ol=0,Fs(0),at()}}function xR(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Kv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Rs(t)))}function Gs(e){return Zv(),Qv(),Wv(),Jv()}function Jv(){if(Ft!==_p)return!1;var e=$a,t=Ep;Ep=0;var r=ro(Ya),i=ea>r?ea:r;r=q.T;var s=Ze.p;try{Ze.p=i,q.T=null,i=wp,wp=null;var c=$a,m=Ya;if(Ft=Bi,ts=$a=null,Ya=0,(Qe&(nn|cr))!==Tn)throw Error("Cannot flush passive effects while already rendering.");xp=!0,zu=!1,se!==null&&typeof se.markPassiveEffectsStarted=="function"&&se.markPassiveEffectsStarted(m);var b=Qe;if(Qe|=cr,Bv(c.current),Cv(c,c.current,m,i),se!==null&&typeof se.markPassiveEffectsStopped=="function"&&se.markPassiveEffectsStopped(),r1(c),Qe=b,Fs(0,!1),zu?c===Cl?Li++:(Li=0,Cl=c):Li=0,zu=xp=!1,Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(To,c)}catch(k){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",k))}var x=c.current.stateNode;return x.effectDuration=0,x.passiveEffectDuration=0,!0}finally{Ze.p=s,q.T=r,Kv(e,t)}}function e1(e,t,r){t=vn(r,t),t=_h(e.stateNode,t,2),e=Ta(e,t,2),e!==null&&(_a(e,2),Er(e))}function tt(e,t,r){if(ns=!1,e.tag===3)e1(e,e,r);else{for(;t!==null;){if(t.tag===3){e1(t,e,r);return}if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Pa===null||!Pa.has(i))){e=vn(r,e),r=Eh(2),i=Ta(t,r,2),i!==null&&(wh(r,i,t,e),_a(i,2),Er(i));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
195
|
+
|
|
196
|
+
Error message:
|
|
197
|
+
|
|
198
|
+
%s`,r)}}function Fh(e,t,r){var i=e.pingCache;if(i===null){i=e.pingCache=new UO;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(r)||(gp=!0,s.add(r),i=TR.bind(null,e,t,r),ar&&qs(e,r),t.then(i,i))}function TR(e,t,r){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Hv()&&q.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
199
|
+
|
|
200
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
201
|
+
|
|
202
|
+
act(() => {
|
|
203
|
+
/* finish loading suspended data */
|
|
204
|
+
});
|
|
205
|
+
/* assert on the output */
|
|
206
|
+
|
|
207
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),it===e&&(je&r)===r&&(bt===Ci||bt===mp&&(je&62914560)===je&&xr()-vp<PE?(Qe&nn)===Tn&&go(e,0):yp|=r,Ui===je&&(Ui=0)),Er(e)}function t1(e,t){t===0&&(t=ai()),e=cn(e,t),e!==null&&(_a(e,t),Er(e))}function kR(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),t1(e,r)}function NR(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}i!==null&&i.delete(t),t1(e,r)}function Ph(e,t,r){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var i=e,s=t,c=s.type===uu;c=r||c,s.tag!==22?s.flags&67108864?c&&ge(s,n1,i,s,(s.mode&V_)===lt):Ph(i,s,c):s.memoizedState===null&&(c&&s.flags&8192?ge(s,n1,i,s):s.subtreeFlags&67108864&&ge(s,Ph,i,s,c)),t=t.sibling}}function n1(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;ke(!0);try{Av(t),r&&Lv(t),Ov(e,t.alternate,t,!1),r&&Dv(e,t,0,null,!1,0)}finally{ke(!1)}}function r1(e){var t=!0;e.current.mode&(Zt|ir)||(t=!1),Ph(e,e.current,t)}function a1(e){if((Qe&nn)===Tn){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=Z(e)||"ReactComponent",Iu!==null){if(Iu.has(t))return;Iu.add(t)}else Iu=new Set([t]);ge(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function qs(e,t){ar&&e.memoizedUpdaters.forEach(function(r){ms(e,r,t)})}function RR(e,t){var r=q.actQueue;return r!==null?(r.push(t),VO):Sm(e,t)}function AR(e){Hv()&&q.actQueue===null&&ge(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
208
|
+
|
|
209
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
210
|
+
|
|
211
|
+
act(() => {
|
|
212
|
+
/* fire events that update state */
|
|
213
|
+
});
|
|
214
|
+
/* assert on the output */
|
|
215
|
+
|
|
216
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,Z(e))})}function Er(e){e!==rs&&e.next===null&&(rs===null?Vu=rs=e:rs=rs.next=e),Gu=!0,q.actQueue!==null?kp||(kp=!0,l1()):Tp||(Tp=!0,l1())}function Fs(e,t){if(!Np&&Gu){Np=!0;do for(var r=!1,i=Vu;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var c=0;else{var m=i.suspendedLanes,b=i.pingedLanes;c=(1<<31-Wt(42|e)+1)-1,c&=s&~(m&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(r=!0,s1(i,c))}else c=je,c=Vr(i,i===it?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==zi),(c&3)===0||va(i,c)||(r=!0,s1(i,c));i=i.next}while(r);Np=!1}}function OR(){$h()}function $h(){Gu=kp=Tp=!1;var e=0;ji!==0&&(BR()&&(e=ji),ji=0);for(var t=xr(),r=null,i=Vu;i!==null;){var s=i.next,c=i1(i,t);c===0?(i.next=null,r===null?Vu=s:r.next=s,s===null&&(rs=r)):(r=i,(e!==0||(c&3)!==0)&&(Gu=!0)),i=s}Fs(e)}function i1(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Wt(c),b=1<<m,x=s[m];x===-1?((b&r)===0||(b&i)!==0)&&(s[m]=fd(b,t)):x<=t&&(e.expiredLanes|=b),c&=~b}if(t=it,r=je,r=Vr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==zi),i=e.callbackNode,r===0||e===t&&(We===Di||We===Mi)||e.cancelPendingCommit!==null)return i!==null&&Yh(i),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||va(e,r)){if(t=r&-r,t!==e.callbackPriority||q.actQueue!==null&&i!==Rp)Yh(i);else return t;switch(ro(r)){case zn:case kr:r=Tm;break;case ea:r=xo;break;case pu:r=km;break;default:r=xo}return i=o1.bind(null,e),q.actQueue!==null?(q.actQueue.push(i),r=Rp):r=Sm(r,i),e.callbackPriority=t,e.callbackNode=r,t}return i!==null&&Yh(i),e.callbackPriority=2,e.callbackNode=null,2}function o1(e,t){if(Nu=ku=!1,Ft!==Bi&&Ft!==_p)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Gs()&&e.callbackNode!==r)return null;var i=je;return i=Vr(e,e===it?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==zi),i===0?null:(Iv(e,i,t),i1(e,xr()),e.callbackNode!=null&&e.callbackNode===r?o1.bind(null,e):null)}function s1(e,t){if(Gs())return null;ku=Nu,Nu=!1,Iv(e,t,!0)}function Yh(e){e!==Rp&&e!==null&&gA(e)}function l1(){q.actQueue!==null&&q.actQueue.push(function(){return $h(),null}),WO(function(){(Qe&(nn|cr))!==Tn?Sm(xm,OR):$h()})}function Xh(){return ji===0&&(ji=Ue()),ji}function c1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(le(e,"action"),Es(""+e))}function u1(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function CR(e,t,r,i,s){if(t==="submit"&&r&&r.stateNode===s){var c=c1((s[dn]||null).action),m=i.submitter;m&&(t=(t=m[dn]||null)?c1(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var b=new _u("action","action",null,i,s);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ji!==0){var x=m?u1(s,m):new FormData(s),k={pending:!0,data:x,method:s.method,action:c};Object.freeze(k),hh(r,k,null,x)}}else typeof c=="function"&&(b.preventDefault(),x=m?u1(s,m):new FormData(s),k={pending:!0,data:x,method:s.method,action:c},Object.freeze(k),hh(r,k,c,x))},currentTarget:s}]})}}function Jc(e,t,r){e.currentTarget=r;try{t(e)}catch(i){cp(i)}e.currentTarget=null}function f1(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var i=e[r];e:{var s=void 0,c=i.event;if(i=i.listeners,t)for(var m=i.length-1;0<=m;m--){var b=i[m],x=b.instance,k=b.currentTarget;if(b=b.listener,x!==s&&c.isPropagationStopped())break e;x!==null?ge(x,Jc,c,b,k):Jc(c,b,k),s=x}else for(m=0;m<i.length;m++){if(b=i[m],x=b.instance,k=b.currentTarget,b=b.listener,x!==s&&c.isPropagationStopped())break e;x!==null?ge(x,Jc,c,b,k):Jc(c,b,k),s=x}}}}function He(e,t){Ap.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var r=t[Nm];r===void 0&&(r=t[Nm]=new Set);var i=e+"__bubble";r.has(i)||(d1(t,e,2,!1),r.add(i))}function Zh(e,t,r){Ap.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var i=0;t&&(i|=4),d1(r,e,i,t)}function Qh(e){if(!e[qu]){e[qu]=!0,Z1.forEach(function(r){r!=="selectionchange"&&(Ap.has(r)||Zh(r,!1,e),Zh(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qu]||(t[qu]=!0,Zh("selectionchange",!1,t))}}function d1(e,t,r,i){switch(V1(t)){case zn:var s=sA;break;case kr:s=lA;break;default:s=fm}r=s.bind(null,t,r,e),s=void 0,!Bm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function Wh(e,t,r,i,s){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var b=i.stateNode.containerInfo;if(b===s)break;if(m===4)for(m=i.return;m!==null;){var x=m.tag;if((x===3||x===4)&&m.stateNode.containerInfo===s)return;m=m.return}for(;b!==null;){if(m=er(b),m===null)return;if(x=m.tag,x===5||x===6||x===26||x===27){i=c=m;continue e}b=b.parentNode}}i=i.return}Hy(function(){var k=c,H=Sd(r),F=[];e:{var L=I_.get(e);if(L!==void 0){var P=_u,fe=e;switch(e){case"keypress":if(pc(r)===0)break e;case"keydown":case"keyup":P=aO;break;case"focusin":fe="focus",P=zm;break;case"focusout":fe="blur",P=zm;break;case"beforeblur":case"afterblur":P=zm;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=k_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=$A;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=sO;break;case L_:case j_:case H_:P=ZA;break;case z_:P=cO;break;case"scroll":case"scrollend":P=FA;break;case"wheel":P=fO;break;case"copy":case"cut":case"paste":P=WA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=R_;break;case"toggle":case"beforetoggle":P=hO}var ye=(t&4)!==0,ot=!ye&&(e==="scroll"||e==="scrollend"),ze=ye?L!==null?L+"Capture":null:L;ye=[];for(var O=k,C;O!==null;){var M=O;if(C=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||C===null||ze===null||(M=ws(O,ze),M!=null&&ye.push(Ps(O,M,C))),ot)break;O=O.return}0<ye.length&&(L=new P(L,fe,null,r,H),F.push({event:L,listeners:ye}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",L&&r!==tl&&(fe=r.relatedTarget||r.fromElement)&&(er(fe)||fe[La]))break e;if((P||L)&&(L=H.window===H?H:(L=H.ownerDocument)?L.defaultView||L.parentWindow:window,P?(fe=r.relatedTarget||r.toElement,P=k,fe=fe?er(fe):null,fe!==null&&(ot=w(fe),ye=fe.tag,fe!==ot||ye!==5&&ye!==27&&ye!==6)&&(fe=null)):(P=null,fe=k),P!==fe)){if(ye=k_,M="onMouseLeave",ze="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ye=R_,M="onPointerLeave",ze="onPointerEnter",O="pointer"),ot=P==null?L:wa(P),C=fe==null?L:wa(fe),L=new ye(M,O+"leave",P,r,H),L.target=ot,L.relatedTarget=C,M=null,er(H)===k&&(ye=new ye(ze,O+"enter",fe,r,H),ye.target=C,ye.relatedTarget=ot,M=ye),ot=M,P&&fe)t:{for(ye=P,ze=fe,O=0,C=ye;C;C=vo(C))O++;for(C=0,M=ze;M;M=vo(M))C++;for(;0<O-C;)ye=vo(ye),O--;for(;0<C-O;)ze=vo(ze),C--;for(;O--;){if(ye===ze||ze!==null&&ye===ze.alternate)break t;ye=vo(ye),ze=vo(ze)}ye=null}else ye=null;P!==null&&h1(F,L,P,ye,!1),fe!==null&&ot!==null&&h1(F,ot,fe,ye,!0)}}e:{if(L=k?wa(k):window,P=L.nodeName&&L.nodeName.toLowerCase(),P==="select"||P==="input"&&L.type==="file")var $=Py;else if(qy(L))if(U_)$=WN;else{$=ZN;var ne=XN}else P=L.nodeName,!P||P.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?k&&_s(k.elementType)&&($=Py):$=QN;if($&&($=$(e,k))){Fy(F,$,r,H);break e}ne&&ne(e,L,k),e==="focusout"&&k&&L.type==="number"&&k.memoizedProps.value!=null&&gd(L,"number",L.value)}switch(ne=k?wa(k):window,e){case"focusin":(qy(ne)||ne.contentEditable==="true")&&(Do=ne,Vm=k,ll=null);break;case"focusout":ll=Vm=Do=null;break;case"mousedown":Gm=!0;break;case"contextmenu":case"mouseup":case"dragend":Gm=!1,Ky(F,r,H);break;case"selectionchange":if(gO)break;case"keydown":case"keyup":Ky(F,r,H)}var we;if(Im)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Co?Vy(e,r)&&(de="onCompositionEnd"):e==="keydown"&&r.keyCode===A_&&(de="onCompositionStart");de&&(O_&&r.locale!=="ko"&&(Co||de!=="onCompositionStart"?de==="onCompositionEnd"&&Co&&(we=zy()):(ja=H,Lm="value"in ja?ja.value:ja.textContent,Co=!0)),ne=eu(k,de),0<ne.length&&(de=new N_(de,e,null,r,H),F.push({event:de,listeners:ne}),we?de.data=we:(we=Gy(r),we!==null&&(de.data=we)))),(we=pO?FN(e,r):PN(e,r))&&(de=eu(k,"onBeforeInput"),0<de.length&&(ne=new JA("onBeforeInput","beforeinput",null,r,H),F.push({event:ne,listeners:de}),ne.data=we)),CR(F,e,k,r,H)}f1(F,t)})}function Ps(e,t,r){return{instance:e,listener:t,currentTarget:r}}function eu(e,t){for(var r=t+"Capture",i=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=ws(e,r),s!=null&&i.unshift(Ps(e,s,c)),s=ws(e,t),s!=null&&i.push(Ps(e,s,c))),e.tag===3)return i;e=e.return}return[]}function vo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function h1(e,t,r,i,s){for(var c=t._reactName,m=[];r!==null&&r!==i;){var b=r,x=b.alternate,k=b.stateNode;if(b=b.tag,x!==null&&x===i)break;b!==5&&b!==26&&b!==27||k===null||(x=k,s?(k=ws(r,c),k!=null&&m.unshift(Ps(r,k,x))):s||(k=ws(r,c),k!=null&&m.push(Ps(r,k,x)))),r=r.return}m.length!==0&&e.push({event:t,listeners:m})}function Kh(e,t){IN(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||x_||(x_=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var r={registrationNameDependencies:Ei,possibleRegistrationNames:Rm};_s(e)||typeof t.is=="string"||GN(e,t,r),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Ut(e,t,r,i){t!==r&&(r=Oa(r),Oa(t)!==r&&(i[e]=t))}function DR(e,t,r){t.forEach(function(i){r[b1(i)]=i==="style"?em(e):e.getAttribute(i)})}function wr(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function m1(e,t){return e=e.namespaceURI===gu||e.namespaceURI===No?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Oa(e){return Y(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Te(e)),me(e)),(typeof e=="string"?e:""+e).replace(GO,`
|
|
217
|
+
`).replace(qO,"")}function p1(e,t){return t=Oa(t),Oa(e)===t}function tu(){}function nt(e,t,r,i,s,c){switch(r){case"children":typeof i=="string"?(mc(i,t,!1),t==="body"||t==="textarea"&&i===""||vs(e,i)):(typeof i=="number"||typeof i=="bigint")&&(mc(""+i,t,!1),t!=="body"&&vs(e,""+i));break;case"className":Re(e,"class",i);break;case"tabIndex":Re(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Re(e,r,i);break;case"style":By(e,i,c);break;case"data":if(t!=="object"){Re(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||r!=="href")){console.error(r==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',r,r),e.removeAttribute(r);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}le(i,r),i=Es(""+i),e.setAttribute(r,i);break;case"action":case"formAction":if(i!=null&&(t==="form"?r==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof i=="function"&&(s.encType==null&&s.method==null||$u||($u=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),s.target==null||Pu||(Pu=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?r==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||s.type==="submit"||s.type==="image"||Fu?t!=="button"||s.type==null||s.type==="submit"||Fu?typeof i=="function"&&(s.name==null||tw||(tw=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),s.formEncType==null&&s.formMethod==null||$u||($u=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),s.formTarget==null||Pu||(Pu=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Fu=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Fu=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(r==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof i=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(r==="formAction"?(t!=="input"&&nt(e,t,"name",s.name,s,null),nt(e,t,"formEncType",s.formEncType,s,null),nt(e,t,"formMethod",s.formMethod,s,null),nt(e,t,"formTarget",s.formTarget,s,null)):(nt(e,t,"encType",s.encType,s,null),nt(e,t,"method",s.method,s,null),nt(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}le(i,r),i=Es(""+i),e.setAttribute(r,i);break;case"onClick":i!=null&&(typeof i!="function"&&wr(r,i),e.onclick=tu);break;case"onScroll":i!=null&&(typeof i!="function"&&wr(r,i),He("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!="function"&&wr(r,i),He("scrollend",e));break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(r=i.__html,r!=null){if(s.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=r}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}le(i,r),r=Es(""+i),e.setAttributeNS(Hi,"xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?(le(i,r),e.setAttribute(r,""+i)):e.removeAttribute(r);break;case"inert":i!==""||Yu[r]||(Yu[r]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",r));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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":i===!0?e.setAttribute(r,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?(le(i,r),e.setAttribute(r,i)):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?(le(i,r),e.setAttribute(r,i)):e.removeAttribute(r);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(r):(le(i,r),e.setAttribute(r,i));break;case"popover":He("beforetoggle",e),He("toggle",e),Fe(e,"popover",i);break;case"xlinkActuate":Mt(e,Hi,"xlink:actuate",i);break;case"xlinkArcrole":Mt(e,Hi,"xlink:arcrole",i);break;case"xlinkRole":Mt(e,Hi,"xlink:role",i);break;case"xlinkShow":Mt(e,Hi,"xlink:show",i);break;case"xlinkTitle":Mt(e,Hi,"xlink:title",i);break;case"xlinkType":Mt(e,Hi,"xlink:type",i);break;case"xmlBase":Mt(e,Op,"xml:base",i);break;case"xmlLang":Mt(e,Op,"xml:lang",i);break;case"xmlSpace":Mt(e,Op,"xml:space",i);break;case"is":c!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Fe(e,"is",i);break;case"innerText":case"textContent":break;case"popoverTarget":nw||i==null||typeof i!="object"||(nw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",i));default:!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"?(r=Ly(r),Fe(e,r,i)):Ei.hasOwnProperty(r)&&i!=null&&typeof i!="function"&&wr(r,i)}}function Jh(e,t,r,i,s,c){switch(r){case"style":By(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(r=i.__html,r!=null){if(s.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=r}}break;case"children":typeof i=="string"?vs(e,i):(typeof i=="number"||typeof i=="bigint")&&vs(e,""+i);break;case"onScroll":i!=null&&(typeof i!="function"&&wr(r,i),He("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!="function"&&wr(r,i),He("scrollend",e));break;case"onClick":i!=null&&(typeof i!="function"&&wr(r,i),e.onclick=tu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ei.hasOwnProperty(r))i!=null&&typeof i!="function"&&wr(r,i);else e:{if(r[0]==="o"&&r[1]==="n"&&(s=r.endsWith("Capture"),t=r.slice(2,s?r.length-7:void 0),c=e[dn]||null,c=c!=null?c[r]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof i=="function")){typeof c!="function"&&c!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,i,s);break e}r in e?e[r]=i:i===!0?e.setAttribute(r,""):Fe(e,r,i)}}}function It(e,t,r){switch(Kh(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":He("error",e),He("load",e);var i=!1,s=!1,c;for(c in r)if(r.hasOwnProperty(c)){var m=r[c];if(m!=null)switch(c){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:nt(e,t,c,m,r,null)}}s&&nt(e,t,"srcSet",r.srcSet,r,null),i&&nt(e,t,"src",r.src,r,null);return;case"input":pe("input",r),He("invalid",e);var b=c=m=s=null,x=null,k=null;for(i in r)if(r.hasOwnProperty(i)){var H=r[i];if(H!=null)switch(i){case"name":s=H;break;case"type":m=H;break;case"checked":x=H;break;case"defaultChecked":k=H;break;case"value":c=H;break;case"defaultValue":b=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:nt(e,t,i,H,r,null)}}vy(e,r),_y(e,c,b,x,k,m,s,!1),fc(e);return;case"select":pe("select",r),He("invalid",e),i=m=c=null;for(s in r)if(r.hasOwnProperty(s)&&(b=r[s],b!=null))switch(s){case"value":c=b;break;case"defaultValue":m=b;break;case"multiple":i=b;default:nt(e,t,s,b,r,null)}Sy(e,r),t=c,r=m,e.multiple=!!i,t!=null?io(e,!!i,t,!1):r!=null&&io(e,!!i,r,!0);return;case"textarea":pe("textarea",r),He("invalid",e),c=s=i=null;for(m in r)if(r.hasOwnProperty(m)&&(b=r[m],b!=null))switch(m){case"value":i=b;break;case"defaultValue":s=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:nt(e,t,m,b,r,null)}xy(e,r),ky(e,i,s,c),fc(e);return;case"option":Ey(e,r);for(x in r)if(r.hasOwnProperty(x)&&(i=r[x],i!=null))switch(x){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:nt(e,t,x,i,r,null)}return;case"dialog":He("beforetoggle",e),He("toggle",e),He("cancel",e),He("close",e);break;case"iframe":case"object":He("load",e);break;case"video":case"audio":for(i=0;i<Dl.length;i++)He(Dl[i],e);break;case"image":He("error",e),He("load",e);break;case"details":He("toggle",e);break;case"embed":case"source":case"link":He("error",e),He("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in r)if(r.hasOwnProperty(k)&&(i=r[k],i!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:nt(e,t,k,i,r,null)}return;default:if(_s(t)){for(H in r)r.hasOwnProperty(H)&&(i=r[H],i!==void 0&&Jh(e,t,H,i,r,void 0));return}}for(b in r)r.hasOwnProperty(b)&&(i=r[b],i!=null&&nt(e,t,b,i,r,null))}function MR(e,t,r,i){switch(Kh(t,i),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,m=null,b=null,x=null,k=null,H=null;for(P in r){var F=r[P];if(r.hasOwnProperty(P)&&F!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":x=F;default:i.hasOwnProperty(P)||nt(e,t,P,null,i,F)}}for(var L in i){var P=i[L];if(F=r[L],i.hasOwnProperty(L)&&(P!=null||F!=null))switch(L){case"type":c=P;break;case"name":s=P;break;case"checked":k=P;break;case"defaultChecked":H=P;break;case"value":m=P;break;case"defaultValue":b=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:P!==F&&nt(e,t,L,P,i,F)}}t=r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null,i=i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null,t||!i||ew||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),ew=!0),!t||i||JE||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),JE=!0),bd(e,m,b,x,k,H,c,s);return;case"select":P=m=b=L=null;for(c in r)if(x=r[c],r.hasOwnProperty(c)&&x!=null)switch(c){case"value":break;case"multiple":P=x;default:i.hasOwnProperty(c)||nt(e,t,c,null,i,x)}for(s in i)if(c=i[s],x=r[s],i.hasOwnProperty(s)&&(c!=null||x!=null))switch(s){case"value":L=c;break;case"defaultValue":b=c;break;case"multiple":m=c;default:c!==x&&nt(e,t,s,c,i,x)}i=b,t=m,r=P,L!=null?io(e,!!t,L,!1):!!r!=!!t&&(i!=null?io(e,!!t,i,!0):io(e,!!t,t?[]:"",!1));return;case"textarea":P=L=null;for(b in r)if(s=r[b],r.hasOwnProperty(b)&&s!=null&&!i.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:nt(e,t,b,null,i,s)}for(m in i)if(s=i[m],c=r[m],i.hasOwnProperty(m)&&(s!=null||c!=null))switch(m){case"value":L=s;break;case"defaultValue":P=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:s!==c&&nt(e,t,m,s,i,c)}Ty(e,L,P);return;case"option":for(var fe in r)if(L=r[fe],r.hasOwnProperty(fe)&&L!=null&&!i.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:nt(e,t,fe,null,i,L)}for(x in i)if(L=i[x],P=r[x],i.hasOwnProperty(x)&&L!==P&&(L!=null||P!=null))switch(x){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:nt(e,t,x,L,i,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in r)L=r[ye],r.hasOwnProperty(ye)&&L!=null&&!i.hasOwnProperty(ye)&&nt(e,t,ye,null,i,L);for(k in i)if(L=i[k],P=r[k],i.hasOwnProperty(k)&&L!==P&&(L!=null||P!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:nt(e,t,k,L,i,P)}return;default:if(_s(t)){for(var ot in r)L=r[ot],r.hasOwnProperty(ot)&&L!==void 0&&!i.hasOwnProperty(ot)&&Jh(e,t,ot,void 0,i,L);for(H in i)L=i[H],P=r[H],!i.hasOwnProperty(H)||L===P||L===void 0&&P===void 0||Jh(e,t,H,L,i,P);return}}for(var ze in r)L=r[ze],r.hasOwnProperty(ze)&&L!=null&&!i.hasOwnProperty(ze)&&nt(e,t,ze,null,i,L);for(F in i)L=i[F],P=r[F],!i.hasOwnProperty(F)||L===P||L==null&&P==null||nt(e,t,F,L,i,P)}function b1(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function em(e){var t={};e=e.style;for(var r=0;r<e.length;r++){var i=e[r];t[i]=e.getPropertyValue(i)}return t}function g1(e,t,r){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var i,s=i="",c;for(c in t)if(t.hasOwnProperty(c)){var m=t[c];m!=null&&typeof m!="boolean"&&m!==""&&(c.indexOf("--")===0?(Ee(m,c),i+=s+c+":"+(""+m).trim()):typeof m!="number"||m===0||w_.has(c)?(Ee(m,c),i+=s+c.replace(g_,"-$1").toLowerCase().replace(y_,"-ms-")+":"+(""+m).trim()):i+=s+c.replace(g_,"-$1").toLowerCase().replace(y_,"-ms-")+":"+m+"px",s=";")}i=i||null,t=e.getAttribute("style"),t!==i&&(i=Oa(i),Oa(t)!==i&&(r.style=em(e)))}}function jn(e,t,r,i,s,c){if(s.delete(r),e=e.getAttribute(r),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(le(i,t),e===""+i)return}Ut(t,e,i,c)}function y1(e,t,r,i,s,c){if(s.delete(r),e=e.getAttribute(r),e===null){switch(typeof i){case"function":case"symbol":return}if(!i)return}else switch(typeof i){case"function":case"symbol":break;default:if(i)return}Ut(t,e,i,c)}function tm(e,t,r,i,s,c){if(s.delete(r),e=e.getAttribute(r),e===null)switch(typeof i){case"undefined":case"function":case"symbol":return}else if(i!=null)switch(typeof i){case"function":case"symbol":break;default:if(le(i,r),e===""+i)return}Ut(t,e,i,c)}function v1(e,t,r,i,s,c){if(s.delete(r),e=e.getAttribute(r),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(i))return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(!isNaN(i)&&(le(i,t),e===""+i))return}Ut(t,e,i,c)}function nm(e,t,r,i,s,c){if(s.delete(r),e=e.getAttribute(r),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(le(i,t),r=Es(""+i),e===r)return}Ut(t,e,i,c)}function _1(e,t,r,i){for(var s={},c=new Set,m=e.attributes,b=0;b<m.length;b++)switch(m[b].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:c.add(m[b].name)}if(_s(t)){for(var x in r)if(r.hasOwnProperty(x)){var k=r[x];if(k!=null){if(Ei.hasOwnProperty(x))typeof k!="function"&&wr(x,k);else if(r.suppressHydrationWarning!==!0)switch(x){case"children":typeof k!="string"&&typeof k!="number"||Ut("children",e.textContent,k,s);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":m=e.innerHTML,k=k?k.__html:void 0,k!=null&&(k=m1(e,k),Ut(x,m,k,s));continue;case"style":c.delete(x),g1(e,k,s);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":c.delete(x.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",x);continue;case"className":c.delete("class"),m=Ne(e,"class",k),Ut("className",m,k,s);continue;default:i.context===ca&&t!=="svg"&&t!=="math"?c.delete(x.toLowerCase()):c.delete(x),m=Ne(e,x,k),Ut(x,m,k,s)}}}}else for(k in r)if(r.hasOwnProperty(k)&&(x=r[k],x!=null)){if(Ei.hasOwnProperty(k))typeof x!="function"&&wr(k,x);else if(r.suppressHydrationWarning!==!0)switch(k){case"children":typeof x!="string"&&typeof x!="number"||Ut("children",e.textContent,x,s);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":m=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=m1(e,x),m!==x&&(s[k]={__html:m}));continue;case"className":jn(e,k,"class",x,c,s);continue;case"tabIndex":jn(e,k,"tabindex",x,c,s);continue;case"style":c.delete(k),g1(e,x,s);continue;case"multiple":c.delete(k),Ut(k,e.multiple,x,s);continue;case"muted":c.delete(k),Ut(k,e.muted,x,s);continue;case"autoFocus":c.delete("autofocus"),Ut(k,e.autofocus,x,s);continue;case"data":if(t!=="object"){c.delete(k),m=e.getAttribute("data"),Ut(k,m,x,s);continue}case"src":case"href":if(!(x!==""||t==="a"&&k==="href"||t==="object"&&k==="data")){console.error(k==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',k,k);continue}nm(e,k,k,x,c,s);continue;case"action":case"formAction":if(m=e.getAttribute(k),typeof x=="function"){c.delete(k.toLowerCase()),k==="formAction"?(c.delete("name"),c.delete("formenctype"),c.delete("formmethod"),c.delete("formtarget")):(c.delete("enctype"),c.delete("method"),c.delete("target"));continue}else if(m===FO){c.delete(k.toLowerCase()),Ut(k,"function",x,s);continue}nm(e,k,k.toLowerCase(),x,c,s);continue;case"xlinkHref":nm(e,k,"xlink:href",x,c,s);continue;case"contentEditable":tm(e,k,"contenteditable",x,c,s);continue;case"spellCheck":tm(e,k,"spellcheck",x,c,s);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":tm(e,k,k,x,c,s);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":y1(e,k,k.toLowerCase(),x,c,s);continue;case"capture":case"download":e:{b=e;var H=m=k,F=s;if(c.delete(H),b=b.getAttribute(H),b===null)switch(typeof x){case"undefined":case"function":case"symbol":break e;default:if(x===!1)break e}else if(x!=null)switch(typeof x){case"function":case"symbol":break;case"boolean":if(x===!0&&b==="")break e;break;default:if(le(x,m),b===""+x)break e}Ut(m,b,x,F)}continue;case"cols":case"rows":case"size":case"span":e:{if(b=e,H=m=k,F=s,c.delete(H),b=b.getAttribute(H),b===null)switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(x)||1>x)break e}else if(x!=null)switch(typeof x){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(x)||1>x)&&(le(x,m),b===""+x))break e}Ut(m,b,x,F)}continue;case"rowSpan":v1(e,k,"rowspan",x,c,s);continue;case"start":v1(e,k,k,x,c,s);continue;case"xHeight":jn(e,k,"x-height",x,c,s);continue;case"xlinkActuate":jn(e,k,"xlink:actuate",x,c,s);continue;case"xlinkArcrole":jn(e,k,"xlink:arcrole",x,c,s);continue;case"xlinkRole":jn(e,k,"xlink:role",x,c,s);continue;case"xlinkShow":jn(e,k,"xlink:show",x,c,s);continue;case"xlinkTitle":jn(e,k,"xlink:title",x,c,s);continue;case"xlinkType":jn(e,k,"xlink:type",x,c,s);continue;case"xmlBase":jn(e,k,"xml:base",x,c,s);continue;case"xmlLang":jn(e,k,"xml:lang",x,c,s);continue;case"xmlSpace":jn(e,k,"xml:space",x,c,s);continue;case"inert":x!==""||Yu[k]||(Yu[k]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",k)),y1(e,k,k,x,c,s);continue;default:if(!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N"){b=Ly(k),m=!1,i.context===ca&&t!=="svg"&&t!=="math"?c.delete(b.toLowerCase()):(H=k.toLowerCase(),H=yu.hasOwnProperty(H)&&yu[H]||null,H!==null&&H!==k&&(m=!0,c.delete(H)),c.delete(b));e:if(H=e,F=b,b=x,De(F))if(H.hasAttribute(F))H=H.getAttribute(F),le(b,F),b=H===""+b?b:H;else{switch(typeof b){case"function":case"symbol":break e;case"boolean":if(H=F.toLowerCase().slice(0,5),H!=="data-"&&H!=="aria-")break e}b=b===void 0?void 0:null}else b=void 0;m||Ut(k,b,x,s)}}}return 0<c.size&&r.suppressHydrationWarning!==!0&&DR(e,c,s),Object.keys(s).length===0?null:s}function UR(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function nu(e){return e.nodeType===9?e:e.ownerDocument}function E1(e){switch(e){case No:return as;case gu:return Qu;default:return ca}}function w1(e,t){if(e===ca)switch(t){case"svg":return as;case"math":return Qu;default:return ca}return e===as&&t==="foreignObject"?ca:e}function rm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function BR(){var e=window.event;return e&&e.type==="popstate"?e===Up?!1:(Up=e,!0):(Up=null,!1)}function LR(e){setTimeout(function(){throw e})}function jR(e,t,r){switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&e.focus();break;case"img":r.src?e.src=r.src:r.srcSet&&(e.srcset=r.srcSet)}}function HR(e,t,r,i){MR(e,t,r,i),e[dn]=i}function S1(e){vs(e,"")}function zR(e,t,r){e.nodeValue=r}function Ca(e){return e==="head"}function IR(e,t){e.removeChild(t)}function VR(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function x1(e,t){var r=t,i=0,s=0;do{var c=r.nextSibling;if(e.removeChild(r),c&&c.nodeType===8)if(r=c.data,r===Zu){if(0<i&&8>i){r=i;var m=e.ownerDocument;if(r&$O&&$s(m.documentElement),r&YO&&$s(m.body),r&XO)for(r=m.head,$s(r),m=r.firstChild;m;){var b=m.nextSibling,x=m.nodeName;m[Js]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&m.rel.toLowerCase()==="stylesheet"||r.removeChild(m),m=b}}if(s===0){e.removeChild(c),Qs(t);return}s--}else r===Xu||r===la||r===Ml?s++:i=r.charCodeAt(0)-48;else i=0;r=c}while(r);Qs(t)}function GR(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function qR(e){e.nodeValue=""}function FR(e,t){t=t[ZO],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function PR(e,t){e.nodeValue=t}function am(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":am(r),Ea(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function $R(e,t,r,i){for(;e.nodeType===1;){var s=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Js])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){le(s.name,"name");var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Hn(e.nextSibling),e===null)break}return null}function YR(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Hn(e.nextSibling),e===null))return null;return e}function im(e){return e.data===Ml||e.data===la&&e.ownerDocument.readyState===aw}function XR(e,t){var r=e.ownerDocument;if(e.data!==la||r.readyState===aw)t();else{var i=function(){t(),r.removeEventListener("DOMContentLoaded",i)};r.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Hn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Xu||t===Ml||t===la||t===Cp||t===rw)break;if(t===Zu)return null}}return e}function T1(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),r={},i=e.attributes,s=0;s<i.length;s++){var c=i[s];r[b1(c.name)]=c.name.toLowerCase()==="style"?em(e):c.value}return{type:t,props:r}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function k1(e,t,r){return r===null||r[PO]!==!0?(e.nodeValue===t?e=null:(t=Oa(t),e=Oa(e.nodeValue)===t?null:e.nodeValue),e):null}function N1(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===Zu){if(t===0)return Hn(e.nextSibling);t--}else r!==Xu&&r!==Ml&&r!==la||t++}e=e.nextSibling}return null}function R1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===Xu||r===Ml||r===la){if(t===0)return e;t--}else r===Zu&&t++}e=e.previousSibling}return null}function ZR(e){Qs(e)}function QR(e){Qs(e)}function A1(e,t,r,i,s){switch(s&&wd(e,i.ancestorInfo),t=nu(r),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function WR(e,t,r,i){if(!r[La]&&tr(r)){var s=r.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",s,s,s)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(s=r.attributes;s.length;)r.removeAttributeNode(s[0]);It(r,e,t),r[Xt]=i,r[dn]=t}function $s(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ea(e)}function ru(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function O1(e,t,r){var i=is;if(i&&typeof t=="string"&&t){var s=Ln(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof r=="string"&&(s+='[crossorigin="'+r+'"]'),uw.has(s)||(uw.add(s),e={rel:e,crossOrigin:r,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),It(t,"link",e),B(t),i.head.appendChild(t)))}}function C1(e,t,r,i){var s=(s=Ua.current)?ru(s):null;if(!s)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(r=_o(r.href),t=S(s).hoistableStyles,i=t.get(r),i||(i={type:"style",instance:null,count:0,state:null},t.set(r,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=_o(r.href);var c=S(s).hoistableStyles,m=c.get(e);if(!m&&(s=s.ownerDocument||s,m={type:"stylesheet",instance:null,count:0,state:{loading:Ii,preload:null}},c.set(e,m),(c=s.querySelector(Ys(e)))&&!c._p&&(m.instance=c,m.state.loading=Ul|Zn),!Qn.has(e))){var b={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy};Qn.set(e,b),c||KR(s,e,b,m.state)}if(t&&i===null)throw r=`
|
|
218
|
+
|
|
219
|
+
- `+au(t)+`
|
|
220
|
+
+ `+au(r),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+r);return m}if(t&&i!==null)throw r=`
|
|
221
|
+
|
|
222
|
+
- `+au(t)+`
|
|
223
|
+
+ `+au(r),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+r);return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(r=Eo(r),t=S(s).hoistableScripts,i=t.get(r),i||(i={type:"script",instance:null,count:0,state:null},t.set(r,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function au(e){var t=0,r="<link";return typeof e.rel=="string"?(t++,r+=' rel="'+e.rel+'"'):Jr.call(e,"rel")&&(t++,r+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,r+=' href="'+e.href+'"'):Jr.call(e,"href")&&(t++,r+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,r+=' precedence="'+e.precedence+'"'):Jr.call(e,"precedence")&&(t++,r+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(r+=" ..."),r+" />"}function _o(e){return'href="'+Ln(e)+'"'}function Ys(e){return'link[rel="stylesheet"]['+e+"]"}function D1(e){return Me({},e,{"data-precedence":e.precedence,precedence:null})}function KR(e,t,r,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=Ul:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=Ul}),t.addEventListener("error",function(){return i.loading|=lw}),It(t,"link",r),B(t),e.head.appendChild(t))}function Eo(e){return'[src="'+Ln(e)+'"]'}function Xs(e){return"script[async]"+e}function M1(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Ln(r.href)+'"]');if(i)return t.instance=i,B(i),i;var s=Me({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),B(i),It(i,"style",s),iu(i,r.precedence,e),t.instance=i;case"stylesheet":s=_o(r.href);var c=e.querySelector(Ys(s));if(c)return t.state.loading|=Zn,t.instance=c,B(c),c;i=D1(r),(s=Qn.get(s))&&om(i,s),c=(e.ownerDocument||e).createElement("link"),B(c);var m=c;return m._p=new Promise(function(b,x){m.onload=b,m.onerror=x}),It(c,"link",i),t.state.loading|=Zn,iu(c,r.precedence,e),t.instance=c;case"script":return c=Eo(r.src),(s=e.querySelector(Xs(c)))?(t.instance=s,B(s),s):(i=r,(s=Qn.get(c))&&(i=Me({},r),sm(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),B(s),It(s,"link",i),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Zn)===Ii&&(i=t.instance,t.state.loading|=Zn,iu(i,r.precedence,e));return t.instance}function iu(e,t,r){for(var i=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,c=s,m=0;m<i.length;m++){var b=i[m];if(b.dataset.precedence===t)c=b;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function om(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function sm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function U1(e,t,r){if(Wu===null){var i=new Map,s=Wu=new Map;s.set(r,i)}else s=Wu,i=s.get(r),i||(i=new Map,s.set(r,i));if(i.has(e))return i;for(i.set(e,null),r=r.getElementsByTagName(e),s=0;s<r.length;s++){var c=r[s];if(!(c[Js]||c[Xt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!==No){var m=c.getAttribute(t)||"";m=e+m;var b=i.get(m);b?b.push(c):i.set(m,[c])}}return i}function B1(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function JR(e,t,r){var i=!r.ancestorInfo.containerTagInScope;if(r.context===as||t.itemProp!=null)return!i||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){i&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var s=t.onError,c=t.disabled;r=[],t.onLoad&&r.push("`onLoad`"),s&&r.push("`onError`"),c!=null&&r.push("`disabled`"),s=UR(r,"and"),s+=r.length===1?" prop":" props",c=r.length===1?"an "+s:"the "+s,r.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,c,s)}i&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&i&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){i&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":i&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function L1(e){return!(e.type==="stylesheet"&&(e.state.loading&cw)===Ii)}function eA(){}function tA(e,t,r){if(Bl===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var i=Bl;if(t.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(t.state.loading&Zn)===Ii){if(t.instance===null){var s=_o(r.href),c=e.querySelector(Ys(s));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=ou.bind(i),e.then(i,i)),t.state.loading|=Zn,t.instance=c,B(c);return}c=e.ownerDocument||e,r=D1(r),(s=Qn.get(s))&&om(r,s),c=c.createElement("link"),B(c);var m=c;m._p=new Promise(function(b,x){m.onload=b,m.onerror=x}),It(c,"link",r),t.instance=c}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&cw)===Ii&&(i.count++,t=ou.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function nA(){if(Bl===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=Bl;return e.stylesheets&&e.count===0&&lm(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&lm(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r)}}:null}function ou(){if(this.count--,this.count===0){if(this.stylesheets)lm(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function lm(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ku=new Map,t.forEach(rA,e),Ku=null,ou.call(e))}function rA(e,t){if(!(t.state.loading&Zn)){var r=Ku.get(e);if(r)var i=r.get(Lp);else{r=new Map,Ku.set(e,r);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var m=s[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(r.set(m.dataset.precedence,m),i=m)}i&&r.set(Lp,i)}s=t.instance,m=s.getAttribute("data-precedence"),c=r.get(m)||i,c===i&&r.set(Lp,s),r.set(m,s),this.count++,i=ou.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=Zn}}function aA(e,t,r,i,s,c,m,b){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=zi,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=no(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=no(0),this.hiddenUpdates=no(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=r?"hydrateRoot()":"createRoot()"}function j1(e,t,r,i,s,c,m,b,x,k,H,F){return e=new aA(e,t,r,m,b,x,k,F),t=EO,c===!0&&(t|=Zt|ir),ar&&(t|=Gt),c=g(3,null,null,t),e.current=c,c.stateNode=e,t=Hd(),pi(t),e.pooledCache=t,pi(t),c.memoizedState={element:i,isDehydrated:r,cache:t},Gd(c),e}function H1(e){return e?(e=Ha,e):Ha}function cm(e,t,r,i,s,c){if(Yt&&typeof Yt.onScheduleFiberRoot=="function")try{Yt.onScheduleFiberRoot(To,i,r)}catch(m){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",m))}se!==null&&typeof se.markRenderScheduled=="function"&&se.markRenderScheduled(t),s=H1(s),i.context===null?i.context=s:i.pendingContext=s,Nr&&xn!==null&&!mw&&(mw=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
224
|
+
|
|
225
|
+
Check the render method of %s.`,Z(xn)||"Unknown")),i=xa(t),i.payload={element:r},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",c),i.callback=c),r=Ta(e,i,t),r!==null&&(vt(r,e,t),Os(r,e,t))}function z1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function um(e,t){z1(e,t),(e=e.alternate)&&z1(e,t)}function I1(e){if(e.tag===13){var t=cn(e,67108864);t!==null&&vt(t,e,67108864),um(e,67108864)}}function iA(){return xn}function oA(){for(var e=new Map,t=1,r=0;31>r;r++){var i=ya(t);e.set(t,i),t*=2}return e}function sA(e,t,r,i){var s=q.T;q.T=null;var c=Ze.p;try{Ze.p=zn,fm(e,t,r,i)}finally{Ze.p=c,q.T=s}}function lA(e,t,r,i){var s=q.T;q.T=null;var c=Ze.p;try{Ze.p=kr,fm(e,t,r,i)}finally{Ze.p=c,q.T=s}}function fm(e,t,r,i){if(ef){var s=dm(i);if(s===null)Wh(e,t,i,tf,r),G1(e,i);else if(cA(s,e,t,r,i))i.stopPropagation();else if(G1(e,i),t&4&&-1<JO.indexOf(e)){for(;s!==null;){var c=tr(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=wt(c.pendingLanes);if(m!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;m;){var x=1<<31-Wt(m);b.entanglements[1]|=x,m&=~x}Er(c),(Qe&(nn|cr))===Tn&&(Hu=xr()+$E,Fs(0))}}break;case 13:b=cn(c,2),b!==null&&vt(b,c,2),bo(),um(c,2)}if(c=dm(i),c===null&&Wh(e,t,i,tf,r),c===s)break;s=c}s!==null&&i.stopPropagation()}else Wh(e,t,i,null,r)}}function dm(e){return e=Sd(e),hm(e)}function hm(e){if(tf=null,e=er(e),e!==null){var t=w(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=R(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return tf=e,null}function V1(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return zn;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return kr;case"message":switch(_A()){case xm:return zn;case Tm:return kr;case xo:case EA:return ea;case km:return pu;default:return ea}default:return ea}}function G1(e,t){switch(e){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Qa=null;break;case"pointerover":case"pointerout":jl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hl.delete(t.pointerId)}}function Zs(e,t,r,i,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:i,nativeEvent:c,targetContainers:[s]},t!==null&&(t=tr(t),t!==null&&I1(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function cA(e,t,r,i,s){switch(t){case"focusin":return Xa=Zs(Xa,e,t,r,i,s),!0;case"dragenter":return Za=Zs(Za,e,t,r,i,s),!0;case"mouseover":return Qa=Zs(Qa,e,t,r,i,s),!0;case"pointerover":var c=s.pointerId;return jl.set(c,Zs(jl.get(c)||null,e,t,r,i,s)),!0;case"gotpointercapture":return c=s.pointerId,Hl.set(c,Zs(Hl.get(c)||null,e,t,r,i,s)),!0}return!1}function q1(e){var t=er(e.target);if(t!==null){var r=w(t);if(r!==null){if(t=r.tag,t===13){if(t=R(r),t!==null){e.blockedOn=t,ao(e.priority,function(){if(r.tag===13){var i=wn(r);i=hs(i);var s=cn(r,i);s!==null&&vt(s,r,i),um(r,i)}});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=dm(e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r),s=i;tl!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),tl=s,r.target.dispatchEvent(i),tl===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),tl=null}else return t=tr(r),t!==null&&I1(t),e.blockedOn=r,!1;t.shift()}return!0}function F1(e,t,r){su(e)&&r.delete(t)}function uA(){jp=!1,Xa!==null&&su(Xa)&&(Xa=null),Za!==null&&su(Za)&&(Za=null),Qa!==null&&su(Qa)&&(Qa=null),jl.forEach(F1),Hl.forEach(F1)}function lu(e,t){e.blockedOn===t&&(e.blockedOn=null,jp||(jp=!0,St.unstable_scheduleCallback(St.unstable_NormalPriority,uA)))}function P1(e){nf!==e&&(nf=e,St.unstable_scheduleCallback(St.unstable_NormalPriority,function(){nf===e&&(nf=null);for(var t=0;t<e.length;t+=3){var r=e[t],i=e[t+1],s=e[t+2];if(typeof i!="function"){if(hm(i||r)===null)continue;break}var c=tr(r);c!==null&&(e.splice(t,3),t-=3,r={pending:!0,data:s,method:r.method,action:i},Object.freeze(r),hh(c,r,i,s))}}))}function Qs(e){function t(x){return lu(x,e)}Xa!==null&&lu(Xa,e),Za!==null&&lu(Za,e),Qa!==null&&lu(Qa,e),jl.forEach(t),Hl.forEach(t);for(var r=0;r<Wa.length;r++){var i=Wa[r];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Wa.length&&(r=Wa[0],r.blockedOn===null);)q1(r),r.blockedOn===null&&Wa.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(i=0;i<r.length;i+=3){var s=r[i],c=r[i+1],m=s[dn]||null;if(typeof c=="function")m||P1(r);else if(m){var b=null;if(c&&c.hasAttribute("formAction")){if(s=c,m=c[dn]||null)b=m.formAction;else if(hm(s)!==null)continue}else b=m.action;typeof b=="function"?r[i+1]=b:(r.splice(i,3),i-=3),P1(r)}}}function mm(e){this._internalRoot=e}function cu(e){this._internalRoot=e}function $1(e){e[La]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var St=sC(),pm=to(),fA=cC(),Me=Object.assign,dA=Symbol.for("react.element"),Da=Symbol.for("react.transitional.element"),wo=Symbol.for("react.portal"),So=Symbol.for("react.fragment"),uu=Symbol.for("react.strict_mode"),bm=Symbol.for("react.profiler"),hA=Symbol.for("react.provider"),gm=Symbol.for("react.consumer"),Sr=Symbol.for("react.context"),Ws=Symbol.for("react.forward_ref"),ym=Symbol.for("react.suspense"),vm=Symbol.for("react.suspense_list"),fu=Symbol.for("react.memo"),Sn=Symbol.for("react.lazy"),_m=Symbol.for("react.activity"),mA=Symbol.for("react.memo_cache_sentinel"),Y1=Symbol.iterator,pA=Symbol.for("react.client.reference"),Vt=Array.isArray,q=pm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ze=fA.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bA=Object.freeze({pending:!1,data:null,method:null,action:null}),Em=[],wm=[],Kr=-1,Ma=ee(null),Ks=ee(null),Ua=ee(null),du=ee(null),Jr=Object.prototype.hasOwnProperty,Sm=St.unstable_scheduleCallback,gA=St.unstable_cancelCallback,yA=St.unstable_shouldYield,vA=St.unstable_requestPaint,xr=St.unstable_now,_A=St.unstable_getCurrentPriorityLevel,xm=St.unstable_ImmediatePriority,Tm=St.unstable_UserBlockingPriority,xo=St.unstable_NormalPriority,EA=St.unstable_LowPriority,km=St.unstable_IdlePriority,wA=St.log,SA=St.unstable_setDisableYieldValue,To=null,Yt=null,se=null,Tr=!1,ar=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Wt=Math.clz32?Math.clz32:Ir,xA=Math.log,TA=Math.LN2,hu=256,mu=4194304,zn=2,kr=8,ea=32,pu=268435456,Ba=Math.random().toString(36).slice(2),Xt="__reactFiber$"+Ba,dn="__reactProps$"+Ba,La="__reactContainer$"+Ba,Nm="__reactEvents$"+Ba,kA="__reactListeners$"+Ba,NA="__reactHandles$"+Ba,X1="__reactResources$"+Ba,Js="__reactMarker$"+Ba,Z1=new Set,Ei={},Rm={},RA={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},AA=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Q1={},W1={},el=0,K1,J1,e_,t_,n_,r_,a_;Gr.__reactDisabledLog=!0;var Am,i_,Om=!1,Cm=new(typeof WeakMap=="function"?WeakMap:Map),xn=null,Nr=!1,OA=/[\n"\\]/g,o_=!1,s_=!1,l_=!1,c_=!1,u_=!1,f_=!1,d_=["value","defaultValue"],h_=!1,m_=/["'&<>\n\t]|^\s|\s$/,CA="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),p_="applet caption html table td th marquee object template foreignObject desc title".split(" "),DA=p_.concat(["button"]),MA="dd dt li option optgroup p rp rt".split(" "),b_={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},bu={},Dm={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},g_=/([A-Z])/g,y_=/^ms-/,UA=/^(?:webkit|moz|o)[A-Z]/,BA=/^-ms-/,LA=/-(.)/g,v_=/;\s*$/,ko={},Mm={},__=!1,E_=!1,w_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),gu="http://www.w3.org/1998/Math/MathML",No="http://www.w3.org/2000/svg",jA=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),yu={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},S_={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ro={},HA=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zA=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),x_=!1,Kt={},T_=/^on./,IA=/^on[^A-Z]/,VA=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),GA=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),qA=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,tl=null,Ao=null,Oo=null,Um=!1,Rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bm=!1;if(Rr)try{var nl={};Object.defineProperty(nl,"passive",{get:function(){Bm=!0}}),window.addEventListener("test",nl,nl),window.removeEventListener("test",nl,nl)}catch{Bm=!1}var ja=null,Lm=null,vu=null,wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_u=ln(wi),rl=Me({},wi,{view:0,detail:0}),FA=ln(rl),jm,Hm,al,Eu=Me({},rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==al&&(al&&e.type==="mousemove"?(jm=e.screenX-al.screenX,Hm=e.screenY-al.screenY):Hm=jm=0,al=e),jm)},movementY:function(e){return"movementY"in e?e.movementY:Hm}}),k_=ln(Eu),PA=Me({},Eu,{dataTransfer:0}),$A=ln(PA),YA=Me({},rl,{relatedTarget:0}),zm=ln(YA),XA=Me({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),ZA=ln(XA),QA=Me({},wi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),WA=ln(QA),KA=Me({},wi,{data:0}),N_=ln(KA),JA=N_,eO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tO={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},rO=Me({},rl,{key:function(e){if(e.key){var t=eO[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tO[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xd,charCode:function(e){return e.type==="keypress"?pc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),aO=ln(rO),iO=Me({},Eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),R_=ln(iO),oO=Me({},rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xd}),sO=ln(oO),lO=Me({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),cO=ln(lO),uO=Me({},Eu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fO=ln(uO),dO=Me({},wi,{newState:0,oldState:0}),hO=ln(dO),mO=[9,13,27,32],A_=229,Im=Rr&&"CompositionEvent"in window,il=null;Rr&&"documentMode"in document&&(il=document.documentMode);var pO=Rr&&"TextEvent"in window&&!il,O_=Rr&&(!Im||il&&8<il&&11>=il),C_=32,D_=String.fromCharCode(C_),M_=!1,Co=!1,bO={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},ol=null,sl=null,U_=!1;Rr&&(U_=$N("input")&&(!document.documentMode||9<document.documentMode));var Jt=typeof Object.is=="function"?Object.is:KN,gO=Rr&&"documentMode"in document&&11>=document.documentMode,Do=null,Vm=null,ll=null,Gm=!1,Mo={animationend:oi("Animation","AnimationEnd"),animationiteration:oi("Animation","AnimationIteration"),animationstart:oi("Animation","AnimationStart"),transitionrun:oi("Transition","TransitionRun"),transitionstart:oi("Transition","TransitionStart"),transitioncancel:oi("Transition","TransitionCancel"),transitionend:oi("Transition","TransitionEnd")},qm={},B_={};Rr&&(B_=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);var L_=si("animationend"),j_=si("animationiteration"),H_=si("animationstart"),yO=si("transitionrun"),vO=si("transitionstart"),_O=si("transitioncancel"),z_=si("transitionend"),I_=new Map,Fm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Fm.push("scrollEnd");var Pm=new WeakMap,$m=1,Si=2,In=[],Uo=0,Ym=0,Ha={};Object.freeze(Ha);var Vn=null,Bo=null,lt=0,EO=1,Gt=2,Zt=8,ir=16,V_=64,G_=!1;try{var q_=Object.preventExtensions({})}catch{G_=!0}var Lo=[],jo=0,wu=null,Su=0,Gn=[],qn=0,xi=null,ta=1,na="",en=null,pt=null,Pe=!1,ra=!1,Fn=null,Ti=null,Ar=!1,Xm=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),F_=0;if(typeof performance=="object"&&typeof performance.now=="function")var wO=performance,P_=function(){return wO.now()};else{var SO=Date;P_=function(){return SO.now()}}var Zm=ee(null),Qm=ee(null),$_={},xu=null,Ho=null,zo=!1,xO=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},TO=St.unstable_scheduleCallback,kO=St.unstable_NormalPriority,At={$$typeof:Sr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Io=St.unstable_now,Y_=-0,Tu=-0,hn=-1.1,ki=-0,ku=!1,Nu=!1,cl=null,Wm=0,Ni=0,Vo=null,X_=q.S;q.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&eR(e,t),X_!==null&&X_(e,t)};var Ri=ee(null),or={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},ul=[],fl=[],dl=[],hl=[],ml=[],pl=[],Ai=new Set;or.recordUnsafeLifecycleWarnings=function(e,t){Ai.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&ul.push(e),e.mode&Zt&&typeof t.UNSAFE_componentWillMount=="function"&&fl.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&dl.push(e),e.mode&Zt&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&hl.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&ml.push(e),e.mode&Zt&&typeof t.UNSAFE_componentWillUpdate=="function"&&pl.push(e))},or.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<ul.length&&(ul.forEach(function(b){e.add(Z(b)||"Component"),Ai.add(b.type)}),ul=[]);var t=new Set;0<fl.length&&(fl.forEach(function(b){t.add(Z(b)||"Component"),Ai.add(b.type)}),fl=[]);var r=new Set;0<dl.length&&(dl.forEach(function(b){r.add(Z(b)||"Component"),Ai.add(b.type)}),dl=[]);var i=new Set;0<hl.length&&(hl.forEach(function(b){i.add(Z(b)||"Component"),Ai.add(b.type)}),hl=[]);var s=new Set;0<ml.length&&(ml.forEach(function(b){s.add(Z(b)||"Component"),Ai.add(b.type)}),ml=[]);var c=new Set;if(0<pl.length&&(pl.forEach(function(b){c.add(Z(b)||"Component"),Ai.add(b.type)}),pl=[]),0<t.size){var m=_(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
226
|
+
|
|
227
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
228
|
+
|
|
229
|
+
Please update the following components: %s`,m)}0<i.size&&(m=_(i),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
230
|
+
|
|
231
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
232
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
233
|
+
|
|
234
|
+
Please update the following components: %s`,m)),0<c.size&&(m=_(c),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
235
|
+
|
|
236
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
237
|
+
|
|
238
|
+
Please update the following components: %s`,m)),0<e.size&&(m=_(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
239
|
+
|
|
240
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
241
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
242
|
+
|
|
243
|
+
Please update the following components: %s`,m)),0<r.size&&(m=_(r),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
244
|
+
|
|
245
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
246
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
247
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
248
|
+
|
|
249
|
+
Please update the following components: %s`,m)),0<s.size&&(m=_(s),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
250
|
+
|
|
251
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
252
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
253
|
+
|
|
254
|
+
Please update the following components: %s`,m))};var Ru=new Map,Z_=new Set;or.recordLegacyContextWarning=function(e,t){for(var r=null,i=e;i!==null;)i.mode&Zt&&(r=i),i=i.return;r===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Z_.has(e.type)&&(i=Ru.get(r),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(i===void 0&&(i=[],Ru.set(r,i)),i.push(e))},or.flushLegacyContextWarning=function(){Ru.forEach(function(e){if(e.length!==0){var t=e[0],r=new Set;e.forEach(function(s){r.add(Z(s)||"Component"),Z_.add(s.type)});var i=_(r);ge(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
255
|
+
|
|
256
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
257
|
+
|
|
258
|
+
Please update the following components: %s
|
|
259
|
+
|
|
260
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,i)})}})},or.discardPendingWarnings=function(){ul=[],fl=[],dl=[],hl=[],ml=[],pl=[],Ru=new Map};var bl=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Q_=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Au=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Km={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},gl=null,Ou=!1,Pn=0,$n=1,tn=2,qt=4,Ot=8,W_=0,K_=1,J_=2,Jm=3,za=!1,eE=!1,ep=null,tp=!1,Go=ee(null),Cu=ee(0),qo,tE=new Set,nE=new Set,np=new Set,rE=new Set,Ia=0,_e=null,rt=null,xt=null,Du=!1,Fo=!1,Oi=!1,Mu=0,yl=0,aa=null,NO=0,RO=25,G=null,Yn=null,ia=-1,vl=!1,Uu={readContext:dt,use:ka,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt},rp=null,aE=null,ap=null,iE=null,Or=null,sr=null,Bu=null;rp={readContext:function(e){return dt(e)},use:ka,useCallback:function(e,t){return G="useCallback",Le(),lo(t),ch(e,t)},useContext:function(e){return G="useContext",Le(),dt(e)},useEffect:function(e,t){return G="useEffect",Le(),lo(t),Bc(e,t)},useImperativeHandle:function(e,t,r){return G="useImperativeHandle",Le(),lo(r),lh(e,t,r)},useInsertionEffect:function(e,t){G="useInsertionEffect",Le(),lo(t),gi(4,tn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",Le(),lo(t),sh(e,t)},useMemo:function(e,t){G="useMemo",Le(),lo(t);var r=q.H;q.H=Or;try{return uh(e,t)}finally{q.H=r}},useReducer:function(e,t,r){G="useReducer",Le();var i=q.H;q.H=Or;try{return Jd(e,t,r)}finally{q.H=i}},useRef:function(e){return G="useRef",Le(),oh(e)},useState:function(e){G="useState",Le();var t=q.H;q.H=Or;try{return rh(e)}finally{q.H=t}},useDebugValue:function(){G="useDebugValue",Le()},useDeferredValue:function(e,t){return G="useDeferredValue",Le(),fh(e,t)},useTransition:function(){return G="useTransition",Le(),mh()},useSyncExternalStore:function(e,t,r){return G="useSyncExternalStore",Le(),th(e,t,r)},useId:function(){return G="useId",Le(),ph()},useFormState:function(e,t){return G="useFormState",Le(),Oc(),uo(e,t)},useActionState:function(e,t){return G="useActionState",Le(),uo(e,t)},useOptimistic:function(e){return G="useOptimistic",Le(),ah(e)},useHostTransitionStatus:yi,useMemoCache:bi,useCacheRefresh:function(){return G="useCacheRefresh",Le(),bh()}},aE={readContext:function(e){return dt(e)},use:ka,useCallback:function(e,t){return G="useCallback",K(),ch(e,t)},useContext:function(e){return G="useContext",K(),dt(e)},useEffect:function(e,t){return G="useEffect",K(),Bc(e,t)},useImperativeHandle:function(e,t,r){return G="useImperativeHandle",K(),lh(e,t,r)},useInsertionEffect:function(e,t){G="useInsertionEffect",K(),gi(4,tn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",K(),sh(e,t)},useMemo:function(e,t){G="useMemo",K();var r=q.H;q.H=Or;try{return uh(e,t)}finally{q.H=r}},useReducer:function(e,t,r){G="useReducer",K();var i=q.H;q.H=Or;try{return Jd(e,t,r)}finally{q.H=i}},useRef:function(e){return G="useRef",K(),oh(e)},useState:function(e){G="useState",K();var t=q.H;q.H=Or;try{return rh(e)}finally{q.H=t}},useDebugValue:function(){G="useDebugValue",K()},useDeferredValue:function(e,t){return G="useDeferredValue",K(),fh(e,t)},useTransition:function(){return G="useTransition",K(),mh()},useSyncExternalStore:function(e,t,r){return G="useSyncExternalStore",K(),th(e,t,r)},useId:function(){return G="useId",K(),ph()},useActionState:function(e,t){return G="useActionState",K(),uo(e,t)},useFormState:function(e,t){return G="useFormState",K(),Oc(),uo(e,t)},useOptimistic:function(e){return G="useOptimistic",K(),ah(e)},useHostTransitionStatus:yi,useMemoCache:bi,useCacheRefresh:function(){return G="useCacheRefresh",K(),bh()}},ap={readContext:function(e){return dt(e)},use:ka,useCallback:function(e,t){return G="useCallback",K(),jc(e,t)},useContext:function(e){return G="useContext",K(),dt(e)},useEffect:function(e,t){G="useEffect",K(),fn(2048,Ot,e,t)},useImperativeHandle:function(e,t,r){return G="useImperativeHandle",K(),Lc(e,t,r)},useInsertionEffect:function(e,t){return G="useInsertionEffect",K(),fn(4,tn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",K(),fn(4,qt,e,t)},useMemo:function(e,t){G="useMemo",K();var r=q.H;q.H=sr;try{return Hc(e,t)}finally{q.H=r}},useReducer:function(e,t,r){G="useReducer",K();var i=q.H;q.H=sr;try{return co(e,t,r)}finally{q.H=i}},useRef:function(){return G="useRef",K(),Je().memoizedState},useState:function(){G="useState",K();var e=q.H;q.H=sr;try{return co(rr)}finally{q.H=e}},useDebugValue:function(){G="useDebugValue",K()},useDeferredValue:function(e,t){return G="useDeferredValue",K(),L0(e,t)},useTransition:function(){return G="useTransition",K(),G0()},useSyncExternalStore:function(e,t,r){return G="useSyncExternalStore",K(),Cc(e,t,r)},useId:function(){return G="useId",K(),Je().memoizedState},useFormState:function(e){return G="useFormState",K(),Oc(),Dc(e)},useActionState:function(e){return G="useActionState",K(),Dc(e)},useOptimistic:function(e,t){return G="useOptimistic",K(),k0(e,t)},useHostTransitionStatus:yi,useMemoCache:bi,useCacheRefresh:function(){return G="useCacheRefresh",K(),Je().memoizedState}},iE={readContext:function(e){return dt(e)},use:ka,useCallback:function(e,t){return G="useCallback",K(),jc(e,t)},useContext:function(e){return G="useContext",K(),dt(e)},useEffect:function(e,t){G="useEffect",K(),fn(2048,Ot,e,t)},useImperativeHandle:function(e,t,r){return G="useImperativeHandle",K(),Lc(e,t,r)},useInsertionEffect:function(e,t){return G="useInsertionEffect",K(),fn(4,tn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",K(),fn(4,qt,e,t)},useMemo:function(e,t){G="useMemo",K();var r=q.H;q.H=Bu;try{return Hc(e,t)}finally{q.H=r}},useReducer:function(e,t,r){G="useReducer",K();var i=q.H;q.H=Bu;try{return Us(e,t,r)}finally{q.H=i}},useRef:function(){return G="useRef",K(),Je().memoizedState},useState:function(){G="useState",K();var e=q.H;q.H=Bu;try{return Us(rr)}finally{q.H=e}},useDebugValue:function(){G="useDebugValue",K()},useDeferredValue:function(e,t){return G="useDeferredValue",K(),j0(e,t)},useTransition:function(){return G="useTransition",K(),q0()},useSyncExternalStore:function(e,t,r){return G="useSyncExternalStore",K(),Cc(e,t,r)},useId:function(){return G="useId",K(),Je().memoizedState},useFormState:function(e){return G="useFormState",K(),Oc(),Mc(e)},useActionState:function(e){return G="useActionState",K(),Mc(e)},useOptimistic:function(e,t){return G="useOptimistic",K(),R0(e,t)},useHostTransitionStatus:yi,useMemoCache:bi,useCacheRefresh:function(){return G="useCacheRefresh",K(),Je().memoizedState}},Or={readContext:function(e){return y(),dt(e)},use:function(e){return p(),ka(e)},useCallback:function(e,t){return G="useCallback",p(),Le(),ch(e,t)},useContext:function(e){return G="useContext",p(),Le(),dt(e)},useEffect:function(e,t){return G="useEffect",p(),Le(),Bc(e,t)},useImperativeHandle:function(e,t,r){return G="useImperativeHandle",p(),Le(),lh(e,t,r)},useInsertionEffect:function(e,t){G="useInsertionEffect",p(),Le(),gi(4,tn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",p(),Le(),sh(e,t)},useMemo:function(e,t){G="useMemo",p(),Le();var r=q.H;q.H=Or;try{return uh(e,t)}finally{q.H=r}},useReducer:function(e,t,r){G="useReducer",p(),Le();var i=q.H;q.H=Or;try{return Jd(e,t,r)}finally{q.H=i}},useRef:function(e){return G="useRef",p(),Le(),oh(e)},useState:function(e){G="useState",p(),Le();var t=q.H;q.H=Or;try{return rh(e)}finally{q.H=t}},useDebugValue:function(){G="useDebugValue",p(),Le()},useDeferredValue:function(e,t){return G="useDeferredValue",p(),Le(),fh(e,t)},useTransition:function(){return G="useTransition",p(),Le(),mh()},useSyncExternalStore:function(e,t,r){return G="useSyncExternalStore",p(),Le(),th(e,t,r)},useId:function(){return G="useId",p(),Le(),ph()},useFormState:function(e,t){return G="useFormState",p(),Le(),uo(e,t)},useActionState:function(e,t){return G="useActionState",p(),Le(),uo(e,t)},useOptimistic:function(e){return G="useOptimistic",p(),Le(),ah(e)},useMemoCache:function(e){return p(),bi(e)},useHostTransitionStatus:yi,useCacheRefresh:function(){return G="useCacheRefresh",Le(),bh()}},sr={readContext:function(e){return y(),dt(e)},use:function(e){return p(),ka(e)},useCallback:function(e,t){return G="useCallback",p(),K(),jc(e,t)},useContext:function(e){return G="useContext",p(),K(),dt(e)},useEffect:function(e,t){G="useEffect",p(),K(),fn(2048,Ot,e,t)},useImperativeHandle:function(e,t,r){return G="useImperativeHandle",p(),K(),Lc(e,t,r)},useInsertionEffect:function(e,t){return G="useInsertionEffect",p(),K(),fn(4,tn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",p(),K(),fn(4,qt,e,t)},useMemo:function(e,t){G="useMemo",p(),K();var r=q.H;q.H=sr;try{return Hc(e,t)}finally{q.H=r}},useReducer:function(e,t,r){G="useReducer",p(),K();var i=q.H;q.H=sr;try{return co(e,t,r)}finally{q.H=i}},useRef:function(){return G="useRef",p(),K(),Je().memoizedState},useState:function(){G="useState",p(),K();var e=q.H;q.H=sr;try{return co(rr)}finally{q.H=e}},useDebugValue:function(){G="useDebugValue",p(),K()},useDeferredValue:function(e,t){return G="useDeferredValue",p(),K(),L0(e,t)},useTransition:function(){return G="useTransition",p(),K(),G0()},useSyncExternalStore:function(e,t,r){return G="useSyncExternalStore",p(),K(),Cc(e,t,r)},useId:function(){return G="useId",p(),K(),Je().memoizedState},useFormState:function(e){return G="useFormState",p(),K(),Dc(e)},useActionState:function(e){return G="useActionState",p(),K(),Dc(e)},useOptimistic:function(e,t){return G="useOptimistic",p(),K(),k0(e,t)},useMemoCache:function(e){return p(),bi(e)},useHostTransitionStatus:yi,useCacheRefresh:function(){return G="useCacheRefresh",K(),Je().memoizedState}},Bu={readContext:function(e){return y(),dt(e)},use:function(e){return p(),ka(e)},useCallback:function(e,t){return G="useCallback",p(),K(),jc(e,t)},useContext:function(e){return G="useContext",p(),K(),dt(e)},useEffect:function(e,t){G="useEffect",p(),K(),fn(2048,Ot,e,t)},useImperativeHandle:function(e,t,r){return G="useImperativeHandle",p(),K(),Lc(e,t,r)},useInsertionEffect:function(e,t){return G="useInsertionEffect",p(),K(),fn(4,tn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",p(),K(),fn(4,qt,e,t)},useMemo:function(e,t){G="useMemo",p(),K();var r=q.H;q.H=sr;try{return Hc(e,t)}finally{q.H=r}},useReducer:function(e,t,r){G="useReducer",p(),K();var i=q.H;q.H=sr;try{return Us(e,t,r)}finally{q.H=i}},useRef:function(){return G="useRef",p(),K(),Je().memoizedState},useState:function(){G="useState",p(),K();var e=q.H;q.H=sr;try{return Us(rr)}finally{q.H=e}},useDebugValue:function(){G="useDebugValue",p(),K()},useDeferredValue:function(e,t){return G="useDeferredValue",p(),K(),j0(e,t)},useTransition:function(){return G="useTransition",p(),K(),q0()},useSyncExternalStore:function(e,t,r){return G="useSyncExternalStore",p(),K(),Cc(e,t,r)},useId:function(){return G="useId",p(),K(),Je().memoizedState},useFormState:function(e){return G="useFormState",p(),K(),Mc(e)},useActionState:function(e){return G="useActionState",p(),K(),Mc(e)},useOptimistic:function(e,t){return G="useOptimistic",p(),K(),R0(e,t)},useMemoCache:function(e){return p(),bi(e)},useHostTransitionStatus:yi,useCacheRefresh:function(){return G="useCacheRefresh",K(),Je().memoizedState}};var oE={"react-stack-bottom-frame":function(e,t,r){var i=Nr;Nr=!0;try{return e(t,r)}finally{Nr=i}}},ip=oE["react-stack-bottom-frame"].bind(oE),sE={"react-stack-bottom-frame":function(e){var t=Nr;Nr=!0;try{return e.render()}finally{Nr=t}}},lE=sE["react-stack-bottom-frame"].bind(sE),cE={"react-stack-bottom-frame":function(e,t){try{t.componentDidMount()}catch(r){tt(e,e.return,r)}}},op=cE["react-stack-bottom-frame"].bind(cE),uE={"react-stack-bottom-frame":function(e,t,r,i,s){try{t.componentDidUpdate(r,i,s)}catch(c){tt(e,e.return,c)}}},fE=uE["react-stack-bottom-frame"].bind(uE),dE={"react-stack-bottom-frame":function(e,t){var r=t.stack;e.componentDidCatch(t.value,{componentStack:r!==null?r:""})}},AO=dE["react-stack-bottom-frame"].bind(dE),hE={"react-stack-bottom-frame":function(e,t,r){try{r.componentWillUnmount()}catch(i){tt(e,t,i)}}},mE=hE["react-stack-bottom-frame"].bind(hE),pE={"react-stack-bottom-frame":function(e){e.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var t=e.create;return e=e.inst,t=t(),e.destroy=t}},OO=pE["react-stack-bottom-frame"].bind(pE),bE={"react-stack-bottom-frame":function(e,t,r){try{r()}catch(i){tt(e,t,i)}}},CO=bE["react-stack-bottom-frame"].bind(bE),gE={"react-stack-bottom-frame":function(e){var t=e._init;return t(e._payload)}},Va=gE["react-stack-bottom-frame"].bind(gE),Po=null,_l=0,Oe=null,sp,yE=sp=!1,vE={},_E={},EE={};h=function(e,t,r){if(r!==null&&typeof r=="object"&&r._store&&(!r._store.validated&&r.key==null||r._store.validated===2)){if(typeof r._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");r._store.validated=1;var i=Z(e),s=i||"null";if(!vE[s]){vE[s]=!0,r=r._owner,e=e._debugOwner;var c="";e&&typeof e.tag=="number"&&(s=Z(e))&&(c=`
|
|
261
|
+
|
|
262
|
+
Check the render method of \``+s+"`."),c||i&&(c=`
|
|
263
|
+
|
|
264
|
+
Check the top-level render call using <`+i+">.");var m="";r!=null&&e!==r&&(i=null,typeof r.tag=="number"?i=Z(r):typeof r.name=="string"&&(i=r.name),i&&(m=" It was passed a child from "+i+".")),ge(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',c,m)})}}};var $o=Y0(!0),wE=Y0(!1),Xn=ee(null),Cr=null,Yo=1,El=2,Ct=ee(0),SE={},xE=new Set,TE=new Set,kE=new Set,NE=new Set,RE=new Set,AE=new Set,OE=new Set,CE=new Set,DE=new Set,ME=new Set;Object.freeze(SE);var lp={enqueueSetState:function(e,t,r){e=e._reactInternals;var i=wn(e),s=xa(i);s.payload=t,r!=null&&(yh(r),s.callback=r),t=Ta(e,s,i),t!==null&&(vt(t,e,i),Os(t,e,i)),Rt(e,i)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=wn(e),s=xa(i);s.tag=K_,s.payload=t,r!=null&&(yh(r),s.callback=r),t=Ta(e,s,i),t!==null&&(vt(t,e,i),Os(t,e,i)),Rt(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=wn(e),i=xa(r);i.tag=J_,t!=null&&(yh(t),i.callback=t),t=Ta(e,i,r),t!==null&&(vt(t,e,r),Os(t,e,r)),se!==null&&typeof se.markForceUpdateScheduled=="function"&&se.markForceUpdateScheduled(e,r)}},cp=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Xo=null,up=null,UE=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Bt=!1,BE={},LE={},jE={},HE={},Zo=!1,zE={},fp={},dp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},IE=!1,VE=null;VE=new Set;var oa=!1,_t=!1,hp=!1,GE=typeof WeakSet=="function"?WeakSet:Set,Lt=null,Qo=null,Wo=null,Tt=null,mn=!1,lr=null,wl=8192,DO={getCacheForType:function(e){var t=dt(At),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},getOwner:function(){return xn}};if(typeof Symbol=="function"&&Symbol.for){var Sl=Symbol.for;Sl("selector.component"),Sl("selector.has_pseudo_class"),Sl("selector.role"),Sl("selector.test_id"),Sl("selector.text")}var MO=[],UO=typeof WeakMap=="function"?WeakMap:Map,Tn=0,nn=2,cr=4,sa=0,xl=1,Ko=2,mp=3,Ci=4,Lu=6,qE=5,Qe=Tn,it=null,Be=null,je=0,pn=0,Tl=1,Di=2,kl=3,FE=4,pp=5,Jo=6,Nl=7,bp=8,Mi=9,We=pn,kn=null,Ga=!1,es=!1,gp=!1,Dr=0,bt=sa,qa=0,Fa=0,yp=0,Nn=0,Ui=0,Rl=null,rn=null,ju=!1,vp=0,PE=300,Hu=1/0,$E=500,Al=null,Pa=null,BO=0,LO=1,jO=2,Bi=0,YE=1,XE=2,ZE=3,HO=4,_p=5,Ft=0,$a=null,ts=null,Ya=0,Ep=0,wp=null,QE=null,zO=50,Ol=0,Sp=null,xp=!1,zu=!1,IO=50,Li=0,Cl=null,ns=!1,Iu=null,WE=!1,KE=new Set,VO={},Vu=null,rs=null,Tp=!1,kp=!1,Gu=!1,Np=!1,ji=0,Rp={};(function(){for(var e=0;e<Fm.length;e++){var t=Fm[e],r=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),nr(r,"on"+t)}nr(L_,"onAnimationEnd"),nr(j_,"onAnimationIteration"),nr(H_,"onAnimationStart"),nr("dblclick","onDoubleClick"),nr("focusin","onFocus"),nr("focusout","onBlur"),nr(yO,"onTransitionRun"),nr(vO,"onTransitionStart"),nr(_O,"onTransitionCancel"),nr(z_,"onTransitionEnd")})(),ae("onMouseEnter",["mouseout","mouseover"]),ae("onMouseLeave",["mouseout","mouseover"]),ae("onPointerEnter",["pointerout","pointerover"]),ae("onPointerLeave",["pointerout","pointerover"]),J("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),J("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),J("onBeforeInput",["compositionend","keypress","textInput","paste"]),J("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),J("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),J("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ap=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dl)),qu="_reactListening"+Math.random().toString(36).slice(2),JE=!1,ew=!1,Fu=!1,tw=!1,Pu=!1,$u=!1,nw=!1,Yu={},GO=/\r\n?/g,qO=/\u0000|\uFFFD/g,Hi="http://www.w3.org/1999/xlink",Op="http://www.w3.org/XML/1998/namespace",FO="javascript:throw new Error('React form unexpectedly submitted.')",PO="suppressHydrationWarning",Xu="$",Zu="/$",la="$?",Ml="$!",$O=1,YO=2,XO=4,Cp="F!",rw="F",aw="complete",ZO="style",ca=0,as=1,Qu=2,Dp=null,Mp=null,iw={dialog:!0,webview:!0},Up=null,ow=typeof setTimeout=="function"?setTimeout:void 0,QO=typeof clearTimeout=="function"?clearTimeout:void 0,zi=-1,sw=typeof Promise=="function"?Promise:void 0,WO=typeof queueMicrotask=="function"?queueMicrotask:typeof sw<"u"?function(e){return sw.resolve(null).then(e).catch(LR)}:ow,Bp=null,Ii=0,Ul=1,lw=2,cw=3,Zn=4,Qn=new Map,uw=new Set,ua=Ze.d;Ze.d={f:function(){var e=ua.f(),t=bo();return e||t},r:function(e){var t=tr(e);t!==null&&t.tag===5&&t.type==="form"?V0(t):ua.r(e)},D:function(e){ua.D(e),O1("dns-prefetch",e,null)},C:function(e,t){ua.C(e,t),O1("preconnect",e,t)},L:function(e,t,r){ua.L(e,t,r);var i=is;if(i&&e&&t){var s='link[rel="preload"][as="'+Ln(t)+'"]';t==="image"&&r&&r.imageSrcSet?(s+='[imagesrcset="'+Ln(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(s+='[imagesizes="'+Ln(r.imageSizes)+'"]')):s+='[href="'+Ln(e)+'"]';var c=s;switch(t){case"style":c=_o(e);break;case"script":c=Eo(e)}Qn.has(c)||(e=Me({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Qn.set(c,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(Ys(c))||t==="script"&&i.querySelector(Xs(c))||(t=i.createElement("link"),It(t,"link",e),B(t),i.head.appendChild(t)))}},m:function(e,t){ua.m(e,t);var r=is;if(r&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Ln(i)+'"][href="'+Ln(e)+'"]',c=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Eo(e)}if(!Qn.has(c)&&(e=Me({rel:"modulepreload",href:e},t),Qn.set(c,e),r.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Xs(c)))return}i=r.createElement("link"),It(i,"link",e),B(i),r.head.appendChild(i)}}},X:function(e,t){ua.X(e,t);var r=is;if(r&&e){var i=S(r).hoistableScripts,s=Eo(e),c=i.get(s);c||(c=r.querySelector(Xs(s)),c||(e=Me({src:e,async:!0},t),(t=Qn.get(s))&&sm(e,t),c=r.createElement("script"),B(c),It(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(s,c))}},S:function(e,t,r){ua.S(e,t,r);var i=is;if(i&&e){var s=S(i).hoistableStyles,c=_o(e);t=t||"default";var m=s.get(c);if(!m){var b={loading:Ii,preload:null};if(m=i.querySelector(Ys(c)))b.loading=Ul|Zn;else{e=Me({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Qn.get(c))&&om(e,r);var x=m=i.createElement("link");B(x),It(x,"link",e),x._p=new Promise(function(k,H){x.onload=k,x.onerror=H}),x.addEventListener("load",function(){b.loading|=Ul}),x.addEventListener("error",function(){b.loading|=lw}),b.loading|=Zn,iu(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:b},s.set(c,m)}}},M:function(e,t){ua.M(e,t);var r=is;if(r&&e){var i=S(r).hoistableScripts,s=Eo(e),c=i.get(s);c||(c=r.querySelector(Xs(s)),c||(e=Me({src:e,async:!0,type:"module"},t),(t=Qn.get(s))&&sm(e,t),c=r.createElement("script"),B(c),It(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(s,c))}}};var is=typeof document>"u"?null:document,Wu=null,Bl=null,Lp=null,Ku=null,Vi=bA,Ll={$$typeof:Sr,Provider:null,Consumer:null,_currentValue:Vi,_currentValue2:Vi,_threadCount:0},fw="%c%s%c ",dw="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",hw="",Ju=" ",KO=Function.prototype.bind,mw=!1,pw=null,bw=null,gw=null,yw=null,vw=null,_w=null,Ew=null,ww=null,Sw=null;pw=function(e,t,r,i){t=n(e,t),t!==null&&(r=a(t.memoizedState,r,0,i),t.memoizedState=r,t.baseState=r,e.memoizedProps=Me({},e.memoizedProps),r=cn(e,2),r!==null&&vt(r,e,2))},bw=function(e,t,r){t=n(e,t),t!==null&&(r=u(t.memoizedState,r,0),t.memoizedState=r,t.baseState=r,e.memoizedProps=Me({},e.memoizedProps),r=cn(e,2),r!==null&&vt(r,e,2))},gw=function(e,t,r,i){t=n(e,t),t!==null&&(r=o(t.memoizedState,r,i),t.memoizedState=r,t.baseState=r,e.memoizedProps=Me({},e.memoizedProps),r=cn(e,2),r!==null&&vt(r,e,2))},yw=function(e,t,r){e.pendingProps=a(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=cn(e,2),t!==null&&vt(t,e,2)},vw=function(e,t){e.pendingProps=u(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=cn(e,2),t!==null&&vt(t,e,2)},_w=function(e,t,r){e.pendingProps=o(e.memoizedProps,t,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=cn(e,2),t!==null&&vt(t,e,2)},Ew=function(e){var t=cn(e,2);t!==null&&vt(t,e,2)},ww=function(e){d=e},Sw=function(e){f=e};var ef=!0,tf=null,jp=!1,Xa=null,Za=null,Qa=null,jl=new Map,Hl=new Map,Wa=[],JO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),nf=null;if(cu.prototype.render=mm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var r=arguments;typeof r[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):j(r[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof r[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),r=e;var i=t.current,s=wn(i);cm(i,s,r,t,null,null)},cu.prototype.unmount=mm.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Qe&(nn|cr))!==Tn&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),cm(e.current,2,null,e,null,null),bo(),t[La]=null}},cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=bs();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Wa.length&&t!==0&&t<Wa[r].priority;r++);Wa.splice(r,0,e),r===0&&q1(e)}},function(){var e=pm.version;if(e!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
265
|
+
- react: `+(e+`
|
|
266
|
+
- react-dom: 19.1.0
|
|
267
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}(),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://react.dev/link/react-polyfills"),Ze.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=N(t),e=e!==null?D(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.1.0"};return e.overrideHookState=pw,e.overrideHookStateDeletePath=bw,e.overrideHookStateRenamePath=gw,e.overrideProps=yw,e.overridePropsDeletePath=vw,e.overridePropsRenamePath=_w,e.scheduleUpdate=Ew,e.setErrorHandler=ww,e.setSuspenseHandler=Sw,e.scheduleRefresh=U,e.scheduleRoot=A,e.setRefreshHandler=I,e.getCurrentFiber=iA,e.getLaneLabelMap=oA,e.injectProfilingHooks=sn,st(e)}()&&Rr&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var xw=window.location.protocol;/^(https?|file):$/.test(xw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(xw==="file:"?`
|
|
268
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}zl.createRoot=function(e,t){if(!j(e))throw Error("Target container is not a DOM element.");$1(e);var r=!1,i="",s=W0,c=K0,m=J0,b=null;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Da&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
269
|
+
|
|
270
|
+
let root = createRoot(domContainer);
|
|
271
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(b=t.unstable_transitionCallbacks)),t=j1(e,1,!1,null,null,r,i,s,c,m,b,null),e[La]=t.current,Qh(e),new mm(t)},zl.hydrateRoot=function(e,t,r){if(!j(e))throw Error("Target container is not a DOM element.");$1(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var i=!1,s="",c=W0,m=K0,b=J0,x=null,k=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(b=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(x=r.unstable_transitionCallbacks),r.formState!==void 0&&(k=r.formState)),t=j1(e,1,!0,t,r??null,i,s,c,m,b,x,k),t.context=H1(null),r=t.current,i=wn(r),i=hs(i),s=xa(i),s.callback=null,Ta(r,s,i),r=i,t.current.lanes=r,_a(t,r),Er(t),e[La]=t.current,Qh(e),new cu(t)},zl.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),zl}var Uw;function fC(){return Uw||(Uw=1,Ip.exports=uC()),Ip.exports}var dC=fC(),V=to();const vT=Zf(V);var Fp={exports:{}},Pp={},Bw;function hC(){if(Bw)return Pp;Bw=1;/**
|
|
272
|
+
* @license React
|
|
273
|
+
* use-sync-external-store-with-selector.development.js
|
|
274
|
+
*
|
|
275
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the MIT license found in the
|
|
278
|
+
* LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/return function(){function n(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=to(),o=typeof Object.is=="function"?Object.is:n,l=a.useSyncExternalStore,u=a.useRef,f=a.useEffect,d=a.useMemo,h=a.useDebugValue;Pp.useSyncExternalStoreWithSelector=function(p,y,v,_,g){var A=u(null);if(A.current===null){var U={hasValue:!1,value:null};A.current=U}else U=A.current;A=d(function(){function j(D){if(!w){if(w=!0,R=D,D=_(D),g!==void 0&&U.hasValue){var z=U.value;if(g(z,D))return T=z}return T=D}if(z=T,o(R,D))return z;var X=_(D);return g!==void 0&&g(z,X)?(R=D,z):(R=D,T=X)}var w=!1,R,T,N=v===void 0?null:v;return[function(){return j(y())},N===null?void 0:function(){return j(N())}]},[y,v,_,g]);var I=l(p,A[0],A[1]);return f(function(){U.hasValue=!0,U.value=I},[I]),h(I),I},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Pp}var Lw;function mC(){return Lw||(Lw=1,Fp.exports=hC()),Fp.exports}var pC=mC(),_T=V.version.startsWith("19"),bC=Symbol.for(_T?"react.transitional.element":"react.element"),gC=Symbol.for("react.portal"),ET=Symbol.for("react.fragment"),wT=Symbol.for("react.strict_mode"),ST=Symbol.for("react.profiler"),Rg=Symbol.for("react.consumer"),Ag=Symbol.for("react.context"),Og=Symbol.for("react.forward_ref"),xT=Symbol.for("react.suspense"),TT=Symbol.for("react.suspense_list"),Qf=Symbol.for("react.memo"),kT=Symbol.for("react.lazy"),yC=Symbol.for("react.offscreen"),vC=Symbol.for("react.client.reference"),_C=Og,EC=Qf;function wC(n){return typeof n=="string"||typeof n=="function"||n===ET||n===ST||n===wT||n===xT||n===TT||n===yC||typeof n=="object"&&n!==null&&(n.$$typeof===kT||n.$$typeof===Qf||n.$$typeof===Ag||n.$$typeof===Rg||n.$$typeof===Og||n.$$typeof===vC||n.getModuleId!==void 0)}function Qb(n){if(typeof n=="object"&&n!==null){const{$$typeof:a}=n;switch(a){case bC:switch(n=n.type,n){case ET:case ST:case wT:case xT:case TT:return n;default:switch(n=n&&n.$$typeof,n){case Ag:case Og:case kT:case Qf:return n;case Rg:return n;default:return a}}case gC:return a}}}function SC(n){return _T?Qb(n)===Rg:Qb(n)===Ag}function xC(n){return Qb(n)===Qf}function Cg(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function $p(n,a){if(n)(a==="mapStateToProps"||a==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(n,"dependsOnOwnProps")||Cg(`The selector for ${a} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${a} in connect.`)}function TC(n,a,o){$p(n,"mapStateToProps"),$p(a,"mapDispatchToProps"),$p(o,"mergeProps")}function kC(n,a,o,l,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:d}){let h=!1,p,y,v,_,g;function A(R,T){return p=R,y=T,v=n(p,y),_=a(l,y),g=o(v,_,y),h=!0,g}function U(){return v=n(p,y),a.dependsOnOwnProps&&(_=a(l,y)),g=o(v,_,y),g}function I(){return n.dependsOnOwnProps&&(v=n(p,y)),a.dependsOnOwnProps&&(_=a(l,y)),g=o(v,_,y),g}function j(){const R=n(p,y),T=!d(R,v);return v=R,T&&(g=o(v,_,y)),g}function w(R,T){const N=!f(T,y),D=!u(R,p,T,y);return p=R,y=T,N&&D?U():N?I():D?j():g}return function(T,N){return h?w(T,N):A(T,N)}}function NC(n,{initMapStateToProps:a,initMapDispatchToProps:o,initMergeProps:l,...u}){const f=a(n,u),d=o(n,u),h=l(n,u);return TC(f,d,h),kC(f,d,h,n,u)}function RC(n,a){const o={};for(const l in n){const u=n[l];typeof u=="function"&&(o[l]=(...f)=>a(u(...f)))}return o}function AC(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);if(a===null)return!0;let o=a;for(;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return a===o}function NT(n,a,o){AC(n)||Cg(`${o}() in ${a} must return a plain object. Instead received ${n}.`)}function Wb(n){return function(o){const l=n(o);function u(){return l}return u.dependsOnOwnProps=!1,u}}function jw(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function RT(n,a){return function(l,{displayName:u}){const f=function(h,p){return f.dependsOnOwnProps?f.mapToProps(h,p):f.mapToProps(h,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(h,p){f.mapToProps=n,f.dependsOnOwnProps=jw(n);let y=f(h,p);return typeof y=="function"&&(f.mapToProps=y,f.dependsOnOwnProps=jw(y),y=f(h,p)),NT(y,u,a),y},f}}function Dg(n,a){return(o,l)=>{throw new Error(`Invalid value of type ${typeof n} for ${a} argument when connecting component ${l.wrappedComponentName}.`)}}function OC(n){return n&&typeof n=="object"?Wb(a=>RC(n,a)):n?typeof n=="function"?RT(n,"mapDispatchToProps"):Dg(n,"mapDispatchToProps"):Wb(a=>({dispatch:a}))}function CC(n){return n?typeof n=="function"?RT(n,"mapStateToProps"):Dg(n,"mapStateToProps"):Wb(()=>({}))}function DC(n,a,o){return{...o,...n,...a}}function MC(n){return function(o,{displayName:l,areMergedPropsEqual:u}){let f=!1,d;return function(p,y,v){const _=n(p,y,v);return f?u(_,d)||(d=_):(f=!0,d=_,NT(d,l,"mergeProps")),d}}}function UC(n){return n?typeof n=="function"?MC(n):Dg(n,"mergeProps"):()=>DC}function BC(n){n()}function LC(){let n=null,a=null;return{clear(){n=null,a=null},notify(){BC(()=>{let o=n;for(;o;)o.callback(),o=o.next})},get(){const o=[];let l=n;for(;l;)o.push(l),l=l.next;return o},subscribe(o){let l=!0;const u=a={callback:o,next:null,prev:a};return u.prev?u.prev.next=u:n=u,function(){!l||n===null||(l=!1,u.next?u.next.prev=u.prev:a=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var Hw={notify(){},get:()=>[]};function AT(n,a){let o,l=Hw,u=0,f=!1;function d(I){v();const j=l.subscribe(I);let w=!1;return()=>{w||(w=!0,j(),_())}}function h(){l.notify()}function p(){U.onStateChange&&U.onStateChange()}function y(){return f}function v(){u++,o||(o=a?a.addNestedSub(p):n.subscribe(p),l=LC())}function _(){u--,o&&u===0&&(o(),o=void 0,l.clear(),l=Hw)}function g(){f||(f=!0,v())}function A(){f&&(f=!1,_())}const U={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:y,trySubscribe:g,tryUnsubscribe:A,getListeners:()=>l};return U}var jC=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HC=jC(),zC=()=>typeof navigator<"u"&&navigator.product==="ReactNative",IC=zC(),VC=()=>HC||IC?V.useLayoutEffect:V.useEffect,Gf=VC();function zw(n,a){return n===a?n!==0||a!==0||1/n===1/a:n!==n&&a!==a}function Yp(n,a){if(zw(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;const o=Object.keys(n),l=Object.keys(a);if(o.length!==l.length)return!1;for(let u=0;u<o.length;u++)if(!Object.prototype.hasOwnProperty.call(a,o[u])||!zw(n[o[u]],a[o[u]]))return!1;return!0}var GC={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qC={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FC={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},OT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},PC={[_C]:FC,[EC]:OT};function Iw(n){return xC(n)?OT:PC[n.$$typeof]||GC}var $C=Object.defineProperty,YC=Object.getOwnPropertyNames,Vw=Object.getOwnPropertySymbols,XC=Object.getOwnPropertyDescriptor,ZC=Object.getPrototypeOf,Gw=Object.prototype;function Kb(n,a){if(typeof a!="string"){if(Gw){const f=ZC(a);f&&f!==Gw&&Kb(n,f)}let o=YC(a);Vw&&(o=o.concat(Vw(a)));const l=Iw(n),u=Iw(a);for(let f=0;f<o.length;++f){const d=o[f];if(!qC[d]&&!(u&&u[d])&&!(l&&l[d])){const h=XC(a,d);try{$C(n,d,h)}catch{}}}}return n}var Xp=Symbol.for("react-redux-context"),Zp=typeof globalThis<"u"?globalThis:{};function QC(){if(!V.createContext)return{};const n=Zp[Xp]??(Zp[Xp]=new Map);let a=n.get(V.createContext);return a||(a=V.createContext(null),a.displayName="ReactRedux",n.set(V.createContext,a)),a}var ba=QC(),WC=[null,null],KC=n=>{try{return JSON.stringify(n)}catch{return String(n)}};function JC(n,a,o){Gf(()=>n(...a),o)}function eD(n,a,o,l,u,f){n.current=l,o.current=!1,u.current&&(u.current=null,f())}function tD(n,a,o,l,u,f,d,h,p,y,v){if(!n)return()=>{};let _=!1,g=null;const A=()=>{if(_||!h.current)return;const I=a.getState();let j,w;try{j=l(I,u.current)}catch(R){w=R,g=R}w||(g=null),j===f.current?d.current||y():(f.current=j,p.current=j,d.current=!0,v())};return o.onStateChange=A,o.trySubscribe(),A(),()=>{if(_=!0,o.tryUnsubscribe(),o.onStateChange=null,g)throw g}}function nD(n,a){return n===a}var qw=!1;function rD(n,a,o,{pure:l,areStatesEqual:u=nD,areOwnPropsEqual:f=Yp,areStatePropsEqual:d=Yp,areMergedPropsEqual:h=Yp,forwardRef:p=!1,context:y=ba}={}){l!==void 0&&!qw&&(qw=!0,Cg('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const v=y,_=CC(n),g=OC(a),A=UC(o),U=!!n;return j=>{if(!wC(j))throw new Error(`You must pass a component to the function returned by connect. Instead received ${KC(j)}`);const w=j.displayName||j.name||"Component",R=`Connect(${w})`,T={shouldHandleStateChanges:U,displayName:R,wrappedComponentName:w,WrappedComponent:j,initMapStateToProps:_,initMapDispatchToProps:g,initMergeProps:A,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:h};function N(X){const[re,Z,ee]=V.useMemo(()=>{const{reactReduxForwardedRef:oe,...Rt}=X;return[X.context,oe,Rt]},[X]),Q=V.useMemo(()=>{let oe=v;if(re!=null&&re.Consumer){if(!SC(V.createElement(re.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");oe=re}return oe},[re,v]),ie=V.useContext(Q),ce=!!X.store&&!!X.store.getState&&!!X.store.dispatch,Ye=!!ie&&!!ie.store;if(!ce&&!Ye)throw new Error(`Could not find "store" in the context of "${R}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${R} in connect options.`);const Ce=ce?X.store:ie.store,W=Ye?ie.getServerState:Ce.getState,he=V.useMemo(()=>NC(Ce.dispatch,T),[Ce]),[ue,Te]=V.useMemo(()=>{if(!U)return WC;const oe=AT(Ce,ce?void 0:ie.subscription),Rt=oe.notifyNestedSubs.bind(oe);return[oe,Rt]},[Ce,ce,ie]),Y=V.useMemo(()=>ce?ie:{...ie,subscription:ue},[ce,ie,ue]),me=V.useRef(void 0),le=V.useRef(ee),Ee=V.useRef(void 0),qe=V.useRef(!1),st=V.useRef(!1),ke=V.useRef(void 0);Gf(()=>(st.current=!0,()=>{st.current=!1}),[]);const sn=V.useMemo(()=>()=>Ee.current&&ee===le.current?Ee.current:he(Ce.getState(),ee),[Ce,ee]),at=V.useMemo(()=>Rt=>ue?tD(U,Ce,ue,he,le,me,qe,st,Ee,Te,Rt):()=>{},[ue]);JC(eD,[le,me,qe,ee,Ee,Te]);let ft;try{ft=V.useSyncExternalStore(at,sn,W?()=>he(W(),ee):sn)}catch(oe){throw ke.current&&(oe.message+=`
|
|
280
|
+
The error may be correlated with this previous error:
|
|
281
|
+
${ke.current.stack}
|
|
282
|
+
|
|
283
|
+
`),oe}Gf(()=>{ke.current=void 0,Ee.current=void 0,me.current=ft});const Dt=V.useMemo(()=>V.createElement(j,{...ft,ref:Z}),[Z,j,ft]);return V.useMemo(()=>U?V.createElement(Q.Provider,{value:Y},Dt):Dt,[Q,Dt,Y])}const z=V.memo(N);if(z.WrappedComponent=j,z.displayName=N.displayName=R,p){const re=V.forwardRef(function(ee,Q){return V.createElement(z,{...ee,reactReduxForwardedRef:Q})});return re.displayName=R,re.WrappedComponent=j,Kb(re,j)}return Kb(z,j)}}var aD=rD;function iD(n){const{children:a,context:o,serverState:l,store:u}=n,f=V.useMemo(()=>{const p=AT(u),y={store:u,subscription:p,getServerState:l?()=>l:void 0};{const{identityFunctionCheck:v="once",stabilityCheck:_="once"}=n;return Object.assign(y,{stabilityCheck:_,identityFunctionCheck:v})}},[u,l]),d=V.useMemo(()=>u.getState(),[u]);Gf(()=>{const{subscription:p}=f;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),d!==u.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[f,d]);const h=o||ba;return V.createElement(h.Provider,{value:f},a)}var oD=iD;function Mg(n=ba){return function(){const o=V.useContext(n);if(!o)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return o}}var CT=Mg();function DT(n=ba){const a=n===ba?CT:Mg(n),o=()=>{const{store:l}=a();return l};return Object.assign(o,{withTypes:()=>o}),o}var sD=DT();function lD(n=ba){const a=n===ba?sD:DT(n),o=()=>a().dispatch;return Object.assign(o,{withTypes:()=>o}),o}var cD=lD(),uD=(n,a)=>n===a;function fD(n=ba){const a=n===ba?CT:Mg(n),o=(l,u={})=>{const{equalityFn:f=uD}=typeof u=="function"?{equalityFn:u}:u;{if(!l)throw new Error("You must pass a selector to useSelector");if(typeof l!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof f!="function")throw new Error("You must pass a function as an equality function to useSelector")}const d=a(),{store:h,subscription:p,getServerState:y}=d,v=V.useRef(!0),_=V.useCallback({[l.name](A){const U=l(A);{const{devModeChecks:I={}}=typeof u=="function"?{}:u,{identityFunctionCheck:j,stabilityCheck:w}=d,{identityFunctionCheck:R,stabilityCheck:T}={stabilityCheck:w,identityFunctionCheck:j,...I};if(T==="always"||T==="once"&&v.current){const N=l(A);if(!f(U,N)){let D;try{throw new Error}catch(z){({stack:D}=z)}console.warn("Selector "+(l.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
284
|
+
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:A,selected:U,selected2:N,stack:D})}}if((R==="always"||R==="once"&&v.current)&&U===A){let N;try{throw new Error}catch(D){({stack:N}=D)}console.warn("Selector "+(l.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
285
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:N})}v.current&&(v.current=!1)}return U}}[l.name],[l]),g=pC.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,y||h.getState,_,f);return V.useDebugValue(g),g};return Object.assign(o,{withTypes:()=>o}),o}var dD=fD(),Qp={exports:{}};/*!
|
|
286
|
+
Copyright (c) 2018 Jed Watson.
|
|
287
|
+
Licensed under the MIT License (MIT), see
|
|
288
|
+
http://jedwatson.github.io/classnames
|
|
289
|
+
*/var Fw;function hD(){return Fw||(Fw=1,function(n){(function(){var a={}.hasOwnProperty;function o(){for(var f="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(f=u(f,l(h)))}return f}function l(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return o.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var h in f)a.call(f,h)&&f[h]&&(d=u(d,h));return d}function u(f,d){return d?f?f+" "+d:f+d:f}n.exports?(o.default=o,n.exports=o):window.classNames=o})()}(Qp)),Qp.exports}var mD=hD();const te=Zf(mD);var Jb=function(n,a){return Jb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(o[u]=l[u])},Jb(n,a)};function Kn(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");Jb(n,a);function o(){this.constructor=n}n.prototype=a===null?Object.create(a):(o.prototype=a.prototype,new o)}var be=function(){return be=Object.assign||function(a){for(var o,l=1,u=arguments.length;l<u;l++){o=arguments[l];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(a[f]=o[f])}return a},be.apply(this,arguments)};function Wf(n,a){var o={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&a.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(n);u<l.length;u++)a.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(n,l[u])&&(o[l[u]]=n[l[u]]);return o}function Br(n,a,o){if(o||arguments.length===2)for(var l=0,u=a.length,f;l<u;l++)(f||!(l in a))&&(f||(f=Array.prototype.slice.call(a,0,l)),f[l]=a[l]);return n.concat(f||Array.prototype.slice.call(a))}function Mr(n,a){var o=a&&a.cache?a.cache:ED,l=a&&a.serializer?a.serializer:vD,u=a&&a.strategy?a.strategy:gD;return u(n,{cache:o,serializer:l})}function pD(n){return n==null||typeof n=="number"||typeof n=="boolean"}function bD(n,a,o,l){var u=pD(l)?l:o(l),f=a.get(u);return typeof f>"u"&&(f=n.call(this,l),a.set(u,f)),f}function MT(n,a,o){var l=Array.prototype.slice.call(arguments,3),u=o(l),f=a.get(u);return typeof f>"u"&&(f=n.apply(this,l),a.set(u,f)),f}function UT(n,a,o,l,u){return o.bind(a,n,l,u)}function gD(n,a){var o=n.length===1?bD:MT;return UT(n,this,o,a.cache.create(),a.serializer)}function yD(n,a){return UT(n,this,MT,a.cache.create(),a.serializer)}var vD=function(){return JSON.stringify(arguments)},_D=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(a){return this.cache[a]},n.prototype.set=function(a,o){this.cache[a]=o},n}(),ED={create:function(){return new _D}},Ur={variadic:yD},Ve;(function(n){n[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Ve||(Ve={}));var ut;(function(n){n[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag"})(ut||(ut={}));var ss;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(ss||(ss={}));function Pw(n){return n.type===ut.literal}function wD(n){return n.type===ut.argument}function BT(n){return n.type===ut.number}function LT(n){return n.type===ut.date}function jT(n){return n.type===ut.time}function HT(n){return n.type===ut.select}function zT(n){return n.type===ut.plural}function SD(n){return n.type===ut.pound}function IT(n){return n.type===ut.tag}function VT(n){return!!(n&&typeof n=="object"&&n.type===ss.number)}function eg(n){return!!(n&&typeof n=="object"&&n.type===ss.dateTime)}var GT=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,xD=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function TD(n){var a={};return n.replace(xD,function(o){var l=o.length;switch(o[0]){case"G":a.era=l===4?"long":l===5?"narrow":"short";break;case"y":a.year=l===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":a.month=["numeric","2-digit","short","long","narrow"][l-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":a.day=["numeric","2-digit"][l-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":a.weekday=l===4?"long":l===5?"narrow":"short";break;case"e":if(l<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][l-4];break;case"c":if(l<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][l-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][l-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][l-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][l-1];break;case"k":a.hourCycle="h24",a.hour=["numeric","2-digit"][l-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":a.minute=["numeric","2-digit"][l-1];break;case"s":a.second=["numeric","2-digit"][l-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":a.timeZoneName=l<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),a}var kD=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ND(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var a=n.split(kD).filter(function(g){return g.length>0}),o=[],l=0,u=a;l<u.length;l++){var f=u[l],d=f.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],p=d.slice(1),y=0,v=p;y<v.length;y++){var _=v[y];if(_.length===0)throw new Error("Invalid number skeleton")}o.push({stem:h,options:p})}return o}function RD(n){return n.replace(/^(.*?)-/,"")}var $w=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,qT=/^(@+)?(\+|#+)?[rs]?$/g,AD=/(\*)(0+)|(#+)(0+)|(0+)/g,FT=/^(0+)$/;function Yw(n){var a={};return n[n.length-1]==="r"?a.roundingPriority="morePrecision":n[n.length-1]==="s"&&(a.roundingPriority="lessPrecision"),n.replace(qT,function(o,l,u){return typeof u!="string"?(a.minimumSignificantDigits=l.length,a.maximumSignificantDigits=l.length):u==="+"?a.minimumSignificantDigits=l.length:l[0]==="#"?a.maximumSignificantDigits=l.length:(a.minimumSignificantDigits=l.length,a.maximumSignificantDigits=l.length+(typeof u=="string"?u.length:0)),""}),a}function PT(n){switch(n){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function OD(n){var a;if(n[0]==="E"&&n[1]==="E"?(a={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(a={notation:"scientific"},n=n.slice(1)),a){var o=n.slice(0,2);if(o==="+!"?(a.signDisplay="always",n=n.slice(2)):o==="+?"&&(a.signDisplay="exceptZero",n=n.slice(2)),!FT.test(n))throw new Error("Malformed concise eng/scientific notation");a.minimumIntegerDigits=n.length}return a}function Xw(n){var a={},o=PT(n);return o||a}function CD(n){for(var a={},o=0,l=n;o<l.length;o++){var u=l[o];switch(u.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=u.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=RD(u.options[0]);continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=be(be(be({},a),{notation:"scientific"}),u.options.reduce(function(p,y){return be(be({},p),Xw(y))},{}));continue;case"engineering":a=be(be(be({},a),{notation:"engineering"}),u.options.reduce(function(p,y){return be(be({},p),Xw(y))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":a.roundingMode="floor";continue;case"rounding-mode-ceiling":a.roundingMode="ceil";continue;case"rounding-mode-down":a.roundingMode="trunc";continue;case"rounding-mode-up":a.roundingMode="expand";continue;case"rounding-mode-half-even":a.roundingMode="halfEven";continue;case"rounding-mode-half-down":a.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":a.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(AD,function(p,y,v,_,g,A){if(y)a.minimumIntegerDigits=v.length;else{if(_&&g)throw new Error("We currently do not support maximum integer digits");if(A)throw new Error("We currently do not support exact integer digits")}return""});continue}if(FT.test(u.stem)){a.minimumIntegerDigits=u.stem.length;continue}if($w.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace($w,function(p,y,v,_,g,A){return v==="*"?a.minimumFractionDigits=y.length:_&&_[0]==="#"?a.maximumFractionDigits=_.length:g&&A?(a.minimumFractionDigits=g.length,a.maximumFractionDigits=g.length+A.length):(a.minimumFractionDigits=y.length,a.maximumFractionDigits=y.length),""});var f=u.options[0];f==="w"?a=be(be({},a),{trailingZeroDisplay:"stripIfInteger"}):f&&(a=be(be({},a),Yw(f)));continue}if(qT.test(u.stem)){a=be(be({},a),Yw(u.stem));continue}var d=PT(u.stem);d&&(a=be(be({},a),d));var h=OD(u.stem);h&&(a=be(be({},a),h))}return a}var of={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function DD(n,a){for(var o="",l=0;l<n.length;l++){var u=n.charAt(l);if(u==="j"){for(var f=0;l+1<n.length&&n.charAt(l+1)===u;)f++,l++;var d=1+(f&1),h=f<2?1:3+(f>>1),p="a",y=MD(a);for((y=="H"||y=="k")&&(h=0);h-- >0;)o+=p;for(;d-- >0;)o=y+o}else u==="J"?o+="H":o+=u}return o}function MD(n){var a=n.hourCycle;if(a===void 0&&n.hourCycles&&n.hourCycles.length&&(a=n.hourCycles[0]),a)switch(a){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var o=n.language,l;o!=="root"&&(l=n.maximize().region);var u=of[l||""]||of[o||""]||of["".concat(o,"-001")]||of["001"];return u[0]}var Wp,UD=new RegExp("^".concat(GT.source,"*")),BD=new RegExp("".concat(GT.source,"*$"));function $e(n,a){return{start:n,end:a}}var LD=!!String.prototype.startsWith&&"_a".startsWith("a",1),jD=!!String.fromCodePoint,HD=!!Object.fromEntries,zD=!!String.prototype.codePointAt,ID=!!String.prototype.trimStart,VD=!!String.prototype.trimEnd,GD=!!Number.isSafeInteger,qD=GD?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},tg=!0;try{var FD=YT("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");tg=((Wp=FD.exec("a"))===null||Wp===void 0?void 0:Wp[0])==="a"}catch{tg=!1}var Zw=LD?function(a,o,l){return a.startsWith(o,l)}:function(a,o,l){return a.slice(l,l+o.length)===o},ng=jD?String.fromCodePoint:function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];for(var l="",u=a.length,f=0,d;u>f;){if(d=a[f++],d>1114111)throw RangeError(d+" is not a valid code point");l+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return l},Qw=HD?Object.fromEntries:function(a){for(var o={},l=0,u=a;l<u.length;l++){var f=u[l],d=f[0],h=f[1];o[d]=h}return o},$T=zD?function(a,o){return a.codePointAt(o)}:function(a,o){var l=a.length;if(!(o<0||o>=l)){var u=a.charCodeAt(o),f;return u<55296||u>56319||o+1===l||(f=a.charCodeAt(o+1))<56320||f>57343?u:(u-55296<<10)+(f-56320)+65536}},PD=ID?function(a){return a.trimStart()}:function(a){return a.replace(UD,"")},$D=VD?function(a){return a.trimEnd()}:function(a){return a.replace(BD,"")};function YT(n,a){return new RegExp(n,a)}var rg;if(tg){var Ww=YT("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rg=function(a,o){var l;Ww.lastIndex=o;var u=Ww.exec(a);return(l=u[1])!==null&&l!==void 0?l:""}}else rg=function(a,o){for(var l=[];;){var u=$T(a,o);if(u===void 0||XT(u)||QD(u))break;l.push(u),o+=u>=65536?2:1}return ng.apply(void 0,l)};var YD=function(){function n(a,o){o===void 0&&(o={}),this.message=a,this.position={offset:0,line:1,column:1},this.ignoreTag=!!o.ignoreTag,this.locale=o.locale,this.requiresOtherClause=!!o.requiresOtherClause,this.shouldParseSkeletons=!!o.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(a,o,l){for(var u=[];!this.isEOF();){var f=this.char();if(f===123){var d=this.parseArgument(a,l);if(d.err)return d;u.push(d.val)}else{if(f===125&&a>0)break;if(f===35&&(o==="plural"||o==="selectordinal")){var h=this.clonePosition();this.bump(),u.push({type:ut.pound,location:$e(h,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(Ve.UNMATCHED_CLOSING_TAG,$e(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&ag(this.peek()||0)){var d=this.parseTag(a,o);if(d.err)return d;u.push(d.val)}else{var d=this.parseLiteral(a,o);if(d.err)return d;u.push(d.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(a,o){var l=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ut.literal,value:"<".concat(u,"/>"),location:$e(l,this.clonePosition())},err:null};if(this.bumpIf(">")){var f=this.parseMessage(a+1,o,!0);if(f.err)return f;var d=f.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ag(this.char()))return this.error(Ve.INVALID_TAG,$e(h,this.clonePosition()));var p=this.clonePosition(),y=this.parseTagName();return u!==y?this.error(Ve.UNMATCHED_CLOSING_TAG,$e(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ut.tag,value:u,children:d,location:$e(l,this.clonePosition())},err:null}:this.error(Ve.INVALID_TAG,$e(h,this.clonePosition())))}else return this.error(Ve.UNCLOSED_TAG,$e(l,this.clonePosition()))}else return this.error(Ve.INVALID_TAG,$e(l,this.clonePosition()))},n.prototype.parseTagName=function(){var a=this.offset();for(this.bump();!this.isEOF()&&ZD(this.char());)this.bump();return this.message.slice(a,this.offset())},n.prototype.parseLiteral=function(a,o){for(var l=this.clonePosition(),u="";;){var f=this.tryParseQuote(o);if(f){u+=f;continue}var d=this.tryParseUnquoted(a,o);if(d){u+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){u+=h;continue}break}var p=$e(l,this.clonePosition());return{val:{type:ut.literal,value:u,location:p},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!XD(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(a){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(a==="plural"||a==="selectordinal")break;return null;default:return null}this.bump();var o=[this.char()];for(this.bump();!this.isEOF();){var l=this.char();if(l===39)if(this.peek()===39)o.push(39),this.bump();else{this.bump();break}else o.push(l);this.bump()}return ng.apply(void 0,o)},n.prototype.tryParseUnquoted=function(a,o){if(this.isEOF())return null;var l=this.char();return l===60||l===123||l===35&&(o==="plural"||o==="selectordinal")||l===125&&a>0?null:(this.bump(),ng(l))},n.prototype.parseArgument=function(a,o){var l=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ve.EXPECT_ARGUMENT_CLOSING_BRACE,$e(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Ve.EMPTY_ARGUMENT,$e(l,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(Ve.MALFORMED_ARGUMENT,$e(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ve.EXPECT_ARGUMENT_CLOSING_BRACE,$e(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ut.argument,value:u,location:$e(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ve.EXPECT_ARGUMENT_CLOSING_BRACE,$e(l,this.clonePosition())):this.parseArgumentOptions(a,o,u,l);default:return this.error(Ve.MALFORMED_ARGUMENT,$e(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var a=this.clonePosition(),o=this.offset(),l=rg(this.message,o),u=o+l.length;this.bumpTo(u);var f=this.clonePosition(),d=$e(a,f);return{value:l,location:d}},n.prototype.parseArgumentOptions=function(a,o,l,u){var f,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(h){case"":return this.error(Ve.EXPECT_ARGUMENT_TYPE,$e(d,p));case"number":case"date":case"time":{this.bumpSpace();var y=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var g=$D(_.val);if(g.length===0)return this.error(Ve.EXPECT_ARGUMENT_STYLE,$e(this.clonePosition(),this.clonePosition()));var A=$e(v,this.clonePosition());y={style:g,styleLocation:A}}var U=this.tryParseArgumentClose(u);if(U.err)return U;var I=$e(u,this.clonePosition());if(y&&Zw(y==null?void 0:y.style,"::",0)){var j=PD(y.style.slice(2));if(h==="number"){var _=this.parseNumberSkeletonFromString(j,y.styleLocation);return _.err?_:{val:{type:ut.number,value:l,location:I,style:_.val},err:null}}else{if(j.length===0)return this.error(Ve.EXPECT_DATE_TIME_SKELETON,I);var w=j;this.locale&&(w=DD(j,this.locale));var g={type:ss.dateTime,pattern:w,location:y.styleLocation,parsedOptions:this.shouldParseSkeletons?TD(w):{}},R=h==="date"?ut.date:ut.time;return{val:{type:R,value:l,location:I,style:g},err:null}}}return{val:{type:h==="number"?ut.number:h==="date"?ut.date:ut.time,value:l,location:I,style:(f=y==null?void 0:y.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ve.EXPECT_SELECT_ARGUMENT_OPTIONS,$e(T,be({},T)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),D=0;if(h!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(Ve.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$e(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(Ve.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ve.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),N=this.parseIdentifierIfPossible(),D=_.val}var z=this.tryParsePluralOrSelectOptions(a,h,o,N);if(z.err)return z;var U=this.tryParseArgumentClose(u);if(U.err)return U;var X=$e(u,this.clonePosition());return h==="select"?{val:{type:ut.select,value:l,options:Qw(z.val),location:X},err:null}:{val:{type:ut.plural,value:l,options:Qw(z.val),offset:D,pluralType:h==="plural"?"cardinal":"ordinal",location:X},err:null}}default:return this.error(Ve.INVALID_ARGUMENT_TYPE,$e(d,p))}},n.prototype.tryParseArgumentClose=function(a){return this.isEOF()||this.char()!==125?this.error(Ve.EXPECT_ARGUMENT_CLOSING_BRACE,$e(a,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var a=0,o=this.clonePosition();!this.isEOF();){var l=this.char();switch(l){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ve.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$e(u,this.clonePosition()));this.bump();break}case 123:{a+=1,this.bump();break}case 125:{if(a>0)a-=1;else return{val:this.message.slice(o.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(o.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(a,o){var l=[];try{l=ND(a)}catch{return this.error(Ve.INVALID_NUMBER_SKELETON,o)}return{val:{type:ss.number,tokens:l,location:o,parsedOptions:this.shouldParseSkeletons?CD(l):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(a,o,l,u){for(var f,d=!1,h=[],p=new Set,y=u.value,v=u.location;;){if(y.length===0){var _=this.clonePosition();if(o!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(Ve.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ve.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;v=$e(_,this.clonePosition()),y=this.message.slice(_.offset,this.offset())}else break}if(p.has(y))return this.error(o==="select"?Ve.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ve.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);y==="other"&&(d=!0),this.bumpSpace();var A=this.clonePosition();if(!this.bumpIf("{"))return this.error(o==="select"?Ve.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ve.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,$e(this.clonePosition(),this.clonePosition()));var U=this.parseMessage(a+1,o,l);if(U.err)return U;var I=this.tryParseArgumentClose(A);if(I.err)return I;h.push([y,{value:U.val,location:$e(A,this.clonePosition())}]),p.add(y),this.bumpSpace(),f=this.parseIdentifierIfPossible(),y=f.value,v=f.location}return h.length===0?this.error(o==="select"?Ve.EXPECT_SELECT_ARGUMENT_SELECTOR:Ve.EXPECT_PLURAL_ARGUMENT_SELECTOR,$e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(Ve.MISSING_OTHER_CLAUSE,$e(this.clonePosition(),this.clonePosition())):{val:h,err:null}},n.prototype.tryParseDecimalInteger=function(a,o){var l=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(l=-1);for(var f=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)f=!0,d=d*10+(h-48),this.bump();else break}var p=$e(u,this.clonePosition());return f?(d*=l,qD(d)?{val:d,err:null}:this.error(o,p)):this.error(a,p)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");var o=$T(this.message,a);if(o===void 0)throw Error("Offset ".concat(a," is at invalid UTF-16 code unit boundary"));return o},n.prototype.error=function(a,o){return{val:null,err:{kind:a,message:this.message,location:o}}},n.prototype.bump=function(){if(!this.isEOF()){var a=this.char();a===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}},n.prototype.bumpIf=function(a){if(Zw(this.message,a,this.offset())){for(var o=0;o<a.length;o++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(a){var o=this.offset(),l=this.message.indexOf(a,o);return l>=0?(this.bumpTo(l),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(a){if(this.offset()>a)throw Error("targetOffset ".concat(a," must be greater than or equal to the current offset ").concat(this.offset()));for(a=Math.min(a,this.message.length);;){var o=this.offset();if(o===a)break;if(o>a)throw Error("targetOffset ".concat(a," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&XT(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var a=this.char(),o=this.offset(),l=this.message.charCodeAt(o+(a>=65536?2:1));return l??null},n}();function ag(n){return n>=97&&n<=122||n>=65&&n<=90}function XD(n){return ag(n)||n===47}function ZD(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function XT(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function QD(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function ig(n){n.forEach(function(a){if(delete a.location,HT(a)||zT(a))for(var o in a.options)delete a.options[o].location,ig(a.options[o].value);else BT(a)&&VT(a.style)||(LT(a)||jT(a))&&eg(a.style)?delete a.style.location:IT(a)&&ig(a.children)})}function WD(n,a){a===void 0&&(a={}),a=be({shouldParseSkeletons:!0,requiresOtherClause:!0},a);var o=new YD(n,a).parse();if(o.err){var l=SyntaxError(Ve[o.err.kind]);throw l.location=o.err.location,l.originalMessage=o.err.message,l}return a!=null&&a.captureLocation||ig(o.val),o.val}var Hr;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Hr||(Hr={}));var ri=function(n){Kn(a,n);function a(o,l,u){var f=n.call(this,o)||this;return f.code=l,f.originalMessage=u,f}return a.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},a}(Error),Kw=function(n){Kn(a,n);function a(o,l,u,f){return n.call(this,'Invalid values for "'.concat(o,'": "').concat(l,'". Options are "').concat(Object.keys(u).join('", "'),'"'),Hr.INVALID_VALUE,f)||this}return a}(ri),KD=function(n){Kn(a,n);function a(o,l,u){return n.call(this,'Value for "'.concat(o,'" must be of type ').concat(l),Hr.INVALID_VALUE,u)||this}return a}(ri),JD=function(n){Kn(a,n);function a(o,l){return n.call(this,'The intl string context variable "'.concat(o,'" was not provided to the string "').concat(l,'"'),Hr.MISSING_VALUE,l)||this}return a}(ri),an;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(an||(an={}));function eM(n){return n.length<2?n:n.reduce(function(a,o){var l=a[a.length-1];return!l||l.type!==an.literal||o.type!==an.literal?a.push(o):l.value+=o.value,a},[])}function ZT(n){return typeof n=="function"}function Lf(n,a,o,l,u,f,d){if(n.length===1&&Pw(n[0]))return[{type:an.literal,value:n[0].value}];for(var h=[],p=0,y=n;p<y.length;p++){var v=y[p];if(Pw(v)){h.push({type:an.literal,value:v.value});continue}if(SD(v)){typeof f=="number"&&h.push({type:an.literal,value:o.getNumberFormat(a).format(f)});continue}var _=v.value;if(!(u&&_ in u))throw new JD(_,d);var g=u[_];if(wD(v)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),h.push({type:typeof g=="string"?an.literal:an.object,value:g});continue}if(LT(v)){var A=typeof v.style=="string"?l.date[v.style]:eg(v.style)?v.style.parsedOptions:void 0;h.push({type:an.literal,value:o.getDateTimeFormat(a,A).format(g)});continue}if(jT(v)){var A=typeof v.style=="string"?l.time[v.style]:eg(v.style)?v.style.parsedOptions:l.time.medium;h.push({type:an.literal,value:o.getDateTimeFormat(a,A).format(g)});continue}if(BT(v)){var A=typeof v.style=="string"?l.number[v.style]:VT(v.style)?v.style.parsedOptions:void 0;A&&A.scale&&(g=g*(A.scale||1)),h.push({type:an.literal,value:o.getNumberFormat(a,A).format(g)});continue}if(IT(v)){var U=v.children,I=v.value,j=u[I];if(!ZT(j))throw new KD(I,"function",d);var w=Lf(U,a,o,l,u,f),R=j(w.map(function(D){return D.value}));Array.isArray(R)||(R=[R]),h.push.apply(h,R.map(function(D){return{type:typeof D=="string"?an.literal:an.object,value:D}}))}if(HT(v)){var T=v.options[g]||v.options.other;if(!T)throw new Kw(v.value,g,Object.keys(v.options),d);h.push.apply(h,Lf(T.value,a,o,l,u));continue}if(zT(v)){var T=v.options["=".concat(g)];if(!T){if(!Intl.PluralRules)throw new ri(`Intl.PluralRules is not available in this environment.
|
|
290
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
291
|
+
`,Hr.MISSING_INTL_API,d);var N=o.getPluralRules(a,{type:v.pluralType}).select(g-(v.offset||0));T=v.options[N]||v.options.other}if(!T)throw new Kw(v.value,g,Object.keys(v.options),d);h.push.apply(h,Lf(T.value,a,o,l,u,g-(v.offset||0)));continue}}return eM(h)}function tM(n,a){return a?be(be(be({},n||{}),a||{}),Object.keys(n).reduce(function(o,l){return o[l]=be(be({},n[l]),a[l]||{}),o},{})):n}function nM(n,a){return a?Object.keys(n).reduce(function(o,l){return o[l]=tM(n[l],a[l]),o},be({},n)):n}function Kp(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,o){n[a]=o}}}}}function rM(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Mr(function(){for(var a,o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new((a=Intl.NumberFormat).bind.apply(a,Br([void 0],o,!1)))},{cache:Kp(n.number),strategy:Ur.variadic}),getDateTimeFormat:Mr(function(){for(var a,o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new((a=Intl.DateTimeFormat).bind.apply(a,Br([void 0],o,!1)))},{cache:Kp(n.dateTime),strategy:Ur.variadic}),getPluralRules:Mr(function(){for(var a,o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new((a=Intl.PluralRules).bind.apply(a,Br([void 0],o,!1)))},{cache:Kp(n.pluralRules),strategy:Ur.variadic})}}var QT=function(){function n(a,o,l,u){o===void 0&&(o=n.defaultLocale);var f=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(p){var y=f.formatToParts(p);if(y.length===1)return y[0].value;var v=y.reduce(function(_,g){return!_.length||g.type!==an.literal||typeof _[_.length-1]!="string"?_.push(g.value):_[_.length-1]+=g.value,_},[]);return v.length<=1?v[0]||"":v},this.formatToParts=function(p){return Lf(f.ast,f.locales,f.formatters,f.formats,p,void 0,f.message)},this.resolvedOptions=function(){var p;return{locale:((p=f.resolvedLocale)===null||p===void 0?void 0:p.toString())||Intl.NumberFormat.supportedLocalesOf(f.locales)[0]}},this.getAst=function(){return f.ast},this.locales=o,this.resolvedLocale=n.resolveLocale(o),typeof a=="string"){if(this.message=a,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=u||{};d.formatters;var h=Wf(d,["formatters"]);this.ast=n.__parse(a,be(be({},h),{locale:this.resolvedLocale}))}else this.ast=a;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=nM(n.formats,l),this.formatters=u&&u.formatters||rM(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(a){if(!(typeof Intl.Locale>"u")){var o=Intl.NumberFormat.supportedLocalesOf(a);return o.length>0?new Intl.Locale(o[0]):new Intl.Locale(typeof a=="string"?a:a[0])}},n.__parse=WD,n.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},n}(),Ki;(function(n){n.FORMAT_ERROR="FORMAT_ERROR",n.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",n.INVALID_CONFIG="INVALID_CONFIG",n.MISSING_DATA="MISSING_DATA",n.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Ki||(Ki={}));var rc=function(n){Kn(a,n);function a(o,l,u){var f=this,d=u?u instanceof Error?u:new Error(String(u)):void 0;return f=n.call(this,"[@formatjs/intl Error ".concat(o,"] ").concat(l,`
|
|
292
|
+
`).concat(d?`
|
|
293
|
+
`.concat(d.message,`
|
|
294
|
+
`).concat(d.stack):""))||this,f.code=o,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(f,a),f}return a}(Error),aM=function(n){Kn(a,n);function a(o,l){return n.call(this,Ki.UNSUPPORTED_FORMATTER,o,l)||this}return a}(rc),iM=function(n){Kn(a,n);function a(o,l){return n.call(this,Ki.INVALID_CONFIG,o,l)||this}return a}(rc),Jw=function(n){Kn(a,n);function a(o,l){return n.call(this,Ki.MISSING_DATA,o,l)||this}return a}(rc),Jn=function(n){Kn(a,n);function a(o,l,u){var f=n.call(this,Ki.FORMAT_ERROR,"".concat(o,`
|
|
295
|
+
Locale: `).concat(l,`
|
|
296
|
+
`),u)||this;return f.locale=l,f}return a}(rc),Jp=function(n){Kn(a,n);function a(o,l,u,f){var d=n.call(this,"".concat(o,`
|
|
297
|
+
MessageID: `).concat(u==null?void 0:u.id,`
|
|
298
|
+
Default Message: `).concat(u==null?void 0:u.defaultMessage,`
|
|
299
|
+
Description: `).concat(u==null?void 0:u.description,`
|
|
300
|
+
`),l,f)||this;return d.descriptor=u,d.locale=l,d}return a}(Jn),oM=function(n){Kn(a,n);function a(o,l){var u=n.call(this,Ki.MISSING_TRANSLATION,'Missing message: "'.concat(o.id,'" for locale "').concat(l,'", using ').concat(o.defaultMessage?"default message (".concat(typeof o.defaultMessage=="string"?o.defaultMessage:o.defaultMessage.map(function(f){var d;return(d=f.value)!==null&&d!==void 0?d:JSON.stringify(f)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=o,u}return a}(rc);function sM(n,a,o){if(o===void 0&&(o=Error),!n)throw new o(a)}function cs(n,a,o){return o===void 0&&(o={}),a.reduce(function(l,u){return u in n?l[u]=n[u]:u in o&&(l[u]=o[u]),l},{})}var lM=function(n){console.error(n)},cM=function(n){console.warn(n)},WT={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:lM,onWarn:cM};function KT(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Gi(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,o){n[a]=o}}}}}function uM(n){n===void 0&&(n=KT());var a=Intl.RelativeTimeFormat,o=Intl.ListFormat,l=Intl.DisplayNames,u=Mr(function(){for(var h,p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];return new((h=Intl.DateTimeFormat).bind.apply(h,Br([void 0],p,!1)))},{cache:Gi(n.dateTime),strategy:Ur.variadic}),f=Mr(function(){for(var h,p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];return new((h=Intl.NumberFormat).bind.apply(h,Br([void 0],p,!1)))},{cache:Gi(n.number),strategy:Ur.variadic}),d=Mr(function(){for(var h,p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];return new((h=Intl.PluralRules).bind.apply(h,Br([void 0],p,!1)))},{cache:Gi(n.pluralRules),strategy:Ur.variadic});return{getDateTimeFormat:u,getNumberFormat:f,getMessageFormat:Mr(function(h,p,y,v){return new QT(h,p,y,be({formatters:{getNumberFormat:f,getDateTimeFormat:u,getPluralRules:d}},v||{}))},{cache:Gi(n.message),strategy:Ur.variadic}),getRelativeTimeFormat:Mr(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(a.bind.apply(a,Br([void 0],h,!1)))},{cache:Gi(n.relativeTime),strategy:Ur.variadic}),getPluralRules:d,getListFormat:Mr(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(o.bind.apply(o,Br([void 0],h,!1)))},{cache:Gi(n.list),strategy:Ur.variadic}),getDisplayNames:Mr(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(l.bind.apply(l,Br([void 0],h,!1)))},{cache:Gi(n.displayNames),strategy:Ur.variadic})}}function Ug(n,a,o,l){var u=n&&n[a],f;if(u&&(f=u[o]),f)return f;l(new aM("No ".concat(a," format named: ").concat(o)))}function sf(n,a){return Object.keys(n).reduce(function(o,l){return o[l]=be({timeZone:a},n[l]),o},{})}function eS(n,a){var o=Object.keys(be(be({},n),a));return o.reduce(function(l,u){return l[u]=be(be({},n[u]||{}),a[u]||{}),l},{})}function tS(n,a){if(!a)return n;var o=QT.formats;return be(be(be({},o),n),{date:eS(sf(o.date,a),sf(n.date||{},a)),time:eS(sf(o.time,a),sf(n.time||{},a))})}var og=function(n,a,o,l,u){var f=n.locale,d=n.formats,h=n.messages,p=n.defaultLocale,y=n.defaultFormats,v=n.fallbackOnEmptyString,_=n.onError,g=n.timeZone,A=n.defaultRichTextElements;o===void 0&&(o={id:""});var U=o.id,I=o.defaultMessage;sM(!!U,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var j=String(U),w=h&&Object.prototype.hasOwnProperty.call(h,j)&&h[j];if(Array.isArray(w)&&w.length===1&&w[0].type===ut.literal)return w[0].value;if(!l&&w&&typeof w=="string"&&!A)return w.replace(/'\{(.*?)\}'/gi,"{$1}");if(l=be(be({},A),l||{}),d=tS(d,g),y=tS(y,g),!w){if(v===!1&&w==="")return w;if((!I||f&&f.toLowerCase()!==p.toLowerCase())&&_(new oM(o,f)),I)try{var R=a.getMessageFormat(I,p,y,u);return R.format(l)}catch(T){return _(new Jp('Error formatting default message for: "'.concat(j,'", rendering default message verbatim'),f,o,T)),typeof I=="string"?I:j}return j}try{var R=a.getMessageFormat(w,f,d,be({formatters:a},u||{}));return R.format(l)}catch(T){_(new Jp('Error formatting message: "'.concat(j,'", using ').concat(I?"default message":"id"," as fallback."),f,o,T))}if(I)try{var R=a.getMessageFormat(I,p,y,u);return R.format(l)}catch(T){_(new Jp('Error formatting the default message for: "'.concat(j,'", rendering message verbatim'),f,o,T))}return typeof w=="string"?w:typeof I=="string"?I:j},fM=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ac(n,a,o,l){var u=n.locale,f=n.formats,d=n.onError,h=n.timeZone;l===void 0&&(l={});var p=l.format,y=be(be({},h&&{timeZone:h}),p&&Ug(f,a,p,d)),v=cs(l,fM,y);return a==="time"&&!v.hour&&!v.minute&&!v.second&&!v.timeStyle&&!v.dateStyle&&(v=be(be({},v),{hour:"numeric",minute:"numeric"})),o(u,v)}function dM(n,a){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];var u=o[0],f=o[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return ac(n,"date",a,d).format(h)}catch(p){n.onError(new Jn("Error formatting date.",n.locale,p))}return String(h)}function hM(n,a){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];var u=o[0],f=o[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return ac(n,"time",a,d).format(h)}catch(p){n.onError(new Jn("Error formatting time.",n.locale,p))}return String(h)}function mM(n,a){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];var u=o[0],f=o[1],d=o[2],h=d===void 0?{}:d,p=typeof u=="string"?new Date(u||0):u,y=typeof f=="string"?new Date(f||0):f;try{return ac(n,"dateTimeRange",a,h).formatRange(p,y)}catch(v){n.onError(new Jn("Error formatting date time range.",n.locale,v))}return String(p)}function pM(n,a){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];var u=o[0],f=o[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return ac(n,"date",a,d).formatToParts(h)}catch(p){n.onError(new Jn("Error formatting date.",n.locale,p))}return[]}function bM(n,a){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];var u=o[0],f=o[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return ac(n,"time",a,d).formatToParts(h)}catch(p){n.onError(new Jn("Error formatting time.",n.locale,p))}return[]}var gM=["style","type","fallback","languageDisplay"];function yM(n,a,o,l){var u=n.locale,f=n.onError,d=Intl.DisplayNames;d||f(new ri(`Intl.DisplayNames is not available in this environment.
|
|
301
|
+
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
302
|
+
`,Hr.MISSING_INTL_API));var h=cs(l,gM);try{return a(u,h).of(o)}catch(p){f(new Jn("Error formatting display name.",u,p))}}var vM=["type","style"],nS=Date.now();function _M(n){return"".concat(nS,"_").concat(n,"_").concat(nS)}function EM(n,a,o,l){l===void 0&&(l={});var u=JT(n,a,o,l).reduce(function(f,d){var h=d.value;return typeof h!="string"?f.push(h):typeof f[f.length-1]=="string"?f[f.length-1]+=h:f.push(h),f},[]);return u.length===1?u[0]:u.length===0?"":u}function JT(n,a,o,l){var u=n.locale,f=n.onError;l===void 0&&(l={});var d=Intl.ListFormat;d||f(new ri(`Intl.ListFormat is not available in this environment.
|
|
303
|
+
Try polyfilling it using "@formatjs/intl-listformat"
|
|
304
|
+
`,Hr.MISSING_INTL_API));var h=cs(l,vM);try{var p={},y=o.map(function(v,_){if(typeof v=="object"){var g=_M(_);return p[g]=v,g}return String(v)});return a(u,h).formatToParts(y).map(function(v){return v.type==="literal"?v:be(be({},v),{value:p[v.value]||v.value})})}catch(v){f(new Jn("Error formatting list.",u,v))}return o}var wM=["type"];function SM(n,a,o,l){var u=n.locale,f=n.onError;l===void 0&&(l={}),Intl.PluralRules||f(new ri(`Intl.PluralRules is not available in this environment.
|
|
305
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
306
|
+
`,Hr.MISSING_INTL_API));var d=cs(l,wM);try{return a(u,d).select(o)}catch(h){f(new Jn("Error formatting plural.",u,h))}return"other"}var xM=["numeric","style"];function TM(n,a,o){var l=n.locale,u=n.formats,f=n.onError;o===void 0&&(o={});var d=o.format,h=!!d&&Ug(u,"relative",d,f)||{},p=cs(o,xM,h);return a(l,p)}function kM(n,a,o,l,u){u===void 0&&(u={}),l||(l="second");var f=Intl.RelativeTimeFormat;f||n.onError(new ri(`Intl.RelativeTimeFormat is not available in this environment.
|
|
307
|
+
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
308
|
+
`,Hr.MISSING_INTL_API));try{return TM(n,a,u).format(o,l)}catch(d){n.onError(new Jn("Error formatting relative time.",n.locale,d))}return String(o)}var NM=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function ek(n,a,o){var l=n.locale,u=n.formats,f=n.onError;o===void 0&&(o={});var d=o.format,h=d&&Ug(u,"number",d,f)||{},p=cs(o,NM,h);return a(l,p)}function RM(n,a,o,l){l===void 0&&(l={});try{return ek(n,a,l).format(o)}catch(u){n.onError(new Jn("Error formatting number.",n.locale,u))}return String(o)}function AM(n,a,o,l){l===void 0&&(l={});try{return ek(n,a,l).formatToParts(o)}catch(u){n.onError(new Jn("Error formatting number.",n.locale,u))}return[]}function OM(n){var a=n?n[Object.keys(n)[0]]:void 0;return typeof a=="string"}function CM(n){n.onWarn&&n.defaultRichTextElements&&OM(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
309
|
+
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
310
|
+
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function DM(n,a){var o=uM(a),l=be(be({},WT),n),u=l.locale,f=l.defaultLocale,d=l.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&d?d(new Jw('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&d&&d(new Jw('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new iM('"locale" was not configured, using "'.concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),l.locale=l.defaultLocale||"en"),CM(l),be(be({},l),{formatters:o,formatNumber:RM.bind(null,l,o.getNumberFormat),formatNumberToParts:AM.bind(null,l,o.getNumberFormat),formatRelativeTime:kM.bind(null,l,o.getRelativeTimeFormat),formatDate:dM.bind(null,l,o.getDateTimeFormat),formatDateToParts:pM.bind(null,l,o.getDateTimeFormat),formatTime:hM.bind(null,l,o.getDateTimeFormat),formatDateTimeRange:mM.bind(null,l,o.getDateTimeFormat),formatTimeToParts:bM.bind(null,l,o.getDateTimeFormat),formatPlural:SM.bind(null,l,o.getPluralRules),formatMessage:og.bind(null,l,o),$t:og.bind(null,l,o),formatList:EM.bind(null,l,o.getListFormat),formatListToParts:JT.bind(null,l,o.getListFormat),formatDisplayName:yM.bind(null,l,o.getDisplayNames)})}function MM(n,a,o){if(o===void 0&&(o=Error),!n)throw new o(a)}function tk(n){MM(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var nk=be(be({},WT),{textComponent:V.Fragment}),UM={key:42},BM=function(n){return V.isValidElement(n)?V.createElement(V.Fragment,UM,n):n},LM=function(n){var a;return(a=V.Children.map(n,BM))!==null&&a!==void 0?a:[]};function jM(n){return function(a){return n(V.Children.toArray(a))}}function HM(n,a){if(n===a)return!0;if(!n||!a)return!1;var o=Object.keys(n),l=Object.keys(a),u=o.length;if(l.length!==u)return!1;for(var f=0;f<u;f++){var d=o[f];if(n[d]!==a[d]||!Object.prototype.hasOwnProperty.call(a,d))return!1}return!0}var eb={exports:{}},Ke={},rS;function zM(){if(rS)return Ke;rS=1;/** @license React v16.13.1
|
|
311
|
+
* react-is.development.js
|
|
312
|
+
*
|
|
313
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
314
|
+
*
|
|
315
|
+
* This source code is licensed under the MIT license found in the
|
|
316
|
+
* LICENSE file in the root directory of this source tree.
|
|
317
|
+
*/return function(){var n=typeof Symbol=="function"&&Symbol.for,a=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,h=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,y=n?Symbol.for("react.concurrent_mode"):60111,v=n?Symbol.for("react.forward_ref"):60112,_=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,A=n?Symbol.for("react.memo"):60115,U=n?Symbol.for("react.lazy"):60116,I=n?Symbol.for("react.block"):60121,j=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,R=n?Symbol.for("react.scope"):60119;function T(oe){return typeof oe=="string"||typeof oe=="function"||oe===l||oe===y||oe===f||oe===u||oe===_||oe===g||typeof oe=="object"&&oe!==null&&(oe.$$typeof===U||oe.$$typeof===A||oe.$$typeof===d||oe.$$typeof===h||oe.$$typeof===v||oe.$$typeof===j||oe.$$typeof===w||oe.$$typeof===R||oe.$$typeof===I)}function N(oe){if(typeof oe=="object"&&oe!==null){var Rt=oe.$$typeof;switch(Rt){case a:var Ir=oe.type;switch(Ir){case p:case y:case l:case f:case u:case _:return Ir;default:var ya=Ir&&Ir.$$typeof;switch(ya){case h:case v:case U:case A:case d:return ya;default:return Rt}}case o:return Rt}}}var D=p,z=y,X=h,re=d,Z=a,ee=v,Q=l,ie=U,ce=A,Ye=o,Ce=f,W=u,he=_,ue=!1;function Te(oe){return ue||(ue=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Y(oe)||N(oe)===p}function Y(oe){return N(oe)===y}function me(oe){return N(oe)===h}function le(oe){return N(oe)===d}function Ee(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===a}function qe(oe){return N(oe)===v}function st(oe){return N(oe)===l}function ke(oe){return N(oe)===U}function sn(oe){return N(oe)===A}function at(oe){return N(oe)===o}function ft(oe){return N(oe)===f}function Dt(oe){return N(oe)===u}function pr(oe){return N(oe)===_}Ke.AsyncMode=D,Ke.ConcurrentMode=z,Ke.ContextConsumer=X,Ke.ContextProvider=re,Ke.Element=Z,Ke.ForwardRef=ee,Ke.Fragment=Q,Ke.Lazy=ie,Ke.Memo=ce,Ke.Portal=Ye,Ke.Profiler=Ce,Ke.StrictMode=W,Ke.Suspense=he,Ke.isAsyncMode=Te,Ke.isConcurrentMode=Y,Ke.isContextConsumer=me,Ke.isContextProvider=le,Ke.isElement=Ee,Ke.isForwardRef=qe,Ke.isFragment=st,Ke.isLazy=ke,Ke.isMemo=sn,Ke.isPortal=at,Ke.isProfiler=ft,Ke.isStrictMode=Dt,Ke.isSuspense=pr,Ke.isValidElementType=T,Ke.typeOf=N}(),Ke}var aS;function IM(){return aS||(aS=1,eb.exports=zM()),eb.exports}var tb,iS;function VM(){if(iS)return tb;iS=1;var n=IM(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=l,f[n.Memo]=u;function d(U){return n.isMemo(U)?u:f[U.$$typeof]||a}var h=Object.defineProperty,p=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,g=Object.prototype;function A(U,I,j){if(typeof I!="string"){if(g){var w=_(I);w&&w!==g&&A(U,w,j)}var R=p(I);y&&(R=R.concat(y(I)));for(var T=d(U),N=d(I),D=0;D<R.length;++D){var z=R[D];if(!o[z]&&!(j&&j[z])&&!(N&&N[z])&&!(T&&T[z])){var X=v(I,z);try{h(U,z,X)}catch{}}}}return U}return tb=A,tb}VM();var Bg=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=V.createContext(null)):V.createContext(null);Bg.Consumer;var GM=Bg.Provider,qM=GM,FM=Bg;function Kf(){var n=V.useContext(FM);return tk(n),n}var sg;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(sg||(sg={}));var lg;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(lg||(lg={}));function rk(n){var a=function(o){var l=Kf(),u=o.value,f=o.children,d=Wf(o,["value","children"]),h=typeof u=="string"?new Date(u||0):u,p=n==="formatDate"?l.formatDateToParts(h,d):l.formatTimeToParts(h,d);return f(p)};return a.displayName=lg[n],a}function ic(n){var a=function(o){var l=Kf(),u=o.value,f=o.children,d=Wf(o,["value","children"]),h=l[n](u,d);if(typeof f=="function")return f(h);var p=l.textComponent||V.Fragment;return V.createElement(p,null,h)};return a.displayName=sg[n],a}function ak(n){return n&&Object.keys(n).reduce(function(a,o){var l=n[o];return a[o]=ZT(l)?jM(l):l,a},{})}var oS=function(n,a,o,l){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var d=ak(l),h=og.apply(void 0,Br([n,a,o,d],u,!1));return Array.isArray(h)?LM(h):h},sS=function(n,a){var o=n.defaultRichTextElements,l=Wf(n,["defaultRichTextElements"]),u=ak(o),f=DM(be(be(be({},nk),l),{defaultRichTextElements:u}),a),d={locale:f.locale,timeZone:f.timeZone,fallbackOnEmptyString:f.fallbackOnEmptyString,formats:f.formats,defaultLocale:f.defaultLocale,defaultFormats:f.defaultFormats,messages:f.messages,onError:f.onError,defaultRichTextElements:u};return be(be({},f),{formatMessage:oS.bind(null,d,f.formatters),$t:oS.bind(null,d,f.formatters)})};function nb(n){return{locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,textComponent:n.textComponent,messages:n.messages,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,onError:n.onError,onWarn:n.onWarn,wrapRichTextChunksInFragment:n.wrapRichTextChunksInFragment,defaultRichTextElements:n.defaultRichTextElements}}var PM=function(n){Kn(a,n);function a(){var o=n!==null&&n.apply(this,arguments)||this;return o.cache=KT(),o.state={cache:o.cache,intl:sS(nb(o.props),o.cache),prevConfig:nb(o.props)},o}return a.getDerivedStateFromProps=function(o,l){var u=l.prevConfig,f=l.cache,d=nb(o);return HM(u,d)?null:{intl:sS(d,f),prevConfig:d}},a.prototype.render=function(){return tk(this.state.intl),V.createElement(qM,{value:this.state.intl},this.props.children)},a.displayName="IntlProvider",a.defaultProps=nk,a}(V.PureComponent);ic("formatDate");ic("formatTime");ic("formatNumber");ic("formatList");ic("formatDisplayName");rk("formatDate");rk("formatTime");const $M="_app_1rj0t_1",YM={app:$M},us=cD,On=dD,ik="%[a-f0-9]{2}",lS=new RegExp("("+ik+")|([^%]+?)","gi"),cS=new RegExp("("+ik+")+","gi");function cg(n,a){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;a=a||1;const o=n.slice(0,a),l=n.slice(a);return Array.prototype.concat.call([],cg(o),cg(l))}function XM(n){try{return decodeURIComponent(n)}catch{let a=n.match(lS)||[];for(let o=1;o<a.length;o++)n=cg(a,o).join(""),a=n.match(lS)||[];return n}}function ZM(n){const a={"%FE%FF":"��","%FF%FE":"��"};let o=cS.exec(n);for(;o;){try{a[o[0]]=decodeURIComponent(o[0])}catch{const u=XM(o[0]);u!==o[0]&&(a[o[0]]=u)}o=cS.exec(n)}a["%C2"]="�";const l=Object.keys(a);for(const u of l)n=n.replace(new RegExp(u,"g"),a[u]);return n}function QM(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return ZM(n)}}function WM(n,a){const o={};if(Array.isArray(a))for(const l of a){const u=Object.getOwnPropertyDescriptor(n,l);u!=null&&u.enumerable&&Object.defineProperty(o,l,u)}else for(const l of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,l);if(u.enumerable){const f=n[l];a(l,f,n)&&Object.defineProperty(o,l,u)}}return o}function ok(n,a){if(!(typeof n=="string"&&typeof a=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||a==="")return[];const o=n.indexOf(a);return o===-1?[]:[n.slice(0,o),n.slice(o+a.length)]}const KM=n=>n==null,JM=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`),ug=Symbol("encodeFragmentIdentifier");function e3(n){switch(n.arrayFormat){case"index":return a=>(o,l)=>{const u=o.length;return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?o:l===null?[...o,[kt(a,n),"[",u,"]"].join("")]:[...o,[kt(a,n),"[",kt(u,n),"]=",kt(l,n)].join("")]};case"bracket":return a=>(o,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?o:l===null?[...o,[kt(a,n),"[]"].join("")]:[...o,[kt(a,n),"[]=",kt(l,n)].join("")];case"colon-list-separator":return a=>(o,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?o:l===null?[...o,[kt(a,n),":list="].join("")]:[...o,[kt(a,n),":list=",kt(l,n)].join("")];case"comma":case"separator":case"bracket-separator":{const a=n.arrayFormat==="bracket-separator"?"[]=":"=";return o=>(l,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?l:(u=u===null?"":u,l.length===0?[[kt(o,n),a,kt(u,n)].join("")]:[[l,kt(u,n)].join(n.arrayFormatSeparator)])}default:return a=>(o,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?o:l===null?[...o,kt(a,n)]:[...o,[kt(a,n),"=",kt(l,n)].join("")]}}function t3(n){let a;switch(n.arrayFormat){case"index":return(o,l,u)=>{if(a=/\[(\d*)]$/.exec(o),o=o.replace(/\[\d*]$/,""),!a){u[o]=l;return}u[o]===void 0&&(u[o]={}),u[o][a[1]]=l};case"bracket":return(o,l,u)=>{if(a=/(\[])$/.exec(o),o=o.replace(/\[]$/,""),!a){u[o]=l;return}if(u[o]===void 0){u[o]=[l];return}u[o]=[...u[o],l]};case"colon-list-separator":return(o,l,u)=>{if(a=/(:list)$/.exec(o),o=o.replace(/:list$/,""),!a){u[o]=l;return}if(u[o]===void 0){u[o]=[l];return}u[o]=[...u[o],l]};case"comma":case"separator":return(o,l,u)=>{const f=typeof l=="string"&&l.includes(n.arrayFormatSeparator),d=typeof l=="string"&&!f&&ma(l,n).includes(n.arrayFormatSeparator);l=d?ma(l,n):l;const h=f||d?l.split(n.arrayFormatSeparator).map(p=>ma(p,n)):l===null?l:ma(l,n);u[o]=h};case"bracket-separator":return(o,l,u)=>{const f=/(\[])$/.test(o);if(o=o.replace(/\[]$/,""),!f){u[o]=l&&ma(l,n);return}const d=l===null?[]:ma(l,n).split(n.arrayFormatSeparator);if(u[o]===void 0){u[o]=d;return}u[o]=[...u[o],...d]};default:return(o,l,u)=>{if(u[o]===void 0){u[o]=l;return}u[o]=[...[u[o]].flat(),l]}}}function sk(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function kt(n,a){return a.encode?a.strict?JM(n):encodeURIComponent(n):n}function ma(n,a){return a.decode?QM(n):n}function lk(n){return Array.isArray(n)?n.sort():typeof n=="object"?lk(Object.keys(n)).sort((a,o)=>Number(a)-Number(o)).map(a=>n[a]):n}function ck(n){const a=n.indexOf("#");return a!==-1&&(n=n.slice(0,a)),n}function n3(n){let a="";const o=n.indexOf("#");return o!==-1&&(a=n.slice(o)),a}function uS(n,a,o){return o==="string"&&typeof n=="string"?n:typeof o=="function"&&typeof n=="string"?o(n):o==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":o==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":o==="string[]"&&a.arrayFormat!=="none"&&typeof n=="string"?[n]:o==="number[]"&&a.arrayFormat!=="none"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?[Number(n)]:o==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):a.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":a.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Lg(n){n=ck(n);const a=n.indexOf("?");return a===-1?"":n.slice(a+1)}function jg(n,a){a={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...a},sk(a.arrayFormatSeparator);const o=t3(a),l=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return l;for(const u of n.split("&")){if(u==="")continue;const f=a.decode?u.replaceAll("+"," "):u;let[d,h]=ok(f,"=");d===void 0&&(d=f),h=h===void 0?null:["comma","separator","bracket-separator"].includes(a.arrayFormat)?h:ma(h,a),o(ma(d,a),h,l)}for(const[u,f]of Object.entries(l))if(typeof f=="object"&&f!==null&&a.types[u]!=="string")for(const[d,h]of Object.entries(f)){const p=a.types[u]?a.types[u].replace("[]",""):void 0;f[d]=uS(h,a,p)}else typeof f=="object"&&f!==null&&a.types[u]==="string"?l[u]=Object.values(f).join(a.arrayFormatSeparator):l[u]=uS(f,a,a.types[u]);return a.sort===!1?l:(a.sort===!0?Object.keys(l).sort():Object.keys(l).sort(a.sort)).reduce((u,f)=>{const d=l[f];return u[f]=d&&typeof d=="object"&&!Array.isArray(d)?lk(d):d,u},Object.create(null))}function uk(n,a){if(!n)return"";a={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...a},sk(a.arrayFormatSeparator);const o=d=>a.skipNull&&KM(n[d])||a.skipEmptyString&&n[d]==="",l=e3(a),u={};for(const[d,h]of Object.entries(n))o(d)||(u[d]=h);const f=Object.keys(u);return a.sort!==!1&&f.sort(a.sort),f.map(d=>{const h=n[d];return h===void 0?"":h===null?kt(d,a):Array.isArray(h)?h.length===0&&a.arrayFormat==="bracket-separator"?kt(d,a)+"[]":h.reduce(l(d),[]).join("&"):kt(d,a)+"="+kt(h,a)}).filter(d=>d.length>0).join("&")}function fk(n,a){var u;a={decode:!0,...a};let[o,l]=ok(n,"#");return o===void 0&&(o=n),{url:((u=o==null?void 0:o.split("?"))==null?void 0:u[0])??"",query:jg(Lg(n),a),...a&&a.parseFragmentIdentifier&&l?{fragmentIdentifier:ma(l,a)}:{}}}function dk(n,a){a={encode:!0,strict:!0,[ug]:!0,...a};const o=ck(n.url).split("?")[0]||"",l=Lg(n.url),u={...jg(l,{sort:!1,...a}),...n.query};let f=uk(u,a);f&&(f=`?${f}`);let d=n3(n.url);if(typeof n.fragmentIdentifier=="string"){const h=new URL(o);h.hash=n.fragmentIdentifier,d=a[ug]?h.hash:`#${n.fragmentIdentifier}`}return`${o}${f}${d}`}function hk(n,a,o){o={parseFragmentIdentifier:!0,[ug]:!1,...o};const{url:l,query:u,fragmentIdentifier:f}=fk(n,o);return dk({url:l,query:WM(u,a),fragmentIdentifier:f},o)}function r3(n,a,o){const l=Array.isArray(a)?u=>!a.includes(u):(u,f)=>!a(u,f);return hk(n,l,o)}const Jf=Object.freeze(Object.defineProperty({__proto__:null,exclude:r3,extract:Lg,parse:jg,parseUrl:fk,pick:hk,stringify:uk,stringifyUrl:dk},Symbol.toStringTag,{value:"Module"}));var ur={},fr={},et={},lf={},ve={},fS;function Mn(){return fS||(fS=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.GUEST_LOCALE_CHANGED=ve.DRAWER_CLOSE=ve.DRAWER_OPEN=ve.CONVERSATION_RATING_FROM_GUEST=ve.TRANSCRIPT_ITEM_GUEST_REACTION=ve.TRANSCRIPT_MAIL_REQUEST=ve.INBOX_CONNECT_REQUEST=ve.RESTART_CHAT_REQUEST=ve.EVENT_TO_GUEST=ve.NLU_REQUEST_EVENT=ve.EXPERTS_DISCONNECTED=ve.EXPERTS_DISCONNECT_REQUEST=ve.EXPERTS_CONNECTED=ve.EXPERTS_CONNECT_REQUEST=ve.MESSAGE_TO_GUEST=ve.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=ve.MESSAGE_FROM_GUEST=ve.GUEST_FEEDBACK_RESPONSE=ve.GUEST_DISCONNECTED=ve.GUEST_CONNECTED=ve.TYPING_OFF=ve.TYPING_ON=void 0,ve.TYPING_ON="core.typing.on",ve.TYPING_OFF="core.typing.off",ve.GUEST_CONNECTED="core.guest.connected",ve.GUEST_DISCONNECTED="core.guest.disconnected",ve.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",ve.MESSAGE_FROM_GUEST="core.message.from.guest",ve.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",ve.MESSAGE_TO_GUEST="core.message.to.guest",ve.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",ve.EXPERTS_CONNECTED="core.experts.connected",ve.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",ve.EXPERTS_DISCONNECTED="core.experts.disconnected",ve.NLU_REQUEST_EVENT="core.nlu.request.event",ve.EVENT_TO_GUEST="core.event.to.guest",ve.RESTART_CHAT_REQUEST="core.chat.restart.request",ve.INBOX_CONNECT_REQUEST="core.inbox.connect.request",ve.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",ve.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",ve.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",ve.DRAWER_OPEN="core.drawer.open",ve.DRAWER_CLOSE="core.drawer.close",ve.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),ve}var dS;function a3(){if(dS)return lf;dS=1,Object.defineProperty(lf,"__esModule",{value:!0});const n=Mn(),a=()=>({type:n.DRAWER_CLOSE});return lf.default=a,lf}var cf={},hS;function i3(){if(hS)return cf;hS=1,Object.defineProperty(cf,"__esModule",{value:!0});const n=Mn(),a=(o,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:o,intent:l}});return cf.default=a,cf}var uf={},mS;function o3(){if(mS)return uf;mS=1,Object.defineProperty(uf,"__esModule",{value:!0});const n=Mn(),a=o=>({type:n.GUEST_CONNECTED,payload:{sessionId:o}});return uf.default=a,uf}var ff={},pS;function s3(){if(pS)return ff;pS=1,Object.defineProperty(ff,"__esModule",{value:!0});const n=Mn(),a=o=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:o}});return ff.default=a,ff}var df={},bS;function l3(){if(bS)return df;bS=1,Object.defineProperty(df,"__esModule",{value:!0});const n=Mn(),a=(o,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:o,newLocale:l}});return df.default=a,df}var hf={},gS;function c3(){if(gS)return hf;gS=1,Object.defineProperty(hf,"__esModule",{value:!0});const n=Mn(),a=o=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:o}}});return hf.default=a,hf}var mf={},mt={},yS;function Hg(){if(yS)return mt;yS=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.getStringRepresentationFromMessage=mt.MessageTypeEnum=mt.AudioMessage=mt.FileMessage=mt.ImageMessage=mt.VideoMessage=mt.MarkdownMessage=mt.DetailMessage=mt.TextMessage=mt.Message=void 0;class n{constructor(_,g,A=[],U=[]){Xe(this,"type");Xe(this,"sender");Xe(this,"sources");Xe(this,"quickReplies");this.type=_,this.sender=g,this.sources=A,this.quickReplies=U}addQuickReply(_,g){this.quickReplies.push({label:_,payload:g})}}mt.Message=n;class a extends n{constructor(g,A,U=[],I=[]){super(p.TEXT,A,U,I);Xe(this,"text");this.text=g}}mt.TextMessage=a;class o extends n{constructor(g,A){super(p.DETAIL,A);Xe(this,"title");Xe(this,"subtitle");Xe(this,"text");Xe(this,"imageUrl");Xe(this,"itemUrl");Xe(this,"buttons");this.title=g,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(g){this.imageUrl=g}setItemUrl(g){this.itemUrl=g}setSubtitle(g){this.subtitle=g}setText(g){this.text=g}addButton(g){this.buttons.push(g)}}mt.DetailMessage=o;class l extends n{constructor(g,A,U=[],I=[]){super(p.MARKDOWN,A,U,I);Xe(this,"markdown");this.markdown=g}}mt.MarkdownMessage=l;class u extends n{constructor(g,A){super(p.VIDEO,A);Xe(this,"url");this.url=g}}mt.VideoMessage=u;class f extends n{constructor(g,A){super(p.IMAGE,A);Xe(this,"url");this.url=g}}mt.ImageMessage=f;class d extends n{constructor(g,A){super(p.FILE,A);Xe(this,"url");this.url=g}}mt.FileMessage=d;class h extends n{constructor(g,A){super(p.AUDIO,A);Xe(this,"url");this.url=g}}mt.AudioMessage=h;var p;(function(v){v.TEXT="TEXT",v.DETAIL="DETAIL",v.MARKDOWN="MARKDOWN",v.VIDEO="VIDEO",v.IMAGE="IMAGE",v.FILE="FILE",v.AUDIO="AUDIO"})(p||(mt.MessageTypeEnum=p={}));const y=v=>{switch(v.type){case p.TEXT:return v.text;case p.DETAIL:{const _=v;return`${_.title} // ${_.subtitle}`}case p.MARKDOWN:return v.markdown;case p.VIDEO:return`Video Url: ${v.url}`;case p.IMAGE:return`Image Url: ${v.url}`;case p.FILE:return`File Url: ${v.url}`;case p.AUDIO:return`Audio Url: ${v.url}`;default:throw new Error("Unknown message type "+v.type)}};return mt.getStringRepresentationFromMessage=y,mt}var Rn={},vS;function zg(){if(vS)return Rn;vS=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.UserType=Rn.PersonUser=Rn.GuestUser=Rn.BotUser=Rn.User=void 0;class n{constructor(d,h,p,y){Xe(this,"type");Xe(this,"id");Xe(this,"name");Xe(this,"avatar");this.type=d,this.id=h,this.name=p,this.avatar=y}}Rn.User=n;class a extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}Rn.BotUser=a;class o extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}Rn.GuestUser=o;class l extends n{constructor(d,h,p){super(u.PERSON,d,h,p)}}Rn.PersonUser=l;var u;return function(f){f.GUEST="GUEST",f.BOT="BOT",f.PERSON="PERSON"}(u||(Rn.UserType=u={})),Rn}var _S;function u3(){if(_S)return mf;_S=1,Object.defineProperty(mf,"__esModule",{value:!0});const n=Hg(),a=zg(),o=Mn(),l=u=>{const f=new n.TextMessage(u,new a.GuestUser);return{type:o.MESSAGE_FROM_GUEST,message:f}};return mf.default=l,mf}var pf={},ES;function f3(){if(ES)return pf;ES=1,Object.defineProperty(pf,"__esModule",{value:!0});const n=Hg(),a=zg(),o=Mn(),l=(u,f={})=>{const d=new n.TextMessage(u,new a.GuestUser);return{type:o.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:f}};return pf.default=l,pf}var bf={},wS;function d3(){if(wS)return bf;wS=1,Object.defineProperty(bf,"__esModule",{value:!0});const n=Mn(),a=o=>({type:n.NLU_REQUEST_EVENT,event:o});return bf.default=a,bf}var gf={},SS;function h3(){if(SS)return gf;SS=1,Object.defineProperty(gf,"__esModule",{value:!0});const n=Mn(),a=()=>({type:n.RESTART_CHAT_REQUEST});return gf.default=a,gf}var yf={},xS;function m3(){if(xS)return yf;xS=1,Object.defineProperty(yf,"__esModule",{value:!0});const n=Mn(),a=o=>({type:n.MESSAGE_TO_GUEST,message:o});return yf.default=a,yf}var vf={},TS;function p3(){if(TS)return vf;TS=1,Object.defineProperty(vf,"__esModule",{value:!0});const n=Mn(),a=(o,l)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:o,reaction:l}});return vf.default=a,vf}var kS;function b3(){if(kS)return et;kS=1;var n=et&&et.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(et,"__esModule",{value:!0}),et.transcriptItemGuestReaction=et.sendMessageToGuest=et.restartChatRequest=et.requestNLUEvent=et.receiveTextMessageWithoutAnalysisFromGuest=et.receiveTextMessageFromGuest=et.openDrawer=et.guestLocaleChanged=et.guestDisconnected=et.guestConnected=et.feedbackFromGuestResponse=et.closeDrawer=void 0;const a=n(a3());et.closeDrawer=a.default;const o=n(i3());et.feedbackFromGuestResponse=o.default;const l=n(o3());et.guestConnected=l.default;const u=n(s3());et.guestDisconnected=u.default;const f=n(l3());et.guestLocaleChanged=f.default;const d=n(c3());et.openDrawer=d.default;const h=n(u3());et.receiveTextMessageFromGuest=h.default;const p=n(f3());et.receiveTextMessageWithoutAnalysisFromGuest=p.default;const y=n(d3());et.requestNLUEvent=y.default;const v=n(h3());et.restartChatRequest=v.default;const _=n(m3());et.sendMessageToGuest=_.default;const g=n(p3());return et.transcriptItemGuestReaction=g.default,et}var rb={},NS;function g3(){return NS||(NS=1,Object.defineProperty(rb,"__esModule",{value:!0})),rb}var RS;function y3(){return RS||(RS=1,function(n){var a=fr&&fr.__createBinding||(Object.create?function(f,d,h,p){p===void 0&&(p=h);var y=Object.getOwnPropertyDescriptor(d,h);(!y||("get"in y?!d.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,p,y)}:function(f,d,h,p){p===void 0&&(p=h),f[p]=d[h]}),o=fr&&fr.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),l=fr&&fr.__importStar||function(){var f=function(d){return f=Object.getOwnPropertyNames||function(h){var p=[];for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(p[p.length]=y);return p},f(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var p=f(d),y=0;y<p.length;y++)p[y]!=="default"&&a(h,d,p[y]);return o(h,d),h}}(),u=fr&&fr.__exportStar||function(f,d){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&a(d,f,h)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=l(b3()),n.ActionTypes=l(Mn()),u(g3(),n)}(fr)),fr}var An={},ab={},AS;function v3(){return AS||(AS=1,Object.defineProperty(ab,"__esModule",{value:!0})),ab}var Il={},OS;function _3(){if(OS)return Il;OS=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(o){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(o,l){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(o){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(o){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(o){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(o){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(o){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(o){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(o,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(o,l,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(o,l){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(o,l){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(o,l){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(o,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(o,l){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(o,l){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(o,l,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(o,l,u,f){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(o,l,u){throw new Error("Method not implemented.")}async setIndexingStatus(o,l){throw new Error("Method not implemented.")}async subscribeToReindex(o,l){throw new Error("Method not implemented.")}isContentTypeSupported(o){throw new Error("Method not implemented.")}registerTool(o,l){throw new Error("Method not implemented.")}async getTools(o){throw new Error("Method not implemented.")}}return Il.NullableKnowledgeBaseAdapter=n,Il}var CS;function E3(){if(CS)return An;CS=1;var n=An&&An.__createBinding||(Object.create?function(u,f,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(f,d);(!p||("get"in p?!f.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,h,p)}:function(u,f,d,h){h===void 0&&(h=d),u[h]=f[d]}),a=An&&An.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),o=An&&An.__importStar||function(){var u=function(f){return u=Object.getOwnPropertyNames||function(d){var h=[];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(h[h.length]=p);return h},u(f)};return function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var h=u(f),p=0;p<h.length;p++)h[p]!=="default"&&n(d,f,h[p]);return a(d,f),d}}();Object.defineProperty(An,"__esModule",{value:!0}),An.NullableCmsAdapter=An.KnowledgeBase=void 0,An.KnowledgeBase=o(v3());const l=_3();return An.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},An}var qi={},ib={},DS;function w3(){return DS||(DS=1,Object.defineProperty(ib,"__esModule",{value:!0})),ib}var ob={},MS;function S3(){return MS||(MS=1,Object.defineProperty(ob,"__esModule",{value:!0})),ob}var sb={},US;function x3(){return US||(US=1,Object.defineProperty(sb,"__esModule",{value:!0})),sb}var lb={},BS;function T3(){return BS||(BS=1,Object.defineProperty(lb,"__esModule",{value:!0})),lb}var Vl={},LS;function k3(){if(LS)return Vl;LS=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.checkMiddlewareCondition=void 0;const n=async(a,o,l)=>(Array.isArray(a)?a:[a]).reduce(async(f,d)=>await f?await d(o,l):!1,Promise.resolve(!0));return Vl.checkMiddlewareCondition=n,Vl}var cb={},jS;function N3(){return jS||(jS=1,Object.defineProperty(cb,"__esModule",{value:!0})),cb}var ub={},HS;function R3(){return HS||(HS=1,Object.defineProperty(ub,"__esModule",{value:!0})),ub}var fb={},zS;function A3(){return zS||(zS=1,Object.defineProperty(fb,"__esModule",{value:!0})),fb}var IS;function O3(){return IS||(IS=1,function(n){var a=qi&&qi.__createBinding||(Object.create?function(l,u,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,d,h)}:function(l,u,f,d){d===void 0&&(d=f),l[d]=u[f]}),o=qi&&qi.__exportStar||function(l,u){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&a(u,l,f)};Object.defineProperty(n,"__esModule",{value:!0}),o(w3(),n),o(S3(),n),o(x3(),n),o(T3(),n),o(k3(),n),o(N3(),n),o(R3(),n),o(A3(),n)}(qi)),qi}var Fi={},dr={},VS;function C3(){if(VS)return dr;VS=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.ButtonTypeEnum=dr.PostbackButton=dr.UrlButton=dr.Button=void 0;class n{constructor(f,d){Xe(this,"title");Xe(this,"type");this.title=f,this.type=d}}dr.Button=n;class a extends n{constructor(d,h){super(d,l.WEB_URL);Xe(this,"url");this.url=h}}dr.UrlButton=a;class o extends n{constructor(d,h){super(d,l.POSTBACK);Xe(this,"payload");this.payload=h}}dr.PostbackButton=o;var l;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(l||(dr.ButtonTypeEnum=l={})),dr}var db={},GS;function D3(){return GS||(GS=1,Object.defineProperty(db,"__esModule",{value:!0})),db}var Gl={},qS;function M3(){if(qS)return Gl;qS=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.SatisfactionEnum=void 0;var n;return function(a){a.GOOD="GOOD",a.BAD="BAD"}(n||(Gl.SatisfactionEnum=n={})),Gl}var FS;function PS(){return FS||(FS=1,function(n){var a=Fi&&Fi.__createBinding||(Object.create?function(l,u,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,d,h)}:function(l,u,f,d){d===void 0&&(d=f),l[d]=u[f]}),o=Fi&&Fi.__exportStar||function(l,u){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&a(u,l,f)};Object.defineProperty(n,"__esModule",{value:!0}),o(C3(),n),o(D3(),n),o(M3(),n),o(Hg(),n),o(zg(),n)}(Fi)),Fi}var $S;function U3(){return $S||($S=1,function(n){var a=ur&&ur.__createBinding||(Object.create?function(f,d,h,p){p===void 0&&(p=h);var y=Object.getOwnPropertyDescriptor(d,h);(!y||("get"in y?!d.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,p,y)}:function(f,d,h,p){p===void 0&&(p=h),f[p]=d[h]}),o=ur&&ur.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),l=ur&&ur.__exportStar||function(f,d){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&a(d,f,h)},u=ur&&ur.__importStar||function(){var f=function(d){return f=Object.getOwnPropertyNames||function(h){var p=[];for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(p[p.length]=y);return p},f(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var p=f(d),y=0;y<p.length;y++)p[y]!=="default"&&a(h,d,p[y]);return o(h,d),h}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,l(y3(),n),n.CMS=u(E3()),l(O3(),n),l(PS(),n),n.Model=u(PS())}(ur)),ur}var Ie=U3();const mk=n=>a=>(n.payload.type!==Ie.ActionTypes.MESSAGE_FROM_GUEST&&a(Ie.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),a(n.payload)),pk=n=>(a,o)=>{const{quickReplies:l}=o().chat,u=l.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return a(u?mk({...u,label:n}):JSON.parse(JSON.stringify(Ie.Actions.receiveTextMessageFromGuest(n))))},Ig="MESSAGE_TO_PARENT_PAGE",Vg="RESTORE_PREVIOUS_CHAT_MESSAGES",Gg="AUDIO_MESSAGE_FROM_USER",B3="EXPORT_TRANSCRIPT",qg="RECEIVE_SPEECH_TRANSCRIPTION",Fg="ENABLE_CONVERSATION_RATING",bk="LOAD_SOURCE_INFOS_RESPONSE",Pg="LOAD_SOURCE_INFOS_ERROR",$g="LOAD_SOURCE_INFOS_REQUEST",Yg="CLOSE_SOURCE_INFOS",L3="webclient.get.started",gk="webclient.window.expand",yk="webclient.window.close",vk="webclient.transcript.pdf.download",j3=[Ig,Vg,Gg,B3,qg,Fg,$g,Yg],H3=n=>({type:Gg,buffer:n}),z3=n=>({type:qg,transcription:n}),I3=n=>({type:Ie.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),V3=()=>({type:vk}),G3=({rating:n})=>({type:Fg,payload:{rating:n}}),q3=(n,a)=>({type:Ie.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:a}}),_k=n=>Ie.Actions.requestNLUEvent(n),F3=n=>({type:Vg,messages:n}),P3=n=>{switch(n.type){case Ie.ButtonTypeEnum.WEB_URL:return Ek(n.url);case Ie.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},$3=n=>Ek(n),Ek=n=>({type:Ig,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function _f(n){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var l in o)n[l]=o[l]}return n}var Y3={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function fg(n,a){function o(u,f,d){if(!(typeof document>"u")){d=_f({},a,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var p in d)d[p]&&(h+="; "+p,d[p]!==!0&&(h+="="+d[p].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+h}}function l(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],d={},h=0;h<f.length;h++){var p=f[h].split("="),y=p.slice(1).join("=");try{var v=decodeURIComponent(p[0]);if(d[v]=n.read(y,v),u===v)break}catch{}}return u?d[u]:d}}return Object.create({set:o,get:l,remove:function(u,f){o(u,"",_f({},f,{expires:-1}))},withAttributes:function(u){return fg(this.converter,_f({},this.attributes,u))},withConverter:function(u){return fg(_f({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(n)}})}var Ef=fg(Y3,{path:"/"});const Pt=[];for(let n=0;n<256;++n)Pt.push((n+256).toString(16).slice(1));function X3(n,a=0){return(Pt[n[a+0]]+Pt[n[a+1]]+Pt[n[a+2]]+Pt[n[a+3]]+"-"+Pt[n[a+4]]+Pt[n[a+5]]+"-"+Pt[n[a+6]]+Pt[n[a+7]]+"-"+Pt[n[a+8]]+Pt[n[a+9]]+"-"+Pt[n[a+10]]+Pt[n[a+11]]+Pt[n[a+12]]+Pt[n[a+13]]+Pt[n[a+14]]+Pt[n[a+15]]).toLowerCase()}let hb;const Z3=new Uint8Array(16);function Q3(){if(!hb){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");hb=crypto.getRandomValues.bind(crypto)}return hb(Z3)}const W3=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),YS={randomUUID:W3};function dg(n,a,o){var u;if(YS.randomUUID&&!n)return YS.randomUUID();n=n||{};const l=n.random??((u=n.rng)==null?void 0:u.call(n))??Q3();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,X3(l)}var K3=typeof Symbol=="function"&&Symbol.observable||"@@observable",XS=K3,mb=()=>Math.random().toString(36).substring(7).split("").join("."),J3={INIT:`@@redux/INIT${mb()}`,REPLACE:`@@redux/REPLACE${mb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${mb()}`},Wi=J3;function oc(n){if(typeof n!="object"||n===null)return!1;let a=n;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(n)===a||Object.getPrototypeOf(n)===null}function eU(n){if(n===void 0)return"undefined";if(n===null)return"null";const a=typeof n;switch(a){case"boolean":case"string":case"number":case"symbol":case"function":return a}if(Array.isArray(n))return"array";if(rU(n))return"date";if(nU(n))return"error";const o=tU(n);switch(o){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return o}return Object.prototype.toString.call(n).slice(8,-1).toLowerCase().replace(/\s/g,"")}function tU(n){return typeof n.constructor=="function"?n.constructor.name:null}function nU(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function rU(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function ti(n){let a=typeof n;return a=eU(n),a}function wk(n,a,o){if(typeof n!="function")throw new Error(`Expected the root reducer to be a function. Instead, received: '${ti(n)}'`);if(typeof a=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof a=="function"&&typeof o>"u"&&(o=a,a=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(`Expected the enhancer to be a function. Instead, received: '${ti(o)}'`);return o(wk)(n,a)}let l=n,u=a,f=new Map,d=f,h=0,p=!1;function y(){d===f&&(d=new Map,f.forEach((j,w)=>{d.set(w,j)}))}function v(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function _(j){if(typeof j!="function")throw new Error(`Expected the listener to be a function. Instead, received: '${ti(j)}'`);if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let w=!0;y();const R=h++;return d.set(R,j),function(){if(w){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");w=!1,y(),d.delete(R),f=null}}}function g(j){if(!oc(j))throw new Error(`Actions must be plain objects. Instead, the actual type was: '${ti(j)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof j.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof j.type!="string")throw new Error(`Action "type" property must be a string. Instead, the actual type was: '${ti(j.type)}'. Value was: '${j.type}' (stringified)`);if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,u=l(u,j)}finally{p=!1}return(f=d).forEach(R=>{R()}),j}function A(j){if(typeof j!="function")throw new Error(`Expected the nextReducer to be a function. Instead, received: '${ti(j)}`);l=j,g({type:Wi.REPLACE})}function U(){const j=_;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(`Expected the observer to be an object. Instead, received: '${ti(w)}'`);function R(){const N=w;N.next&&N.next(v())}return R(),{unsubscribe:j(R)}},[XS](){return this}}}return g({type:Wi.INIT}),{dispatch:g,subscribe:_,getState:v,replaceReducer:A,[XS]:U}}function ZS(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function aU(n,a,o,l){const u=Object.keys(a),f=o&&o.type===Wi.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(u.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!oc(n))return`The ${f} has unexpected type of "${ti(n)}". Expected argument to be an object with the following keys: "${u.join('", "')}"`;const d=Object.keys(n).filter(h=>!a.hasOwnProperty(h)&&!l[h]);if(d.forEach(h=>{l[h]=!0}),!(o&&o.type===Wi.REPLACE)&&d.length>0)return`Unexpected ${d.length>1?"keys":"key"} "${d.join('", "')}" found in ${f}. Expected to find one of the known reducer keys instead: "${u.join('", "')}". Unexpected keys will be ignored.`}function iU(n){Object.keys(n).forEach(a=>{const o=n[a];if(typeof o(void 0,{type:Wi.INIT})>"u")throw new Error(`The slice reducer for key "${a}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof o(void 0,{type:Wi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(`The slice reducer for key "${a}" returned undefined when probed with a random type. Don't try to handle '${Wi.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Sk(n){const a=Object.keys(n),o={};for(let d=0;d<a.length;d++){const h=a[d];typeof n[h]>"u"&&ZS(`No reducer provided for key "${h}"`),typeof n[h]=="function"&&(o[h]=n[h])}const l=Object.keys(o);let u;u={};let f;try{iU(o)}catch(d){f=d}return function(h={},p){if(f)throw f;{const _=aU(h,o,p,u);_&&ZS(_)}let y=!1;const v={};for(let _=0;_<l.length;_++){const g=l[_],A=o[g],U=h[g],I=A(U,p);if(typeof I>"u"){const j=p&&p.type;throw new Error(`When called with an action of type ${j?`"${String(j)}"`:"(unknown type)"}, the slice reducer for key "${g}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}v[g]=I,y=y||I!==U}return y=y||l.length!==Object.keys(h).length,y?v:h}}function qf(...n){return n.length===0?a=>a:n.length===1?n[0]:n.reduce((a,o)=>(...l)=>a(o(...l)))}function oU(...n){return a=>(o,l)=>{const u=a(o,l);let f=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const d={getState:u.getState,dispatch:(p,...y)=>f(p,...y)},h=n.map(p=>p(d));return f=qf(...h)(u.dispatch),{...u,dispatch:f}}}function xk(n){return oc(n)&&"type"in n&&typeof n.type=="string"}var Tk=Symbol.for("immer-nothing"),QS=Symbol.for("immer-draftable"),Cn=Symbol.for("immer-state"),sU=[function(n){return`The plugin for '${n}' has not been loaded into Immer. To enable the plugin, import and call \`enable${n}()\` when initializing your application.`},function(n){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${n}'`},"This object has been frozen and should not be mutated",function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(n){return`'current' expects a draft, got: ${n}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(n){return`'original' expects a draft, got: ${n}`}];function gn(n,...a){{const o=sU[n],l=typeof o=="function"?o.apply(null,a):o;throw new Error(`[Immer] ${l}`)}}var ls=Object.getPrototypeOf;function Ji(n){return!!n&&!!n[Cn]}function ga(n){var a;return n?kk(n)||Array.isArray(n)||!!n[QS]||!!((a=n.constructor)!=null&&a[QS])||td(n)||nd(n):!1}var lU=Object.prototype.constructor.toString();function kk(n){if(!n||typeof n!="object")return!1;const a=ls(n);if(a===null)return!0;const o=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return o===Object?!0:typeof o=="function"&&Function.toString.call(o)===lU}function Ff(n,a){ed(n)===0?Reflect.ownKeys(n).forEach(o=>{a(o,n[o],n)}):n.forEach((o,l)=>a(l,o,n))}function ed(n){const a=n[Cn];return a?a.type_:Array.isArray(n)?1:td(n)?2:nd(n)?3:0}function hg(n,a){return ed(n)===2?n.has(a):Object.prototype.hasOwnProperty.call(n,a)}function Nk(n,a,o){const l=ed(n);l===2?n.set(a,o):l===3?n.add(o):n[a]=o}function cU(n,a){return n===a?n!==0||1/n===1/a:n!==n&&a!==a}function td(n){return n instanceof Map}function nd(n){return n instanceof Set}function Xi(n){return n.copy_||n.base_}function mg(n,a){if(td(n))return new Map(n);if(nd(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const o=kk(n);if(a===!0||a==="class_only"&&!o){const l=Object.getOwnPropertyDescriptors(n);delete l[Cn];let u=Reflect.ownKeys(l);for(let f=0;f<u.length;f++){const d=u[f],h=l[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(l[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(ls(n),l)}else{const l=ls(n);if(l!==null&&o)return{...n};const u=Object.create(l);return Object.assign(u,n)}}function Xg(n,a=!1){return rd(n)||Ji(n)||!ga(n)||(ed(n)>1&&(n.set=n.add=n.clear=n.delete=uU),Object.freeze(n),a&&Object.entries(n).forEach(([o,l])=>Xg(l,!0))),n}function uU(){gn(2)}function rd(n){return Object.isFrozen(n)}var fU={};function eo(n){const a=fU[n];return a||gn(0,n),a}var Jl;function Rk(){return Jl}function dU(n,a){return{drafts_:[],parent_:n,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function WS(n,a){a&&(eo("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=a)}function pg(n){bg(n),n.drafts_.forEach(hU),n.drafts_=null}function bg(n){n===Jl&&(Jl=n.parent_)}function KS(n){return Jl=dU(Jl,n)}function hU(n){const a=n[Cn];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function JS(n,a){a.unfinalizedDrafts_=a.drafts_.length;const o=a.drafts_[0];return n!==void 0&&n!==o?(o[Cn].modified_&&(pg(a),gn(4)),ga(n)&&(n=Pf(a,n),a.parent_||$f(a,n)),a.patches_&&eo("Patches").generateReplacementPatches_(o[Cn].base_,n,a.patches_,a.inversePatches_)):n=Pf(a,o,[]),pg(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),n!==Tk?n:void 0}function Pf(n,a,o){if(rd(a))return a;const l=a[Cn];if(!l)return Ff(a,(u,f)=>ex(n,l,a,u,f,o)),a;if(l.scope_!==n)return a;if(!l.modified_)return $f(n,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const u=l.copy_;let f=u,d=!1;l.type_===3&&(f=new Set(u),u.clear(),d=!0),Ff(f,(h,p)=>ex(n,l,u,h,p,o,d)),$f(n,u,!1),o&&n.patches_&&eo("Patches").generatePatches_(l,o,n.patches_,n.inversePatches_)}return l.copy_}function ex(n,a,o,l,u,f,d){if(u===o&&gn(5),Ji(u)){const h=f&&a&&a.type_!==3&&!hg(a.assigned_,l)?f.concat(l):void 0,p=Pf(n,u,h);if(Nk(o,l,p),Ji(p))n.canAutoFreeze_=!1;else return}else d&&o.add(u);if(ga(u)&&!rd(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;Pf(n,u),(!a||!a.scope_.parent_)&&typeof l!="symbol"&&Object.prototype.propertyIsEnumerable.call(o,l)&&$f(n,u)}}function $f(n,a,o=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Xg(a,o)}function mU(n,a){const o=Array.isArray(n),l={type_:o?1:0,scope_:a?a.scope_:Rk(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,f=Zg;o&&(u=[l],f=ec);const{revoke:d,proxy:h}=Proxy.revocable(u,f);return l.draft_=h,l.revoke_=d,h}var Zg={get(n,a){if(a===Cn)return n;const o=Xi(n);if(!hg(o,a))return pU(n,o,a);const l=o[a];return n.finalized_||!ga(l)?l:l===pb(n.base_,a)?(bb(n),n.copy_[a]=yg(l,n)):l},has(n,a){return a in Xi(n)},ownKeys(n){return Reflect.ownKeys(Xi(n))},set(n,a,o){const l=Ak(Xi(n),a);if(l!=null&&l.set)return l.set.call(n.draft_,o),!0;if(!n.modified_){const u=pb(Xi(n),a),f=u==null?void 0:u[Cn];if(f&&f.base_===o)return n.copy_[a]=o,n.assigned_[a]=!1,!0;if(cU(o,u)&&(o!==void 0||hg(n.base_,a)))return!0;bb(n),gg(n)}return n.copy_[a]===o&&(o!==void 0||a in n.copy_)||Number.isNaN(o)&&Number.isNaN(n.copy_[a])||(n.copy_[a]=o,n.assigned_[a]=!0),!0},deleteProperty(n,a){return pb(n.base_,a)!==void 0||a in n.base_?(n.assigned_[a]=!1,bb(n),gg(n)):delete n.assigned_[a],n.copy_&&delete n.copy_[a],!0},getOwnPropertyDescriptor(n,a){const o=Xi(n),l=Reflect.getOwnPropertyDescriptor(o,a);return l&&{writable:!0,configurable:n.type_!==1||a!=="length",enumerable:l.enumerable,value:o[a]}},defineProperty(){gn(11)},getPrototypeOf(n){return ls(n.base_)},setPrototypeOf(){gn(12)}},ec={};Ff(Zg,(n,a)=>{ec[n]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});ec.deleteProperty=function(n,a){return isNaN(parseInt(a))&&gn(13),ec.set.call(this,n,a,void 0)};ec.set=function(n,a,o){return a!=="length"&&isNaN(parseInt(a))&&gn(14),Zg.set.call(this,n[0],a,o,n[0])};function pb(n,a){const o=n[Cn];return(o?Xi(o):n)[a]}function pU(n,a,o){var u;const l=Ak(a,o);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(n.draft_):void 0}function Ak(n,a){if(!(a in n))return;let o=ls(n);for(;o;){const l=Object.getOwnPropertyDescriptor(o,a);if(l)return l;o=ls(o)}}function gg(n){n.modified_||(n.modified_=!0,n.parent_&&gg(n.parent_))}function bb(n){n.copy_||(n.copy_=mg(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var bU=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,o,l)=>{if(typeof a=="function"&&typeof o!="function"){const f=o;o=a;const d=this;return function(p=f,...y){return d.produce(p,v=>o.call(this,v,...y))}}typeof o!="function"&&gn(6),l!==void 0&&typeof l!="function"&&gn(7);let u;if(ga(a)){const f=KS(this),d=yg(a,void 0);let h=!0;try{u=o(d),h=!1}finally{h?pg(f):bg(f)}return WS(f,l),JS(u,f)}else if(!a||typeof a!="object"){if(u=o(a),u===void 0&&(u=a),u===Tk&&(u=void 0),this.autoFreeze_&&Xg(u,!0),l){const f=[],d=[];eo("Patches").generateReplacementPatches_(a,u,f,d),l(f,d)}return u}else gn(1,a)},this.produceWithPatches=(a,o)=>{if(typeof a=="function")return(d,...h)=>this.produceWithPatches(d,p=>a(p,...h));let l,u;return[this.produce(a,o,(d,h)=>{l=d,u=h}),l,u]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){ga(n)||gn(8),Ji(n)&&(n=gU(n));const a=KS(this),o=yg(n,void 0);return o[Cn].isManual_=!0,bg(a),o}finishDraft(n,a){const o=n&&n[Cn];(!o||!o.isManual_)&&gn(9);const{scope_:l}=o;return WS(l,a),JS(void 0,l)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,a){let o;for(o=a.length-1;o>=0;o--){const u=a[o];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}o>-1&&(a=a.slice(o+1));const l=eo("Patches").applyPatches_;return Ji(n)?l(n,a):this.produce(n,u=>l(u,a))}};function yg(n,a){const o=td(n)?eo("MapSet").proxyMap_(n,a):nd(n)?eo("MapSet").proxySet_(n,a):mU(n,a);return(a?a.scope_:Rk()).drafts_.push(o),o}function gU(n){return Ji(n)||gn(10,n),Ok(n)}function Ok(n){if(!ga(n)||rd(n))return n;const a=n[Cn];let o;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,o=mg(n,a.scope_.immer_.useStrictShallowCopy_)}else o=mg(n,!0);return Ff(o,(l,u)=>{Nk(o,l,Ok(u))}),a&&(a.finalized_=!1),o}var Dn=new bU,Ck=Dn.produce;Dn.produceWithPatches.bind(Dn);Dn.setAutoFreeze.bind(Dn);Dn.setUseStrictShallowCopy.bind(Dn);Dn.applyPatches.bind(Dn);Dn.createDraft.bind(Dn);Dn.finishDraft.bind(Dn);function Dk(n){return({dispatch:o,getState:l})=>u=>f=>typeof f=="function"?f(o,l,n):u(f)}var yU=Dk(),vU=Dk,_U=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qf:qf.apply(null,arguments)},EU=n=>n&&typeof n.match=="function";function tx(n,a){function o(...l){if(a){let u=a(...l);if(!u)throw new Error("prepareAction did not return an object");return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:l[0]}}return o.toString=()=>`${n}`,o.type=n,o.match=l=>xk(l)&&l.type===n,o}function wU(n){return typeof n=="function"&&"type"in n&&EU(n)}function SU(n){const a=n?`${n}`.split("/"):[],o=a[a.length-1]||"actionCreator";return`Detected an action creator with type "${n||"unknown"}" being dispatched.
|
|
318
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${o}())\` instead of \`dispatch(${o})\`. This is necessary even if the action has no payload.`}function xU(n={}){const{isActionCreator:a=wU}=n;return()=>o=>l=>(a(l)&&console.warn(SU(l.type)),o(l))}function Mk(n,a){let o=0;return{measureTime(l){const u=Date.now();try{return l()}finally{const f=Date.now();o+=f-u}},warnIfExceeded(){o>n&&console.warn(`${a} took ${o}ms, which is more than the warning threshold of ${n}ms.
|
|
319
|
+
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
320
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var Uk=class Zl extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,Zl.prototype)}static get[Symbol.species](){return Zl}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new Zl(...a[0].concat(this)):new Zl(...a.concat(this))}};function nx(n){return ga(n)?Ck(n,()=>{}):n}function wf(n,a,o){return n.has(a)?n.get(a):n.set(a,o(a)).get(a)}function TU(n){return typeof n!="object"||n==null||Object.isFrozen(n)}function kU(n,a,o){const l=Bk(n,a,o);return{detectMutations(){return Lk(n,a,l,o)}}}function Bk(n,a=[],o,l="",u=new Set){const f={value:o};if(!n(o)&&!u.has(o)){u.add(o),f.children={};for(const d in o){const h=l?l+"."+d:d;a.length&&a.indexOf(h)!==-1||(f.children[d]=Bk(n,a,o[d],h))}}return f}function Lk(n,a=[],o,l,u=!1,f=""){const d=o?o.value:void 0,h=d===l;if(u&&!h&&!Number.isNaN(l))return{wasMutated:!0,path:f};if(n(d)||n(l))return{wasMutated:!1};const p={};for(let v in o.children)p[v]=!0;for(let v in l)p[v]=!0;const y=a.length>0;for(let v in p){const _=f?f+"."+v:v;if(y&&a.some(U=>U instanceof RegExp?U.test(_):_===U))continue;const g=Lk(n,a,o.children[v],l[v],h,_);if(g.wasMutated)return g}return{wasMutated:!1}}function NU(n={}){{let a=function(h,p,y,v){return JSON.stringify(h,o(p,v),y)},o=function(h,p){let y=[],v=[];return p||(p=function(_,g){return y[0]===g?"[Circular ~]":"[Circular ~."+v.slice(0,y.indexOf(g)).join(".")+"]"}),function(_,g){if(y.length>0){var A=y.indexOf(this);~A?y.splice(A+1):y.push(this),~A?v.splice(A,1/0,_):v.push(_),~y.indexOf(g)&&(g=p.call(this,_,g))}else y.push(g);return h==null?g:h.call(this,_,g)}},{isImmutable:l=TU,ignoredPaths:u,warnAfter:f=32}=n;const d=kU.bind(null,l,u);return({getState:h})=>{let p=h(),y=d(p),v;return _=>g=>{const A=Mk(f,"ImmutableStateInvariantMiddleware");A.measureTime(()=>{if(p=h(),v=y.detectMutations(),y=d(p),v.wasMutated)throw new Error(`A state mutation was detected between dispatches, in the path '${v.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const U=_(g);return A.measureTime(()=>{if(p=h(),v=y.detectMutations(),y=d(p),v.wasMutated)throw new Error(`A state mutation was detected inside a dispatch, in the path: ${v.path||""}. Take a look at the reducer(s) handling the action ${a(g)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),A.warnIfExceeded(),U}}}}function jk(n){const a=typeof n;return n==null||a==="string"||a==="boolean"||a==="number"||Array.isArray(n)||oc(n)}function vg(n,a="",o=jk,l,u=[],f){let d;if(!o(n))return{keyPath:a||"<root>",value:n};if(typeof n!="object"||n===null||f!=null&&f.has(n))return!1;const h=l!=null?l(n):Object.entries(n),p=u.length>0;for(const[y,v]of h){const _=a?a+"."+y:y;if(!(p&&u.some(A=>A instanceof RegExp?A.test(_):_===A))){if(!o(v))return{keyPath:_,value:v};if(typeof v=="object"&&(d=vg(v,_,o,l,u,f),d))return d}}return f&&Hk(n)&&f.add(n),!1}function Hk(n){if(!Object.isFrozen(n))return!1;for(const a of Object.values(n))if(!(typeof a!="object"||a===null)&&!Hk(a))return!1;return!0}function RU(n={}){{const{isSerializable:a=jk,getEntries:o,ignoredActions:l=[],ignoredActionPaths:u=["meta.arg","meta.baseQueryMeta"],ignoredPaths:f=[],warnAfter:d=32,ignoreState:h=!1,ignoreActions:p=!1,disableCache:y=!1}=n,v=!y&&WeakSet?new WeakSet:void 0;return _=>g=>A=>{if(!xk(A))return g(A);const U=g(A),I=Mk(d,"SerializableStateInvariantMiddleware");return!p&&!(l.length&&l.indexOf(A.type)!==-1)&&I.measureTime(()=>{const j=vg(A,"",a,o,u,v);if(j){const{keyPath:w,value:R}=j;console.error(`A non-serializable value was detected in an action, in the path: \`${w}\`. Value:`,R,`
|
|
321
|
+
Take a look at the logic that dispatched this action: `,A,`
|
|
322
|
+
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
323
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),h||(I.measureTime(()=>{const j=_.getState(),w=vg(j,"",a,o,f,v);if(w){const{keyPath:R,value:T}=w;console.error(`A non-serializable value was detected in the state, in the path: \`${R}\`. Value:`,T,`
|
|
324
|
+
Take a look at the reducer(s) handling this action type: ${A.type}.
|
|
325
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),I.warnIfExceeded()),U}}}function Sf(n){return typeof n=="boolean"}var AU=()=>function(a){const{thunk:o=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=a??{};let d=new Uk;o&&(Sf(o)?d.push(yU):d.push(vU(o.extraArgument)));{if(l){let h={};Sf(l)||(h=l),d.unshift(NU(h))}if(u){let h={};Sf(u)||(h=u),d.push(RU(h))}if(f){let h={};Sf(f)||(h=f),d.unshift(xU(h))}}return d},OU="RTK_autoBatch",rx=n=>a=>{setTimeout(a,n)},CU=(n={type:"raf"})=>a=>(...o)=>{const l=a(...o);let u=!0,f=!1,d=!1;const h=new Set,p=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:rx(10):n.type==="callback"?n.queueNotification:rx(n.timeout),y=()=>{d=!1,f&&(f=!1,h.forEach(v=>v()))};return Object.assign({},l,{subscribe(v){const _=()=>u&&v(),g=l.subscribe(_);return h.add(v),()=>{g(),h.delete(v)}},dispatch(v){var _;try{return u=!((_=v==null?void 0:v.meta)!=null&&_[OU]),f=!u,f&&(d||(d=!0,p(y))),l.dispatch(v)}finally{u=!0}}})},DU=n=>function(o){const{autoBatch:l=!0}=o??{};let u=new Uk(n);return l&&u.push(CU(typeof l=="object"?l:void 0)),u};function MU(n){const a=AU(),{reducer:o=void 0,middleware:l,devTools:u=!0,duplicateMiddlewareCheck:f=!0,preloadedState:d=void 0,enhancers:h=void 0}=n||{};let p;if(typeof o=="function")p=o;else if(oc(o))p=Sk(o);else throw new Error("`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(l&&typeof l!="function")throw new Error("`middleware` field must be a callback");let y;if(typeof l=="function"){if(y=l(a),!Array.isArray(y))throw new Error("when using a middleware builder function, an array of middleware must be returned")}else y=a();if(y.some(I=>typeof I!="function"))throw new Error("each middleware provided to configureStore must be a function");if(f){let I=new Set;y.forEach(j=>{if(I.has(j))throw new Error("Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");I.add(j)})}let v=qf;u&&(v=_U({trace:!0,...typeof u=="object"&&u}));const _=oU(...y),g=DU(_);if(h&&typeof h!="function")throw new Error("`enhancers` field must be a callback");let A=typeof h=="function"?h(g):g();if(!Array.isArray(A))throw new Error("`enhancers` callback must return an array");if(A.some(I=>typeof I!="function"))throw new Error("each enhancer provided to configureStore must be a function");y.length&&!A.includes(_)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const U=v(...A);return wk(p,d,U)}function zk(n){const a={},o=[];let l;const u={addCase(f,d){{if(o.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(l)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const h=typeof f=="string"?f:f.type;if(!h)throw new Error("`builder.addCase` cannot be called with an empty action type");if(h in a)throw new Error(`\`builder.addCase\` cannot be called with two reducers for the same action type '${h}'`);return a[h]=d,u},addMatcher(f,d){if(l)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return o.push({matcher:f,reducer:d}),u},addDefaultCase(f){if(l)throw new Error("`builder.addDefaultCase` can only be called once");return l=f,u}};return n(u),[a,o,l]}function UU(n){return typeof n=="function"}function BU(n,a){if(typeof a=="object")throw new Error("The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[o,l,u]=zk(a),f;if(UU(n))f=()=>nx(n());else{const h=nx(n);f=()=>h}function d(h=f(),p){let y=[o[p.type],...l.filter(({matcher:v})=>v(p)).map(({reducer:v})=>v)];return y.filter(v=>!!v).length===0&&(y=[u]),y.reduce((v,_)=>{if(_)if(Ji(v)){const A=_(v,p);return A===void 0?v:A}else{if(ga(v))return Ck(v,g=>_(g,p));{const g=_(v,p);if(g===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return v},h)}return d.getInitialState=f,d}var LU=Symbol.for("rtk-slice-createasyncthunk");function jU(n,a){return`${n}/${a}`}function HU({creators:n}={}){var o;const a=(o=n==null?void 0:n.asyncThunk)==null?void 0:o[LU];return function(u){const{name:f,reducerPath:d=f}=u;if(!f)throw new Error("`name` is a required option for createSlice");const h=(typeof u.reducers=="function"?u.reducers(IU()):u.reducers)||{},p=Object.keys(h),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},v={addCase(N,D){const z=typeof N=="string"?N:N.type;if(!z)throw new Error("`context.addCase` cannot be called with an empty action type");if(z in y.sliceCaseReducersByType)throw new Error("`context.addCase` cannot be called with two reducers for the same action type: "+z);return y.sliceCaseReducersByType[z]=D,v},addMatcher(N,D){return y.sliceMatchers.push({matcher:N,reducer:D}),v},exposeAction(N,D){return y.actionCreators[N]=D,v},exposeCaseReducer(N,D){return y.sliceCaseReducersByName[N]=D,v}};p.forEach(N=>{const D=h[N],z={reducerName:N,type:jU(f,N),createNotation:typeof u.reducers=="function"};GU(D)?FU(z,D,v,a):VU(z,D,v)});function _(){if(typeof u.extraReducers=="object")throw new Error("The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[N={},D=[],z=void 0]=typeof u.extraReducers=="function"?zk(u.extraReducers):[u.extraReducers],X={...N,...y.sliceCaseReducersByType};return BU(u.initialState,re=>{for(let Z in X)re.addCase(Z,X[Z]);for(let Z of y.sliceMatchers)re.addMatcher(Z.matcher,Z.reducer);for(let Z of D)re.addMatcher(Z.matcher,Z.reducer);z&&re.addDefaultCase(z)})}const g=N=>N,A=new Map,U=new WeakMap;let I;function j(N,D){return I||(I=_()),I(N,D)}function w(){return I||(I=_()),I.getInitialState()}function R(N,D=!1){function z(re){let Z=re[N];if(typeof Z>"u")if(D)Z=wf(U,z,w);else throw new Error("selectSlice returned undefined for an uninjected slice reducer");return Z}function X(re=g){const Z=wf(A,D,()=>new WeakMap);return wf(Z,re,()=>{const ee={};for(const[Q,ie]of Object.entries(u.selectors??{}))ee[Q]=zU(ie,re,()=>wf(U,re,w),D);return ee})}return{reducerPath:N,getSelectors:X,get selectors(){return X(z)},selectSlice:z}}const T={name:f,reducer:j,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:w,...R(d),injectInto(N,{reducerPath:D,...z}={}){const X=D??d;return N.inject({reducerPath:X,reducer:j},z),{...T,...R(X,!0)}}};return T}}function zU(n,a,o,l){function u(f,...d){let h=a(f);if(typeof h>"u")if(l)h=o();else throw new Error("selectState returned undefined for an uninjected slice reducer");return n(h,...d)}return u.unwrapped=n,u}var Qg=HU();function IU(){function n(a,o){return{_reducerDefinitionType:"asyncThunk",payloadCreator:a,...o}}return n.withTypes=()=>n,{reducer(a){return Object.assign({[a.name](...o){return a(...o)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,o){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:o}},asyncThunk:n}}function VU({type:n,reducerName:a,createNotation:o},l,u){let f,d;if("reducer"in l){if(o&&!qU(l))throw new Error("Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");f=l.reducer,d=l.prepare}else f=l;u.addCase(n,f).exposeCaseReducer(a,f).exposeAction(a,d?tx(n,d):tx(n))}function GU(n){return n._reducerDefinitionType==="asyncThunk"}function qU(n){return n._reducerDefinitionType==="reducerWithPrepare"}function FU({type:n,reducerName:a},o,l,u){if(!u)throw new Error("Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:f,fulfilled:d,pending:h,rejected:p,settled:y,options:v}=o,_=u(n,f,v);l.exposeAction(a,_),d&&l.addCase(_.fulfilled,d),h&&l.addCase(_.pending,h),p&&l.addCase(_.rejected,p),y&&l.addMatcher(_.settled,y),l.exposeCaseReducer(a,{fulfilled:d||xf,pending:h||xf,rejected:p||xf,settled:y||xf})}function xf(){}const PU={formValues:{}},Ik=Qg({name:"start-screen",initialState:PU,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,a){n.startScreenStatus="HIDDEN",n.formValues=a.payload}}}),{startChat:$U,showStartScreen:YU}=Ik.actions,XU=Ik.reducer,Vk="RESET_CHAT_STATE",ZU=()=>({type:yk}),QU=()=>({type:Vk}),ax=(n,a,o)=>(l,u)=>{try{const f=u().connection.sessionId;if(!f)throw new Error("Session ID is not available");l({type:$g,payload:{chunkId:o}}),ix(n,f,a,o,!1,l),ix(n,f,a,o,!0,l)}catch(f){console.error("Error loading source infos:",f),l({type:Pg})}},ix=(n,a,o,l,u,f)=>{const d=`/${n}/me/chat-widget/transcript/${o}/chunks/${l}?highlight=${u}`;fetch(d,{headers:{"x-bubble-chat-session-id":a}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const p={...h,chunkId:l,highlighted:u};f({type:bk,payload:p})}).catch(h=>{console.error("Error fetching source infos:",h),f({type:Pg,payload:{highlighted:u}})})},WU=()=>({type:Yg}),Wg="CONNECT",Kg="CONNECTING",Jg="CONNECTED",ey="DISCONNECTED",ty="RECONNECTED",ny="RESTORE_SESSION_ID",ad="START",id="CLEAR_SESSION_ID",KU=[Wg,Kg,Jg,ey,ty,ny],JU=(n,a)=>({type:Wg,clientName:n,querystrings:a}),e6=n=>({type:ny,sessionId:n}),t6=()=>({type:Kg}),n6=()=>({type:Jg}),r6=()=>({type:ey}),a6=()=>({type:ty}),Gk=(n,a)=>(o,l)=>{const u=l().connection,f=l().startScreen.formValues;let d=u.sessionId;d===void 0&&(d=dg());let h=u.userId;if(h===void 0){const p=Ef.get("bubble-chat-user-id")||Ef.get("bubble-chat-userId")||Ef.get("bf-webclient-userId");h=p||dg(),Ef.set("bubble-chat-user-id",h)}o({type:ad,payload:{sessionId:d,userId:h,clientName:n,querystrings:{...a,...f}}})},od=(n,a)=>(o,l)=>{const u=l().connection.sessionId||"";if(o(i6(u)),o(QU()),l().settings.enableStartScreen)o(YU());else return o(Gk(n,a))},i6=n=>({type:id,payload:{sessionId:n}}),gt=()=>{const n=Kf();return o=>{const l=n.formatMessage({id:o});return l===o?void 0:l}};var Qi=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Qi||{}),Yf=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(Yf||{});const o6="_container_q2uun_1",s6="_chatcontent_q2uun_6",l6="_accessabilityHidden_q2uun_12",gb={container:o6,chatcontent:s6,accessabilityHidden:l6},c6="_messageContainer_ofi0g_1",u6="_messages_ofi0g_12",ox={messageContainer:c6,messages:u6};function Zi(){return Zi=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(n[l]=o[l])}return n},Zi.apply(this,arguments)}const f6=["children","options"],d6={footnoteReference:"7"},sx=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((n,a)=>(n[a.toLowerCase()]=a,n),{class:"className",for:"htmlFor"}),lx={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},h6=["style","script"],m6=["src","href","data","formAction","srcDoc","action"],p6=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,b6=/mailto:/i,g6=/\n{2,}$/,cx=/^(\s*>[\s\S]*?)(?=\n\n|$)/,y6=/^ *> ?/gm,v6=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,_6=/^ {2,}\n/,E6=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ux=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,fx=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,w6=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,S6=/^(?:\n *)*\n/,x6=/\r\n?/g,T6=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,k6=/^\[\^([^\]]+)]/,N6=/\f/g,R6=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,A6=/^\s*?\[(x|\s)\]/,dx=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,hx=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,mx=/^([^\n]+)\n *(=|-){3,} *\n/,yb=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,O6=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,px=/^<!--[\s\S]*?(?:-->)/,C6=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,vb=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,D6=/^\{.*\}$/,M6=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U6=/^<([^ >]+@[^ >]+)>/,B6=/^<([^ >]+:\/[^ >]+)>/,L6=/-([a-z])?/gi,bx=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,j6=/^[^\n]+(?: \n|\n{2,})/,H6=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,z6=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,I6=/^\[([^\]]*)\] ?\[([^\]]*)\]/,V6=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G6=/\t/g,q6=/(^ *\||\| *$)/g,F6=/^ *:-+: *$/,P6=/^ *:-+ *$/,$6=/^ *-+: *$/,sd="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Y6=RegExp(`^([*_])\\1${sd}\\1\\1(?!\\1)`),X6=RegExp(`^([*_])${sd}\\1(?!\\1)`),Z6=RegExp(`^(==)${sd}\\1`),Q6=RegExp(`^(~~)${sd}\\1`),W6=/^\\([^0-9A-Za-z\s])/,gx=/\\([^0-9A-Za-z\s])/g,K6=/^[\s\S](?:(?! |[0-9]\.|http)[^=*_~\-\n<`\\\[!])*/,J6=/^\n+/,e4=/^([ \t]*)/,t4=/\\([^\\])/g,n4=/(?:^|\n)( *)$/,ry="(?:\\d+\\.)",ay="(?:[*+-])";function qk(n){return"( *)("+(n===1?ry:ay)+") +"}const Fk=qk(1),Pk=qk(2);function $k(n){return RegExp("^"+(n===1?Fk:Pk))}const r4=$k(1),a4=$k(2);function Yk(n){return RegExp("^"+(n===1?Fk:Pk)+"[^\\n]*(?:\\n(?!\\1"+(n===1?ry:ay)+" )[^\\n]*)*(\\n|$)","gm")}const i4=Yk(1),o4=Yk(2);function Xk(n){const a=n===1?ry:ay;return RegExp("^( *)("+a+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+a+" (?!"+a+" ))\\n*|\\s*\\n*$)")}const Zk=Xk(1),Qk=Xk(2);function yx(n,a){const o=a===1,l=o?Zk:Qk,u=o?i4:o4,f=o?r4:a4;return{t:d=>f.test(d),o:sc(function(d,h){const p=n4.exec(h.prevCapture);return p&&(h.list||!h.inline&&!h.simple)?l.exec(d=p[1]+d):null}),i:1,u(d,h,p){const y=o?+d[2]:void 0,v=d[0].replace(g6,`
|
|
326
|
+
`).match(u);let _=!1;return{items:v.map(function(g,A){const U=f.exec(g)[0].length,I=RegExp("^ {1,"+U+"}","gm"),j=g.replace(I,"").replace(f,""),w=A===v.length-1,R=j.indexOf(`
|
|
327
|
+
|
|
328
|
+
`)!==-1||w&&_;_=R;const T=p.inline,N=p.list;let D;p.list=!0,R?(p.inline=!1,D=Kl(j)+`
|
|
329
|
+
|
|
330
|
+
`):(p.inline=!0,D=Kl(j));const z=h(D,p);return p.inline=T,p.list=N,z}),ordered:o,start:y}},l:(d,h,p)=>n(d.ordered?"ol":"ul",{key:p.key,start:d.type==="20"?d.start:void 0},d.items.map(function(y,v){return n("li",{key:v},h(y,p))}))}}const s4=RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),l4=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Kl(n){let a=n.length;for(;a>0&&n[a-1]<=" ";)a--;return n.slice(0,a)}function _g(n,a){return n.startsWith(a)}function c4(n,a,o){if(Array.isArray(o)){for(let l=0;l<o.length;l++)if(_g(n,o[l]))return!0;return!1}return o(n,a)}function ql(n){return n.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function u4(n){return $6.test(n)?"right":F6.test(n)?"center":P6.test(n)?"left":null}function vx(n,a,o,l){const u=o.inTable;o.inTable=!0;let f=[[]],d="";function h(){if(!d)return;const p=f[f.length-1];p.push.apply(p,a(d,o)),d=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,y,v)=>{p.trim()==="|"&&(h(),l)?y!==0&&y!==v.length-1&&f.push([]):d+=p}),h(),o.inTable=u,f}function f4(n,a,o){o.inline=!0;const l=n[2]?n[2].replace(q6,"").split("|").map(u4):[],u=n[3]?function(d,h,p){return d.trim().split(`
|
|
331
|
+
`).map(function(y){return vx(y,h,p,!0)})}(n[3],a,o):[],f=vx(n[1],a,o,!!u.length);return o.inline=!1,u.length?{align:l,cells:u,header:f,type:"25"}:{children:f,type:"21"}}function _x(n,a){return n.align[a]==null?{}:{textAlign:n.align[a]}}function sc(n){return n.inline=1,n}function Ka(n){return sc(function(a,o){return o.inline?n.exec(a):null})}function Ja(n){return sc(function(a,o){return o.inline||o.simple?n.exec(a):null})}function da(n){return function(a,o){return o.inline||o.simple?null:n.exec(a)}}function Fl(n){return sc(function(a){return n.exec(a)})}const d4=/(javascript|vbscript|data(?!:image)):/i;function h4(n){try{const a=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(d4.test(a))return null}catch{return null}return n}function Ex(n){return n.replace(t4,"$1")}function jf(n,a,o){const l=o.inline||!1,u=o.simple||!1;o.inline=!0,o.simple=!0;const f=n(a,o);return o.inline=l,o.simple=u,f}function m4(n,a,o){const l=o.inline||!1,u=o.simple||!1;o.inline=!1,o.simple=!0;const f=n(a,o);return o.inline=l,o.simple=u,f}function p4(n,a,o){const l=o.inline||!1;o.inline=!1;const u=n(a,o);return o.inline=l,u}const _b=(n,a,o)=>({children:jf(a,n[2],o)});function Eb(){return{}}function wb(){return null}function b4(...n){return n.filter(Boolean).join(" ")}function Sb(n,a,o){let l=n;const u=a.split(".");for(;u.length&&(l=l[u[0]],l!==void 0);)u.shift();return l||o}function g4(n="",a={}){a.overrides=a.overrides||{},a.namedCodesToUnicode=a.namedCodesToUnicode?Zi({},lx,a.namedCodesToUnicode):lx;const o=a.slugify||ql,l=a.sanitizer||h4,u=a.createElement||V.createElement,f=[cx,ux,fx,a.enforceAtxHeadings?hx:dx,mx,bx,Zk,Qk],d=[...f,j6,yb,px,vb];function h(w,R,...T){const N=Sb(a.overrides,w+".props",{});return u(function(D,z){const X=Sb(z,D);return X?typeof X=="function"||typeof X=="object"&&"render"in X?X:Sb(z,D+".component",D):D}(w,a.overrides),Zi({},R,N,{className:b4(R==null?void 0:R.className,N.className)||void 0}),...T)}function p(w){w=w.replace(R6,"");let R=!1;a.forceInline?R=!0:a.forceBlock||(R=V6.test(w)===!1);const T=U(A(R?w:Kl(w).replace(J6,"")+`
|
|
332
|
+
|
|
333
|
+
`,{inline:R}));for(;typeof T[T.length-1]=="string"&&!T[T.length-1].trim();)T.pop();if(a.wrapper===null)return T;const N=a.wrapper||(R?"span":"div");let D;if(T.length>1||a.forceWrapper)D=T;else{if(T.length===1)return D=T[0],typeof D=="string"?h("span",{key:"outer"},D):D;D=null}return u(N,{key:"outer"},D)}function y(w,R){if(!R||!R.trim())return null;const T=R.match(p6);return T?T.reduce(function(N,D){const z=D.indexOf("=");if(z!==-1){const X=function(Q){return Q.indexOf("-")!==-1&&Q.match(C6)===null&&(Q=Q.replace(L6,function(ie,ce){return ce.toUpperCase()})),Q}(D.slice(0,z)).trim(),re=function(Q){const ie=Q[0];return(ie==='"'||ie==="'")&&Q.length>=2&&Q[Q.length-1]===ie?Q.slice(1,-1):Q}(D.slice(z+1).trim()),Z=sx[X]||X;if(Z==="ref")return N;const ee=N[Z]=function(Q,ie,ce,Ye){return ie==="style"?function(Ce){const W=[];let he="",ue=!1,Te=!1,Y="";if(!Ce)return W;for(let le=0;le<Ce.length;le++){const Ee=Ce[le];if(Ee!=='"'&&Ee!=="'"||ue||(Te?Ee===Y&&(Te=!1,Y=""):(Te=!0,Y=Ee)),Ee==="("&&he.endsWith("url")?ue=!0:Ee===")"&&ue&&(ue=!1),Ee!==";"||Te||ue)he+=Ee;else{const qe=he.trim();if(qe){const st=qe.indexOf(":");if(st>0){const ke=qe.slice(0,st).trim(),sn=qe.slice(st+1).trim();W.push([ke,sn])}}he=""}}const me=he.trim();if(me){const le=me.indexOf(":");if(le>0){const Ee=me.slice(0,le).trim(),qe=me.slice(le+1).trim();W.push([Ee,qe])}}return W}(ce).reduce(function(Ce,[W,he]){return Ce[W.replace(/(-[a-z])/g,ue=>ue[1].toUpperCase())]=Ye(he,Q,W),Ce},{}):m6.indexOf(ie)!==-1?Ye(ce,Q,ie):(ce.match(D6)&&(ce=ce.slice(1,ce.length-1)),ce==="true"||ce!=="false"&&ce)}(w,X,re,l);typeof ee=="string"&&(yb.test(ee)||vb.test(ee))&&(N[Z]=p(ee.trim()))}else D!=="style"&&(N[sx[D]||D]=!0);return N},{}):null}const v=[],_={},g={0:{t:[">"],o:da(cx),i:1,u(w,R,T){const[,N,D]=w[0].replace(y6,"").match(v6);return{alert:N,children:R(D,T)}},l(w,R,T){const N={key:T.key};return w.alert&&(N.className="markdown-alert-"+o(w.alert.toLowerCase(),ql),w.children.unshift({attrs:{},children:[{type:"27",text:w.alert}],noInnerParse:!0,type:"11",tag:"header"})),h("blockquote",N,R(w.children,T))}},1:{o:Fl(_6),i:1,u:Eb,l:(w,R,T)=>h("br",{key:T.key})},2:{t:w=>{const R=w[0];return R==="-"||R==="*"||R==="_"},o:da(E6),i:1,u:Eb,l:(w,R,T)=>h("hr",{key:T.key})},3:{t:[" "],o:da(fx),i:0,u:w=>({lang:void 0,text:Kl(w[0].replace(/^ {4}/gm,"")).replace(gx,"$1")}),l:(w,R,T)=>h("pre",{key:T.key},h("code",Zi({},w.attrs,{className:w.lang?"lang-"+w.lang:""}),w.text))},4:{t:["```","~~~"],o:da(ux),i:0,u:w=>({attrs:y("code",w[3]||""),lang:w[2]||void 0,text:w[4],type:"3"})},5:{t:["`"],o:Ja(w6),i:3,u:w=>({text:w[2].replace(gx,"$1")}),l:(w,R,T)=>h("code",{key:T.key},w.text)},6:{t:["[^"],o:da(T6),i:0,u:w=>(v.push({footnote:w[2],identifier:w[1]}),{}),l:wb},7:{t:["[^"],o:Ka(k6),i:1,u:w=>({target:"#"+o(w[1],ql),text:w[1]}),l:(w,R,T)=>h("a",{key:T.key,href:l(w.target,"a","href")},h("sup",{key:T.key},w.text))},8:{t:["[ ]","[x]"],o:Ka(A6),i:1,u:w=>({completed:w[1].toLowerCase()==="x"}),l:(w,R,T)=>h("input",{checked:w.completed,key:T.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:da(a.enforceAtxHeadings?hx:dx),i:1,u:(w,R,T)=>({children:jf(R,w[2],T),id:o(w[2],ql),level:w[1].length}),l:(w,R,T)=>h("h"+w.level,{id:w.id,key:T.key},R(w.children,T))},10:{o:da(mx),i:0,u:(w,R,T)=>({children:jf(R,w[1],T),level:w[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Fl(yb),i:1,u(w,R,T){const[,N]=w[3].match(e4),D=RegExp("^"+N,"gm"),z=w[3].replace(D,""),X=(re=z,d.some(ce=>ce.test(re))?p4:jf);var re;const Z=w[1].toLowerCase(),ee=h6.indexOf(Z)!==-1,Q=(ee?Z:w[1]).trim(),ie={attrs:y(Q,w[2]),noInnerParse:ee,tag:Q};return T.inAnchor=T.inAnchor||Z==="a",ee?ie.text=w[3]:ie.children=X(R,z,T),T.inAnchor=!1,ie},l:(w,R,T)=>h(w.tag,Zi({key:T.key},w.attrs),w.text||(w.children?R(w.children,T):""))},13:{t:["<"],o:Fl(vb),i:1,u(w){const R=w[1].trim();return{attrs:y(R,w[2]||""),tag:R}},l:(w,R,T)=>h(w.tag,Zi({},w.attrs,{key:T.key}))},12:{t:["<!--"],o:Fl(px),i:1,u:()=>({}),l:wb},14:{t:["!["],o:Ja(l4),i:1,u:w=>({alt:w[1],target:Ex(w[2]),title:w[3]}),l:(w,R,T)=>h("img",{key:T.key,alt:w.alt||void 0,title:w.title||void 0,src:l(w.target,"img","src")})},15:{t:["["],o:Ka(s4),i:3,u:(w,R,T)=>({children:m4(R,w[1],T),target:Ex(w[2]),title:w[3]}),l:(w,R,T)=>h("a",{key:T.key,href:l(w.target,"a","href"),title:w.title},R(w.children,T))},16:{t:["<"],o:Ka(B6),i:0,u:w=>({children:[{text:w[1],type:"27"}],target:w[1],type:"15"})},17:{t:(w,R)=>!R.inAnchor&&!a.disableAutoLink&&(_g(w,"http://")||_g(w,"https://")),o:Ka(M6),i:0,u:w=>({children:[{text:w[1],type:"27"}],target:w[1],title:void 0,type:"15"})},18:{t:["<"],o:Ka(U6),i:0,u(w){let R=w[1],T=w[1];return b6.test(T)||(T="mailto:"+T),{children:[{text:R.replace("mailto:",""),type:"27"}],target:T,type:"15"}}},20:yx(h,1),33:yx(h,2),19:{o:da(S6),i:3,u:Eb,l:()=>`
|
|
334
|
+
`},21:{o:sc(function(w,R){if(R.inline||R.simple)return null;let T="";w.split(`
|
|
335
|
+
`).every(D=>(D+=`
|
|
336
|
+
`,!f.some(z=>z.test(D))&&(T+=D,!!D.trim())));const N=Kl(T);return N===""?null:[T,,N]}),i:3,u:_b,l:(w,R,T)=>h("p",{key:T.key},R(w.children,T))},22:{t:["["],o:Ka(H6),i:0,u:w=>(_[w[1]]={target:w[2],title:w[4]},{}),l:wb},23:{t:["!["],o:Ja(z6),i:0,u:w=>({alt:w[1]||void 0,ref:w[2]}),l:(w,R,T)=>_[w.ref]?h("img",{key:T.key,alt:w.alt,src:l(_[w.ref].target,"img","src"),title:_[w.ref].title}):null},24:{t:["["],o:Ka(I6),i:0,u:(w,R,T)=>({children:R(w[1],T),fallbackChildren:w[0],ref:w[2]}),l:(w,R,T)=>_[w.ref]?h("a",{key:T.key,href:l(_[w.ref].target,"a","href"),title:_[w.ref].title},R(w.children,T)):h("span",{key:T.key},w.fallbackChildren)},25:{t:["|"],o:da(bx),i:1,u:f4,l(w,R,T){const N=w;return h("table",{key:T.key},h("thead",null,h("tr",null,N.header.map(function(D,z){return h("th",{key:z,style:_x(N,z)},R(D,T))}))),h("tbody",null,N.cells.map(function(D,z){return h("tr",{key:z},D.map(function(X,re){return h("td",{key:re,style:_x(N,re)},R(X,T))}))})))}},27:{o:Fl(K6),i:4,u(w){const R=w[0];return{text:R.indexOf("&")===-1?R:R.replace(O6,(T,N)=>a.namedCodesToUnicode[N]||T)}},l:w=>w.text},28:{t:["**","__"],o:Ja(Y6),i:2,u:(w,R,T)=>({children:R(w[2],T)}),l:(w,R,T)=>h("strong",{key:T.key},R(w.children,T))},29:{t:w=>{const R=w[0];return(R==="*"||R==="_")&&w[1]!==R},o:Ja(X6),i:3,u:(w,R,T)=>({children:R(w[2],T)}),l:(w,R,T)=>h("em",{key:T.key},R(w.children,T))},30:{t:["\\"],o:Ja(W6),i:1,u:w=>({text:w[1],type:"27"})},31:{t:["=="],o:Ja(Z6),i:3,u:_b,l:(w,R,T)=>h("mark",{key:T.key},R(w.children,T))},32:{t:["~~"],o:Ja(Q6),i:3,u:_b,l:(w,R,T)=>h("del",{key:T.key},R(w.children,T))}};a.disableParsingRawHTML===!0&&(delete g[11],delete g[13]);const A=function(w){var R=Object.keys(w);function T(N,D){var z=[];if(D.prevCapture=D.prevCapture||"",N.trim())for(;N;)for(var X=0;X<R.length;){var re=R[X],Z=w[re];if(!Z.t||c4(N,D,Z.t)){var ee=Z.o(N,D);if(ee&&ee[0]){D.prevCapture+=ee[0],N=N.substring(ee[0].length);var Q=Z.u(ee,T,D);Q.type||(Q.type=re),z.push(Q);break}X++}else X++}return D.prevCapture="",z}return R.sort(function(N,D){return w[N].i-w[D].i||(N<D?-1:1)}),function(N,D){return T(function(z){return z.replace(x6,`
|
|
337
|
+
`).replace(N6,"").replace(G6," ")}(N),D)}}(g),U=(I=function(w,R){return function(T,N,D){const z=w[T.type].l;return R?R(()=>z(T,N,D),T,N,D):z(T,N,D)}}(g,a.renderRule),function w(R,T={}){if(Array.isArray(R)){const N=T.key,D=[];let z=!1;for(let X=0;X<R.length;X++){T.key=X;const re=w(R[X],T),Z=typeof re=="string";Z&&z?D[D.length-1]+=re:re!==null&&D.push(re),z=Z}return T.key=N,D}return I(R,w,T)});var I;const j=p(n);return v.length?h("div",null,j,h("footer",{key:"footer"},v.map(function(w){return h("div",{id:o(w.identifier,ql),key:w.identifier},w.identifier,U(A(w.footnote,{inline:!0})))}))):j}const Lr=n=>{let{children:a="",options:o}=n,l=function(u,f){if(u==null)return{};var d,h,p={},y=Object.keys(u);for(h=0;h<y.length;h++)f.indexOf(d=y[h])>=0||(p[d]=u[d]);return p}(n,f6);return V.cloneElement(g4(a,o),l)},y4="_generalConditionsContainer_55hjg_1",v4="_generalConditions_55hjg_1",_4="_generalConditionsHeader_55hjg_15",E4="_generalConditionsBody_55hjg_26",w4="_generalConditionsAccept_55hjg_35",Pl={generalConditionsContainer:y4,generalConditions:v4,generalConditionsHeader:_4,generalConditionsBody:E4,generalConditionsAccept:w4},S4=()=>E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsxDEV("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/caret-down.tsx",lineNumber:9,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/caret-down.tsx",lineNumber:2,columnNumber:3},void 0),x4=()=>E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsxDEV("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/caret-up.tsx",lineNumber:9,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/caret-up.tsx",lineNumber:2,columnNumber:3},void 0),T4="general-conditions.header",k4="general-conditions.body",wx="general-conditions.accept-conditions-note",N4=()=>{const n=gt(),[a,o]=V.useState(!1),l=()=>o(!a),u=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?o(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?o(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&l()},f=n(T4),d=n(wx);return E.jsxDEV("div",{className:te(Pl.generalConditionsContainer,"chat__generalConditions"),children:[!!(f!=null&&f.length)&&E.jsxDEV("div",{className:Pl.generalConditions,children:[E.jsxDEV("div",{role:"button",onClick:l,onKeyDown:u,tabIndex:0,className:te(Pl.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":a?"true":"false","aria-pressed":a?"true":"false",children:[E.jsxDEV(Lr,{children:f},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/index.tsx",lineNumber:62,columnNumber:13},void 0),a?E.jsxDEV(x4,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/index.tsx",lineNumber:63,columnNumber:28},void 0):E.jsxDEV(S4,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/index.tsx",lineNumber:63,columnNumber:42},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/index.tsx",lineNumber:49,columnNumber:11},void 0),E.jsxDEV("div",{className:te(Pl.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:a&&E.jsxDEV(Lr,{children:n(k4)||""},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/index.tsx",lineNumber:74,columnNumber:29},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/index.tsx",lineNumber:65,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/index.tsx",lineNumber:48,columnNumber:9},void 0),!!(d!=null&&d.length)&&E.jsxDEV("div",{className:te(Pl.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:E.jsxDEV(Lr,{children:n(wx)||""},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/index.tsx",lineNumber:86,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/index.tsx",lineNumber:79,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/general-conditions/index.tsx",lineNumber:41,columnNumber:5},void 0)},R4="_message_6i1zm_1",A4="_messageBot_6i1zm_9",O4="_messageBotLast_6i1zm_19",C4="_avatar_6i1zm_19",D4="_messageBotFirst_6i1zm_24",M4="_messageBotAnimated_6i1zm_37",U4="_messageGuest_6i1zm_48",B4="_messageGuestFirst_6i1zm_54",L4="_messageGuestLast_6i1zm_60",j4="_botAvatar_6i1zm_74",H4="_agentAvatar_6i1zm_78",z4="_bubble_6i1zm_82",I4="_bubbleContent_6i1zm_88",V4="_bubbleLeft_6i1zm_102",G4="_leftText_6i1zm_113",q4="_bubbleRight_6i1zm_120",F4="_rightText_6i1zm_130",P4="_sourceInfoReference_6i1zm_162",$4="_sourceInfoReferenceActive_6i1zm_174",Ae={message:R4,messageBot:A4,messageBotLast:O4,avatar:C4,messageBotFirst:D4,messageBotAnimated:M4,messageGuest:U4,messageGuestFirst:B4,messageGuestLast:L4,botAvatar:j4,agentAvatar:H4,bubble:z4,bubbleContent:I4,bubbleLeft:V4,leftText:G4,bubbleRight:q4,rightText:F4,sourceInfoReference:P4,sourceInfoReferenceActive:$4},Y4="_botMessageActions_1dl7x_1",X4="_alwaysVisible_1dl7x_22",Z4="_reported_1dl7x_29",Q4="_action_1dl7x_33",ei={botMessageActions:Y4,alwaysVisible:X4,reported:Z4,action:Q4},W4=({alwaysVisible:n,senderType:a,reaction:o,botMessageRef:l,onReaction:u})=>{const f=gt(),[d,h]=V.useState(!1),p=v=>()=>u(v),y=V.useCallback(async()=>{if(l.current)try{h(!0);const v=l.current.innerHTML,_=l.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([_],{type:"text/plain"})})]),await new Promise(g=>setTimeout(g,1500))}finally{h(!1)}},[l]);return E.jsxDEV("div",{className:te(ei.botMessageActions,n&&ei.alwaysVisible,o&&ei.reported),children:[a===Yf.BOT&&E.jsxDEV("button",{className:te(ei.action,o==="GOOD"&&ei.reported,"tooltip--top-right"),tabIndex:0,"aria-label":f(o==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":f(o==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:p(o==="GOOD"?null:"GOOD"),children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:o==="GOOD"?E.jsxDEV("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:83,columnNumber:15},void 0):E.jsxDEV("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:85,columnNumber:15},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:75,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:56,columnNumber:9},void 0),a===Yf.BOT&&E.jsxDEV("button",{className:te(ei.action,o==="BAD"&&ei.reported,"tooltip--top-right"),tabIndex:0,"aria-label":f(o==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":f(o==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:p(o==="BAD"?null:"BAD"),children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:o==="BAD"?E.jsxDEV("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:119,columnNumber:15},void 0):E.jsxDEV("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:121,columnNumber:15},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:111,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:92,columnNumber:9},void 0),E.jsxDEV("button",{className:te(ei.action,"tooltip--top-right"),tabIndex:0,"aria-label":f("bot-bubble.copy"),"data-title":f("bot-bubble.copy"),onClick:y,children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:d?E.jsxDEV("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:142,columnNumber:13},void 0):E.jsxDEV("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:144,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:134,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:127,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/BotMessageActions.tsx",lineNumber:48,columnNumber:5},void 0)},Wk=V.forwardRef(({message:n,isAnimated:a,isLastMessage:o,isFirstMessageBySender:l,isLastMessageBySender:u,children:f,onReaction:d},h)=>{const p=gt(),y=V.useRef(null),v=n.sender.type===Ie.UserType.BOT;return E.jsxDEV("li",{ref:h,className:te(Ae.message,Ae.messageBot,o&&Ae.lastMessage,l&&Ae.messageBotFirst,u&&Ae.messageBotLast,"chat__bubbleContainer",a&&Ae.messageBotAnimated,a&&"chat__bubbleContainer--animated",v?"chat__botBubbleContainer":"chat__agentBubbleContainer",l&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[E.jsxDEV("img",{className:te(Ae.avatar,v?Ae.botAvatar:Ae.agentAvatar,"chat__avatar",v?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:v?"Bot":"Agent",referrerPolicy:"no-referrer"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/index.tsx",lineNumber:52,columnNumber:9},void 0),E.jsxDEV("div",{ref:y,className:te(Ae.bubble,Ae.bubbleLeft,"chat__bubble",v?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(v?"bot-bubble.label":"agent-bubble.label"),children:E.jsxDEV("div",{className:te(Ae.leftText),children:f},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/index.tsx",lineNumber:77,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/index.tsx",lineNumber:64,columnNumber:9},void 0),d&&E.jsxDEV(W4,{alwaysVisible:o&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:y,onReaction:d},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/index.tsx",lineNumber:81,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/bot-message/index.tsx",lineNumber:36,columnNumber:7},void 0)}),K4="_sourceList_1n31h_1",J4="_source_1n31h_1",e5="_label_1n31h_37",xb={sourceList:K4,source:J4,label:e5},Kk=n=>E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:E.jsxDEV("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/icons/docx.tsx",lineNumber:10,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/icons/docx.tsx",lineNumber:2,columnNumber:3},void 0),Jk=n=>E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:E.jsxDEV("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/icons/file.tsx",lineNumber:10,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/icons/file.tsx",lineNumber:2,columnNumber:3},void 0),eN=n=>E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:E.jsxDEV("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/icons/pdf.tsx",lineNumber:10,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/icons/pdf.tsx",lineNumber:2,columnNumber:3},void 0),tN=n=>E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:E.jsxDEV("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/icons/web.tsx",lineNumber:10,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/icons/web.tsx",lineNumber:2,columnNumber:3},void 0),t5=({type:n,...a})=>{switch(n){case"WEBSITE":return E.jsxDEV(tN,{...a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/message-sources/source-icon.tsx",lineNumber:14,columnNumber:14},void 0);case"PDF":return E.jsxDEV(eN,{...a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/message-sources/source-icon.tsx",lineNumber:16,columnNumber:14},void 0);case"DOCX":return E.jsxDEV(Kk,{...a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/message-sources/source-icon.tsx",lineNumber:18,columnNumber:14},void 0);default:return E.jsxDEV(Jk,{...a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/message-sources/source-icon.tsx",lineNumber:20,columnNumber:14},void 0)}},iy=({sources:n,onLinkClick:a})=>{const o=gt(),l=f=>()=>{a(f.url)},u=f=>d=>{(d.key==="Enter"||d.key===" ")&&a(f.url)};return n.length?E.jsxDEV("ul",{className:xb.sourceList,"aria-label":o("bot-bubble.sources"),children:n.map(f=>E.jsxDEV("li",{className:xb.source,children:E.jsxDEV("a",{role:"button",tabIndex:0,"aria-label":`${o("bot-bubble.source.open")}: ${f.label}`,onClick:l(f),onKeyDown:u(f),children:[E.jsxDEV(t5,{type:f.type,"aria-hidden":"true"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/message-sources/index.tsx",lineNumber:39,columnNumber:13},void 0),E.jsxDEV("div",{className:xb.label,children:f.label},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/message-sources/index.tsx",lineNumber:40,columnNumber:13},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/message-sources/index.tsx",lineNumber:32,columnNumber:11},void 0)},f.url,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/message-sources/index.tsx",lineNumber:31,columnNumber:9},void 0))},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/message-sources/index.tsx",lineNumber:26,columnNumber:5},void 0):null},n5="_button_3ui4g_1",r5="_buttonDefault_3ui4g_13",a5="_buttonPrimary_3ui4g_28",tc={button:n5,buttonDefault:r5,buttonPrimary:a5},ld=({className:n,children:a,...o})=>E.jsxDEV("button",{className:te(tc.button,n),type:"button",role:"button",...o,children:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/button/button.tsx",lineNumber:11,columnNumber:5},void 0),i5="_title_b904h_1",o5="_subtitle_b904h_6",s5="_buttons_b904h_11",l5="_button_b904h_11",c5="_imageContainer_b904h_34",u5="_image_b904h_34",f5="_video_container_b904h_49",d5="_video_b904h_49",h5="_only_b904h_63",bn={title:i5,subtitle:o5,buttons:s5,button:l5,imageContainer:c5,image:u5,video_container:f5,video:d5,only:h5},m5=({buttons:n,onButtonClick:a})=>E.jsxDEV("div",{className:te(bn.buttons,"chat__bubbleButtons"),children:n.map((o,l)=>E.jsxDEV(ld,{className:te(bn.button,"chat__bubbleButton"),onClick:()=>a(o),children:o.title},l,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Buttons.tsx",lineNumber:14,columnNumber:7},void 0))},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Buttons.tsx",lineNumber:12,columnNumber:3},void 0);var Tf={},kf={},Nf={},Sx;function p5(){if(Sx)return Nf;Sx=1,Object.defineProperty(Nf,"__esModule",{value:!0});var n=to(),a=o(n);function o(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(u[f]=l[f]);return u.default=l,u}return Nf.default=function(l,u,f){return a.createElement("a",{href:l,key:f},u)},Nf}var Rf={},xx;function b5(){return xx||(xx=1,Object.defineProperty(Rf,"__esModule",{value:!0}),Rf.default=function(n){return n}),Rf}var Af={},Tb,Tx;function g5(){return Tx||(Tx=1,Tb=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Tb}var kb,kx;function y5(){return kx||(kx=1,kb=/[\0-\x1F\x7F-\x9F]/),kb}var Nb,Nx;function v5(){return Nx||(Nx=1,Nb=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Nb}var Rb,Rx;function _5(){return Rx||(Rx=1,Rb=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Rb}var Ab,Ax;function E5(){return Ax||(Ax=1,Ab=function(n){var a={};a.src_Any=g5().source,a.src_Cc=y5().source,a.src_Z=v5().source,a.src_P=_5().source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join("|"),a.src_ZCc=[a.src_Z,a.src_Cc].join("|");var o="[><|]";return a.src_pseudo_letter="(?:(?!"+o+"|"+a.src_ZPCc+")"+a.src_Any+")",a.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a.src_auth="(?:(?:(?!"+a.src_ZCc+"|[@/\\[\\]()]).)+@)?",a.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",a.src_host_terminator="(?=$|"+o+"|"+a.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+a.src_ZPCc+"))",a.src_path="(?:[/?#](?:(?!"+a.src_ZCc+"|"+o+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+a.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+a.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+a.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+a.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+a.src_ZCc+"|[']).)+\\'|\\'(?="+a.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+a.src_ZCc+"|[.]).|"+(n&&n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+a.src_ZCc+").|\\!(?!"+a.src_ZCc+"|[!]).|\\?(?!"+a.src_ZCc+"|[?]).)+|\\/)?",a.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',a.src_xn="xn--[a-z0-9\\-]{1,59}",a.src_domain_root="(?:"+a.src_xn+"|"+a.src_pseudo_letter+"{1,63})",a.src_domain="(?:"+a.src_xn+"|(?:"+a.src_pseudo_letter+")|(?:"+a.src_pseudo_letter+"(?:-|"+a.src_pseudo_letter+"){0,61}"+a.src_pseudo_letter+"))",a.src_host="(?:(?:(?:(?:"+a.src_domain+")\\.)*"+a.src_domain+"))",a.tpl_host_fuzzy="(?:"+a.src_ip4+"|(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%)))",a.tpl_host_no_ip_fuzzy="(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%))",a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+a.src_ZPCc+"|>|$))",a.tpl_email_fuzzy="(^|"+o+'|"|\\(|'+a.src_ZCc+")("+a.src_email_name+"@"+a.tpl_host_fuzzy_strict+")",a.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_fuzzy_strict+a.src_path+")",a.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_no_ip_fuzzy_strict+a.src_path+")",a}),Ab}var Ob,Ox;function w5(){if(Ox)return Ob;Ox=1;function n(T){var N=Array.prototype.slice.call(arguments,1);return N.forEach(function(D){D&&Object.keys(D).forEach(function(z){T[z]=D[z]})}),T}function a(T){return Object.prototype.toString.call(T)}function o(T){return a(T)==="[object String]"}function l(T){return a(T)==="[object Object]"}function u(T){return a(T)==="[object RegExp]"}function f(T){return a(T)==="[object Function]"}function d(T){return T.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(T){return Object.keys(T||{}).reduce(function(N,D){return N||h.hasOwnProperty(D)},!1)}var y={"http:":{validate:function(T,N,D){var z=T.slice(N);return D.re.http||(D.re.http=new RegExp("^\\/\\/"+D.re.src_auth+D.re.src_host_port_strict+D.re.src_path,"i")),D.re.http.test(z)?z.match(D.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(T,N,D){var z=T.slice(N);return D.re.no_http||(D.re.no_http=new RegExp("^"+D.re.src_auth+"(?:localhost|(?:(?:"+D.re.src_domain+")\\.)+"+D.re.src_domain_root+")"+D.re.src_port+D.re.src_host_terminator+D.re.src_path,"i")),D.re.no_http.test(z)?N>=3&&T[N-3]===":"||N>=3&&T[N-3]==="/"?0:z.match(D.re.no_http)[0].length:0}},"mailto:":{validate:function(T,N,D){var z=T.slice(N);return D.re.mailto||(D.re.mailto=new RegExp("^"+D.re.src_email_name+"@"+D.re.src_host_strict,"i")),D.re.mailto.test(z)?z.match(D.re.mailto)[0].length:0}}},v="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",_="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function g(T){T.__index__=-1,T.__text_cache__=""}function A(T){return function(N,D){var z=N.slice(D);return T.test(z)?z.match(T)[0].length:0}}function U(){return function(T,N){N.normalize(T)}}function I(T){var N=T.re=E5()(T.__opts__),D=T.__tlds__.slice();T.onCompile(),T.__tlds_replaced__||D.push(v),D.push(N.src_xn),N.src_tlds=D.join("|");function z(ee){return ee.replace("%TLDS%",N.src_tlds)}N.email_fuzzy=RegExp(z(N.tpl_email_fuzzy),"i"),N.link_fuzzy=RegExp(z(N.tpl_link_fuzzy),"i"),N.link_no_ip_fuzzy=RegExp(z(N.tpl_link_no_ip_fuzzy),"i"),N.host_fuzzy_test=RegExp(z(N.tpl_host_fuzzy_test),"i");var X=[];T.__compiled__={};function re(ee,Q){throw new Error('(LinkifyIt) Invalid schema "'+ee+'": '+Q)}Object.keys(T.__schemas__).forEach(function(ee){var Q=T.__schemas__[ee];if(Q!==null){var ie={validate:null,link:null};if(T.__compiled__[ee]=ie,l(Q)){u(Q.validate)?ie.validate=A(Q.validate):f(Q.validate)?ie.validate=Q.validate:re(ee,Q),f(Q.normalize)?ie.normalize=Q.normalize:Q.normalize?re(ee,Q):ie.normalize=U();return}if(o(Q)){X.push(ee);return}re(ee,Q)}}),X.forEach(function(ee){T.__compiled__[T.__schemas__[ee]]&&(T.__compiled__[ee].validate=T.__compiled__[T.__schemas__[ee]].validate,T.__compiled__[ee].normalize=T.__compiled__[T.__schemas__[ee]].normalize)}),T.__compiled__[""]={validate:null,normalize:U()};var Z=Object.keys(T.__compiled__).filter(function(ee){return ee.length>0&&T.__compiled__[ee]}).map(d).join("|");T.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+N.src_ZPCc+"))("+Z+")","i"),T.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+N.src_ZPCc+"))("+Z+")","ig"),T.re.pretest=RegExp("("+T.re.schema_test.source+")|("+T.re.host_fuzzy_test.source+")|@","i"),g(T)}function j(T,N){var D=T.__index__,z=T.__last_index__,X=T.__text_cache__.slice(D,z);this.schema=T.__schema__.toLowerCase(),this.index=D+N,this.lastIndex=z+N,this.raw=X,this.text=X,this.url=X}function w(T,N){var D=new j(T,N);return T.__compiled__[D.schema].normalize(D,T),D}function R(T,N){if(!(this instanceof R))return new R(T,N);N||p(T)&&(N=T,T={}),this.__opts__=n({},h,N),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},y,T),this.__compiled__={},this.__tlds__=_,this.__tlds_replaced__=!1,this.re={},I(this)}return R.prototype.add=function(N,D){return this.__schemas__[N]=D,I(this),this},R.prototype.set=function(N){return this.__opts__=n(this.__opts__,N),this},R.prototype.test=function(N){if(this.__text_cache__=N,this.__index__=-1,!N.length)return!1;var D,z,X,re,Z,ee,Q,ie,ce;if(this.re.schema_test.test(N)){for(Q=this.re.schema_search,Q.lastIndex=0;(D=Q.exec(N))!==null;)if(re=this.testSchemaAt(N,D[2],Q.lastIndex),re){this.__schema__=D[2],this.__index__=D.index+D[1].length,this.__last_index__=D.index+D[0].length+re;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(ie=N.search(this.re.host_fuzzy_test),ie>=0&&(this.__index__<0||ie<this.__index__)&&(z=N.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(Z=z.index+z[1].length,(this.__index__<0||Z<this.__index__)&&(this.__schema__="",this.__index__=Z,this.__last_index__=z.index+z[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(ce=N.indexOf("@"),ce>=0&&(X=N.match(this.re.email_fuzzy))!==null&&(Z=X.index+X[1].length,ee=X.index+X[0].length,(this.__index__<0||Z<this.__index__||Z===this.__index__&&ee>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=Z,this.__last_index__=ee))),this.__index__>=0},R.prototype.pretest=function(N){return this.re.pretest.test(N)},R.prototype.testSchemaAt=function(N,D,z){return this.__compiled__[D.toLowerCase()]?this.__compiled__[D.toLowerCase()].validate(N,z,this):0},R.prototype.match=function(N){var D=0,z=[];this.__index__>=0&&this.__text_cache__===N&&(z.push(w(this,D)),D=this.__last_index__);for(var X=D?N.slice(D):N;this.test(X);)z.push(w(this,D)),X=X.slice(this.__last_index__),D+=this.__last_index__;return z.length?z:null},R.prototype.tlds=function(N,D){return N=Array.isArray(N)?N:[N],D?(this.__tlds__=this.__tlds__.concat(N).sort().filter(function(z,X,re){return z!==re[X-1]}).reverse(),I(this),this):(this.__tlds__=N.slice(),this.__tlds_replaced__=!0,I(this),this)},R.prototype.normalize=function(N){N.schema||(N.url="http://"+N.url),N.schema==="mailto:"&&!/^mailto:/i.test(N.url)&&(N.url="mailto:"+N.url)},R.prototype.onCompile=function(){},Ob=R,Ob}const S5=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var Cx;function x5(){if(Cx)return Af;Cx=1,Object.defineProperty(Af,"__esModule",{value:!0});var n=w5(),a=u(n),o=S5,l=u(o);function u(d){return d&&d.__esModule?d:{default:d}}var f=new a.default;return f.tlds(l.default),Af.default=function(d){return f.match(d)},Af}var Of={},Dx;function T5(){return Dx||(Dx=1,Object.defineProperty(Of,"__esModule",{value:!0}),Of.default=function(n){return n}),Of}var Mx;function k5(){if(Mx)return kf;Mx=1,Object.defineProperty(kf,"__esModule",{value:!0});var n=function(){function w(R,T){for(var N=0;N<T.length;N++){var D=T[N];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(R,D.key,D)}}return function(R,T,N){return T&&w(R.prototype,T),N&&w(R,N),R}}(),a=to(),o=g(a),l=p5(),u=_(l),f=b5(),d=_(f),h=x5(),p=_(h),y=T5(),v=_(y);function _(w){return w&&w.__esModule?w:{default:w}}function g(w){if(w&&w.__esModule)return w;var R={};if(w!=null)for(var T in w)Object.prototype.hasOwnProperty.call(w,T)&&(R[T]=w[T]);return R.default=w,R}function A(w,R){if(!(w instanceof R))throw new TypeError("Cannot call a class as a function")}function U(w,R){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:w}function I(w,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);w.prototype=Object.create(R&&R.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(w,R):w.__proto__=R)}var j=function(w){I(R,w);function R(){return A(this,R),U(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return n(R,[{key:"parseString",value:function(N){var D=this;if(N==="")return N;var z=this.props.matchDecorator(N);if(!z)return N;var X=[],re=0;return z.forEach(function(Z,ee){Z.index>re&&X.push(N.substring(re,Z.index));var Q=D.props.hrefDecorator(Z.url),ie=D.props.textDecorator(Z.text),ce=D.props.componentDecorator(Q,ie,ee);X.push(ce),re=Z.lastIndex}),N.length>re&&X.push(N.substring(re)),X.length===1?X[0]:X}},{key:"parse",value:function(N){var D=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof N=="string"?this.parseString(N):o.isValidElement(N)&&N.type!=="a"&&N.type!=="button"?o.cloneElement(N,{key:z},this.parse(N.props.children)):Array.isArray(N)?N.map(function(X,re){return D.parse(X,re)}):N}},{key:"render",value:function(){return o.createElement(o.Fragment,null,this.parse(this.props.children))}}]),R}(o.Component);return j.defaultProps={componentDecorator:u.default,hrefDecorator:d.default,matchDecorator:p.default,textDecorator:v.default},kf.default=j,kf}var Ux;function N5(){if(Ux)return Tf;Ux=1,Object.defineProperty(Tf,"__esModule",{value:!0});var n=k5(),a=o(n);function o(l){return l&&l.__esModule?l:{default:l}}return Tf.default=a.default,Tf}var R5=N5();const A5=Zf(R5),O5="_text_gp0s0_1",C5="_command_gp0s0_5",Bx={text:O5,command:C5},nN=({text:n,commands:a=[],onLinkClick:o})=>{const l=h=>p=>(p.preventDefault(),h&&o(h),!1),u=(h,p,y)=>E.jsxDEV("a",{onClick:l(h),role:"button",children:p},y,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/Text.tsx",lineNumber:24,columnNumber:5},void 0),f=a.find(h=>n.startsWith(`/${h}`)),d=f?n.slice(f.length+1):n;return E.jsxDEV("div",{children:[f&&E.jsxDEV("code",{className:Bx.command,children:["/",f]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/Text.tsx",lineNumber:34,columnNumber:19},void 0),d.split(`
|
|
338
|
+
`).map((h,p)=>E.jsxDEV("span",{className:Bx.text,children:[E.jsxDEV(A5,{componentDecorator:u,children:h},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/Text.tsx",lineNumber:37,columnNumber:11},void 0),E.jsxDEV("br",{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/Text.tsx",lineNumber:38,columnNumber:11},void 0)]},p,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/Text.tsx",lineNumber:36,columnNumber:9},void 0))]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/Text.tsx",lineNumber:33,columnNumber:5},void 0)},D5=({subtitle:n,onLinkClick:a})=>n?E.jsxDEV("div",{className:bn.subtitle,children:E.jsxDEV(nN,{text:n,onLinkClick:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Subtitle.tsx",lineNumber:12,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Subtitle.tsx",lineNumber:11,columnNumber:5},void 0):null,Lx="newtab#",rN=({markdown:n,markdownOptions:a={},onLinkClick:o})=>{const l=f=>d=>(d.preventDefault(),f&&o(f),!1),u=({title:f,href:d,children:h})=>d.indexOf(Lx)===0?E.jsxDEV("a",{href:d.slice(Lx.length),title:f,target:"_blank",rel:"noopener noreferrer",children:h},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/MarkdownText.tsx",lineNumber:32,columnNumber:7},void 0):E.jsxDEV("a",{onClick:l(d),title:f,href:d,children:h},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/MarkdownText.tsx",lineNumber:41,columnNumber:7},void 0);return E.jsxDEV(Lr,{options:{...a,overrides:{a:u}},children:n},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/MarkdownText.tsx",lineNumber:48,columnNumber:5},void 0)},M5=({text:n,onLinkClick:a})=>n?E.jsxDEV("div",{children:E.jsxDEV(rN,{markdown:n,onLinkClick:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Text.tsx",lineNumber:11,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Text.tsx",lineNumber:10,columnNumber:5},void 0):null,U5=({title:n})=>n?E.jsxDEV("h1",{className:bn.title,children:n},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Title.tsx",lineNumber:8,columnNumber:11},void 0):null,B5=({title:n,text:a,subtitle:o,buttons:l,onButtonClick:u,onLinkClick:f})=>(n==null?void 0:n.length)||(a==null?void 0:a.length)||(o==null?void 0:o.length)||(l==null?void 0:l.length)?E.jsxDEV("div",{className:te(Ae.bubbleContent),children:[E.jsxDEV(U5,{title:n},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Body.tsx",lineNumber:30,columnNumber:7},void 0),E.jsxDEV(M5,{text:a,onLinkClick:f},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Body.tsx",lineNumber:31,columnNumber:7},void 0),E.jsxDEV(D5,{subtitle:o,onLinkClick:f},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Body.tsx",lineNumber:32,columnNumber:7},void 0),E.jsxDEV(m5,{buttons:l,onButtonClick:u},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Body.tsx",lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Body.tsx",lineNumber:29,columnNumber:5},void 0):null,L5=({alt:n,imageUrl:a,itemUrl:o,hasBody:l})=>a?o?o.indexOf("youtube.com")>-1?E.jsxDEV("div",{className:bn.video_container,children:E.jsxDEV("iframe",{className:te(bn.video,{[bn.only]:!l}),title:"Youtube",width:"100%",src:o+"?rel=0",frameBorder:"0",allowFullScreen:!0},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Image.tsx",lineNumber:16,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Image.tsx",lineNumber:15,columnNumber:9},void 0):E.jsxDEV("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:E.jsxDEV("div",{className:bn.imageContainer,children:E.jsxDEV("img",{className:te(bn.image,{[bn.only]:!l}),src:a,alt:n},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Image.tsx",lineNumber:28,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Image.tsx",lineNumber:27,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Image.tsx",lineNumber:26,columnNumber:9},void 0):E.jsxDEV("div",{className:bn.imageContainer,children:E.jsxDEV("img",{className:te(bn.image,{[bn.only]:!l}),src:a,alt:n},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Image.tsx",lineNumber:38,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/Image.tsx",lineNumber:37,columnNumber:7},void 0):null,j5=({title:n,text:a,subtitle:o,imageUrl:l,itemUrl:u,buttons:f,sources:d,onButtonClick:h,onLinkClick:p})=>{const y=!!(n!=null&&n.length)||!!(a!=null&&a.length)||!!(o!=null&&o.length)||!!(f!=null&&f.length);return E.jsxDEV("div",{className:te(bn.detailMessage),children:[E.jsxDEV(L5,{hasBody:y,imageUrl:l,itemUrl:u,alt:n||o},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/index.tsx",lineNumber:38,columnNumber:7},void 0),y&&E.jsxDEV(B5,{title:n,text:a,subtitle:o,buttons:f,onLinkClick:p,onButtonClick:h},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/index.tsx",lineNumber:45,columnNumber:9},void 0),E.jsxDEV(iy,{sources:d,onLinkClick:p},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/index.tsx",lineNumber:54,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/detail-message/index.tsx",lineNumber:37,columnNumber:5},void 0)},H5=V.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:a,children:o},l)=>{const u=gt();return E.jsxDEV("li",{ref:l,className:te(Ae.message,Ae.messageGuest,n&&Ae.messageGuestFirst,a&&Ae.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:E.jsxDEV("div",{className:te(Ae.bubble,Ae.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:E.jsxDEV("div",{className:te(Ae.rightText),children:o},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/guest-message/index.tsx",lineNumber:39,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/guest-message/index.tsx",lineNumber:29,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/guest-message/index.tsx",lineNumber:16,columnNumber:7},void 0)}),z5="_markdown_nw7vg_1",aN={markdown:z5},iN=()=>I5(window.location.pathname),I5=n=>{const a=n.split("/"),o=n.endsWith("/");return a[a.length-(o?2:1)]},oy=()=>V.useMemo(()=>iN(),[]),Cf="source-info-reference",V5=({actionId:n,markdown:a,sources:o,onLinkClick:l})=>{const u=oy(),f=us(),d=G5(),h=On(v=>{const _=v.chat.sourceInfos;if((_==null?void 0:_.type)==="loaded"||(_==null?void 0:_.type)==="loading")return _.chunkId}),p=v=>_=>{const g=_.key;(g==="ArrowDown"||g==="ArrowRight"||g==="Enter"||g===" "||g==="Space")&&(_.stopPropagation(),f(ax(u,n,v)))},y=v=>()=>{f(ax(u,n,v))};return V.useLayoutEffect(()=>{document.querySelectorAll(`.${Cf}`).forEach(v=>{var A,U,I,j;const _=v.previousSibling;_&&_.nodeType===Node.TEXT_NODE&&((A=_.textContent)!=null&&A.endsWith(" "))&&((U=_.textContent)!=null&&U.trim().length)&&v.classList.add(`${Cf}--before-space`);const g=v.nextSibling;g&&g.nodeType===Node.TEXT_NODE&&((I=g.textContent)!=null&&I.startsWith(" "))&&((j=g.textContent)!=null&&j.trim().length)&&v.classList.add(`${Cf}--after-space`)})},[a]),E.jsxDEV("div",{className:Ae.bubbleContent,children:[E.jsxDEV("div",{className:aN.markdown,children:E.jsxDEV(rN,{markdown:a,onLinkClick:l,markdownOptions:{renderRule(v,_,g,A){if(_.type===d6.footnoteReference){const U=_.text===h;return E.jsxDEV("span",{className:te(Ae.sourceInfoReference,U&&Ae.sourceInfoReferenceActive,Cf),children:E.jsxDEV("a",{type:"button",tabIndex:0,onClick:y(_.text),onKeyDown:p(_.text),children:d(_.text)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/markdown-message/index.tsx",lineNumber:102,columnNumber:21},this)},A.key,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/markdown-message/index.tsx",lineNumber:94,columnNumber:19},this)}return v()}}},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/markdown-message/index.tsx",lineNumber:86,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/markdown-message/index.tsx",lineNumber:85,columnNumber:7},void 0),E.jsxDEV(iy,{sources:o,onLinkClick:l},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/markdown-message/index.tsx",lineNumber:118,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/markdown-message/index.tsx",lineNumber:84,columnNumber:5},void 0)},G5=()=>{const n=[];return o=>{const l=n.indexOf(o);return l>-1?l+1:(n.push(o),n.length)}},q5=({text:n,commands:a,sources:o,onLinkClick:l})=>E.jsxDEV("div",{className:Ae.bubbleContent,children:[E.jsxDEV(nN,{text:n,commands:a,onLinkClick:l},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/text-message/index.tsx",lineNumber:14,columnNumber:5},void 0),E.jsxDEV(iy,{sources:o,onLinkClick:l},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/text-message/index.tsx",lineNumber:15,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/text-message/index.tsx",lineNumber:13,columnNumber:3},void 0),F5=V.forwardRef(({message:n,commands:a,isLastMessage:o,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:f,onButtonClick:d,onLinkClick:h},p)=>{const y=P5(n._id,n,a,d,h);switch(n.sender.type){case Ie.UserType.GUEST:return E.jsxDEV(H5,{ref:p,isFirstMessageBySender:l,isLastMessageBySender:u,children:y},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/index.tsx",lineNumber:53,columnNumber:11},void 0);default:{const v=_=>f(n._id,_);return E.jsxDEV(Wk,{ref:p,message:n,isAnimated:!1,isLastMessage:o,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:v,children:y},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/index.tsx",lineNumber:66,columnNumber:11},void 0)}}}),P5=(n,a,o,l,u)=>{switch(a.type){case Ie.MessageTypeEnum.TEXT:{const f=a;return E.jsxDEV(q5,{text:f.text,commands:o,sources:a.sources||[],onLinkClick:u},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/index.tsx",lineNumber:94,columnNumber:9},void 0)}case Ie.MessageTypeEnum.DETAIL:{const f=a;return E.jsxDEV(j5,{title:f.title,text:f.text,subtitle:f.subtitle,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:a.sources||[],onButtonClick:l,onLinkClick:u},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/index.tsx",lineNumber:105,columnNumber:9},void 0)}case Ie.MessageTypeEnum.MARKDOWN:{const f=a;return E.jsxDEV(V5,{actionId:n,markdown:f.markdown,sources:f.sources||[],onLinkClick:u},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/message/index.tsx",lineNumber:121,columnNumber:9},void 0)}}},$5=(n,a)=>n.message._id===a.message._id&&n.message.reaction===a.message.reaction&&n.isLastMessage===a.isLastMessage&&n.isFirstMessageBySender===a.isFirstMessageBySender&&n.isLastMessageBySender===a.isLastMessageBySender,Y5=vT.memo(F5,$5),X5="_ticontainer_xg0dn_1",Z5="_tiblock_xg0dn_5",Q5="_tidot_xg0dn_12",$l={ticontainer:X5,tiblock:Z5,tidot:Q5},W5=({isTyping:n=!1})=>E.jsxDEV("div",{className:$l.ticontainer,children:E.jsxDEV("div",{className:$l.tiblock,children:n?E.jsxDEV(E.Fragment,{children:[E.jsxDEV("div",{className:te($l.tidot,"chat__typingIndicator")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/typing-indicator/index.tsx",lineNumber:13,columnNumber:11},void 0),E.jsxDEV("div",{className:te($l.tidot,"chat__typingIndicator")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/typing-indicator/index.tsx",lineNumber:16,columnNumber:11},void 0),E.jsxDEV("div",{className:te($l.tidot,"chat__typingIndicator")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/typing-indicator/index.tsx",lineNumber:19,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/typing-indicator/index.tsx",lineNumber:12,columnNumber:9},void 0):null},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/typing-indicator/index.tsx",lineNumber:10,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/typing-indicator/index.tsx",lineNumber:9,columnNumber:3},void 0),K5=Object.assign({_id:"typing-indicator"},new Ie.TextMessage("",new Ie.BotUser)),J5=({messages:n,isBotTyping:a,commands:o,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:f})=>{const d=V.useRef(0),h=V.useRef(!0),p=V.useRef(null),y=V.useRef(null),v=V.useRef(null),_=On(U=>U.settings.enableGeneralConditions);V.useLayoutEffect(()=>{if(n.length&&p.current&&(d.current<n.length||a)){if(y.current){const U=y.current.offsetTop;p.current.scrollTop=U}else if(v.current){const U=v.current.offsetTop;p.current.scrollTop=U}h.current&&(h.current=!1),d.current=n.length}},[n,h,a]);let g;const A=n.length;return E.jsxDEV("div",{ref:p,className:te(ox.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[_&&E.jsxDEV(N4,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/index.tsx",lineNumber:88,columnNumber:35},void 0),E.jsxDEV("ul",{className:ox.messages,children:[n.map((U,I)=>{const j=e8(U,g),w=t8(U,I,n,a);g=U.sender.type;const R=I+1===A,T=U._id||`added-${I}`;return E.jsxDEV(Y5,{ref:R?v:null,message:U,commands:o,isLastMessage:R,isFirstMessageBySender:j,isLastMessageBySender:w,onButtonClick:u,onLinkClick:f,onReaction:l},R&&!a?"last":T,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/index.tsx",lineNumber:106,columnNumber:13},void 0)}),a&&E.jsxDEV(Wk,{ref:y,message:K5,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:g!==Ie.UserType.BOT,isLastMessageBySender:!0,children:E.jsxDEV(W5,{isTyping:!0},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/index.tsx",lineNumber:130,columnNumber:13},void 0)},"last",!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/index.tsx",lineNumber:121,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/index.tsx",lineNumber:89,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/index.tsx",lineNumber:77,columnNumber:5},void 0)},e8=(n,a)=>!a||a!==n.sender.type,t8=(n,a,o,l)=>{var h;const u=n.sender.type,f=o.length;return a+1===f?!(u===Ie.UserType.BOT&&l):u!==((h=o.at(a+1))==null?void 0:h.sender.type)},n8="_bottomSheet_jp8dl_1",r8="_bottomSheetOpen_jp8dl_15",a8="_bottomSheetClose_jp8dl_20",pa={bottomSheet:n8,bottomSheetOpen:r8,bottomSheetClose:a8},i8="_container_xc2nx_1",jx={container:i8},o8=({contentUrl:n})=>{const a=On(f=>f.connection.sessionId),[o,l]=V.useState(!1);V.useEffect(()=>{l(f=>f||!!n)},[n]);const u=V.useMemo(()=>{if(n&&a){const f=new URL(n,document.baseURI);return f.searchParams.set("sessionId",a),f.toString()}else return},[n,a]);return E.jsxDEV("div",{className:te(jx.container,pa.bottomSheet,{[pa.bottomSheetOpen]:!!n,[pa.bottomSheetClose]:o&&!n}),children:u&&E.jsxDEV("iframe",{title:"Drawer",src:u,className:jx.iframe},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/drawer/index.tsx",lineNumber:36,columnNumber:15},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/drawer/index.tsx",lineNumber:30,columnNumber:5},void 0)},s8="_container_z787n_1",l8={container:s8},c8=({title:n,href:a,children:o})=>E.jsxDEV("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:o},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/powered-by/index.tsx",lineNumber:13,columnNumber:5},void 0),u8=()=>{const a=gt()("powered-by");return a&&a.length?E.jsxDEV("div",{className:te(l8.container,"chat__poweredBy"),children:E.jsxDEV(Lr,{options:{overrides:{a:c8}},children:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/powered-by/index.tsx",lineNumber:24,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/powered-by/index.tsx",lineNumber:23,columnNumber:5},void 0):null},Hx=({className:n,children:a,...o})=>E.jsxDEV(ld,{className:te(tc.buttonDefault,n),type:"button",...o,children:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/button/default-button.tsx",lineNumber:12,columnNumber:5},void 0),nc=({className:n,children:a,...o})=>E.jsxDEV(ld,{className:te(tc.buttonPrimary,n),...o,children:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/button/primary-button.tsx",lineNumber:12,columnNumber:5},void 0),f8="_container_h23mk_1",d8="_formContainer_h23mk_17",h8="_emailInput_h23mk_22",m8="_description_h23mk_52",p8="_actions_h23mk_57",b8="_validationError_h23mk_67",g8="_submitted_h23mk_74",ha={container:f8,formContainer:d8,emailInput:h8,description:m8,actions:p8,validationError:b8,submitted:g8},y8=({visible:n,enableTranscriptExportPdf:a,enableTranscriptExportEmail:o,onEmailExport:l,onPdfExport:u,onClose:f})=>{const d=gt(),[h,p]=V.useState(void 0),[y,v]=V.useState(!1),[_,g]=V.useState(!1),[A,U]=V.useState(void 0),I=V.useRef(null);V.useEffect(()=>{var T;n?((T=I.current)==null||T.focus(),v(!1),g(!1),p(n)):h===!0&&p(!1)},[n,h]);const j=T=>{T.preventDefault(),A&&A.length>0&&(l(A),v(!0),setTimeout(f,3*1e3))},w=T=>{const N=T.target.value.trim(),D=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(N);U(D?N:"")},R=()=>{g(!0),u(),setTimeout(f,3*1e3)};return E.jsxDEV("div",{className:te(ha.container,pa.bottomSheet,{[pa.bottomSheetOpen]:h===!0,[pa.bottomSheetClose]:h===!1}),children:[a&&E.jsxDEV(E.Fragment,{children:[E.jsxDEV("h2",{children:d("export-transcript.pdf.title")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:80,columnNumber:11},void 0),E.jsxDEV(Lr,{className:ha.description,children:d("export-transcript.pdf.description")||""},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:81,columnNumber:11},void 0),E.jsxDEV("div",{className:ha.actions,children:[E.jsxDEV(Hx,{onClick:f,children:d("export-transcript.pdf.cancel")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:85,columnNumber:13},void 0),E.jsxDEV(nc,{onClick:R,disabled:_,children:d("export-transcript.pdf.download")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:88,columnNumber:13},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:84,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:79,columnNumber:9},void 0),o&&E.jsxDEV(E.Fragment,{children:[E.jsxDEV("h2",{children:d("export-transcript.email.title")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:97,columnNumber:11},void 0),E.jsxDEV(Lr,{className:ha.description,children:d("export-transcript.email.description")||""},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:98,columnNumber:11},void 0),E.jsxDEV("form",{onSubmit:j,className:ha.formContainer,children:[E.jsxDEV("div",{children:[E.jsxDEV("input",{disabled:y,ref:I,type:"email",placeholder:d("export-transcript.email.placeholder"),className:ha.emailInput,onChange:w},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:104,columnNumber:15},void 0),(A==null?void 0:A.length)===0?E.jsxDEV("div",{className:ha.validationError,children:d("export-transcript.email.invalid")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:113,columnNumber:17},void 0):null]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:103,columnNumber:13},void 0),E.jsxDEV("div",{className:ha.actions,children:[E.jsxDEV(Hx,{onClick:f,children:d("export-transcript.email.cancel")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:119,columnNumber:15},void 0),E.jsxDEV(nc,{type:"submit",disabled:y||A===void 0||A.length===0,children:d("export-transcript.email.send")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:122,columnNumber:15},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:118,columnNumber:13},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:102,columnNumber:11},void 0),y&&E.jsxDEV("div",{className:ha.submitted,children:d("export-transcript.email.success")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:134,columnNumber:13},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:96,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/transcript-export/index.tsx",lineNumber:72,columnNumber:5},void 0)},v8="_inputContainer_fi5ao_1",_8={inputContainer:v8},E8="_blockUserInput_pot9c_1",w8={blockUserInput:E8},S8=({visible:n})=>{const a=gt();return n?E.jsxDEV("div",{className:te(w8.blockUserInput,"chat__blockUserInput"),children:a("block-user-input.title")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/block-user-input/index.tsx",lineNumber:13,columnNumber:5},void 0):null},x8="_commandsDropdown_5ytuv_1",T8="_commands_5ytuv_1",k8="_command_5ytuv_1",N8="_commandActive_5ytuv_46",R8="_commandsSelections_5ytuv_55",Ql={commandsDropdown:x8,commands:T8,command:k8,commandActive:N8,commandsSelections:R8},A8=(n,a)=>{V.useEffect(()=>{const o=l=>{n.current&&!n.current.contains(l.target)&&a()};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[n,a])},O8=(n,a,o,l,u)=>{V.useEffect(()=>{const f=d=>{if(n.length)switch(d.key){case"Enter":o(n[a]);break;case"ArrowUp":l(h=>h>0?h-1:n.length-1);break;case"ArrowDown":l(h=>h<n.length-1?h+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,a,o,l,u])},C8=({text:n,commands:a,onSelectCommand:o,onVisibilityChange:l})=>{const u=V.useRef(null),f=gt(),[d,h]=V.useState([]),[p,y]=V.useState(zx(a)),[v,_]=V.useState(0),g=A=>o(`/${A}`);return A8(u,()=>h([])),O8(d,v,g,_,h),V.useEffect(()=>{y(zx(a))},[a]),V.useEffect(()=>{const A=n.length||0;A===0||A>p||!n.startsWith("/")?h([]):h(a.filter(D8(n))),_(0)},[a,n,p]),V.useEffect(()=>{l(!!d.length)},[d,l]),d.length?E.jsxDEV("div",{ref:u,className:Ql.commandsDropdown,children:E.jsxDEV("ul",{id:"command-list",className:Ql.commands,role:"listbox",children:d.map((A,U)=>E.jsxDEV("li",{className:te([Ql.command,v===U&&Ql.commandActive]),role:"option",onClick:()=>g(A),onMouseOver:()=>_(U),children:[E.jsxDEV("h1",{children:["/",A]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/commands/commands-dropdown.tsx",lineNumber:77,columnNumber:13},void 0),E.jsxDEV("p",{children:f(`commands.${A}`)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/commands/commands-dropdown.tsx",lineNumber:78,columnNumber:13},void 0)]},A,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/commands/commands-dropdown.tsx",lineNumber:67,columnNumber:11},void 0))},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/commands/commands-dropdown.tsx",lineNumber:65,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/commands/commands-dropdown.tsx",lineNumber:64,columnNumber:5},void 0):null},zx=n=>Math.max(...n.map(a=>a.length+1)),D8=n=>a=>{const o=`/${a}`;return o.startsWith(n)&&o.length>=n.length},Ix=3,M8=({commands:n,onSelectCommand:a})=>{const o=gt(),[l,u]=V.useState(!1),f=y=>()=>{a(`/${y}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},p=l?n:n.slice(0,Ix);return E.jsxDEV("div",{className:Ql.commandsSelections,children:[p.map(y=>E.jsxDEV("button",{className:"tooltip--top-center","aria-label":o(`commands.${y}`),"data-title":o(`commands.${y}`),tabIndex:0,onClick:f(y),children:["/",y]},y,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/commands/commands-selections.tsx",lineNumber:34,columnNumber:9},void 0)),p.length<n.length?E.jsxDEV("button",{"aria-label":o("commands.show-more.tooltip"),"data-title":o("commands.show-more.tooltip"),tabIndex:0,onClick:d,children:o("commands.show-more.action")},"show-more",!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/commands/commands-selections.tsx",lineNumber:46,columnNumber:9},void 0):p.length>Ix?E.jsxDEV("button",{"aria-label":o("commands.show-less.tooltip"),"data-title":o("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:o("commands.show-less.action")},"show-less",!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/commands/commands-selections.tsx",lineNumber:56,columnNumber:9},void 0):null]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/commands/commands-selections.tsx",lineNumber:32,columnNumber:5},void 0)},U8="_callToActionContainer_bkfcm_1",B8="_callToActionTitle_bkfcm_23",L8="_rateOverlay_bkfcm_30",j8="_body_bkfcm_52",H8="_footer_bkfcm_60",z8="_actions_bkfcm_73",I8="_bubbles_bkfcm_101",V8="_stars_bkfcm_203",G8="_starsSmall_bkfcm_215",q8="_starsLarge_bkfcm_219",F8="_star_bkfcm_203",P8="_starReadonly_bkfcm_236",$8="_starIcon_bkfcm_246",Y8="_starsDescriptionContainer_bkfcm_264",X8="_starsDescription_bkfcm_264",on={callToActionContainer:U8,callToActionTitle:B8,rateOverlay:L8,body:j8,footer:H8,actions:z8,bubbles:I8,stars:V8,starsSmall:G8,starsLarge:q8,star:F8,starReadonly:P8,starIcon:$8,starsDescriptionContainer:Y8,starsDescription:X8},Z8=({value:n,index:a,count:o,readonly:l,onHover:u,onClick:f})=>{const d=h=>{f&&h.key==="Enter"&&f()};return E.jsxDEV("li",{className:te(on.star,{[on.starReadonly]:l},"chat__conversationRating__star"),children:E.jsxDEV("div",{role:"radio","aria-checked":n>a?"true":"false","aria-posinset":a+1,"aria-setsize":o,tabIndex:0,onMouseOver:u,onKeyDown:d,onClick:f,children:E.jsxDEV("span",{role:"img","aria-label":"Star",className:te(on.starIcon),children:E.jsxDEV("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.jsxDEV("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/Star.tsx",lineNumber:52,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/Star.tsx",lineNumber:43,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/Star.tsx",lineNumber:38,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/Star.tsx",lineNumber:28,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/Star.tsx",lineNumber:21,columnNumber:5},void 0)},Vx=5,oN=({value:n,size:a,readonly:o=!1,onChange:l})=>{const[u,f]=V.useState(void 0),d=()=>{f(void 0)},h=y=>()=>{if(!o){const v=y+1;f(v)}},p=y=>()=>{l&&!o&&(l(y===0&&n===1?0:y+1),f(void 0))};return E.jsxDEV("ul",{tabIndex:0,role:"radiogroup",className:te(on.stars,{[on.starsSmall]:a==="small",[on.starsLarge]:a==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:a==="small",chat__conversationRating__stars__large:a==="large"}),onMouseOut:d,children:Array(Vx).fill(0).map((y,v)=>E.jsxDEV(Z8,{value:u===void 0?n:u,index:v,count:Vx,readonly:o,onHover:h(v),onClick:p(v)},v,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/Stars.tsx",lineNumber:61,columnNumber:11},void 0))},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/Stars.tsx",lineNumber:41,columnNumber:5},void 0)},Q8=({visible:n,onRate:a})=>{const o=gt();return n?E.jsxDEV("div",{className:te(on.callToActionContainer,"chat__conversationRating__callToAction"),children:[E.jsxDEV("div",{className:te(on.callToActionTitle,"chat__conversationRating__callToAction__title"),children:o("conversation-rating.call-to-action.title")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/CallToAction.tsx",lineNumber:20,columnNumber:7},void 0),E.jsxDEV(oN,{value:0,size:"small",onChange:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/CallToAction.tsx",lineNumber:28,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/CallToAction.tsx",lineNumber:14,columnNumber:5},void 0):null},Cb=({isFirstMessageBySender:n,isLastMessageBySender:a,children:o})=>E.jsxDEV("div",{className:te(Ae.message,Ae.messageBot,n&&Ae.messageBotFirst,a&&Ae.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:[E.jsxDEV("img",{className:te(Ae.avatar,Ae.botAvatar),src:"bot.svg",alt:"Bot"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/BotBubble.tsx",lineNumber:27,columnNumber:5},void 0),E.jsxDEV("div",{className:te(Ae.bubble,Ae.bubbleLeft,"chat__bubble","chat__botBubble"),children:E.jsxDEV("div",{className:te(Ae.leftText,Ae.bubbleContent),children:o},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/BotBubble.tsx",lineNumber:40,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/BotBubble.tsx",lineNumber:32,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/BotBubble.tsx",lineNumber:15,columnNumber:3},void 0),W8=({children:n})=>E.jsxDEV("div",{className:te(Ae.message,Ae.messageGuest,Ae.messageGuestFirst,Ae.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:E.jsxDEV("div",{className:te(Ae.bubble,Ae.bubbleRight,"chat__bubble","chat__guestBubble"),children:E.jsxDEV("div",{className:te(Ae.rightText,Ae.bubbleContent),children:n},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/GuestBubble.tsx",lineNumber:26,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/GuestBubble.tsx",lineNumber:18,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/GuestBubble.tsx",lineNumber:6,columnNumber:3},void 0),K8=({visible:n,rating:a,onRate:o,onClose:l})=>{const u=gt(),[f,d]=V.useState(a),[h,p]=V.useState(void 0),[y,v]=V.useState(void 0),[_,g]=V.useState({submitted:!1,feedback:""}),[A,U]=V.useState(!1),I=V.useRef(null);V.useEffect(()=>{n?(g({submitted:!1,feedback:""}),v(n)):y===!0&&v(!1)},[n,y]),V.useEffect(()=>{d(a)},[a]),V.useEffect(()=>{const w=f>0?u(`conversation-rating.overlay.bot-message.rate-feedback.value-${f}`):void 0;p(w!=null&&w.length?w:void 0)},[f,u]),V.useEffect(()=>{_.submitted?setTimeout(()=>U(!0),_.feedback.length?500:0):U(!1)},[_]);const j=w=>{var T,N;w.preventDefault();const R=((N=(T=I.current)==null?void 0:T.value)==null?void 0:N.trim())||"";o(f,R),g({submitted:!0,feedback:R})};return E.jsxDEV("div",{className:te(on.rateOverlay,pa.bottomSheet,"chat__conversationRating__overlay",{[pa.bottomSheetOpen]:y===!0,[pa.bottomSheetClose]:y===!1}),children:E.jsxDEV("form",{onSubmit:j,children:[E.jsxDEV("div",{className:te(on.body,"chat__conversationRating__overlay__body"),children:[E.jsxDEV("div",{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:93,columnNumber:11},void 0),E.jsxDEV("div",{className:te(on.bubbles),children:n&&h&&E.jsxDEV(E.Fragment,{children:[E.jsxDEV(Cb,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[E.jsxDEV("h2",{children:u("conversation-rating.overlay.title")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:101,columnNumber:19},void 0),E.jsxDEV("div",{className:te(on.starsDescriptionContainer),children:[E.jsxDEV(oN,{value:f,size:"large",readonly:_.submitted,onChange:d},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:103,columnNumber:21},void 0),E.jsxDEV("div",{className:te(on.starsDescription),children:[E.jsxDEV("div",{children:u("conversation-rating.overlay.star.very-bad")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:110,columnNumber:23},void 0),E.jsxDEV("div",{children:u("conversation-rating.overlay.star.very-good")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:113,columnNumber:23},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:109,columnNumber:21},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:102,columnNumber:19},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:97,columnNumber:17},void 0),E.jsxDEV(Cb,{isFirstMessageBySender:!1,isLastMessageBySender:!A||!!_.feedback.length,children:E.jsxDEV("div",{children:h},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:128,columnNumber:19},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:122,columnNumber:17},void 0),!!_.feedback.length&&E.jsxDEV(W8,{children:_.feedback},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:132,columnNumber:19},void 0),A&&E.jsxDEV(Cb,{isFirstMessageBySender:!!_.feedback.length,isLastMessageBySender:!0,children:E.jsxDEV("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:140,columnNumber:21},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:136,columnNumber:19},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:96,columnNumber:15},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:94,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:87,columnNumber:9},void 0),E.jsxDEV("div",{className:te(on.footer,"chat__conversationRating__overlay__footer"),children:[!_.submitted&&E.jsxDEV("input",{ref:I,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:159,columnNumber:13},void 0),E.jsxDEV("div",{className:te(on.actions,"chat__conversationRating__overlay__footer__actions"),children:_.submitted?E.jsxDEV(nc,{type:"button",onClick:l,children:u("conversation-rating.overlay.action.close")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:173,columnNumber:15},void 0):E.jsxDEV(nc,{type:"submit",children:u("conversation-rating.overlay.action.submit")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:177,columnNumber:15},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:166,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:152,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:86,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/RateOverlay.tsx",lineNumber:75,columnNumber:5},void 0)},J8=({conversationRating:{enabled:n,rating:a},numberOfMessagesFromGuest:o,showRatingOverlay:l,setShowRatingOverlay:u,onRate:f})=>{const[d,h]=V.useState(0),p=_=>{h(_),u(!0)},y=()=>u(!1),v=!a&&o>=1;return n?E.jsxDEV(E.Fragment,{children:[E.jsxDEV(Q8,{visible:v,onRate:p},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/index.tsx",lineNumber:33,columnNumber:7},void 0),E.jsxDEV(K8,{visible:l,rating:d,onRate:f,onClose:y},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/index.tsx",lineNumber:37,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/conversation-rating/index.tsx",lineNumber:32,columnNumber:5},void 0):null},eB=V.memo(J8),tB="_inputWrapper_e3h44_1",nB="_withOpenCommands_e3h44_14",rB="_messageInputWrapper_e3h44_20",aB="_messageInput_e3h44_20",iB="_buttons_e3h44_44",oB="_button_e3h44_44",Pi={inputWrapper:tB,withOpenCommands:nB,messageInputWrapper:rB,messageInput:aB,buttons:iB,button:oB},sB="_audioRecorder_g845f_1",lB="_audioButton_g845f_6",cB="_recorderIcon_g845f_37",uB="_spinning_g845f_60",$i={audioRecorder:sB,audioButton:lB,recorderIcon:cB,spinning:uB},Gx=2048,Xf=16e3;class fB extends vT.Component{constructor(o){super(o);Xe(this,"audioInput",null);Xe(this,"volume",null);Xe(this,"leftchannel",[]);Xe(this,"recorder",null);Xe(this,"recordingLength",0);Xe(this,"sampleRate",null);Xe(this,"mediaStream",null);this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(o){this.mediaStream=o,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(o)}initRecording(o){const l=window.AudioContext||window.webkitAudioContext,u=new l;this.sampleRate=u.sampleRate,this.volume=u.createGain(),this.audioInput=u.createMediaStreamSource(o),this.audioInput.connect(this.volume),this.recorder=u.createScriptProcessor(Gx,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(u.destination)}processRecordingInput(o){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const l=o.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(l)),this.recordingLength+=Gx}}handleClickSubmitAudio(){const o=hB(this.leftchannel,this.recordingLength),l=mB(o,this.sampleRate||0),u=dB(l);this.props.onAudioRecorded(u),this.handleClickStopAudio()}handleClickStopAudio(){var o,l,u,f;this.setState({recordingState:"none"}),(o=this.audioInput)==null||o.disconnect(),(l=this.volume)==null||l.disconnect(),(u=this.recorder)==null||u.disconnect(),this.mediaStream&&((f=this.mediaStream)==null||f.getAudioTracks().forEach(d=>{d.stop()}))}render(){return E.jsxDEV("div",{className:$i.audioRecorder,children:[this.state.recordingState==="none"&&E.jsxDEV("button",{className:te($i.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.jsxDEV("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:143,columnNumber:15},this),E.jsxDEV("path",{d:"M0 0h24v24H0z",fill:"none"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:144,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:137,columnNumber:13},this)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:125,columnNumber:11},this),this.state.recordingState==="connecting"&&E.jsxDEV("svg",{className:$i.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.jsxDEV("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:157,columnNumber:13},this),E.jsxDEV("path",{d:"M0 0h24v24H0z",fill:"none"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:158,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:150,columnNumber:11},this),this.state.recordingState==="recording"&&E.jsxDEV("div",{className:$i.audioRecorder,children:[E.jsxDEV("button",{className:te($i.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.jsxDEV("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:178,columnNumber:17},this),E.jsxDEV("path",{d:"M0 0h24v24H0z",fill:"none"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:179,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:172,columnNumber:15},this)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:164,columnNumber:13},this),E.jsxDEV("div",{className:$i.recorderIcon},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:182,columnNumber:13},this),E.jsxDEV("button",{className:te($i.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.jsxDEV("path",{d:"M0 0h24v24H0z",fill:"none"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:199,columnNumber:17},this),E.jsxDEV("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:200,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:193,columnNumber:15},this)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:183,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:163,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/audio-recorder.tsx",lineNumber:123,columnNumber:7},this)}}const dB=n=>{const a=new ArrayBuffer(44+n.length*2),o=new DataView(a);Df(o,0,"RIFF"),o.setUint32(4,44+n.length*2,!0),Df(o,8,"WAVE"),Df(o,12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,1,!0),o.setUint32(24,Xf,!0),o.setUint32(28,Xf*4,!0),o.setUint16(32,4,!0),o.setUint16(34,16,!0),Df(o,36,"data"),o.setUint32(40,n.length*2,!0);const l=n.length;let u=44;const f=1;for(let d=0;d<l;d++)o.setInt16(u,n[d]*(32767*f),!0),u+=2;return new Blob([o],{type:"audio/wav"})},Df=(n,a,o)=>{for(let l=0;l<o.length;l++)n.setUint8(a+l,o.charCodeAt(l))},hB=(n,a)=>{const o=new Float32Array(a);let l=0;const u=n.length;for(let f=0;f<u;f++){const d=n[f];o.set(d,l),l+=d.length}return o},mB=(n,a)=>{if(Xf===a)return n;const o=a/Xf,l=Math.round(n.length/o),u=new Float32Array(l);let f=0,d=0;for(;f<u.length;){const h=Math.round((f+1)*o);let p=0,y=0;for(let v=d;v<h&&v<n.length;v++)p+=n[v],y++;u[f]=p/y,f++,d=h}return u},pB=({disabled:n,textInput:a,commandsVisible:o,hasCommands:l,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:d,onOpenTranscriptExportModal:h})=>{const p=gt(),y=V.useRef(null),{enableTranscriptExportPdf:v,enableTranscriptExportEmail:_,enableSpeechSupport:g}=On(w=>w.settings);V.useEffect(()=>{var w;(w=y.current)==null||w.focus()},[a]);const A=()=>{const w=y.current;w&&a.trim().length>=1&&f(a.trim())&&(w.value="",w.style.height="",w.focus())},U=w=>{w.preventDefault(),A()},I=w=>{const R=w.target.value;u(R),w.target.style.height="";const{scrollHeight:T}=w.target;w.target.style.height=`${T>150?150:T}px`},j=w=>{w.code==="Enter"&&!w.shiftKey?(w.repeat||A(),w.preventDefault()):o&&(w.code==="ArrowUp"||w.code==="ArrowDown")&&w.preventDefault()};return E.jsxDEV("form",{className:te(Pi.inputWrapper,o&&Pi.withOpenCommands,"chat__textInput"),onSubmit:U,children:[E.jsxDEV("div",{className:Pi.messageInputWrapper,children:E.jsxDEV("textarea",{id:"user_input",ref:y,className:Pi.messageInput,tabIndex:0,placeholder:p("message-input-placeholder"),value:a,onChange:I,onKeyDown:j,"aria-label":p("message-input-label"),"aria-controls":l?"command-list":void 0,"aria-haspopup":l?"listbox":void 0},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:97,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:96,columnNumber:7},void 0),E.jsxDEV("div",{className:te(Pi.buttons,"chat__buttons"),children:[!a.length&&(v||_)&&E.jsxDEV("button",{type:"button",className:te(Pi.button,"chat__button"),"aria-label":p("message-input.actions.export-transcript.label"),"data-title":p("message-input.actions.export-transcript.label"),tabIndex:0,onClick:h,children:E.jsxDEV("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.jsxDEV("path",{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:134,columnNumber:17},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:126,columnNumber:15},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:114,columnNumber:13},void 0),a.length||!g||navigator.mediaDevices===void 0?E.jsxDEV("button",{className:te(Pi.button,"chat__button"),type:"submit","aria-label":p("message-input.actions.submit.label"),"data-title":p("message-input.actions.submit.label"),tabIndex:0,disabled:n,children:E.jsxDEV("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.jsxDEV("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:158,columnNumber:15},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:150,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:142,columnNumber:11},void 0):g&&navigator.mediaDevices!==void 0&&E.jsxDEV(fB,{translate:p,onAudioRecorded:d},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:164,columnNumber:13},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:111,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/input/index.tsx",lineNumber:88,columnNumber:5},void 0)},bB="_quickReplies_83npe_1",gB="_quickReply_83npe_9",qx={quickReplies:bB,quickReply:gB},yB=({quickReplies:n,onQuickReplyClick:a})=>n.length?E.jsxDEV("div",{className:te(qx.quickReplies,"chat__quickReplies"),children:n.map(o=>E.jsxDEV(ld,{tabIndex:0,className:te(qx.quickReply,"chat__button","chat__quickReply"),onClick:()=>a(o),children:o.label},o.label,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/quick-replies/index.tsx",lineNumber:15,columnNumber:9},void 0))},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/quick-replies/index.tsx",lineNumber:13,columnNumber:5},void 0):null,Fx=5e3,vB=1e3,_B=({isBotTyping:n,quickReplies:a,conversationRating:o,numberOfMessagesFromGuest:l,showRatingOverlay:u,commands:f,setShowRatingOverlay:d,onTextInput:h,onRate:p,onQuickReplyClick:y,onAudioRecorded:v,onOpenTranscriptExportModal:_})=>{const[g,A]=V.useState(""),[U,I]=V.useState(!1),[j,w]=V.useState(!1),R=V.useRef(0),T=V.useRef(0);V.useEffect(()=>{if(U&&!n){const z=R.current?Date.now()-R.current:0;z>Fx?I(!1):setTimeout(()=>{I(!1)},Fx-z)}},[U,n]),V.useEffect(()=>{U&&(R.current=Date.now())},[U]);const N=z=>{const X=Date.now()-T.current<vB;return j?!1:n||X?(I(!0),!1):(h(z),A(""),T.current=Date.now(),!0)},D=z=>{A(z+" ")};return E.jsxDEV("div",{className:te(_8.inputContainer),children:[E.jsxDEV(yB,{quickReplies:a,onQuickReplyClick:y},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/index.tsx",lineNumber:95,columnNumber:7},void 0),E.jsxDEV(S8,{visible:U},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/index.tsx",lineNumber:100,columnNumber:7},void 0),!U&&E.jsxDEV(eB,{conversationRating:o,numberOfMessagesFromGuest:l,onRate:p,showRatingOverlay:u,setShowRatingOverlay:d},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/index.tsx",lineNumber:103,columnNumber:9},void 0),!!(f!=null&&f.length)&&E.jsxDEV(C8,{text:g,commands:f,onSelectCommand:D,onVisibilityChange:w},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/index.tsx",lineNumber:113,columnNumber:9},void 0),E.jsxDEV(pB,{textInput:g,disabled:U,commandsVisible:j,hasCommands:!!(f!=null&&f.length),onTextInput:A,onTextInputSubmit:N,onOpenTranscriptExportModal:_,onAudioRecorded:v},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/index.tsx",lineNumber:121,columnNumber:7},void 0),!!(f!=null&&f.length)&&E.jsxDEV(M8,{commands:f,onSelectCommand:A},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/index.tsx",lineNumber:133,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/user-input/index.tsx",lineNumber:94,columnNumber:5},void 0)},EB=({clientName:n,messages:a,quickReplies:o,isBotTyping:l,drawerContentUrl:u,conversationRating:f,onMessageFromUser:d,onRate:h,onQuickReplyClick:p,onButtonClick:y,onLinkClick:v,onAudioRecorded:_,onTranscriptExport:g,onPdfExport:A,onTranscriptItemReaction:U})=>{const I=us(),j=On(ee=>ee.connection.connectionState),{enableTranscriptExportPdf:w,enableTranscriptExportEmail:R,commands:T}=On(ee=>ee.settings),[N,D]=V.useState(!1),[z,X]=V.useState(!1),re=w||R,Z=a.filter(ee=>ee.sender.type===Yf.GUEST).length;return V.useEffect(()=>{if(j===Qi.CONNECTED){const ee=Jf.parse(window.location.search);I(Gk(n,ee))}},[n,j,I]),E.jsxDEV("div",{className:gb.container,children:[E.jsxDEV("div",{className:te([gb.chatcontent,(N||z)&&gb.accessabilityHidden]),children:[E.jsxDEV(J5,{messages:a,isBotTyping:l,commands:T,onButtonClick:y,onLinkClick:v,onTranscriptItemReaction:U},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/index.tsx",lineNumber:123,columnNumber:9},void 0),E.jsxDEV(_B,{isBotTyping:l,quickReplies:l?[]:o,numberOfMessagesFromGuest:Z,conversationRating:N?{enabled:!1}:f,showRatingOverlay:z,setShowRatingOverlay:X,commands:T,onRate:h,onQuickReplyClick:p,onTextInput:d,onAudioRecorded:_,onOpenTranscriptExportModal:()=>D(!N)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/index.tsx",lineNumber:131,columnNumber:9},void 0),E.jsxDEV(u8,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/index.tsx",lineNumber:149,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/index.tsx",lineNumber:116,columnNumber:7},void 0),re&&E.jsxDEV(y8,{enableTranscriptExportPdf:w,enableTranscriptExportEmail:R,visible:N,onEmailExport:g,onPdfExport:A,onClose:()=>D(!1)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/index.tsx",lineNumber:153,columnNumber:9},void 0),E.jsxDEV(o8,{contentUrl:u},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/index.tsx",lineNumber:163,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/index.tsx",lineNumber:115,columnNumber:5},void 0)},wB=n=>{const{messages:a,quickReplies:o,isBotTyping:l,drawerContentUrl:u,conversationRating:f}=n.chat;return{messages:a,quickReplies:o,isBotTyping:l,drawerContentUrl:u,conversationRating:f}},SB=n=>({onRestartChat:(a,o)=>n(od(a,o)),onMessageFromUser:a=>n(pk(a)),onRate:(a,o)=>n(q3(a,o)),onAudioRecorded:a=>n(H3(a)),onActionFromUser:a=>n(a),onQuickReplyClick:a=>n(mk(a)),onNluEvent:a=>n(_k(a)),onButtonClick:a=>n(P3(a)),onLinkClick:a=>n($3(a)),onTranscriptExport:a=>n(I3(a)),onPdfExport:()=>n(V3()),onTranscriptItemReaction:(a,o)=>n(Ie.Actions.transcriptItemGuestReaction(a,o||null))}),xB=aD(wB,SB)(EB),sN=()=>{const[n,a]=V.useState(!1);return V.useEffect(()=>{a((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},sy=n=>a=>{const o=a.key;(o==="ArrowDown"||o==="ArrowRight"||o==="Enter"||o===" "||o==="Space")&&(a.stopPropagation(),n())},TB=({onClick:n})=>{const a=gt();return sN()?E.jsxDEV("button",{className:"tooltip--bottom-left","aria-label":a("header.close-chat"),"data-title":a("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:sy(n),children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsxDEV("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/close-chat-window-button.tsx",lineNumber:29,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/close-chat-window-button.tsx",lineNumber:22,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/close-chat-window-button.tsx",lineNumber:14,columnNumber:5},void 0):null},kB=()=>{const n=gt(),a=sN(),o=On(u=>u.settings.enableStandaloneView),l=()=>{window.open(window.location.href,"_blank")};return a&&o?E.jsxDEV("button",{className:"tooltip--bottom-left","aria-label":n("header.expand-chat"),"data-title":n("header.expand-chat"),tabIndex:0,onClick:l,onKeyDown:sy(l),children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsxDEV("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/expand-chat-window-button.tsx",lineNumber:34,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/expand-chat-window-button.tsx",lineNumber:27,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/expand-chat-window-button.tsx",lineNumber:19,columnNumber:5},void 0):null},NB="_header_1hky6_1",RB="_logoContainer_1hky6_13",AB="_logo_1hky6_13",OB="_actions_1hky6_27",Mf={header:NB,logoContainer:RB,logo:AB,actions:OB},CB=({onClick:n})=>{const a=gt();return E.jsxDEV("button",{className:"tooltip--bottom-left","aria-label":a("header.restart-chat"),"data-title":a("header.restart-chat"),tabIndex:0,onClick:n,onKeyDown:sy(n),children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[E.jsxDEV("path",{d:"M14.506,23.578l-5.511,0l-3.993,3.501l-0.007,0.006c-0.302,0.261 -0.687,0.405 -1.084,0.405c-0.245,-0.001 -0.488,-0.055 -0.711,-0.161c-0.595,-0.277 -0.978,-0.886 -0.974,-1.551l-0,-19.558c-0,-0.939 0.761,-1.711 1.685,-1.711l21.189,-0c0.924,-0 1.685,0.772 1.685,1.711l0,5.104l-1.444,0l-0,-5.104c-0,-0.134 -0.109,-0.244 -0.241,-0.244l-21.189,-0c-0.132,-0 -0.24,0.11 -0.24,0.244l-0,19.558c0.001,0.133 0.109,0.242 0.24,0.242c0.056,-0 0.109,-0.019 0.152,-0.055l4.192,-3.675c0.131,-0.115 0.299,-0.179 0.472,-0.179l5.779,0l-0,1.467Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/restart-chat-button.tsx",lineNumber:26,columnNumber:9},void 0),E.jsxDEV("path",{d:"M29.869,20.148c0,4.137 -3.373,7.556 -7.509,7.612l-0.102,-0c-1.943,0.004 -3.814,-0.741 -5.223,-2.078c-0.183,-0.172 -0.286,-0.412 -0.286,-0.664c-0,-0.501 0.412,-0.913 0.913,-0.913c0.233,-0 0.458,0.089 0.627,0.249c1.074,1.014 2.495,1.579 3.971,1.579c3.174,-0 5.785,-2.612 5.785,-5.785c-0,-3.173 -2.611,-5.784 -5.785,-5.784c-1.533,-0 -3.006,0.61 -4.09,1.694c-0.01,0.01 -0.019,0.019 -0.03,0.028l-1.447,1.322l1.302,0c0.502,0 0.914,0.413 0.914,0.914c-0,0.501 -0.412,0.913 -0.914,0.913l-3.653,0c-0.501,0 -0.913,-0.412 -0.913,-0.913l-0,-3.654c-0,-0.501 0.412,-0.913 0.913,-0.913c0.501,0 0.913,0.412 0.913,0.913l0,1.577l1.635,-1.496c1.426,-1.418 3.357,-2.215 5.368,-2.215c4.175,0 7.611,3.436 7.611,7.611c-0,0.001 -0,0.002 -0,0.003Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/restart-chat-button.tsx",lineNumber:27,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/restart-chat-button.tsx",lineNumber:19,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/restart-chat-button.tsx",lineNumber:11,columnNumber:5},void 0)},Px=({className:n,withActions:a=!0,...o})=>{const l=us(),u=oy(),f=()=>{const h=Jf.parse(window.location.search);l(od(u,h))},d=()=>{l(ZU())};return E.jsxDEV("div",{className:te([Mf.header,n]),...o,children:[E.jsxDEV("div",{className:Mf.logoContainer,children:E.jsxDEV("div",{className:Mf.logo},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/index.tsx",lineNumber:33,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/index.tsx",lineNumber:32,columnNumber:7},void 0),E.jsxDEV("div",{className:Mf.actions,children:[a&&E.jsxDEV(CB,{onClick:f},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/index.tsx",lineNumber:37,columnNumber:25},void 0),E.jsxDEV(kB,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/index.tsx",lineNumber:38,columnNumber:9},void 0),E.jsxDEV(TB,{onClick:d},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/index.tsx",lineNumber:39,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/index.tsx",lineNumber:36,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/header/index.tsx",lineNumber:31,columnNumber:5},void 0)},DB="_chatwindow_rkbir_1",MB="_chatwindowWithAside_rkbir_21",$x={chatwindow:DB,chatwindowWithAside:MB},lN=()=>{const[n,a]=V.useState(!1);return V.useEffect(()=>{const o=window.matchMedia("(max-width: 1023px)"),l=()=>a(o.matches);return l(),o.addEventListener("change",l),()=>o.removeEventListener("change",l)},[]),n},UB="_sourceInfos_vei0l_1",BB="_waitForLoading_vei0l_24",LB="_loadingContent_vei0l_28",jB="_sourceHeader_vei0l_37",HB="_sourceHeaderIcon_vei0l_57",zB="_sourceContent_vei0l_61",IB="_openSourceButton_vei0l_69",VB="_sourceButtonLabel_vei0l_79",GB="_closeSourceInfosButton_vei0l_101",qB="_loadingSourceInfos_vei0l_125",FB="_loading_vei0l_28",PB="_loadingError_vei0l_139",$B="_highlightLoadingInfo_vei0l_155",YB="_highlightLoadingInfoInnerContainer_vei0l_169",XB="_highlightLoadingInfoContent_vei0l_178",ZB="_highlightLoadingInfoCloseIcon_vei0l_198",QB="_highlightLoader_vei0l_203",WB="_highlightLoaderLoading_vei0l_210",jt={sourceInfos:UB,waitForLoading:BB,loadingContent:LB,sourceHeader:jB,sourceHeaderIcon:HB,sourceContent:zB,openSourceButton:IB,sourceButtonLabel:VB,closeSourceInfosButton:GB,loadingSourceInfos:qB,loading:FB,loadingError:PB,highlightLoadingInfo:$B,highlightLoadingInfoInnerContainer:YB,highlightLoadingInfoContent:XB,highlightLoadingInfoCloseIcon:ZB,highlightLoader:QB,highlightLoaderLoading:WB},KB=({onClick:n})=>{const a=gt();return E.jsxDEV("button",{className:te(jt.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":a("source-infos.close"),"data-title":a("source-infos.close"),tabIndex:0,onClick:n,children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsxDEV("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/close-source-infos-button.tsx",lineNumber:29,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/close-source-infos-button.tsx",lineNumber:22,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/close-source-infos-button.tsx",lineNumber:12,columnNumber:5},void 0)},JB=V.forwardRef(({sourceInfos:n,onClose:a,...o},l)=>E.jsxDEV("div",{className:jt.sourceHeader,...o,ref:l,children:[E.jsxDEV("div",{children:n?E.jsxDEV("p",{id:"source-info-title",children:n.title},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/header.tsx",lineNumber:17,columnNumber:13},void 0):E.jsxDEV("p",{children:" "},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/header.tsx",lineNumber:19,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/header.tsx",lineNumber:15,columnNumber:9},void 0),E.jsxDEV(KB,{onClick:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/header.tsx",lineNumber:22,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/header.tsx",lineNumber:14,columnNumber:7},void 0)),eL=({loading:n})=>E.jsxDEV("div",{className:jt.highlightLoader,children:n&&E.jsxDEV("div",{className:jt.highlightLoaderLoading},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loader.tsx",lineNumber:9,columnNumber:17},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loader.tsx",lineNumber:8,columnNumber:3},void 0),tL=({onClose:n})=>{const a=gt();return E.jsxDEV("div",{className:jt.highlightLoadingInfo,onClick:n,children:[E.jsxDEV("div",{className:jt.highlightLoadingInfoCloseIcon,children:E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsxDEV("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loading-info.tsx",lineNumber:20,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loading-info.tsx",lineNumber:13,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loading-info.tsx",lineNumber:12,columnNumber:7},void 0),E.jsxDEV("div",{className:jt.highlightLoadingInfoInnerContainer,children:[E.jsxDEV("div",{className:jt.highlightLoadingInfoContent,children:[E.jsxDEV("h3",{children:a("source-infos.highlight-loading.title")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loading-info.tsx",lineNumber:25,columnNumber:11},void 0),E.jsxDEV("p",{children:a("source-infos.highlight-loading.description")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loading-info.tsx",lineNumber:26,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loading-info.tsx",lineNumber:24,columnNumber:9},void 0),E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:E.jsxDEV("path",{d:"M253.66,106.34a8,8,0,0,0-11.32,0L192,156.69,107.31,72l50.35-50.34a8,8,0,1,0-11.32-11.32L96,60.69A16,16,0,0,0,93.18,79.5L72,100.69a16,16,0,0,0,0,22.62L76.69,128,18.34,186.34a8,8,0,0,0,3.13,13.25l72,24A7.88,7.88,0,0,0,96,224a8,8,0,0,0,5.66-2.34L136,187.31l4.69,4.69a16,16,0,0,0,22.62,0l21.19-21.18A16,16,0,0,0,203.31,168l50.35-50.34A8,8,0,0,0,253.66,106.34ZM93.84,206.85l-55-18.35L88,139.31,124.69,176ZM152,180.69,83.31,112,104,91.31,172.69,160Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loading-info.tsx",lineNumber:35,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loading-info.tsx",lineNumber:28,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loading-info.tsx",lineNumber:23,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/highlight-loading-info.tsx",lineNumber:11,columnNumber:5},void 0)},nL=({title:n,href:a,children:o})=>E.jsxDEV("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:o},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/markdown-link.tsx",lineNumber:7,columnNumber:5},void 0),rL=({className:n,children:a,...o})=>E.jsxDEV("a",{className:te(tc.button,tc.buttonDefault,n),type:"button",role:"button",...o,children:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/button/default-link-button.tsx",lineNumber:11,columnNumber:5},void 0),aL=n=>E.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:E.jsxDEV("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/icons/text.tsx",lineNumber:10,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/components/icons/text.tsx",lineNumber:2,columnNumber:3},void 0),iL=({type:n,...a})=>{switch(n){case"WEBSITE":return E.jsxDEV(tN,{...a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/knowledge-base-type-icon.tsx",lineNumber:15,columnNumber:14},void 0);case"PDF":return E.jsxDEV(eN,{...a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/knowledge-base-type-icon.tsx",lineNumber:17,columnNumber:14},void 0);case"DOCX":return E.jsxDEV(Kk,{...a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/knowledge-base-type-icon.tsx",lineNumber:19,columnNumber:14},void 0);case"TEXT":return E.jsxDEV(aL,{...a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/knowledge-base-type-icon.tsx",lineNumber:21,columnNumber:14},void 0);default:return E.jsxDEV(Jk,{...a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/knowledge-base-type-icon.tsx",lineNumber:23,columnNumber:14},void 0)}},oL=({url:n,knowledgeBaseType:a})=>{const o=gt();return E.jsxDEV(rL,{className:jt.openSourceButton,href:n,target:"_blank",children:E.jsxDEV("div",{className:jt.sourceButtonLabel,children:[E.jsxDEV("div",{className:jt.sourceHeaderIcon,children:E.jsxDEV(iL,{type:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/open-button.tsx",lineNumber:22,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/open-button.tsx",lineNumber:21,columnNumber:9},void 0),E.jsxDEV("p",{children:o("source-infos.open-source")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/open-button.tsx",lineNumber:24,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/open-button.tsx",lineNumber:20,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/open-button.tsx",lineNumber:15,columnNumber:5},void 0)},sL=({sourceInfos:{content:n,url:a,knowledgeBaseType:o,highlighted:l}})=>{const[u,f]=V.useState(!l);return V.useEffect(()=>{l&&f(!1)},[l]),E.jsxDEV(E.Fragment,{children:[E.jsxDEV("div",{className:te(jt.sourceContent,aN.markdown),children:[E.jsxDEV(Lr,{options:{overrides:{a:nL}},children:n},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loaded-source-infos.tsx",lineNumber:29,columnNumber:9},void 0),u&&E.jsxDEV(tL,{onClose:()=>f(!1)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loaded-source-infos.tsx",lineNumber:40,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loaded-source-infos.tsx",lineNumber:28,columnNumber:7},void 0),E.jsxDEV(oL,{url:a,knowledgeBaseType:o},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loaded-source-infos.tsx",lineNumber:44,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loaded-source-infos.tsx",lineNumber:27,columnNumber:5},void 0)},lL=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,cL=()=>{const n=gt();return E.jsxDEV("div",{className:jt.loadingError,children:[E.jsxDEV("h1",{children:n("source-infos.error.title")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loading-error.tsx",lineNumber:9,columnNumber:7},void 0),E.jsxDEV("img",{src:lL,title:n("source-infos.error.title")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loading-error.tsx",lineNumber:10,columnNumber:7},void 0),E.jsxDEV("p",{children:n("source-infos.error.info")},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loading-error.tsx",lineNumber:11,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loading-error.tsx",lineNumber:8,columnNumber:5},void 0)},uL=()=>E.jsxDEV("div",{className:jt.loadingSourceInfos,children:E.jsxDEV("svg",{className:jt.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsxDEV("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loading-source-infos.tsx",lineNumber:14,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loading-source-infos.tsx",lineNumber:6,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/loading-source-infos.tsx",lineNumber:5,columnNumber:5},void 0);function fL({sourceInfos:n,onClose:a,threshold:o=100}){const l=V.useRef(null),[u,f]=V.useState(0),[d,h]=V.useState(!1),p=V.useRef(null),y=V.useRef(null),v=V.useCallback(U=>{p.current=U,h(!0)},[]),_=V.useCallback(U=>{if(p.current!==null&&d){const I=U-p.current;I>0&&f(I)}},[d]),g=V.useCallback(()=>{h(!1),u>o&&a(),f(0),p.current=null},[u,o,a]),A=V.useCallback(U=>{const I=D=>v(D.touches[0].clientY),j=D=>_(D.touches[0].clientY),w=()=>g(),R=D=>{D.preventDefault(),v(D.clientY),window.addEventListener("mousemove",T),window.addEventListener("mouseup",N)},T=D=>_(D.clientY),N=()=>{g(),window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",N)};U.addEventListener("touchstart",I),U.addEventListener("touchmove",j),U.addEventListener("touchend",w),U.addEventListener("mousedown",R),y.current=()=>{U.removeEventListener("touchstart",I),U.removeEventListener("touchmove",j),U.removeEventListener("touchend",w),U.removeEventListener("mousedown",R),window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",N)}},[v,_,g]);return V.useEffect(()=>{let U;return(()=>{var j;l.current?((j=y.current)==null||j.call(y),A(l.current)):(U=new MutationObserver(()=>{var w;l.current&&((w=y.current)==null||w.call(y),A(l.current),U==null||U.disconnect())}),U.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{var j;U==null||U.disconnect(),(j=y.current)==null||j.call(y)}},[A,n]),{ref:l,dragOffsetY:u,isDragging:d}}const dL=n=>{const[a,o]=V.useState(!0);return V.useEffect(()=>{let l=null;return(n==null?void 0:n.type)==="loading"?(o(!0),l=setTimeout(()=>{o(!1)},300)):o(!n),()=>{l&&clearTimeout(l)}},[n]),a},hL=()=>{const n=us(),a=On(p=>p.chat.sourceInfos),o=lN(),l=V.useRef(null),u=dL(a);V.useEffect(()=>{var p;l.current&&(a==null?void 0:a.type)==="loading"&&(o?l.current.showModal():(l.current.setAttribute("open","true"),(p=l.current)==null||p.focus()))},[a,o]);const f=V.useCallback(()=>{l.current&&(o?l.current.close():l.current.removeAttribute("open"),n(WU()))},[n,o]),{ref:d,dragOffsetY:h}=fL({onClose:f,sourceInfos:a});return a?E.jsxDEV("dialog",{ref:l,className:te(jt.sourceInfos,u?jt.waitForLoading:a.type==="loading"?jt.loadingContent:""),style:o&&h?{transform:`translateY(${h}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:E.jsxDEV(E.Fragment,{children:[E.jsxDEV(JB,{ref:d,tabIndex:-1,sourceInfos:a.type==="loaded"?a:void 0,onClose:f},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/index.tsx",lineNumber:75,columnNumber:11},void 0),a.type==="loading"?E.jsxDEV(uL,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/index.tsx",lineNumber:85,columnNumber:13},void 0):a.type==="loading-error"?E.jsxDEV(cL,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/index.tsx",lineNumber:87,columnNumber:13},void 0):E.jsxDEV(E.Fragment,{children:[E.jsxDEV(eL,{loading:!a.highlighted},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/index.tsx",lineNumber:90,columnNumber:15},void 0),E.jsxDEV(sL,{sourceInfos:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/index.tsx",lineNumber:91,columnNumber:15},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/index.tsx",lineNumber:89,columnNumber:13},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/index.tsx",lineNumber:74,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/source-infos/index.tsx",lineNumber:53,columnNumber:5},void 0):null},mL="_container_114wy_1",pL="_body_114wy_7",bL="_intro_114wy_14",gL="_footer_114wy_39",yL="_footnote_114wy_43",vL="_containerWithFootnote_114wy_58",_L="_startChatButton_114wy_73",EL="_formFields_114wy_77",wL="_formField_114wy_77",SL="_radio_114wy_89",xL="_checkbox_114wy_96",TL="_input_114wy_104",kL="_inputLabel_114wy_138",NL="_selectWrapper_114wy_142",RL="_select_114wy_142",AL="_selectLabel_114wy_188",$t={container:mL,body:pL,intro:bL,footer:gL,footnote:yL,containerWithFootnote:vL,startChatButton:_L,formFields:EL,formField:wL,radio:SL,checkbox:xL,input:TL,inputLabel:kL,selectWrapper:NL,select:RL,selectLabel:AL},OL=({name:n,label:a,defaultValue:o,required:l,onChange:u})=>{const f=d=>{u(d.currentTarget.checked?"true":"false")};return E.jsxDEV("label",{className:te($t.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[E.jsxDEV("input",{type:"checkbox",id:n,name:n,defaultChecked:o==="true",required:l,onChange:f},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/checkbox.tsx",lineNumber:22,columnNumber:7},void 0),E.jsxDEV("div",{children:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/checkbox.tsx",lineNumber:30,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/checkbox.tsx",lineNumber:18,columnNumber:5},void 0)},CL=({type:n,name:a,label:o,defaultValue:l,placeholder:u,required:f,multiple:d,min:h,max:p,pattern:y,onChange:v})=>{const _=g=>{v(g.target.value)};return E.jsxDEV("label",{className:te($t.input,"chat__startScreen__input"),htmlFor:a,children:[E.jsxDEV("div",{className:te($t.inputLabel),children:o},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/input.tsx",lineNumber:50,columnNumber:7},void 0),E.jsxDEV("input",{type:n,id:a,name:a,defaultValue:l,placeholder:u,required:f,multiple:d,min:h,max:p,pattern:y,onChange:_},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/input.tsx",lineNumber:51,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/input.tsx",lineNumber:46,columnNumber:5},void 0)},DL=({name:n,value:a,label:o,defaultChecked:l,required:u,onChange:f})=>{const d=`${n}-${a}`,h=p=>{f(p.target.value)};return E.jsxDEV("label",{className:te($t.radio,"chat__startScreen__radio"),htmlFor:d,children:[E.jsxDEV("input",{id:d,type:"radio",name:n,value:a,defaultChecked:l,required:u,onChange:h},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/radio.tsx",lineNumber:32,columnNumber:7},void 0),E.jsxDEV("span",{className:te($t.label),children:o},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/radio.tsx",lineNumber:41,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/radio.tsx",lineNumber:28,columnNumber:5},void 0)},ML=({name:n,label:a,defaultValue:o,required:l,multiple:u,options:f,onChange:d})=>{const h=p=>{d(p.target.value)};return E.jsxDEV("label",{className:te($t.select,"chat__startScreen__select"),htmlFor:n,children:[E.jsxDEV("div",{className:te($t.selectLabel),children:a},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/select.tsx",lineNumber:32,columnNumber:7},void 0),E.jsxDEV("div",{className:te($t.selectWrapper),children:E.jsxDEV("select",{id:n,name:n,defaultValue:o,required:l,multiple:u,onChange:h,children:Object.entries(f||{}).map(([p,y])=>E.jsxDEV("option",{value:p,selected:y===o,children:y},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/select.tsx",lineNumber:43,columnNumber:13},void 0))},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/select.tsx",lineNumber:34,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/select.tsx",lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/select.tsx",lineNumber:28,columnNumber:5},void 0)},UL="start-screen.intro",BL="start-screen.start-chat",LL="start-screen.footnote",hr="start-screen.form",Yx=`${hr}.fields`,jL=()=>{const n=gt(),a=us(),[o,l]=V.useState({}),u=()=>{const _=Object.entries(o).reduce((g,[A,U])=>({...g,[A]:U.value}),{});a($U(_))},f=n(UL),d=n(BL),h=n(LL),p=V.useMemo(()=>{var _;return((_=n(Yx))==null?void 0:_.split(";").map(g=>g.trim()))??[]},[n(Yx)]);V.useEffect(()=>{p.length&&Object.keys(o).length===0&&l(p.reduce((_,g)=>({..._,[g]:HL(g,n)}),{}))},[n,p,o]);const y=_=>{_.preventDefault(),u()},v=_=>g=>{l(A=>({...A,[_]:{...A[_],value:g}}))};return E.jsxDEV("form",{onSubmit:y,className:te($t.container,h&&$t.containerWithFootnote,"chat__startScreen"),children:[E.jsxDEV("div",{className:te($t.body,"chat__startScreen__body"),children:[f&&E.jsxDEV("div",{className:te($t.intro,"chat__startScreen__intro"),children:E.jsxDEV(Lr,{options:{overrides:{a:Xx}},children:f},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:113,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:112,columnNumber:11},void 0),E.jsxDEV("div",{className:te($t.formFields,"chat__startScreen__fields"),children:Object.values(o).map(({type:_,name:g,label:A,placeholder:U,defaultValue:I,options:j,required:w,multiple:R,min:T,max:N,pattern:D})=>E.jsxDEV("div",{className:te($t.formField,"chat__startScreen__field"),children:(()=>{switch(_){case"radio":return E.jsxDEV(E.Fragment,{children:[E.jsxDEV("div",{children:A},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:154,columnNumber:27},void 0),Object.entries(j||{}).map(([z,X])=>E.jsxDEV(DL,{name:g,value:z,label:X,defaultChecked:z===I,required:w,onChange:v(g)},z,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:156,columnNumber:29},void 0))]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:153,columnNumber:25},void 0);case"checkbox":return E.jsxDEV(OL,{name:g,label:A,defaultValue:I,required:w,onChange:v(g)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:170,columnNumber:25},void 0);case"select":return E.jsxDEV(ML,{name:g,label:A,defaultValue:I,required:w,multiple:R,options:j,onChange:v(g)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:180,columnNumber:25},void 0);default:return E.jsxDEV(CL,{type:_,name:g,label:A,placeholder:U,defaultValue:I,required:w,multiple:R,min:T,max:N,pattern:D,onChange:v(g)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:192,columnNumber:25},void 0)}})()},g,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:142,columnNumber:15},void 0))},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:125,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:110,columnNumber:7},void 0),E.jsxDEV("div",{className:te($t.footer,"chat__startScreen__footer"),children:[E.jsxDEV(nc,{type:"submit",className:$t.startChatButton,children:d},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:214,columnNumber:9},void 0),h&&E.jsxDEV("div",{className:$t.footnote,children:E.jsxDEV(Lr,{options:{overrides:{a:Xx}},children:h},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:219,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:218,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:213,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:102,columnNumber:5},void 0)},Xx=({title:n,href:a,children:o})=>E.jsxDEV("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:o},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:241,columnNumber:5},void 0),HL=(n,a)=>{const o=a(`${hr}.${n}.type`)||"text",l=a(`${hr}.${n}.required`)==="true",u=a(`${hr}.${n}.multiple`)==="true",f=a(`${hr}.${n}.placeholder`),d=a(`${hr}.${n}.label`)||"",h=a(`${hr}.${n}.defaultValue`),p=a(`${hr}.${n}.min`),y=a(`${hr}.${n}.max`),v=a(`${hr}.${n}.pattern`),_=IL(a(`${hr}.${n}.options`));return{name:n,label:d,placeholder:f,value:zL(o,h,_)||"",defaultValue:h,options:_,type:o,required:l,multiple:u,min:p,max:y,pattern:v}},zL=(n,a,o)=>a||n==="select"&&Object.keys(o)[0]||"",IL=(n="")=>n.split(";").map(a=>a.trim()).reduce((a,o)=>{const[l,u]=o.split(":").map(f=>f.trim());return{...a,[l]:u}},{}),VL=()=>{const n=Kf();V.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},os={TRIGGER_ACTION:"TRIGGER_ACTION",TRIGGER_STORY:"TRIGGER_STORY",CHAT_MESSAGE_FROM_GUEST:"CHAT_MESSAGE_FROM_GUEST",ON_CHAT_WINDOW_OPEN:"ON_CHAT_WINDOW_OPEN",ON_CHAT_WINDOW_CLOSE:"ON_CHAT_WINDOW_CLOSE",RESTART_CHAT:"RESTART_CHAT"},GL=({clientName:n})=>{VL();const a=us(),o=On(v=>v.intl.messages),l=gt(),u=On(v=>v.settings.enableStartScreen),f=On(v=>v.startScreen.startScreenStatus),[d,h]=V.useState(void 0);V.useEffect(()=>{const v=Jf.parse(window.location.search);v.cssClassName&&h(v.cssClassName);const _=g=>{switch(g.data.type){case os.TRIGGER_ACTION:a(g.data.action);break;case os.TRIGGER_STORY:a(_k(g.data.story));break;case os.ON_CHAT_WINDOW_OPEN:a({type:"webclient.chatwindow.opened"});break;case os.ON_CHAT_WINDOW_CLOSE:a({type:"webclient.chatwindow.closed"});break;case os.CHAT_MESSAGE_FROM_GUEST:a(pk(g.data.text));break;case os.RESTART_CHAT:a(od(n,v));break}};return a(JU(n,v)),window.addEventListener("message",g=>_(g),!1),()=>window.removeEventListener("message",_)},[n,a]),V.useEffect(()=>{const v=l("page.title");v&&document&&(document.title=v)},[o,l]);const p=u===void 0,y=u===!1||f==="HIDDEN";return E.jsxDEV("div",{className:te($x.chatwindow,y&&$x.chatwindowWithAside,"chat__chatwindow",d),children:p?null:y?E.jsxDEV(E.Fragment,{children:[E.jsxDEV("header",{children:E.jsxDEV(Px,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:117,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:116,columnNumber:11},void 0),E.jsxDEV("main",{children:E.jsxDEV(xB,{clientName:n},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:120,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:119,columnNumber:11},void 0),E.jsxDEV("aside",{children:E.jsxDEV(hL,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:123,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:122,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:115,columnNumber:9},void 0):E.jsxDEV(E.Fragment,{children:[E.jsxDEV("header",{children:E.jsxDEV(Px,{withActions:!1},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:129,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:128,columnNumber:11},void 0),E.jsxDEV("main",{children:E.jsxDEV(jL,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:132,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:131,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:127,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/index.tsx",lineNumber:106,columnNumber:5},void 0)},qL=()=>{const n=oy(),a=lN(),o=On(u=>u.intl.locale),l=On(u=>u.intl.messages);return E.jsxDEV(PM,{locale:o,messages:l,onError:()=>{},children:E.jsxDEV("div",{className:te([YM.app,a?"chat__small":"chat__large"]),children:E.jsxDEV(GL,{clientName:n},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/App.tsx",lineNumber:25,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/App.tsx",lineNumber:19,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/App.tsx",lineNumber:18,columnNumber:5},void 0)};var Db,Zx;function ly(){if(Zx)return Db;Zx=1;function n(a){var o=typeof a;return a!=null&&(o=="object"||o=="function")}return Db=n,Db}var Mb,Qx;function FL(){if(Qx)return Mb;Qx=1;var n=typeof rf=="object"&&rf&&rf.Object===Object&&rf;return Mb=n,Mb}var Ub,Wx;function cN(){if(Wx)return Ub;Wx=1;var n=FL(),a=typeof self=="object"&&self&&self.Object===Object&&self,o=n||a||Function("return this")();return Ub=o,Ub}var Bb,Kx;function PL(){if(Kx)return Bb;Kx=1;var n=cN(),a=function(){return n.Date.now()};return Bb=a,Bb}var Lb,Jx;function $L(){if(Jx)return Lb;Jx=1;var n=/\s/;function a(o){for(var l=o.length;l--&&n.test(o.charAt(l)););return l}return Lb=a,Lb}var jb,eT;function YL(){if(eT)return jb;eT=1;var n=$L(),a=/^\s+/;function o(l){return l&&l.slice(0,n(l)+1).replace(a,"")}return jb=o,jb}var Hb,tT;function uN(){if(tT)return Hb;tT=1;var n=cN(),a=n.Symbol;return Hb=a,Hb}var zb,nT;function XL(){if(nT)return zb;nT=1;var n=uN(),a=Object.prototype,o=a.hasOwnProperty,l=a.toString,u=n?n.toStringTag:void 0;function f(d){var h=o.call(d,u),p=d[u];try{d[u]=void 0;var y=!0}catch{}var v=l.call(d);return y&&(h?d[u]=p:delete d[u]),v}return zb=f,zb}var Ib,rT;function ZL(){if(rT)return Ib;rT=1;var n=Object.prototype,a=n.toString;function o(l){return a.call(l)}return Ib=o,Ib}var Vb,aT;function QL(){if(aT)return Vb;aT=1;var n=uN(),a=XL(),o=ZL(),l="[object Null]",u="[object Undefined]",f=n?n.toStringTag:void 0;function d(h){return h==null?h===void 0?u:l:f&&f in Object(h)?a(h):o(h)}return Vb=d,Vb}var Gb,iT;function WL(){if(iT)return Gb;iT=1;function n(a){return a!=null&&typeof a=="object"}return Gb=n,Gb}var qb,oT;function KL(){if(oT)return qb;oT=1;var n=QL(),a=WL(),o="[object Symbol]";function l(u){return typeof u=="symbol"||a(u)&&n(u)==o}return qb=l,qb}var Fb,sT;function JL(){if(sT)return Fb;sT=1;var n=YL(),a=ly(),o=KL(),l=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function p(y){if(typeof y=="number")return y;if(o(y))return l;if(a(y)){var v=typeof y.valueOf=="function"?y.valueOf():y;y=a(v)?v+"":v}if(typeof y!="string")return y===0?y:+y;y=n(y);var _=f.test(y);return _||d.test(y)?h(y.slice(2),_?2:8):u.test(y)?l:+y}return Fb=p,Fb}var Pb,lT;function ej(){if(lT)return Pb;lT=1;var n=ly(),a=PL(),o=JL(),l="Expected a function",u=Math.max,f=Math.min;function d(h,p,y){var v,_,g,A,U,I,j=0,w=!1,R=!1,T=!0;if(typeof h!="function")throw new TypeError(l);p=o(p)||0,n(y)&&(w=!!y.leading,R="maxWait"in y,g=R?u(o(y.maxWait)||0,p):g,T="trailing"in y?!!y.trailing:T);function N(ce){var Ye=v,Ce=_;return v=_=void 0,j=ce,A=h.apply(Ce,Ye),A}function D(ce){return j=ce,U=setTimeout(re,p),w?N(ce):A}function z(ce){var Ye=ce-I,Ce=ce-j,W=p-Ye;return R?f(W,g-Ce):W}function X(ce){var Ye=ce-I,Ce=ce-j;return I===void 0||Ye>=p||Ye<0||R&&Ce>=g}function re(){var ce=a();if(X(ce))return Z(ce);U=setTimeout(re,z(ce))}function Z(ce){return U=void 0,T&&v?N(ce):(v=_=void 0,A)}function ee(){U!==void 0&&clearTimeout(U),j=0,v=I=_=U=void 0}function Q(){return U===void 0?A:Z(a())}function ie(){var ce=a(),Ye=X(ce);if(v=arguments,_=this,I=ce,Ye){if(U===void 0)return D(I);if(R)return clearTimeout(U),U=setTimeout(re,p),N(I)}return U===void 0&&(U=setTimeout(re,p)),A}return ie.cancel=ee,ie.flush=Q,ie}return Pb=d,Pb}var $b,cT;function tj(){if(cT)return $b;cT=1;var n=ej(),a=ly(),o="Expected a function";function l(u,f,d){var h=!0,p=!0;if(typeof u!="function")throw new TypeError(o);return a(d)&&(h="leading"in d?!!d.leading:h,p="trailing"in d?!!d.trailing:p),n(u,f,{leading:h,maxWait:f,trailing:p})}return $b=l,$b}var nj=tj();const rj=Zf(nj);function aj(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function ij(n){return n}function oj(n,a){a=a||{};const o=a.delimiter||".",l=a.maxDepth,u=a.transformKey||ij,f={};function d(h,p,y){y=y||1,Object.keys(h).forEach(function(v){const _=h[v],g=a.safe&&Array.isArray(_),A=Object.prototype.toString.call(_),U=aj(_),I=A==="[object Object]"||A==="[object Array]",j=p?p+o+u(v):u(v);if(!g&&!U&&I&&Object.keys(_).length&&(!a.maxDepth||y<l))return d(_,j,y+1);f[j]=_})}return d(n),f}const fN={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","export-transcript.pdf.title":"Konversation als PDF erhalten","export-transcript.pdf.description":"Laden Sie die Konversation als PDF herunter.","export-transcript.pdf.cancel":"Abbrechen","export-transcript.pdf.download":"Herunterladen","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
339
|
+
|
|
340
|
+
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
341
|
+
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.close":"Zurück zum Chat","start-screen.intro":"","start-screen.start-chat":"Chat starten","header.restart-chat":"Chat neu starten","header.expand-chat":"Chat vergrössern","header.close-chat":"Chat minimieren","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},sj={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive Conversation","export-transcript.email.description":"Enter your email address to receive the chat history.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"Your email address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"I have sent the chat history to your email address.","export-transcript.pdf.title":"Get conversation as PDF","export-transcript.pdf.description":"Download this conversation as PDF.","export-transcript.pdf.cancel":"Cancel","export-transcript.pdf.download":"Download","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
|
|
342
|
+
|
|
343
|
+
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
344
|
+
- Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.close":"Close","start-screen.intro":"","start-screen.start-chat":"Start chat","header.restart-chat":"Restart chat","header.expand-chat":"Expand chat","header.close-chat":"Minimize chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},lj={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir conversation","export-transcript.email.description":"Entrez votre adresse électronique pour recevoir l'historique du chat.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"Votre adresse électronique","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"J'ai envoyé l'historique du chat à votre adresse électronique.","export-transcript.pdf.title":"Recevoir la conversation en PDF","export-transcript.pdf.description":"Téléchargez la conversation en format PDF.","export-transcript.pdf.cancel":"Annuler","export-transcript.pdf.download":"Télécharger","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
|
|
345
|
+
|
|
346
|
+
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
347
|
+
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.close":"Fermer","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","header.restart-chat":"Redémarrer le chat","header.expand-chat":"Agrandir le chat","header.close-chat":"Minimiser le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},cj={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la conversazione","export-transcript.email.description":"Inserisci il tuo indirizzo e-mail per ricevere la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"Il tuo indirizzo e-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"Ho inviato la cronologia della chat al vostro indirizzo e-mail.","export-transcript.pdf.title":"Ricevi la conversazione come PDF","export-transcript.pdf.description":"Scarica questa conversazione in PDF.","export-transcript.pdf.cancel":"Annulla","export-transcript.pdf.download":"Scaricare","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
|
|
348
|
+
|
|
349
|
+
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
350
|
+
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.restart-chat":"Riavviare la chat","header.expand-chat":"Allarga la chat","header.close-chat":"Ridurre al minimo la chat","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},uj=["de","en","fr","it"],dN={locale:"de",messages:fN},fj=(n,a)=>{if(uj.includes(n)){const o=dj(n),l=oj(a);return{...o,...l}}return a},dj=n=>{switch(n.toString()){case"en":return sj;case"fr":return lj;case"it":return cj;default:return fN}},hj=(n=mj,a)=>{switch(a.type){case Kg:return Object.assign({},n,{connectionState:Qi.CONNECTING});case Jg:return Object.assign({},n,{connectionState:Qi.CONNECTED});case ey:return Object.assign({},n,{connectionState:Qi.DISCONNECTED});case ty:return Object.assign({},n,{connectionState:Qi.RECONNECTED});case ny:return Object.assign({},n,{sessionId:a.sessionId});case ad:return Object.assign({},n,{sessionId:a.payload.sessionId,userId:a.payload.userId});case id:return Object.assign({},n,{sessionId:void 0});default:return n}},mj={connectionState:Qi.DISCONNECTED,sessionId:void 0,userId:void 0},pj=(n=fT,a)=>{var o,l,u,f,d;switch(a.type){case Vk:return fT;case ad:return Yi({type:"webclient.chat.started"}),n;case id:return Yi({type:"webclient.chat.ended"}),n;case Ie.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Ie.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Ie.ActionTypes.MESSAGE_FROM_GUEST:case Ie.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return uT(n,a.message);case Ie.ActionTypes.MESSAGE_TO_GUEST:{Yi(a);const h=Object.assign({},a.message,{_id:a.meta.actionId}),p=n.messages.filter(y=>y._id===a.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:p?n.messages:n.messages.concat([h]),quickReplies:h.quickReplies?h.quickReplies:[]})}case Vg:{const h=a.messages,p=h.length?h[h.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:h,quickReplies:(p==null?void 0:p.quickReplies)||[]})}case Ig:return Yi(a.message),n;case Ie.ActionTypes.EVENT_TO_GUEST:return Yi(a.event),n;case Ie.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:a.payload.parameters.contentUrl});case Ie.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Ie.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:a.payload.locale});case gk:return Yi(a),n;case yk:return Yi(a),n;case qg:{const h=new Ie.TextMessage(a.transcription,new Ie.GuestUser),p=Object.assign({},h,{_id:dg()});return uT(n,p)}case Ie.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const h=n.messages.map(p=>p._id===a.payload.actionId?Object.assign({},p,{reaction:a.payload.reaction}):p);return Object.assign({},n,{messages:h})}case Fg:{const h={enabled:!0,rating:a.payload.rating};return Object.assign({},n,{conversationRating:h})}case Ie.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const h={...n.conversationRating,rating:a.payload};return Object.assign({},n,{conversationRating:h})}case $g:return{...n,sourceInfos:{type:"loading",chunkId:a.payload.chunkId}};case Pg:{const{highlighted:h}=a.payload;return((o=n.sourceInfos)==null?void 0:o.type)==="loaded"&&h?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case bk:{const h=(l=n.sourceInfos)==null?void 0:l.type,{chunkId:p,knowledgeBaseType:y,title:v,content:_,highlighted:g,url:A}=a.payload,U=((u=n.sourceInfos)==null?void 0:u.type)==="loading"||((f=n.sourceInfos)==null?void 0:f.type)==="loaded"?(d=n.sourceInfos)==null?void 0:d.chunkId:void 0;return U&&U!==p?n:h==="loading"||h==="loaded"&&g?{...n,sourceInfos:{type:"loaded",chunkId:p,knowledgeBaseType:y,title:v,content:_,highlighted:g,url:A}}:n}case Yg:return{...n,sourceInfos:void 0};default:return n}},uT=(n,a)=>{const o=n.messages[n.messages.length-1],l=(o==null?void 0:o.text)===a.text;return o&&o.sender.type===a.sender.type&&l?n:Object.assign({},n,{messages:n.messages.concat([a]),quickReplies:[]})},Yi=n=>{var a;bj()?(a=window.top)==null||a.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},bj=()=>typeof window<"u"&&window.self!==window.top,fT={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},hN=Qg({name:"intl",initialState:dN,reducers:{updateIntl:(n,a)=>{n.locale=a.payload.language,n.messages=a.payload.messages}}}),{updateIntl:gj}=hN.actions,yj=hN.reducer,vj={enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},mN=Qg({name:"settings",initialState:vj,reducers:{setSettings(n,a){n.enableStartScreen=a.payload.enableStartScreen,n.enableStandaloneView=a.payload.enableStandaloneView,n.enableTranscriptExportEmail=a.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=a.payload.enableTranscriptExportPdf,n.enableGeneralConditions=a.payload.enableGeneralConditions,n.enableSpeechSupport=a.payload.enableSpeechSupport,n.commands=a.payload.commands}}}),{setSettings:_j}=mN.actions,Ej=mN.reducer,wj=Sk({settings:Ej,chat:pj,startScreen:XU,connection:hj,intl:yj}),Sj="bubble-chat",pN="state-last-saved-at",bN="state",xj=n=>{try{if(!Nj())return;const a=dT(n,pN);if(kj(a))return;{const o=dT(n,bN);return o===null?void 0:JSON.parse(o)}}catch(a){console.error(a);return}},Tj=(n,a)=>{try{const o=JSON.stringify(a);hT(n,bN,o);const l=new Date().toISOString();hT(n,pN,l)}catch(o){console.error(o)}},kj=n=>{if(n===null)return!1;const a=new Date(n);return a.setHours(a.getHours()+12),new Date>a},Nj=()=>typeof localStorage<"u",dT=(n,a)=>{const o=gN(n,a);return localStorage.getItem(o)},hT=(n,a,o)=>{const l=gN(n,a);return localStorage.setItem(l,o)},gN=(n,a)=>`${Sj}-${n}-${a}`,zr=Object.create(null);zr.open="0";zr.close="1";zr.ping="2";zr.pong="3";zr.message="4";zr.upgrade="5";zr.noop="6";const Hf=Object.create(null);Object.keys(zr).forEach(n=>{Hf[zr[n]]=n});const Eg={type:"error",data:"parser error"},yN=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",vN=typeof ArrayBuffer=="function",_N=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,cy=({type:n,data:a},o,l)=>yN&&a instanceof Blob?o?l(a):mT(a,l):vN&&(a instanceof ArrayBuffer||_N(a))?o?l(a):mT(new Blob([a]),l):l(zr[n]+(a||"")),mT=(n,a)=>{const o=new FileReader;return o.onload=function(){const l=o.result.split(",")[1];a("b"+(l||""))},o.readAsDataURL(n)};function pT(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Yb;function Rj(n,a){if(yN&&n.data instanceof Blob)return n.data.arrayBuffer().then(pT).then(a);if(vN&&(n.data instanceof ArrayBuffer||_N(n.data)))return a(pT(n.data));cy(n,!1,o=>{Yb||(Yb=new TextEncoder),a(Yb.encode(o))})}const bT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<bT.length;n++)Wl[bT.charCodeAt(n)]=n;const Aj=n=>{let a=n.length*.75,o=n.length,l,u=0,f,d,h,p;n[n.length-1]==="="&&(a--,n[n.length-2]==="="&&a--);const y=new ArrayBuffer(a),v=new Uint8Array(y);for(l=0;l<o;l+=4)f=Wl[n.charCodeAt(l)],d=Wl[n.charCodeAt(l+1)],h=Wl[n.charCodeAt(l+2)],p=Wl[n.charCodeAt(l+3)],v[u++]=f<<2|d>>4,v[u++]=(d&15)<<4|h>>2,v[u++]=(h&3)<<6|p&63;return y},Oj=typeof ArrayBuffer=="function",uy=(n,a)=>{if(typeof n!="string")return{type:"message",data:EN(n,a)};const o=n.charAt(0);return o==="b"?{type:"message",data:Cj(n.substring(1),a)}:Hf[o]?n.length>1?{type:Hf[o],data:n.substring(1)}:{type:Hf[o]}:Eg},Cj=(n,a)=>{if(Oj){const o=Aj(n);return EN(o,a)}else return{base64:!0,data:n}},EN=(n,a)=>{switch(a){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},wN="",Dj=(n,a)=>{const o=n.length,l=new Array(o);let u=0;n.forEach((f,d)=>{cy(f,!1,h=>{l[d]=h,++u===o&&a(l.join(wN))})})},Mj=(n,a)=>{const o=n.split(wN),l=[];for(let u=0;u<o.length;u++){const f=uy(o[u],a);if(l.push(f),f.type==="error")break}return l};function Uj(){return new TransformStream({transform(n,a){Rj(n,o=>{const l=o.length;let u;if(l<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,l);else if(l<65536){u=new Uint8Array(3);const f=new DataView(u.buffer);f.setUint8(0,126),f.setUint16(1,l)}else{u=new Uint8Array(9);const f=new DataView(u.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(l))}n.data&&typeof n.data!="string"&&(u[0]|=128),a.enqueue(u),a.enqueue(o)})}})}let Xb;function Uf(n){return n.reduce((a,o)=>a+o.length,0)}function Bf(n,a){if(n[0].length===a)return n.shift();const o=new Uint8Array(a);let l=0;for(let u=0;u<a;u++)o[u]=n[0][l++],l===n[0].length&&(n.shift(),l=0);return n.length&&l<n[0].length&&(n[0]=n[0].slice(l)),o}function Bj(n,a){Xb||(Xb=new TextDecoder);const o=[];let l=0,u=-1,f=!1;return new TransformStream({transform(d,h){for(o.push(d);;){if(l===0){if(Uf(o)<1)break;const p=Bf(o,1);f=(p[0]&128)===128,u=p[0]&127,u<126?l=3:u===126?l=1:l=2}else if(l===1){if(Uf(o)<2)break;const p=Bf(o,2);u=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),l=3}else if(l===2){if(Uf(o)<8)break;const p=Bf(o,8),y=new DataView(p.buffer,p.byteOffset,p.length),v=y.getUint32(0);if(v>Math.pow(2,21)-1){h.enqueue(Eg);break}u=v*Math.pow(2,32)+y.getUint32(4),l=3}else{if(Uf(o)<u)break;const p=Bf(o,u);h.enqueue(uy(f?p:Xb.decode(p),a)),l=0}if(u===0||u>n){h.enqueue(Eg);break}}}})}const SN=4;function Nt(n){if(n)return Lj(n)}function Lj(n){for(var a in Nt.prototype)n[a]=Nt.prototype[a];return n}Nt.prototype.on=Nt.prototype.addEventListener=function(n,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(a),this};Nt.prototype.once=function(n,a){function o(){this.off(n,o),a.apply(this,arguments)}return o.fn=a,this.on(n,o),this};Nt.prototype.off=Nt.prototype.removeListener=Nt.prototype.removeAllListeners=Nt.prototype.removeEventListener=function(n,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+n];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var l,u=0;u<o.length;u++)if(l=o[u],l===a||l.fn===a){o.splice(u,1);break}return o.length===0&&delete this._callbacks["$"+n],this};Nt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var a=new Array(arguments.length-1),o=this._callbacks["$"+n],l=1;l<arguments.length;l++)a[l-1]=arguments[l];if(o){o=o.slice(0);for(var l=0,u=o.length;l<u;++l)o[l].apply(this,a)}return this};Nt.prototype.emitReserved=Nt.prototype.emit;Nt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Nt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const cd=typeof Promise=="function"&&typeof Promise.resolve=="function"?a=>Promise.resolve().then(a):(a,o)=>o(a,0),Wn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),jj="arraybuffer";function xN(n,...a){return a.reduce((o,l)=>(n.hasOwnProperty(l)&&(o[l]=n[l]),o),{})}const Hj=Wn.setTimeout,zj=Wn.clearTimeout;function ud(n,a){a.useNativeTimers?(n.setTimeoutFn=Hj.bind(Wn),n.clearTimeoutFn=zj.bind(Wn)):(n.setTimeoutFn=Wn.setTimeout.bind(Wn),n.clearTimeoutFn=Wn.clearTimeout.bind(Wn))}const Ij=1.33;function Vj(n){return typeof n=="string"?Gj(n):Math.ceil((n.byteLength||n.size)*Ij)}function Gj(n){let a=0,o=0;for(let l=0,u=n.length;l<u;l++)a=n.charCodeAt(l),a<128?o+=1:a<2048?o+=2:a<55296||a>=57344?o+=3:(l++,o+=4);return o}function TN(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function qj(n){let a="";for(let o in n)n.hasOwnProperty(o)&&(a.length&&(a+="&"),a+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));return a}function Fj(n){let a={},o=n.split("&");for(let l=0,u=o.length;l<u;l++){let f=o[l].split("=");a[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return a}class Pj extends Error{constructor(a,o,l){super(a),this.description=o,this.context=l,this.type="TransportError"}}class fy extends Nt{constructor(a){super(),this.writable=!1,ud(this,a),this.opts=a,this.query=a.query,this.socket=a.socket,this.supportsBinary=!a.forceBase64}onError(a,o,l){return super.emitReserved("error",new Pj(a,o,l)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(a){this.readyState==="open"&&this.write(a)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(a){const o=uy(a,this.socket.binaryType);this.onPacket(o)}onPacket(a){super.emitReserved("packet",a)}onClose(a){this.readyState="closed",super.emitReserved("close",a)}pause(a){}createUri(a,o={}){return a+"://"+this._hostname()+this._port()+this.opts.path+this._query(o)}_hostname(){const a=this.opts.hostname;return a.indexOf(":")===-1?a:"["+a+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(a){const o=qj(a);return o.length?"?"+o:""}}class $j extends fy{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(a){this.readyState="pausing";const o=()=>{this.readyState="paused",a()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||o()})),this.writable||(l++,this.once("drain",function(){--l||o()}))}else o()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(a){const o=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};Mj(a,this.socket.binaryType).forEach(o),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const a=()=>{this.write([{type:"close"}])};this.readyState==="open"?a():this.once("open",a)}write(a){this.writable=!1,Dj(a,o=>{this.doWrite(o,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const a=this.opts.secure?"https":"http",o=this.query||{};return this.opts.timestampRequests!==!1&&(o[this.opts.timestampParam]=TN()),!this.supportsBinary&&!o.sid&&(o.b64=1),this.createUri(a,o)}}let kN=!1;try{kN=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Yj=kN;function Xj(){}class Zj extends $j{constructor(a){if(super(a),typeof location<"u"){const o=location.protocol==="https:";let l=location.port;l||(l=o?"443":"80"),this.xd=typeof location<"u"&&a.hostname!==location.hostname||l!==a.port}}doWrite(a,o){const l=this.request({method:"POST",data:a});l.on("success",o),l.on("error",(u,f)=>{this.onError("xhr post error",u,f)})}doPoll(){const a=this.request();a.on("data",this.onData.bind(this)),a.on("error",(o,l)=>{this.onError("xhr poll error",o,l)}),this.pollXhr=a}}class jr extends Nt{constructor(a,o,l){super(),this.createRequest=a,ud(this,l),this._opts=l,this._method=l.method||"GET",this._uri=o,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var a;const o=xN(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");o.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(o);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&l.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(a=this._opts.cookieJar)===null||a===void 0||a.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var u;l.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=jr.requestsCount++,jr.requests[this._index]=this)}_onError(a){this.emitReserved("error",a,this._xhr),this._cleanup(!0)}_cleanup(a){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Xj,a)try{this._xhr.abort()}catch{}typeof document<"u"&&delete jr.requests[this._index],this._xhr=null}}_onLoad(){const a=this._xhr.responseText;a!==null&&(this.emitReserved("data",a),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}jr.requestsCount=0;jr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",gT);else if(typeof addEventListener=="function"){const n="onpagehide"in Wn?"pagehide":"unload";addEventListener(n,gT,!1)}}function gT(){for(let n in jr.requests)jr.requests.hasOwnProperty(n)&&jr.requests[n].abort()}const Qj=function(){const n=NN({xdomain:!1});return n&&n.responseType!==null}();class Wj extends Zj{constructor(a){super(a);const o=a&&a.forceBase64;this.supportsBinary=Qj&&!o}request(a={}){return Object.assign(a,{xd:this.xd},this.opts),new jr(NN,this.uri(),a)}}function NN(n){const a=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!a||Yj))return new XMLHttpRequest}catch{}if(!a)try{return new Wn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const RN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Kj extends fy{get name(){return"websocket"}doOpen(){const a=this.uri(),o=this.opts.protocols,l=RN?{}:xN(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(a,o,l)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=a=>this.onClose({description:"websocket connection closed",context:a}),this.ws.onmessage=a=>this.onData(a.data),this.ws.onerror=a=>this.onError("websocket error",a)}write(a){this.writable=!1;for(let o=0;o<a.length;o++){const l=a[o],u=o===a.length-1;cy(l,this.supportsBinary,f=>{try{this.doWrite(l,f)}catch{}u&&cd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const a=this.opts.secure?"wss":"ws",o=this.query||{};return this.opts.timestampRequests&&(o[this.opts.timestampParam]=TN()),this.supportsBinary||(o.b64=1),this.createUri(a,o)}}const Zb=Wn.WebSocket||Wn.MozWebSocket;class Jj extends Kj{createSocket(a,o,l){return RN?new Zb(a,o,l):o?new Zb(a,o):new Zb(a)}doWrite(a,o){this.ws.send(o)}}class eH extends fy{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(a){return this.emitReserved("error",a)}this._transport.closed.then(()=>{this.onClose()}).catch(a=>{this.onError("webtransport error",a)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(a=>{const o=Bj(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=a.readable.pipeThrough(o).getReader(),u=Uj();u.readable.pipeTo(a.writable),this._writer=u.writable.getWriter();const f=()=>{l.read().then(({done:h,value:p})=>{h||(this.onPacket(p),f())}).catch(h=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(a){this.writable=!1;for(let o=0;o<a.length;o++){const l=a[o],u=o===a.length-1;this._writer.write(l).then(()=>{u&&cd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var a;(a=this._transport)===null||a===void 0||a.close()}}const tH={websocket:Jj,webtransport:eH,polling:Wj},nH=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rH=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function wg(n){if(n.length>8e3)throw"URI too long";const a=n,o=n.indexOf("["),l=n.indexOf("]");o!=-1&&l!=-1&&(n=n.substring(0,o)+n.substring(o,l).replace(/:/g,";")+n.substring(l,n.length));let u=nH.exec(n||""),f={},d=14;for(;d--;)f[rH[d]]=u[d]||"";return o!=-1&&l!=-1&&(f.source=a,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=aH(f,f.path),f.queryKey=iH(f,f.query),f}function aH(n,a){const o=/\/{2,9}/g,l=a.replace(o,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&l.splice(0,1),a.slice(-1)=="/"&&l.splice(l.length-1,1),l}function iH(n,a){const o={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,f){u&&(o[u]=f)}),o}const Sg=typeof addEventListener=="function"&&typeof removeEventListener=="function",zf=[];Sg&&addEventListener("offline",()=>{zf.forEach(n=>n())},!1);class ni extends Nt{constructor(a,o){if(super(),this.binaryType=jj,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,a&&typeof a=="object"&&(o=a,a=null),a){const l=wg(a);o.hostname=l.host,o.secure=l.protocol==="https"||l.protocol==="wss",o.port=l.port,l.query&&(o.query=l.query)}else o.host&&(o.hostname=wg(o.host).host);ud(this,o),this.secure=o.secure!=null?o.secure:typeof location<"u"&&location.protocol==="https:",o.hostname&&!o.port&&(o.port=this.secure?"443":"80"),this.hostname=o.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=o.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},o.transports.forEach(l=>{const u=l.prototype.name;this.transports.push(u),this._transportsByName[u]=l}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},o),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Fj(this.opts.query)),Sg&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},zf.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(a){const o=Object.assign({},this.opts.query);o.EIO=SN,o.transport=a,this.id&&(o.sid=this.id);const l=Object.assign({},this.opts,{query:o,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[a]);return new this._transportsByName[a](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const a=this.opts.rememberUpgrade&&ni.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const o=this.createTransport(a);o.open(),this.setTransport(o)}setTransport(a){this.transport&&this.transport.removeAllListeners(),this.transport=a,a.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",o=>this._onClose("transport close",o))}onOpen(){this.readyState="open",ni.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",a),this.emitReserved("heartbeat"),a.type){case"open":this.onHandshake(JSON.parse(a.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const o=new Error("server error");o.code=a.data,this._onError(o);break;case"message":this.emitReserved("data",a.data),this.emitReserved("message",a.data);break}}onHandshake(a){this.emitReserved("handshake",a),this.id=a.sid,this.transport.query.sid=a.sid,this._pingInterval=a.pingInterval,this._pingTimeout=a.pingTimeout,this._maxPayload=a.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const a=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+a,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},a),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const a=this._getWritablePackets();this.transport.send(a),this._prevBufferLen=a.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let o=1;for(let l=0;l<this.writeBuffer.length;l++){const u=this.writeBuffer[l].data;if(u&&(o+=Vj(u)),l>0&&o>this._maxPayload)return this.writeBuffer.slice(0,l);o+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const a=Date.now()>this._pingTimeoutTime;return a&&(this._pingTimeoutTime=0,cd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),a}write(a,o,l){return this._sendPacket("message",a,o,l),this}send(a,o,l){return this._sendPacket("message",a,o,l),this}_sendPacket(a,o,l,u){if(typeof o=="function"&&(u=o,o=void 0),typeof l=="function"&&(u=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const f={type:a,data:o,options:l};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),u&&this.once("flush",u),this.flush()}close(){const a=()=>{this._onClose("forced close"),this.transport.close()},o=()=>{this.off("upgrade",o),this.off("upgradeError",o),a()},l=()=>{this.once("upgrade",o),this.once("upgradeError",o)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():a()}):this.upgrading?l():a()),this}_onError(a){if(ni.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",a),this._onClose("transport error",a)}_onClose(a,o){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Sg&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=zf.indexOf(this._offlineEventListener);l!==-1&&zf.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",a,o),this.writeBuffer=[],this._prevBufferLen=0}}}ni.protocol=SN;class oH extends ni{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let a=0;a<this._upgrades.length;a++)this._probe(this._upgrades[a])}_probe(a){let o=this.createTransport(a),l=!1;ni.priorWebsocketSuccess=!1;const u=()=>{l||(o.send([{type:"ping",data:"probe"}]),o.once("packet",_=>{if(!l)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",o),!o)return;ni.priorWebsocketSuccess=o.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(v(),this.setTransport(o),o.send([{type:"upgrade"}]),this.emitReserved("upgrade",o),o=null,this.upgrading=!1,this.flush())})}else{const g=new Error("probe error");g.transport=o.name,this.emitReserved("upgradeError",g)}}))};function f(){l||(l=!0,v(),o.close(),o=null)}const d=_=>{const g=new Error("probe error: "+_);g.transport=o.name,f(),this.emitReserved("upgradeError",g)};function h(){d("transport closed")}function p(){d("socket closed")}function y(_){o&&_.name!==o.name&&f()}const v=()=>{o.removeListener("open",u),o.removeListener("error",d),o.removeListener("close",h),this.off("close",p),this.off("upgrading",y)};o.once("open",u),o.once("error",d),o.once("close",h),this.once("close",p),this.once("upgrading",y),this._upgrades.indexOf("webtransport")!==-1&&a!=="webtransport"?this.setTimeoutFn(()=>{l||o.open()},200):o.open()}onHandshake(a){this._upgrades=this._filterUpgrades(a.upgrades),super.onHandshake(a)}_filterUpgrades(a){const o=[];for(let l=0;l<a.length;l++)~this.transports.indexOf(a[l])&&o.push(a[l]);return o}}let sH=class extends oH{constructor(a,o={}){const l=typeof a=="object"?a:o;(!l.transports||l.transports&&typeof l.transports[0]=="string")&&(l.transports=(l.transports||["polling","websocket","webtransport"]).map(u=>tH[u]).filter(u=>!!u)),super(a,l)}};function lH(n,a="",o){let l=n;o=o||typeof location<"u"&&location,n==null&&(n=o.protocol+"//"+o.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=o.protocol+n:n=o.host+n),/^(https?|wss?):\/\//.test(n)||(typeof o<"u"?n=o.protocol+"//"+n:n="https://"+n),l=wg(n)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const f=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+f+":"+l.port+a,l.href=l.protocol+"://"+f+(o&&o.port===l.port?"":":"+l.port),l}const cH=typeof ArrayBuffer=="function",uH=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,AN=Object.prototype.toString,fH=typeof Blob=="function"||typeof Blob<"u"&&AN.call(Blob)==="[object BlobConstructor]",dH=typeof File=="function"||typeof File<"u"&&AN.call(File)==="[object FileConstructor]";function dy(n){return cH&&(n instanceof ArrayBuffer||uH(n))||fH&&n instanceof Blob||dH&&n instanceof File}function If(n,a){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let o=0,l=n.length;o<l;o++)if(If(n[o]))return!0;return!1}if(dy(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return If(n.toJSON(),!0);for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&If(n[o]))return!0;return!1}function hH(n){const a=[],o=n.data,l=n;return l.data=xg(o,a),l.attachments=a.length,{packet:l,buffers:a}}function xg(n,a){if(!n)return n;if(dy(n)){const o={_placeholder:!0,num:a.length};return a.push(n),o}else if(Array.isArray(n)){const o=new Array(n.length);for(let l=0;l<n.length;l++)o[l]=xg(n[l],a);return o}else if(typeof n=="object"&&!(n instanceof Date)){const o={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(o[l]=xg(n[l],a));return o}return n}function mH(n,a){return n.data=Tg(n.data,a),delete n.attachments,n}function Tg(n,a){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<a.length)return a[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let o=0;o<n.length;o++)n[o]=Tg(n[o],a);else if(typeof n=="object")for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=Tg(n[o],a));return n}const pH=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],bH=5;var Ge;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Ge||(Ge={}));class gH{constructor(a){this.replacer=a}encode(a){return(a.type===Ge.EVENT||a.type===Ge.ACK)&&If(a)?this.encodeAsBinary({type:a.type===Ge.EVENT?Ge.BINARY_EVENT:Ge.BINARY_ACK,nsp:a.nsp,data:a.data,id:a.id}):[this.encodeAsString(a)]}encodeAsString(a){let o=""+a.type;return(a.type===Ge.BINARY_EVENT||a.type===Ge.BINARY_ACK)&&(o+=a.attachments+"-"),a.nsp&&a.nsp!=="/"&&(o+=a.nsp+","),a.id!=null&&(o+=a.id),a.data!=null&&(o+=JSON.stringify(a.data,this.replacer)),o}encodeAsBinary(a){const o=hH(a),l=this.encodeAsString(o.packet),u=o.buffers;return u.unshift(l),u}}function yT(n){return Object.prototype.toString.call(n)==="[object Object]"}class hy extends Nt{constructor(a){super(),this.reviver=a}add(a){let o;if(typeof a=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");o=this.decodeString(a);const l=o.type===Ge.BINARY_EVENT;l||o.type===Ge.BINARY_ACK?(o.type=l?Ge.EVENT:Ge.ACK,this.reconstructor=new yH(o),o.attachments===0&&super.emitReserved("decoded",o)):super.emitReserved("decoded",o)}else if(dy(a)||a.base64)if(this.reconstructor)o=this.reconstructor.takeBinaryData(a),o&&(this.reconstructor=null,super.emitReserved("decoded",o));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+a)}decodeString(a){let o=0;const l={type:Number(a.charAt(0))};if(Ge[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Ge.BINARY_EVENT||l.type===Ge.BINARY_ACK){const f=o+1;for(;a.charAt(++o)!=="-"&&o!=a.length;);const d=a.substring(f,o);if(d!=Number(d)||a.charAt(o)!=="-")throw new Error("Illegal attachments");l.attachments=Number(d)}if(a.charAt(o+1)==="/"){const f=o+1;for(;++o&&!(a.charAt(o)===","||o===a.length););l.nsp=a.substring(f,o)}else l.nsp="/";const u=a.charAt(o+1);if(u!==""&&Number(u)==u){const f=o+1;for(;++o;){const d=a.charAt(o);if(d==null||Number(d)!=d){--o;break}if(o===a.length)break}l.id=Number(a.substring(f,o+1))}if(a.charAt(++o)){const f=this.tryParse(a.substr(o));if(hy.isPayloadValid(l.type,f))l.data=f;else throw new Error("invalid payload")}return l}tryParse(a){try{return JSON.parse(a,this.reviver)}catch{return!1}}static isPayloadValid(a,o){switch(a){case Ge.CONNECT:return yT(o);case Ge.DISCONNECT:return o===void 0;case Ge.CONNECT_ERROR:return typeof o=="string"||yT(o);case Ge.EVENT:case Ge.BINARY_EVENT:return Array.isArray(o)&&(typeof o[0]=="number"||typeof o[0]=="string"&&pH.indexOf(o[0])===-1);case Ge.ACK:case Ge.BINARY_ACK:return Array.isArray(o)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class yH{constructor(a){this.packet=a,this.buffers=[],this.reconPack=a}takeBinaryData(a){if(this.buffers.push(a),this.buffers.length===this.reconPack.attachments){const o=mH(this.reconPack,this.buffers);return this.finishedReconstruction(),o}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const vH=Object.freeze(Object.defineProperty({__proto__:null,Decoder:hy,Encoder:gH,get PacketType(){return Ge},protocol:bH},Symbol.toStringTag,{value:"Module"}));function mr(n,a,o){return n.on(a,o),function(){n.off(a,o)}}const _H=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ON extends Nt{constructor(a,o,l){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=a,this.nsp=o,l&&l.auth&&(this.auth=l.auth),this._opts=Object.assign({},l),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const a=this.io;this.subs=[mr(a,"open",this.onopen.bind(this)),mr(a,"packet",this.onpacket.bind(this)),mr(a,"error",this.onerror.bind(this)),mr(a,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...a){return a.unshift("message"),this.emit.apply(this,a),this}emit(a,...o){var l,u,f;if(_H.hasOwnProperty(a))throw new Error('"'+a.toString()+'" is a reserved event name');if(o.unshift(a),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(o),this;const d={type:Ge.EVENT,data:o};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof o[o.length-1]=="function"){const v=this.ids++,_=o.pop();this._registerAckCallback(v,_),d.id=v}const h=(u=(l=this.io.engine)===null||l===void 0?void 0:l.transport)===null||u===void 0?void 0:u.writable,p=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!h||(p?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(a,o){var l;const u=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(u===void 0){this.acks[a]=o;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[a];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===a&&this.sendBuffer.splice(h,1);o.call(this,new Error("operation has timed out"))},u),d=(...h)=>{this.io.clearTimeoutFn(f),o.apply(this,h)};d.withError=!0,this.acks[a]=d}emitWithAck(a,...o){return new Promise((l,u)=>{const f=(d,h)=>d?u(d):l(h);f.withError=!0,o.push(f),this.emit(a,...o)})}_addToQueue(a){let o;typeof a[a.length-1]=="function"&&(o=a.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:a,flags:Object.assign({fromQueue:!0},this.flags)};a.push((u,...f)=>l!==this._queue[0]?void 0:(u!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),o&&o(u)):(this._queue.shift(),o&&o(null,...f)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(a=!1){if(!this.connected||this._queue.length===0)return;const o=this._queue[0];o.pending&&!a||(o.pending=!0,o.tryCount++,this.flags=o.flags,this.emit.apply(this,o.args))}packet(a){a.nsp=this.nsp,this.io._packet(a)}onopen(){typeof this.auth=="function"?this.auth(a=>{this._sendConnectPacket(a)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(a){this.packet({type:Ge.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},a):a})}onerror(a){this.connected||this.emitReserved("connect_error",a)}onclose(a,o){this.connected=!1,delete this.id,this.emitReserved("disconnect",a,o),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(a=>{if(!this.sendBuffer.some(l=>String(l.id)===a)){const l=this.acks[a];delete this.acks[a],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(a){if(a.nsp===this.nsp)switch(a.type){case Ge.CONNECT:a.data&&a.data.sid?this.onconnect(a.data.sid,a.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ge.EVENT:case Ge.BINARY_EVENT:this.onevent(a);break;case Ge.ACK:case Ge.BINARY_ACK:this.onack(a);break;case Ge.DISCONNECT:this.ondisconnect();break;case Ge.CONNECT_ERROR:this.destroy();const l=new Error(a.data.message);l.data=a.data.data,this.emitReserved("connect_error",l);break}}onevent(a){const o=a.data||[];a.id!=null&&o.push(this.ack(a.id)),this.connected?this.emitEvent(o):this.receiveBuffer.push(Object.freeze(o))}emitEvent(a){if(this._anyListeners&&this._anyListeners.length){const o=this._anyListeners.slice();for(const l of o)l.apply(this,a)}super.emit.apply(this,a),this._pid&&a.length&&typeof a[a.length-1]=="string"&&(this._lastOffset=a[a.length-1])}ack(a){const o=this;let l=!1;return function(...u){l||(l=!0,o.packet({type:Ge.ACK,id:a,data:u}))}}onack(a){const o=this.acks[a.id];typeof o=="function"&&(delete this.acks[a.id],o.withError&&a.data.unshift(null),o.apply(this,a.data))}onconnect(a,o){this.id=a,this.recovered=o&&this._pid===o,this._pid=o,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(a=>this.emitEvent(a)),this.receiveBuffer=[],this.sendBuffer.forEach(a=>{this.notifyOutgoingListeners(a),this.packet(a)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(a=>a()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ge.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(a){return this.flags.compress=a,this}get volatile(){return this.flags.volatile=!0,this}timeout(a){return this.flags.timeout=a,this}onAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(a),this}prependAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(a),this}offAny(a){if(!this._anyListeners)return this;if(a){const o=this._anyListeners;for(let l=0;l<o.length;l++)if(a===o[l])return o.splice(l,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(a),this}prependAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(a),this}offAnyOutgoing(a){if(!this._anyOutgoingListeners)return this;if(a){const o=this._anyOutgoingListeners;for(let l=0;l<o.length;l++)if(a===o[l])return o.splice(l,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(a){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const o=this._anyOutgoingListeners.slice();for(const l of o)l.apply(this,a.data)}}}function fs(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}fs.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),o=Math.floor(a*this.jitter*n);n=(Math.floor(a*10)&1)==0?n-o:n+o}return Math.min(n,this.max)|0};fs.prototype.reset=function(){this.attempts=0};fs.prototype.setMin=function(n){this.ms=n};fs.prototype.setMax=function(n){this.max=n};fs.prototype.setJitter=function(n){this.jitter=n};class kg extends Nt{constructor(a,o){var l;super(),this.nsps={},this.subs=[],a&&typeof a=="object"&&(o=a,a=void 0),o=o||{},o.path=o.path||"/socket.io",this.opts=o,ud(this,o),this.reconnection(o.reconnection!==!1),this.reconnectionAttempts(o.reconnectionAttempts||1/0),this.reconnectionDelay(o.reconnectionDelay||1e3),this.reconnectionDelayMax(o.reconnectionDelayMax||5e3),this.randomizationFactor((l=o.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new fs({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(o.timeout==null?2e4:o.timeout),this._readyState="closed",this.uri=a;const u=o.parser||vH;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=o.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(a){return arguments.length?(this._reconnection=!!a,a||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(a){return a===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=a,this)}reconnectionDelay(a){var o;return a===void 0?this._reconnectionDelay:(this._reconnectionDelay=a,(o=this.backoff)===null||o===void 0||o.setMin(a),this)}randomizationFactor(a){var o;return a===void 0?this._randomizationFactor:(this._randomizationFactor=a,(o=this.backoff)===null||o===void 0||o.setJitter(a),this)}reconnectionDelayMax(a){var o;return a===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=a,(o=this.backoff)===null||o===void 0||o.setMax(a),this)}timeout(a){return arguments.length?(this._timeout=a,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(a){if(~this._readyState.indexOf("open"))return this;this.engine=new sH(this.uri,this.opts);const o=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=mr(o,"open",function(){l.onopen(),a&&a()}),f=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),a?a(h):this.maybeReconnectOnOpen()},d=mr(o,"error",f);if(this._timeout!==!1){const h=this._timeout,p=this.setTimeoutFn(()=>{u(),f(new Error("timeout")),o.close()},h);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(u),this.subs.push(d),this}connect(a){return this.open(a)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const a=this.engine;this.subs.push(mr(a,"ping",this.onping.bind(this)),mr(a,"data",this.ondata.bind(this)),mr(a,"error",this.onerror.bind(this)),mr(a,"close",this.onclose.bind(this)),mr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(a){try{this.decoder.add(a)}catch(o){this.onclose("parse error",o)}}ondecoded(a){cd(()=>{this.emitReserved("packet",a)},this.setTimeoutFn)}onerror(a){this.emitReserved("error",a)}socket(a,o){let l=this.nsps[a];return l?this._autoConnect&&!l.active&&l.connect():(l=new ON(this,a,o),this.nsps[a]=l),l}_destroy(a){const o=Object.keys(this.nsps);for(const l of o)if(this.nsps[l].active)return;this._close()}_packet(a){const o=this.encoder.encode(a);for(let l=0;l<o.length;l++)this.engine.write(o[l],a.options)}cleanup(){this.subs.forEach(a=>a()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(a,o){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",a,o),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const a=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const o=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{a.skipReconnect||(this.emitReserved("reconnect_attempt",a.backoff.attempts),!a.skipReconnect&&a.open(u=>{u?(a._reconnecting=!1,a.reconnect(),this.emitReserved("reconnect_error",u)):a.onreconnect()}))},o);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const a=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",a)}}const Yl={};function Vf(n,a){typeof n=="object"&&(a=n,n=void 0),a=a||{};const o=lH(n,a.path||"/socket.io"),l=o.source,u=o.id,f=o.path,d=Yl[u]&&f in Yl[u].nsps,h=a.forceNew||a["force new connection"]||a.multiplex===!1||d;let p;return h?p=new kg(l,a):(Yl[u]||(Yl[u]=new kg(l,a)),p=Yl[u]),o.query&&!a.query&&(a.query=o.queryKey),p.socket(o.path,a)}Object.assign(Vf,{Manager:kg,Socket:ON,io:Vf,connect:Vf});const EH=[Ie.ActionTypes.MESSAGE_TO_GUEST,Ie.ActionTypes.EVENT_TO_GUEST,Ie.ActionTypes.TYPING_ON,Ie.ActionTypes.TYPING_OFF,Ie.ActionTypes.RESTART_CHAT_REQUEST,...KU,...j3,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],wH=({dispatch:n,getState:a})=>o=>{let l=null;return u=>{const f=o(u);if(u.type===Wg){l!=null&&l.disconnect(),n(t6());const d=`/chat?${Jf.stringify(u.querystrings)}`;l=Vf(`/${u.clientName}${d}`),l.on("action",n),l.on("connect",()=>n(n6())),l.on("disconnect",()=>n(r6())),l.on("reconnect",()=>n(a6())),l.on("set-translations",(h,p)=>{n(gj({language:h,messages:fj(h,p)}))}),l.on("set-settings",h=>{n(_j(h))}),l.on("enable-conversation-rating",h=>n(G3(h))),l.on("speech-transcription",h=>n(z3(h))),l.on("restore-client-state",h=>{n(e6(h.sessionId)),n(F3(h.messages))}),l.on("expand-window",({devices:h,initial:p=!1})=>{n({type:gk,devices:h,initial:p})}),l.on("restart-chat",()=>{n(od(u.clientName,u.querystrings))})}else if(u.type===ad)l==null||l.emit("start-chat",u.payload);else if(u.type===id)l==null||l.emit("terminate-session",u.payload);else if(u.type===L3)l==null||l.emit("get-started",JSON.stringify(u));else if(u.type===Gg)l==null||l.emit("audio-message",u.buffer);else if(u.type===Ie.ActionTypes.CONVERSATION_RATING_FROM_GUEST)l==null||l.emit("conversation-rating",u.payload);else if(u.type===vk){const{connection:{sessionId:d}}=a();window.location.href=`/transcript-pdf/${d}`}else EH.indexOf(u.type)===-1&&u.meta===void 0&&l&&l.emit("action",JSON.stringify(u));return f}},CN=iN(),SH={...xj(CN),intl:dN},Ng=MU({middleware:n=>n().concat(wH),reducer:wj,preloadedState:SH});Ng.subscribe(rj(()=>{const n=Ng.getState();Tj(CN,{connection:n.connection,startScreen:n.startScreen})},1e3));const xH=document.getElementById("root"),TH=dC.createRoot(xH);TH.render(E.jsxDEV(oD,{store:Ng,children:E.jsxDEV(qL,{},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/index.tsx",lineNumber:10,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/index.tsx",lineNumber:9,columnNumber:3},void 0));
|
|
351
|
+
//# sourceMappingURL=index-CHxJj4y7.js.map
|