@botfabrik/engine-webclient 4.93.2 → 4.93.4
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.
- package/dist/client/assets/{index-DBZImkhZ.js → index-Y-O4sres.js} +87 -87
- package/dist/client/assets/index-Y-O4sres.js.map +1 -0
- package/dist/client/index.html +1 -1
- package/dist/createSessionInfo.test.js +1 -6
- package/dist/index.d.ts +0 -6
- package/dist/index.js +15 -80
- package/dist/requestSessionData.d.ts +1 -0
- package/dist/requestSessionData.js +5 -0
- package/dist/requestSessionData.test.js +16 -9
- package/package.json +2 -4
- package/dist/client/assets/index-DBZImkhZ.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var nC=Object.defineProperty;var rC=(n,a,o)=>a in n?nC(n,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[a]=o;var Xe=(n,a,o)=>rC(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 af=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var zp={exports:{}},of={},Ip={exports:{}},Ql={exports:{}};Ql.exports;var kw;function aC(){return kw||(kw=1,function(n,a){/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.development.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var WO=Object.defineProperty;var KO=(n,a,o)=>a in n?WO(n,a,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/(function(){function o(S,j){Object.defineProperty(f.prototype,S,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",j[0],j[1])}})}function l(S){return S===null||typeof S!="object"?null:(S=br&&S[br]||S["@@iterator"],typeof S=="function"?S:null)}function u(S,j){S=(S=S.constructor)&&(S.displayName||S.name)||"ReactClass";var K=S+"."+j;ie[K]||(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.",j,S),ie[K]=!0)}function f(S,j,K){this.props=S,this.context=j,this.refs=va,this.updater=K||At}function d(){}function m(S,j,K){this.props=S,this.context=j,this.refs=va,this.updater=K||At}function p(S){return""+S}function
|
|
9
|
+
*/(function(){function o(S,j){Object.defineProperty(f.prototype,S,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",j[0],j[1])}})}function l(S){return S===null||typeof S!="object"?null:(S=br&&S[br]||S["@@iterator"],typeof S=="function"?S:null)}function u(S,j){S=(S=S.constructor)&&(S.displayName||S.name)||"ReactClass";var K=S+"."+j;ie[K]||(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.",j,S),ie[K]=!0)}function f(S,j,K){this.props=S,this.context=j,this.refs=va,this.updater=K||At}function d(){}function m(S,j,K){this.props=S,this.context=j,this.refs=va,this.updater=K||At}function p(S){return""+S}function g(S){try{p(S);var j=!1}catch{j=!0}if(j){j=console;var K=j.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return K.call(j,"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===dd?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case $:return"Fragment";case le:return"Profiler";case de:return"StrictMode";case Ce:return"Suspense";case Un:return"SuspenseList";case Mt: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 we:return"Portal";case Je:return(S.displayName||"Context")+".Provider";case Ge:return(S._context.displayName||"Context")+".Consumer";case pt:var j=S.render;return S=S.displayName,S||(S=j.displayName||j.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case it:return j=S.displayName||null,j!==null?j:v(S.type)||"Memo";case ft:j=S._payload,S=S._init;try{return v(S(j))}catch{}}return null}function E(S){if(S===$)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===ft)return"<...>";try{var j=v(S);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function y(){var S=Ue.A;return S===null?null:S.getOwner()}function N(){return Error("react-stack-top-frame")}function w(S){if(ii.call(S,"key")){var j=Object.getOwnPropertyDescriptor(S,"key").get;if(j&&j.isReactWarning)return!1}return S.key!==void 0}function D(S,j){function K(){Ea||(Ea=!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)",j))}K.isReactWarning=!0,Object.defineProperty(S,"key",{get:K,configurable:!0})}function T(){var S=v(this.type);return ms[S]||(ms[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 M(S,j,K,ae,me,De,Te,Pe){return K=De.ref,S={$$typeof:fe,type:S,key:j,props:De,_owner:me},(K!==void 0?K:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:T}):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:Te}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function U(S,j){return j=M(S.type,j,void 0,void 0,S._owner,S.props,S._debugStack,S._debugTask),S._store&&(j._store.validated=S._store.validated),j}function C(S){return typeof S=="object"&&S!==null&&S.$$typeof===fe}function A(S){var j={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(K){return j[K]})}function L(S,j){return typeof S=="object"&&S!==null&&S.key!=null?(g(S.key),A(""+S.key)):j.toString(36)}function F(){}function Z(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(F,F):(S.status="pending",S.then(function(j){S.status==="pending"&&(S.status="fulfilled",S.value=j)},function(j){S.status==="pending"&&(S.status="rejected",S.reason=j)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function J(S,j,K,ae,me){var De=typeof S;(De==="undefined"||De==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(De){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(S.$$typeof){case fe:case we:Te=!0;break;case ft:return Te=S._init,J(Te(S._payload),j,K,ae,me)}}if(Te){Te=S,me=me(Te);var Pe=ae===""?"."+L(Te,0):ae;return _a(me)?(K="",Pe!=null&&(K=Pe.replace(gs,"$&/")+"/"),J(me,j,K,"",function(Ut){return Ut})):me!=null&&(C(me)&&(me.key!=null&&(Te&&Te.key===me.key||g(me.key)),K=U(me,K+(me.key==null||Te&&Te.key===me.key?"":(""+me.key).replace(gs,"$&/")+"/")+Pe),ae!==""&&Te!=null&&C(Te)&&Te.key==null&&Te._store&&!Te._store.validated&&(K._store.validated=2),me=K),j.push(me)),1}if(Te=0,Pe=ae===""?".":ae+":",_a(S))for(var Ne=0;Ne<S.length;Ne++)ae=S[Ne],De=Pe+L(ae,Ne),Te+=J(ae,j,K,De,me);else if(Ne=l(S),typeof Ne=="function")for(Ne===S.entries&&(bs||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bs=!0),S=Ne.call(S),Ne=0;!(ae=S.next()).done;)ae=ae.value,De=Pe+L(ae,Ne++),Te+=J(ae,j,K,De,me);else if(De==="object"){if(typeof S.then=="function")return J(Z(S),j,K,ae,me);throw j=String(S),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Te}function X(S,j,K){if(S==null)return S;var ae=[],me=0;return J(S,ae,"","",function(De){return j.call(K,De,me++)}),ae}function te(S){if(S._status===-1){var j=S._result;j=j(),j.then(function(K){(S._status===0||S._status===-1)&&(S._status=1,S._result=K)},function(K){(S._status===0||S._status===-1)&&(S._status=2,S._result=K)}),S._status===-1&&(S._status=0,S._result=j)}if(S._status===1)return j=S._result,j===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
10
10
|
|
|
11
11
|
Your code should look like:
|
|
12
12
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -18,7 +18,7 @@ Your code should look like:
|
|
|
18
18
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
19
|
2. You might be breaking the Rules of Hooks
|
|
20
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 se(){}function he(S){if(io===null)try{var j=("require"+Math.random()).slice(0,7);io=(n&&n[j]).call(n,"timers").setImmediate}catch{io=function(ae){ys===!1&&(ys=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var me=new MessageChannel;me.port1.onmessage=ae,me.port2.postMessage(void 0)}}return io(S)}function Le(S){return 1<S.length&&typeof AggregateError=="function"?new AggregateError(S):S[0]}function Ae(S,j){j!==wa-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. "),wa=j}function W(S,j,K){var ae=Ue.actQueue;if(ae!==null)if(ae.length!==0)try{ge(ae),he(function(){return W(S,j,K)});return}catch(me){Ue.thrownErrors.push(me)}else Ue.actQueue=null;0<Ue.thrownErrors.length?(ae=Le(Ue.thrownErrors),Ue.thrownErrors.length=0,K(ae)):j(S)}function ge(S){if(!nr){nr=!0;var j=0;try{for(;j<S.length;j++){var K=S[j];do{Ue.didUsePromise=!1;var ae=K(!1);if(ae!==null){if(Ue.didUsePromise){S[j]=K,S.splice(0,j);return}K=ae}else break}while(!0)}S.length=0}catch(me){S.splice(0,j+1),Ue.thrownErrors.push(me)}finally{nr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var fe=Symbol.for("react.transitional.element"),we=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),Ge=Symbol.for("react.consumer"),Je=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),Ce=Symbol.for("react.suspense"),Mn=Symbol.for("react.suspense_list"),it=Symbol.for("react.memo"),ft=Symbol.for("react.lazy"),Mt=Symbol.for("react.activity"),br=Symbol.iterator,ie={},At={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,va={};Object.freeze(va),f.prototype.isReactComponent={},f.prototype.setState=function(S,j){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,j,"setState")},f.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};var St={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)."]},Gr;for(Gr in St)St.hasOwnProperty(Gr)&&o(Gr,St[Gr]);d.prototype=f.prototype,St=m.prototype=new d,St.constructor=m,Ir(St,f.prototype),St.isPureReactComponent=!0;var _a=Array.isArray,cd=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},ii=Object.prototype.hasOwnProperty,ro=console.createTask?console.createTask:function(){return null};St={"react-stack-bottom-frame":function(S){return S()}};var Ea,cc,ms={},uc=St["react-stack-bottom-frame"].bind(St,N)(),ps=ro(E(N)),bs=!1,gs=/\/+/g,ao=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=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(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ys=!1,io=null,wa=0,tr=!1,nr=!1,Sa=typeof queueMicrotask=="function"?function(S){queueMicrotask(function(){return queueMicrotask(S)})}:he;St=Object.freeze({__proto__:null,c:function(S){return ne().useMemoCache(S)}}),a.Children={map:X,forEach:function(S,j,K){X(S,function(){j.apply(this,arguments)},K)},count:function(S){var j=0;return X(S,function(){j++}),j},toArray:function(S){return X(S,function(j){return j})||[]},only:function(S){if(!C(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},a.Component=f,a.Fragment=$,a.Profiler=le,a.PureComponent=m,a.StrictMode=de,a.Suspense=Ce,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ue,a.__COMPILER_RUNTIME=St,a.act=function(S){var j=Ue.actQueue,K=wa;wa++;var ae=Ue.actQueue=j!==null?j:[],me=!1;try{var De=S()}catch(Ne){Ue.thrownErrors.push(Ne)}if(0<Ue.thrownErrors.length)throw Ae(j,K),S=Le(Ue.thrownErrors),Ue.thrownErrors.length=0,S;if(De!==null&&typeof De=="object"&&typeof De.then=="function"){var Te=De;return Sa(function(){me||tr||(tr=!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(Ne,Ut){me=!0,Te.then(function(qr){if(Ae(j,K),K===0){try{ge(ae),he(function(){return W(qr,Ne,Ut)})}catch(fd){Ue.thrownErrors.push(fd)}if(0<Ue.thrownErrors.length){var ud=Le(Ue.thrownErrors);Ue.thrownErrors.length=0,Ut(ud)}}else Ne(qr)},function(qr){Ae(j,K),0<Ue.thrownErrors.length&&(qr=Le(Ue.thrownErrors),Ue.thrownErrors.length=0),Ut(qr)})}}}var Pe=De;if(Ae(j,K),K===0&&(ge(ae),ae.length!==0&&Sa(function(){me||tr||(tr=!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=Le(Ue.thrownErrors),Ue.thrownErrors.length=0,S;return{then:function(Ne,Ut){me=!0,K===0?(Ue.actQueue=ae,he(function(){return W(Pe,Ne,Ut)})):Ne(Pe)}}},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,j,K){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ae=Ir({},S.props),me=S.key,De=S._owner;if(j!=null){var Te;e:{if(ii.call(j,"ref")&&(Te=Object.getOwnPropertyDescriptor(j,"ref").get)&&Te.isReactWarning){Te=!1;break e}Te=j.ref!==void 0}Te&&(De=g()),w(j)&&(y(j.key),me=""+j.key);for(Pe in j)!ii.call(j,Pe)||Pe==="key"||Pe==="__self"||Pe==="__source"||Pe==="ref"&&j.ref===void 0||(ae[Pe]=j[Pe])}var Pe=arguments.length-2;if(Pe===1)ae.children=K;else if(1<Pe){Te=Array(Pe);for(var Ne=0;Ne<Pe;Ne++)Te[Ne]=arguments[Ne+2];ae.children=Te}for(ae=M(S.type,me,void 0,void 0,De,ae,S._debugStack,S._debugTask),me=2;me<arguments.length;me++)De=arguments[me],C(De)&&De._store&&(De._store.validated=1);return ae},a.createContext=function(S){return S={$$typeof:Je,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:Ge,_context:S},S._currentRenderer=null,S._currentRenderer2=null,S},a.createElement=function(S,j,K){for(var ae=2;ae<arguments.length;ae++){var me=arguments[ae];C(me)&&me._store&&(me._store.validated=1)}if(ae={},me=null,j!=null)for(Ne in cc||!("__self"in j)||"key"in j||(cc=!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")),w(j)&&(y(j.key),me=""+j.key),j)ii.call(j,Ne)&&Ne!=="key"&&Ne!=="__self"&&Ne!=="__source"&&(ae[Ne]=j[Ne]);var De=arguments.length-2;if(De===1)ae.children=K;else if(1<De){for(var Te=Array(De),Pe=0;Pe<De;Pe++)Te[Pe]=arguments[Pe+2];Object.freeze&&Object.freeze(Te),ae.children=Te}if(S&&S.defaultProps)for(Ne in De=S.defaultProps,De)ae[Ne]===void 0&&(ae[Ne]=De[Ne]);me&&D(ae,typeof S=="function"?S.displayName||S.name||"Unknown":S);var Ne=1e4>Ue.recentlyCreatedOwnerStacks++;return M(S,me,void 0,void 0,g(),ae,Ne?Error("react-stack-top-frame"):uc,Ne?ro(E(S)):ps)},a.createRef=function(){var S={current:null};return Object.seal(S),S},a.forwardRef=function(S){S!=null&&S.$$typeof===it?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 j={$$typeof:pt,render:S},K;return Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return K},set:function(ae){K=ae,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ae}),S.displayName=ae)}}),j},a.isValidElement=C,a.lazy=function(S){return{$$typeof:ft,_payload:{_status:-1,_result:S},_init:te}},a.memo=function(S,j){S==null&&console.error("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S),j={$$typeof:it,type:S,compare:j===void 0?null:j};var K;return Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return K},set:function(ae){K=ae,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ae}),S.displayName=ae)}}),j},a.startTransition=function(S){var j=Ue.T,K={};Ue.T=K,K._updatedFibers=new Set;try{var ae=S(),me=Ue.S;me!==null&&me(K,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(se,ao)}catch(De){ao(De)}finally{j===null&&K._updatedFibers&&(S=K._updatedFibers.size,K._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=j}},a.unstable_useCacheRefresh=function(){return ne().useCacheRefresh()},a.use=function(S){return ne().use(S)},a.useActionState=function(S,j,K){return ne().useActionState(S,j,K)},a.useCallback=function(S,j){return ne().useCallback(S,j)},a.useContext=function(S){var j=ne();return S.$$typeof===Ge&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),j.useContext(S)},a.useDebugValue=function(S,j){return ne().useDebugValue(S,j)},a.useDeferredValue=function(S,j){return ne().useDeferredValue(S,j)},a.useEffect=function(S,j,K){S==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var ae=ne();if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(S,j)},a.useId=function(){return ne().useId()},a.useImperativeHandle=function(S,j,K){return ne().useImperativeHandle(S,j,K)},a.useInsertionEffect=function(S,j){return S==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ne().useInsertionEffect(S,j)},a.useLayoutEffect=function(S,j){return S==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ne().useLayoutEffect(S,j)},a.useMemo=function(S,j){return ne().useMemo(S,j)},a.useOptimistic=function(S,j){return ne().useOptimistic(S,j)},a.useReducer=function(S,j,K){return ne().useReducer(S,j,K)},a.useRef=function(S){return ne().useRef(S)},a.useState=function(S){return ne().useState(S)},a.useSyncExternalStore=function(S,j,K){return ne().useSyncExternalStore(S,j,K)},a.useTransition=function(){return ne().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())})()}(Ql,Ql.exports)),Ql.exports}var _w;function no(){return _w||(_w=1,jp.exports=JO()),jp.exports}var Ew;function eC(){if(Ew)return of;Ew=1;/**
|
|
21
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),S}function se(){}function he(S){if(io===null)try{var j=("require"+Math.random()).slice(0,7);io=(n&&n[j]).call(n,"timers").setImmediate}catch{io=function(ae){ys===!1&&(ys=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var me=new MessageChannel;me.port1.onmessage=ae,me.port2.postMessage(void 0)}}return io(S)}function Le(S){return 1<S.length&&typeof AggregateError=="function"?new AggregateError(S):S[0]}function Ae(S,j){j!==wa-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. "),wa=j}function W(S,j,K){var ae=Ue.actQueue;if(ae!==null)if(ae.length!==0)try{ge(ae),he(function(){return W(S,j,K)});return}catch(me){Ue.thrownErrors.push(me)}else Ue.actQueue=null;0<Ue.thrownErrors.length?(ae=Le(Ue.thrownErrors),Ue.thrownErrors.length=0,K(ae)):j(S)}function ge(S){if(!nr){nr=!0;var j=0;try{for(;j<S.length;j++){var K=S[j];do{Ue.didUsePromise=!1;var ae=K(!1);if(ae!==null){if(Ue.didUsePromise){S[j]=K,S.splice(0,j);return}K=ae}else break}while(!0)}S.length=0}catch(me){S.splice(0,j+1),Ue.thrownErrors.push(me)}finally{nr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var fe=Symbol.for("react.transitional.element"),we=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),Ge=Symbol.for("react.consumer"),Je=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),Ce=Symbol.for("react.suspense"),Un=Symbol.for("react.suspense_list"),it=Symbol.for("react.memo"),ft=Symbol.for("react.lazy"),Mt=Symbol.for("react.activity"),br=Symbol.iterator,ie={},At={isMounted:function(){return!1},enqueueForceUpdate:function(S){u(S,"forceUpdate")},enqueueReplaceState:function(S){u(S,"replaceState")},enqueueSetState:function(S){u(S,"setState")}},Vr=Object.assign,va={};Object.freeze(va),f.prototype.isReactComponent={},f.prototype.setState=function(S,j){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,j,"setState")},f.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};var St={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)."]},Gr;for(Gr in St)St.hasOwnProperty(Gr)&&o(Gr,St[Gr]);d.prototype=f.prototype,St=m.prototype=new d,St.constructor=m,Vr(St,f.prototype),St.isPureReactComponent=!0;var _a=Array.isArray,dd=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},ii=Object.prototype.hasOwnProperty,ro=console.createTask?console.createTask:function(){return null};St={"react-stack-bottom-frame":function(S){return S()}};var Ea,cc,ms={},uc=St["react-stack-bottom-frame"].bind(St,N)(),ps=ro(E(N)),bs=!1,gs=/\/+/g,ao=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=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(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ys=!1,io=null,wa=0,tr=!1,nr=!1,Sa=typeof queueMicrotask=="function"?function(S){queueMicrotask(function(){return queueMicrotask(S)})}:he;St=Object.freeze({__proto__:null,c:function(S){return ne().useMemoCache(S)}}),a.Children={map:X,forEach:function(S,j,K){X(S,function(){j.apply(this,arguments)},K)},count:function(S){var j=0;return X(S,function(){j++}),j},toArray:function(S){return X(S,function(j){return j})||[]},only:function(S){if(!C(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},a.Component=f,a.Fragment=$,a.Profiler=le,a.PureComponent=m,a.StrictMode=de,a.Suspense=Ce,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ue,a.__COMPILER_RUNTIME=St,a.act=function(S){var j=Ue.actQueue,K=wa;wa++;var ae=Ue.actQueue=j!==null?j:[],me=!1;try{var De=S()}catch(Ne){Ue.thrownErrors.push(Ne)}if(0<Ue.thrownErrors.length)throw Ae(j,K),S=Le(Ue.thrownErrors),Ue.thrownErrors.length=0,S;if(De!==null&&typeof De=="object"&&typeof De.then=="function"){var Te=De;return Sa(function(){me||tr||(tr=!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(Ne,Ut){me=!0,Te.then(function(qr){if(Ae(j,K),K===0){try{ge(ae),he(function(){return W(qr,Ne,Ut)})}catch(md){Ue.thrownErrors.push(md)}if(0<Ue.thrownErrors.length){var hd=Le(Ue.thrownErrors);Ue.thrownErrors.length=0,Ut(hd)}}else Ne(qr)},function(qr){Ae(j,K),0<Ue.thrownErrors.length&&(qr=Le(Ue.thrownErrors),Ue.thrownErrors.length=0),Ut(qr)})}}}var Pe=De;if(Ae(j,K),K===0&&(ge(ae),ae.length!==0&&Sa(function(){me||tr||(tr=!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=Le(Ue.thrownErrors),Ue.thrownErrors.length=0,S;return{then:function(Ne,Ut){me=!0,K===0?(Ue.actQueue=ae,he(function(){return W(Pe,Ne,Ut)})):Ne(Pe)}}},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,j,K){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ae=Vr({},S.props),me=S.key,De=S._owner;if(j!=null){var Te;e:{if(ii.call(j,"ref")&&(Te=Object.getOwnPropertyDescriptor(j,"ref").get)&&Te.isReactWarning){Te=!1;break e}Te=j.ref!==void 0}Te&&(De=y()),w(j)&&(g(j.key),me=""+j.key);for(Pe in j)!ii.call(j,Pe)||Pe==="key"||Pe==="__self"||Pe==="__source"||Pe==="ref"&&j.ref===void 0||(ae[Pe]=j[Pe])}var Pe=arguments.length-2;if(Pe===1)ae.children=K;else if(1<Pe){Te=Array(Pe);for(var Ne=0;Ne<Pe;Ne++)Te[Ne]=arguments[Ne+2];ae.children=Te}for(ae=M(S.type,me,void 0,void 0,De,ae,S._debugStack,S._debugTask),me=2;me<arguments.length;me++)De=arguments[me],C(De)&&De._store&&(De._store.validated=1);return ae},a.createContext=function(S){return S={$$typeof:Je,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:Ge,_context:S},S._currentRenderer=null,S._currentRenderer2=null,S},a.createElement=function(S,j,K){for(var ae=2;ae<arguments.length;ae++){var me=arguments[ae];C(me)&&me._store&&(me._store.validated=1)}if(ae={},me=null,j!=null)for(Ne in cc||!("__self"in j)||"key"in j||(cc=!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")),w(j)&&(g(j.key),me=""+j.key),j)ii.call(j,Ne)&&Ne!=="key"&&Ne!=="__self"&&Ne!=="__source"&&(ae[Ne]=j[Ne]);var De=arguments.length-2;if(De===1)ae.children=K;else if(1<De){for(var Te=Array(De),Pe=0;Pe<De;Pe++)Te[Pe]=arguments[Pe+2];Object.freeze&&Object.freeze(Te),ae.children=Te}if(S&&S.defaultProps)for(Ne in De=S.defaultProps,De)ae[Ne]===void 0&&(ae[Ne]=De[Ne]);me&&D(ae,typeof S=="function"?S.displayName||S.name||"Unknown":S);var Ne=1e4>Ue.recentlyCreatedOwnerStacks++;return M(S,me,void 0,void 0,y(),ae,Ne?Error("react-stack-top-frame"):uc,Ne?ro(E(S)):ps)},a.createRef=function(){var S={current:null};return Object.seal(S),S},a.forwardRef=function(S){S!=null&&S.$$typeof===it?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 j={$$typeof:pt,render:S},K;return Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return K},set:function(ae){K=ae,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ae}),S.displayName=ae)}}),j},a.isValidElement=C,a.lazy=function(S){return{$$typeof:ft,_payload:{_status:-1,_result:S},_init:te}},a.memo=function(S,j){S==null&&console.error("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S),j={$$typeof:it,type:S,compare:j===void 0?null:j};var K;return Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return K},set:function(ae){K=ae,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ae}),S.displayName=ae)}}),j},a.startTransition=function(S){var j=Ue.T,K={};Ue.T=K,K._updatedFibers=new Set;try{var ae=S(),me=Ue.S;me!==null&&me(K,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(se,ao)}catch(De){ao(De)}finally{j===null&&K._updatedFibers&&(S=K._updatedFibers.size,K._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=j}},a.unstable_useCacheRefresh=function(){return ne().useCacheRefresh()},a.use=function(S){return ne().use(S)},a.useActionState=function(S,j,K){return ne().useActionState(S,j,K)},a.useCallback=function(S,j){return ne().useCallback(S,j)},a.useContext=function(S){var j=ne();return S.$$typeof===Ge&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),j.useContext(S)},a.useDebugValue=function(S,j){return ne().useDebugValue(S,j)},a.useDeferredValue=function(S,j){return ne().useDeferredValue(S,j)},a.useEffect=function(S,j,K){S==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var ae=ne();if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(S,j)},a.useId=function(){return ne().useId()},a.useImperativeHandle=function(S,j,K){return ne().useImperativeHandle(S,j,K)},a.useInsertionEffect=function(S,j){return S==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ne().useInsertionEffect(S,j)},a.useLayoutEffect=function(S,j){return S==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ne().useLayoutEffect(S,j)},a.useMemo=function(S,j){return ne().useMemo(S,j)},a.useOptimistic=function(S,j){return ne().useOptimistic(S,j)},a.useReducer=function(S,j,K){return ne().useReducer(S,j,K)},a.useRef=function(S){return ne().useRef(S)},a.useState=function(S){return ne().useState(S)},a.useSyncExternalStore=function(S,j,K){return ne().useSyncExternalStore(S,j,K)},a.useTransition=function(){return ne().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())})()}(Ql,Ql.exports)),Ql.exports}var Tw;function no(){return Tw||(Tw=1,Ip.exports=aC()),Ip.exports}var Nw;function iC(){if(Nw)return of;Nw=1;/**
|
|
22
22
|
* @license React
|
|
23
23
|
* react-jsx-dev-runtime.development.js
|
|
24
24
|
*
|
|
@@ -26,12 +26,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/return function(){function n($){if($==null)return null;if(typeof $=="function")return $.$$typeof===te?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case D:return"Fragment";case M:return"Profiler";case T:return"StrictMode";case L:return"Suspense";case F:return"SuspenseList";case X:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case w:return"Portal";case C:return($.displayName||"Context")+".Provider";case U:return($._context.displayName||"Context")+".Consumer";case A:var de=$.render;return $=$.displayName,$||($=de.displayName||de.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case Z:return de=$.displayName||null,de!==null?de:n($.type)||"Memo";case J:de=$._payload,$=$._init;try{return n($(de))}catch{}}return null}function a($){return""+$}function o($){try{a($);var de=!1}catch{de=!0}if(de){de=console;var le=de.error,Ge=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return le.call(de,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ge),a($)}}function l($){if($===D)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===J)return"<...>";try{var de=n($);return de?"<"+de+">":"<...>"}catch{return"<...>"}}function u(){var $=ne.A;return $===null?null:$.getOwner()}function f(){return Error("react-stack-top-frame")}function d($){if(se.call($,"key")){var de=Object.getOwnPropertyDescriptor($,"key").get;if(de&&de.isReactWarning)return!1}return $.key!==void 0}function m($,de){function le(){Ae||(Ae=!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)",de))}le.isReactWarning=!0,Object.defineProperty($,"key",{get:le,configurable:!0})}function p(){var $=n(this.type);return W[$]||(W[$]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),$=this.props.ref,$!==void 0?$:null}function
|
|
29
|
+
*/return function(){function n($){if($==null)return null;if(typeof $=="function")return $.$$typeof===te?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case D:return"Fragment";case M:return"Profiler";case T:return"StrictMode";case L:return"Suspense";case F:return"SuspenseList";case X:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case w:return"Portal";case C:return($.displayName||"Context")+".Provider";case U:return($._context.displayName||"Context")+".Consumer";case A:var de=$.render;return $=$.displayName,$||($=de.displayName||de.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case Z:return de=$.displayName||null,de!==null?de:n($.type)||"Memo";case J:de=$._payload,$=$._init;try{return n($(de))}catch{}}return null}function a($){return""+$}function o($){try{a($);var de=!1}catch{de=!0}if(de){de=console;var le=de.error,Ge=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return le.call(de,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ge),a($)}}function l($){if($===D)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===J)return"<...>";try{var de=n($);return de?"<"+de+">":"<...>"}catch{return"<...>"}}function u(){var $=ne.A;return $===null?null:$.getOwner()}function f(){return Error("react-stack-top-frame")}function d($){if(se.call($,"key")){var de=Object.getOwnPropertyDescriptor($,"key").get;if(de&&de.isReactWarning)return!1}return $.key!==void 0}function m($,de){function le(){Ae||(Ae=!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)",de))}le.isReactWarning=!0,Object.defineProperty($,"key",{get:le,configurable:!0})}function p(){var $=n(this.type);return W[$]||(W[$]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),$=this.props.ref,$!==void 0?$:null}function g($,de,le,Ge,Je,pt,Ce,Un){return le=pt.ref,$={$$typeof:N,type:$,key:de,props:pt,_owner:Je},(le!==void 0?le:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:p}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ce}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Un}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function v($,de,le,Ge,Je,pt,Ce,Un){var it=de.children;if(it!==void 0)if(Ge)if(he(it)){for(Ge=0;Ge<it.length;Ge++)E(it[Ge]);Object.freeze&&Object.freeze(it)}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 E(it);if(se.call(de,"key")){it=n($);var ft=Object.keys(de).filter(function(br){return br!=="key"});Ge=0<ft.length?"{key: someKey, "+ft.join(": ..., ")+": ...}":"{key: someKey}",we[it+Ge]||(ft=0<ft.length?"{"+ft.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
30
30
|
let props = %s;
|
|
31
31
|
<%s {...props} />
|
|
32
32
|
React keys must be passed directly to JSX without using spread:
|
|
33
33
|
let props = %s;
|
|
34
|
-
<%s key={someKey} {...props} />`,Ge,it,ft,it),we[it+Ge]=!0)}if(it=null,le!==void 0&&(o(le),it=""+le),d(de)&&(o(de.key),it=""+de.key),"key"in de){le={};for(var Mt in de)Mt!=="key"&&(le[Mt]=de[Mt])}else le=de;return it&&m(le,typeof $=="function"?$.displayName||$.name||"Unknown":$),
|
|
34
|
+
<%s key={someKey} {...props} />`,Ge,it,ft,it),we[it+Ge]=!0)}if(it=null,le!==void 0&&(o(le),it=""+le),d(de)&&(o(de.key),it=""+de.key),"key"in de){le={};for(var Mt in de)Mt!=="key"&&(le[Mt]=de[Mt])}else le=de;return it&&m(le,typeof $=="function"?$.displayName||$.name||"Unknown":$),g($,it,pt,Je,u(),le,Ce,Un)}function E($){typeof $=="object"&&$!==null&&$.$$typeof===N&&$._store&&($._store.validated=1)}var y=no(),N=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),C=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),te=Symbol.for("react.client.reference"),ne=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=Object.prototype.hasOwnProperty,he=Array.isArray,Le=console.createTask?console.createTask:function(){return null};y={"react-stack-bottom-frame":function($){return $()}};var Ae,W={},ge=y["react-stack-bottom-frame"].bind(y,f)(),fe=Le(l(f)),we={};of.Fragment=D,of.jsxDEV=function($,de,le,Ge,Je,pt){var Ce=1e4>ne.recentlyCreatedOwnerStacks++;return v($,de,le,Ge,Je,pt,Ce?Error("react-stack-top-frame"):ge,Ce?Le(l($)):fe)}}(),of}var Rw;function oC(){return Rw||(Rw=1,zp.exports=iC()),zp.exports}var _=oC(),Vp={exports:{}},Vl={},Gp={exports:{}},qp={},Aw;function sC(){return Aw||(Aw=1,function(n){/**
|
|
35
35
|
* @license React
|
|
36
36
|
* scheduler.development.js
|
|
37
37
|
*
|
|
@@ -39,7 +39,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/(function(){function a(){if(L=!1,X){var W=n.unstable_now();se=W;var ge=!0;try{e:{C=!1,A&&(A=!1,Z(te),te=-1),U=!0;var fe=M;try{t:{for(d(W),T=l(N);T!==null&&!(T.expirationTime>W&&p());){var we=T.callback;if(typeof we=="function"){T.callback=null,M=T.priorityLevel;var $=we(T.expirationTime<=W);if(W=n.unstable_now(),typeof $=="function"){T.callback=$,d(W),ge=!0;break t}T===l(N)&&u(N),d(W)}else u(N);T=l(N)}if(T!==null)ge=!0;else{var de=l(w);de!==null&&
|
|
42
|
+
*/(function(){function a(){if(L=!1,X){var W=n.unstable_now();se=W;var ge=!0;try{e:{C=!1,A&&(A=!1,Z(te),te=-1),U=!0;var fe=M;try{t:{for(d(W),T=l(N);T!==null&&!(T.expirationTime>W&&p());){var we=T.callback;if(typeof we=="function"){T.callback=null,M=T.priorityLevel;var $=we(T.expirationTime<=W);if(W=n.unstable_now(),typeof $=="function"){T.callback=$,d(W),ge=!0;break t}T===l(N)&&u(N),d(W)}else u(N);T=l(N)}if(T!==null)ge=!0;else{var de=l(w);de!==null&&g(m,de.startTime-W),ge=!1}}break e}finally{T=null,M=fe,U=!1}ge=void 0}}finally{ge?he():X=!1}}}function o(W,ge){var fe=W.length;W.push(ge);e:for(;0<fe;){var we=fe-1>>>1,$=W[we];if(0<f($,ge))W[we]=ge,W[fe]=$,fe=we;else break e}}function l(W){return W.length===0?null:W[0]}function u(W){if(W.length===0)return null;var ge=W[0],fe=W.pop();if(fe!==ge){W[0]=fe;e:for(var we=0,$=W.length,de=$>>>1;we<de;){var le=2*(we+1)-1,Ge=W[le],Je=le+1,pt=W[Je];if(0>f(Ge,fe))Je<$&&0>f(pt,Ge)?(W[we]=pt,W[Je]=fe,we=Je):(W[we]=Ge,W[le]=fe,we=le);else if(Je<$&&0>f(pt,fe))W[we]=pt,W[Je]=fe,we=Je;else break e}}return ge}function f(W,ge){var fe=W.sortIndex-ge.sortIndex;return fe!==0?fe:W.id-ge.id}function d(W){for(var ge=l(w);ge!==null;){if(ge.callback===null)u(w);else if(ge.startTime<=W)u(w),ge.sortIndex=ge.expirationTime,o(N,ge);else break;ge=l(w)}}function m(W){if(A=!1,d(W),!C)if(l(N)!==null)C=!0,X||(X=!0,he());else{var ge=l(w);ge!==null&&g(m,ge.startTime-W)}}function p(){return L?!0:!(n.unstable_now()-se<ne)}function g(W,ge){te=F(function(){W(n.unstable_now())},ge)}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 E=Date,y=E.now();n.unstable_now=function(){return E.now()-y}}var N=[],w=[],D=1,T=null,M=3,U=!1,C=!1,A=!1,L=!1,F=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null,X=!1,te=-1,ne=5,se=-1;if(typeof J=="function")var he=function(){J(a)};else if(typeof MessageChannel<"u"){var Le=new MessageChannel,Ae=Le.port2;Le.port1.onmessage=a,he=function(){Ae.postMessage(null)}}else he=function(){F(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"):ne=0<W?Math.floor(1e3/W):5},n.unstable_getCurrentPriorityLevel=function(){return M},n.unstable_next=function(W){switch(M){case 1:case 2:case 3:var ge=3;break;default:ge=M}var fe=M;M=ge;try{return W()}finally{M=fe}},n.unstable_requestPaint=function(){L=!0},n.unstable_runWithPriority=function(W,ge){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var fe=M;M=W;try{return ge()}finally{M=fe}},n.unstable_scheduleCallback=function(W,ge,fe){var we=n.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?we+fe:we):fe=we,W){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=fe+$,W={id:D++,callback:ge,priorityLevel:W,startTime:fe,expirationTime:$,sortIndex:-1},fe>we?(W.sortIndex=fe,o(w,W),l(N)===null&&W===l(w)&&(A?(Z(te),te=-1):A=!0,g(m,fe-we))):(W.sortIndex=$,o(N,W),C||U||(C=!0,X||(X=!0,he()))),W},n.unstable_shouldYield=p,n.unstable_wrapCallback=function(W){var ge=M;return function(){var fe=M;M=ge;try{return W.apply(this,arguments)}finally{M=fe}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(qp)),qp}var Ow;function lC(){return Ow||(Ow=1,Gp.exports=sC()),Gp.exports}var Fp={exports:{}},Wt={},Cw;function cC(){if(Cw)return Wt;Cw=1;/**
|
|
43
43
|
* @license React
|
|
44
44
|
* react-dom.development.js
|
|
45
45
|
*
|
|
@@ -47,11 +47,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/return function(){function n(){}function a(E){return""+E}function o(E,
|
|
50
|
+
*/return function(){function n(){}function a(E){return""+E}function o(E,y,N){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(w);var D=!1}catch{D=!0}return D&&(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&&w[Symbol.toStringTag]||w.constructor.name||"Object"),a(w)),{$$typeof:g,key:w==null?null:""+w,children:E,containerInfo:y,implementation:N}}function l(E,y){if(E==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}function u(E){return E===null?"`null`":E===void 0?"`undefined`":E===""?"an empty string":'something with type "'+typeof E+'"'}function f(E){return E===null?"`null`":E===void 0?"`undefined`":E===""?"an empty string":typeof E=="string"?JSON.stringify(E):typeof E=="number"?"`"+E+"`":'something with type "'+typeof E+'"'}function d(){var E=v.H;return E===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
51
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
52
52
|
2. You might be breaking the Rules of Hooks
|
|
53
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.`),E}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var m=no(),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},
|
|
54
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),E}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var m=no(),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},g=Symbol.for("react.portal"),v=m.__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"),Wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,Wt.createPortal=function(E,y){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error("Target container is not a DOM element.");return o(E,y,null,N)},Wt.flushSync=function(E){var y=v.T,N=p.p;try{if(v.T=null,p.p=2,E)return E()}finally{v.T=y,p.p=N,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.")}},Wt.preconnect=function(E,y){typeof E=="string"&&E?y!=null&&typeof y!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",f(y)):y!=null&&typeof y.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",u(y.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(E)),typeof E=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,p.d.C(E,y))},Wt.prefetchDNS=function(E){if(typeof E!="string"||!E)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(E));else if(1<arguments.length){var y=arguments[1];typeof y=="object"&&y.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(y)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(y))}typeof E=="string"&&p.d.D(E)},Wt.preinit=function(E,y){if(typeof E=="string"&&E?y==null||typeof y!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",f(y)):y.as!=="style"&&y.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',f(y.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(E)),typeof E=="string"&&y&&typeof y.as=="string"){var N=y.as,w=l(N,y.crossOrigin),D=typeof y.integrity=="string"?y.integrity:void 0,T=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;N==="style"?p.d.S(E,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:w,integrity:D,fetchPriority:T}):N==="script"&&p.d.X(E,{crossOrigin:w,integrity:D,fetchPriority:T,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Wt.preinitModule=function(E,y){var N="";if(typeof E=="string"&&E||(N+=" The `href` argument encountered was "+u(E)+"."),y!==void 0&&typeof y!="object"?N+=" The `options` argument encountered was "+u(y)+".":y&&"as"in y&&y.as!=="script"&&(N+=" The `as` option encountered was "+f(y.as)+"."),N)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",N);else switch(N=y&&typeof y.as=="string"?y.as:"script",N){case"script":break;default:N=f(N),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)',N,E)}typeof E=="string"&&(typeof y=="object"&&y!==null?(y.as==null||y.as==="script")&&(N=l(y.as,y.crossOrigin),p.d.M(E,{crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})):y==null&&p.d.M(E))},Wt.preload=function(E,y){var N="";if(typeof E=="string"&&E||(N+=" The `href` argument encountered was "+u(E)+"."),y==null||typeof y!="object"?N+=" The `options` argument encountered was "+u(y)+".":typeof y.as=="string"&&y.as||(N+=" The `as` option encountered was "+u(y.as)+"."),N&&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',N),typeof E=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){N=y.as;var w=l(N,y.crossOrigin);p.d.L(E,N,{crossOrigin:w,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Wt.preloadModule=function(E,y){var N="";typeof E=="string"&&E||(N+=" The `href` argument encountered was "+u(E)+"."),y!==void 0&&typeof y!="object"?N+=" The `options` argument encountered was "+u(y)+".":y&&"as"in y&&typeof y.as!="string"&&(N+=" The `as` option encountered was "+u(y.as)+"."),N&&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',N),typeof E=="string"&&(y?(N=l(y.as,y.crossOrigin),p.d.m(E,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0})):p.d.m(E))},Wt.requestFormReset=function(E){p.d.r(E)},Wt.unstable_batchedUpdates=function(E,y){return E(y)},Wt.useFormState=function(E,y,N){return d().useFormState(E,y,N)},Wt.useFormStatus=function(){return d().useHostTransitionStatus()},Wt.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Wt}var Dw;function uC(){return Dw||(Dw=1,Fp.exports=cC()),Fp.exports}var Mw;function fC(){if(Mw)return Vl;Mw=1;/**
|
|
55
55
|
* @license React
|
|
56
56
|
* react-dom-client.development.js
|
|
57
57
|
*
|
|
@@ -59,38 +59,38 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the MIT license found in the
|
|
61
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=Gt(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=Gt(e)?e.slice():Me({},e);return i+1===t.length?(c[r[i]]=c[s],Gt(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=Gt(e)?e.slice():Me({},e);return r+1===t.length?(Gt(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 m(){}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(e){var t=[];return e.forEach(function(r){t.push(r)}),t.sort().join(", ")}function g(e,t,r,i){return new ZN(e,t,r,i)}function N(e,t){e.context===za&&(sm(e.current,2,t,e,null,null),go())}function w(e,t){if(In!==null){var r=t.staleFamilies;t=t.updatedFamilies,Fs(),Td(e.current,t,r),go()}}function D(e){In=e}function T(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function M(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 U(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 C(e){if(M(e)!==e)throw Error("Unable to find node on an unmounted component.")}function A(e){var t=e.alternate;if(!t){if(t=M(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 C(s),e;if(c===i)return C(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 h=!1,b=s.child;b;){if(b===r){h=!0,r=s,i=c;break}if(b===i){h=!0,i=s,r=c;break}b=b.sibling}if(!h){for(b=c.child;b;){if(b===r){h=!0,r=c,i=s;break}if(b===i){h=!0,i=c,r=s;break}b=b.sibling}if(!h)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 L(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=L(e),t!==null)return t;e=e.sibling}return null}function F(e){return e===null||typeof e!="object"?null:(e=I1&&e[I1]||e["@@iterator"],typeof e=="function"?e:null)}function Z(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fA?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xo:return"Fragment";case mm:return"Profiler";case fu:return"StrictMode";case bm:return"Suspense";case gm:return"SuspenseList";case ym: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 So:return"Portal";case xr:return(e.displayName||"Context")+".Provider";case pm:return(e._context.displayName||"Context")+".Consumer";case Js:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case du:return t=e.displayName||null,t!==null?t:Z(e.type)||"Memo";case Sn:t=e._payload,e=e._init;try{return Z(e(t))}catch{}}return null}function J(e){return typeof e.tag=="number"?X(e):typeof e.name=="string"?e.name:null}function X(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=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 Z(t);case 8:return t===fu?"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 X(e.return)}return null}function te(e){return{current:e}}function ne(e,t){0>Jr?console.error("Unexpected pop."):(t!==_m[Jr]&&console.error("Unexpected Fiber popped."),e.current=vm[Jr],vm[Jr]=null,_m[Jr]=null,Jr--)}function se(e,t,r){Jr++,vm[Jr]=e.current,_m[Jr]=r,e.current=t}function he(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 Le(e,t){se(Ba,t,e),se(el,e,e),se(Ua,null,e);var r=t.nodeType;switch(r){case 9:case 11:r=r===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?p1(t):ua;break;default:if(r=t.tagName,t=t.namespaceURI)t=p1(t),t=b1(t,r);else switch(r){case"svg":t=is;break;case"math":t=Wu;break;default:t=ua}}r=r.toLowerCase(),r=ky(null,r),r={context:t,ancestorInfo:r},ne(Ua,e),se(Ua,r,e)}function Ae(e){ne(Ua,e),ne(el,e),ne(Ba,e)}function W(){return he(Ua.current)}function ge(e){e.memoizedState!==null&&se(hu,e,e);var t=he(Ua.current),r=e.type,i=b1(t.context,r);r=ky(t.ancestorInfo,r),i={context:i,ancestorInfo:r},t!==i&&(se(el,e,e),se(Ua,i,e))}function fe(e){el.current===e&&(ne(Ua,e),ne(el,e)),hu.current===e&&(ne(hu,e),Hl._currentValue=Gi)}function we(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function $(e){try{return de(e),!1}catch{return!0}}function de(e){return""+e}function le(e,t){if($(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,we(e)),de(e)}function Ge(e,t){if($(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,we(e)),de(e)}function Je(e){if($(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.",we(e)),de(e)}function pt(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),Xt=t}catch(r){console.error("React instrumentation encountered an error: %s.",r)}return!!t.checkDCE}function Ce(e){if(typeof yA=="function"&&vA(e),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(To,e)}catch(t){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",t))}}function Mn(e){oe=e}function it(){oe!==null&&typeof oe.markCommitStopped=="function"&&oe.markCommitStopped()}function ft(e){oe!==null&&typeof oe.markComponentRenderStarted=="function"&&oe.markComponentRenderStarted(e)}function Mt(){oe!==null&&typeof oe.markComponentRenderStopped=="function"&&oe.markComponentRenderStopped()}function br(e){oe!==null&&typeof oe.markRenderStarted=="function"&&oe.markRenderStarted(e)}function ie(){oe!==null&&typeof oe.markRenderStopped=="function"&&oe.markRenderStopped()}function At(e,t){oe!==null&&typeof oe.markStateUpdateScheduled=="function"&&oe.markStateUpdateScheduled(e,t)}function Ir(e){return e>>>=0,e===0?32:31-(_A(e)/EA|0)|0}function va(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 St(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 Gr(e,t,r){var i=e.pendingLanes;if(i===0)return 0;var s=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~c,i!==0?s=St(i):(h&=b,h!==0?s=St(h):r||(r=b&~e,r!==0&&(s=St(r))))):(b=i&~c,b!==0?s=St(b):h!==0?s=St(h):r||(r=i&~e,r!==0&&(s=St(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 _a(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function cd(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=mu;return mu<<=1,(mu&4194048)===0&&(mu=256),e}function ii(){var e=pu;return pu<<=1,(pu&62914560)===0&&(pu=4194304),e}function ro(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ea(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cc(e,t,r,i,s,c){var h=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=h&~r;0<r;){var z=31-Kt(r),q=1<<z;b[z]=0,x[z]=-1;var H=k[z];if(H!==null)for(k[z]=null,z=0;z<H.length;z++){var P=H[z];P!==null&&(P.lane&=-536870913)}r&=~q}i!==0&&ms(e,i,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function ms(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Kt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|r&4194090}function uc(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-Kt(r),s=1<<i;s&t|e[i]&t&&(e[i]|=t),r&=~s}}function ps(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 bs(e,t,r){if(ir)for(e=e.pendingUpdatersLaneMap;0<r;){var i=31-Kt(r),s=1<<i;e[i].add(t),r&=~s}}function gs(e,t){if(ir)for(var r=e.pendingUpdatersLaneMap,i=e.memoizedUpdaters;0<t;){var s=31-Kt(t);e=1<<s,s=r[s],0<s.size&&(s.forEach(function(c){var h=c.alternate;h!==null&&i.has(h)||i.add(c)}),s.clear()),t&=~e}}function ao(e){return e&=-e,zn<e?Nr<e?(e&134217727)!==0?ta:bu:Nr:zn}function ys(){var e=Ze.p;return e!==0?e:(e=window.event,e===void 0?ta:B1(e.type))}function io(e,t){var r=Ze.p;try{return Ze.p=e,t()}finally{Ze.p=r}}function wa(e){delete e[Zt],delete e[dn],delete e[km],delete e[wA],delete e[SA]}function tr(e){var t=e[Zt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ja]||r[Zt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=w1(e);e!==null;){if(r=e[Zt])return r;e=w1(e)}return t}e=r,r=e.parentNode}return null}function nr(e){if(e=e[Zt]||e[ja]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Sa(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[G1];return t||(t=e[G1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function j(e){e[tl]=!0}function K(e,t){ae(e,t),ae(e+"Capture",t)}function ae(e,t){wi[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),wi[e]=t;var r=e.toLowerCase();for(Tm[r]=e,e==="onDoubleClick"&&(Tm.ondblclick=e),e=0;e<t.length;e++)q1.add(t[e])}function me(e,t){xA[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 ea.call(P1,e)?!0:ea.call(F1,e)?!1:kA.test(e)?P1[e]=!0:(F1[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Te(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 Pe(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 Ne(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 Ut(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 qr(){}function ud(){if(nl===0){$1=console.log,Y1=console.info,X1=console.warn,Z1=console.error,Q1=console.group,W1=console.groupCollapsed,K1=console.groupEnd;var e={configurable:!0,enumerable:!0,value:qr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}nl++}function fd(){if(nl--,nl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Me({},e,{value:$1}),info:Me({},e,{value:Y1}),warn:Me({},e,{value:X1}),error:Me({},e,{value:Z1}),group:Me({},e,{value:Q1}),groupCollapsed:Me({},e,{value:W1}),groupEnd:Me({},e,{value:K1})})}0>nl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Un(e){if(Nm===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Nm=t&&t[1]||"",J1=-1<r.stack.indexOf(`
|
|
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=Gt(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=Gt(e)?e.slice():Me({},e);return i+1===t.length?(c[r[i]]=c[s],Gt(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=Gt(e)?e.slice():Me({},e);return r+1===t.length?(Gt(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 m(){}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 g(){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(e){var t=[];return e.forEach(function(r){t.push(r)}),t.sort().join(", ")}function y(e,t,r,i){return new eR(e,t,r,i)}function N(e,t){e.context===za&&(um(e.current,2,t,e,null,null),go())}function w(e,t){if(Gn!==null){var r=t.staleFamilies;t=t.updatedFamilies,Fs(),Ad(e.current,t,r),go()}}function D(e){Gn=e}function T(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function M(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 U(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 C(e){if(M(e)!==e)throw Error("Unable to find node on an unmounted component.")}function A(e){var t=e.alternate;if(!t){if(t=M(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 C(s),e;if(c===i)return C(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 h=!1,b=s.child;b;){if(b===r){h=!0,r=s,i=c;break}if(b===i){h=!0,i=s,r=c;break}b=b.sibling}if(!h){for(b=c.child;b;){if(b===r){h=!0,r=c,i=s;break}if(b===i){h=!0,i=c,r=s;break}b=b.sibling}if(!h)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 L(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=L(e),t!==null)return t;e=e.sibling}return null}function F(e){return e===null||typeof e!="object"?null:(e=Y1&&e[Y1]||e["@@iterator"],typeof e=="function"?e:null)}function Z(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===bA?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xo:return"Fragment";case gm:return"Profiler";case fu:return"StrictMode";case vm:return"Suspense";case _m:return"SuspenseList";case Em: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 So:return"Portal";case xr:return(e.displayName||"Context")+".Provider";case ym:return(e._context.displayName||"Context")+".Consumer";case Js:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case du:return t=e.displayName||null,t!==null?t:Z(e.type)||"Memo";case Sn:t=e._payload,e=e._init;try{return Z(e(t))}catch{}}return null}function J(e){return typeof e.tag=="number"?X(e):typeof e.name=="string"?e.name:null}function X(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=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 Z(t);case 8:return t===fu?"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 X(e.return)}return null}function te(e){return{current:e}}function ne(e,t){0>Jr?console.error("Unexpected pop."):(t!==Sm[Jr]&&console.error("Unexpected Fiber popped."),e.current=wm[Jr],wm[Jr]=null,Sm[Jr]=null,Jr--)}function se(e,t,r){Jr++,wm[Jr]=e.current,Sm[Jr]=r,e.current=t}function he(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 Le(e,t){se(Ba,t,e),se(el,e,e),se(Ua,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):ua;break;default:if(r=t.tagName,t=t.namespaceURI)t=E1(t),t=w1(t,r);else switch(r){case"svg":t=is;break;case"math":t=Wu;break;default:t=ua}}r=r.toLowerCase(),r=Cy(null,r),r={context:t,ancestorInfo:r},ne(Ua,e),se(Ua,r,e)}function Ae(e){ne(Ua,e),ne(el,e),ne(Ba,e)}function W(){return he(Ua.current)}function ge(e){e.memoizedState!==null&&se(hu,e,e);var t=he(Ua.current),r=e.type,i=w1(t.context,r);r=Cy(t.ancestorInfo,r),i={context:i,ancestorInfo:r},t!==i&&(se(el,e,e),se(Ua,i,e))}function fe(e){el.current===e&&(ne(Ua,e),ne(el,e)),hu.current===e&&(ne(hu,e),Hl._currentValue=Gi)}function we(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function $(e){try{return de(e),!1}catch{return!0}}function de(e){return""+e}function le(e,t){if($(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,we(e)),de(e)}function Ge(e,t){if($(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,we(e)),de(e)}function Je(e){if($(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.",we(e)),de(e)}function pt(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),Xt=t}catch(r){console.error("React instrumentation encountered an error: %s.",r)}return!!t.checkDCE}function Ce(e){if(typeof SA=="function"&&xA(e),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(To,e)}catch(t){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",t))}}function Un(e){oe=e}function it(){oe!==null&&typeof oe.markCommitStopped=="function"&&oe.markCommitStopped()}function ft(e){oe!==null&&typeof oe.markComponentRenderStarted=="function"&&oe.markComponentRenderStarted(e)}function Mt(){oe!==null&&typeof oe.markComponentRenderStopped=="function"&&oe.markComponentRenderStopped()}function br(e){oe!==null&&typeof oe.markRenderStarted=="function"&&oe.markRenderStarted(e)}function ie(){oe!==null&&typeof oe.markRenderStopped=="function"&&oe.markRenderStopped()}function At(e,t){oe!==null&&typeof oe.markStateUpdateScheduled=="function"&&oe.markStateUpdateScheduled(e,t)}function Vr(e){return e>>>=0,e===0?32:31-(kA(e)/TA|0)|0}function va(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 St(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 Gr(e,t,r){var i=e.pendingLanes;if(i===0)return 0;var s=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~c,i!==0?s=St(i):(h&=b,h!==0?s=St(h):r||(r=b&~e,r!==0&&(s=St(r))))):(b=i&~c,b!==0?s=St(b):h!==0?s=St(h):r||(r=i&~e,r!==0&&(s=St(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 _a(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function dd(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=mu;return mu<<=1,(mu&4194048)===0&&(mu=256),e}function ii(){var e=pu;return pu<<=1,(pu&62914560)===0&&(pu=4194304),e}function ro(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ea(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cc(e,t,r,i,s,c){var h=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=h&~r;0<r;){var z=31-Kt(r),q=1<<z;b[z]=0,x[z]=-1;var H=k[z];if(H!==null)for(k[z]=null,z=0;z<H.length;z++){var P=H[z];P!==null&&(P.lane&=-536870913)}r&=~q}i!==0&&ms(e,i,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function ms(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Kt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|r&4194090}function uc(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-Kt(r),s=1<<i;s&t|e[i]&t&&(e[i]|=t),r&=~s}}function ps(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 bs(e,t,r){if(ir)for(e=e.pendingUpdatersLaneMap;0<r;){var i=31-Kt(r),s=1<<i;e[i].add(t),r&=~s}}function gs(e,t){if(ir)for(var r=e.pendingUpdatersLaneMap,i=e.memoizedUpdaters;0<t;){var s=31-Kt(t);e=1<<s,s=r[s],0<s.size&&(s.forEach(function(c){var h=c.alternate;h!==null&&i.has(h)||i.add(c)}),s.clear()),t&=~e}}function ao(e){return e&=-e,In<e?Nr<e?(e&134217727)!==0?ta:bu:Nr:In}function ys(){var e=Ze.p;return e!==0?e:(e=window.event,e===void 0?ta:V1(e.type))}function io(e,t){var r=Ze.p;try{return Ze.p=e,t()}finally{Ze.p=r}}function wa(e){delete e[Zt],delete e[dn],delete e[Rm],delete e[NA],delete e[RA]}function tr(e){var t=e[Zt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ja]||r[Zt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=R1(e);e!==null;){if(r=e[Zt])return r;e=R1(e)}return t}e=r,r=e.parentNode}return null}function nr(e){if(e=e[Zt]||e[ja]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Sa(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 j(e){e[tl]=!0}function K(e,t){ae(e,t),ae(e+"Capture",t)}function ae(e,t){wi[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),wi[e]=t;var r=e.toLowerCase();for(Am[r]=e,e==="onDoubleClick"&&(Am.ondblclick=e),e=0;e<t.length;e++)Z1.add(t[e])}function me(e,t){AA[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 ea.call(W1,e)?!0:ea.call(Q1,e)?!1:OA.test(e)?W1[e]=!0:(Q1[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Te(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 Pe(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 Ne(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 Ut(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 qr(){}function hd(){if(nl===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:qr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}nl++}function md(){if(nl--,nl===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>nl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Bn(e){if(Om===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Om=t&&t[1]||"",i_=-1<r.stack.indexOf(`
|
|
63
63
|
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
64
|
-
`+
|
|
64
|
+
`+Om+e+i_}function pd(e,t){if(!e||Cm)return"";var r=Dm.get(e);if(r!==void 0)return r;Cm=!0,r=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var i=null;i=G.H,G.H=null,hd();try{var s={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(ce){var P=ce}Reflect.construct(e,[],H)}else{try{H.call()}catch(ce){P=ce}e.call(H.prototype)}}else{try{throw Error()}catch(ce){P=ce}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(ce){if(ce&&P&&typeof ce.stack=="string")return[ce.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 h=s.DetermineComponentFrameRoot(),b=h[0],x=h[1];if(b&&x){var k=b.split(`
|
|
65
65
|
`),z=x.split(`
|
|
66
66
|
`);for(h=c=0;c<k.length&&!k[c].includes("DetermineComponentFrameRoot");)c++;for(;h<z.length&&!z[h].includes("DetermineComponentFrameRoot");)h++;if(c===k.length||h===z.length)for(c=k.length-1,h=z.length-1;1<=c&&0<=h&&k[c]!==z[h];)h--;for(;1<=c&&0<=h;c--,h--)if(k[c]!==z[h]){if(c!==1||h!==1)do if(c--,h--,0>h||k[c]!==z[h]){var q=`
|
|
67
|
-
`+k[c].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e=="function"&&
|
|
67
|
+
`+k[c].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e=="function"&&Dm.set(e,q),q}while(1<=c&&0<=h);break}}}finally{Cm=!1,G.H=i,md(),Error.prepareStackTrace=r}return k=(k=e?e.displayName||e.name:"")?Bn(k):"",typeof e=="function"&&Dm.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
68
|
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
69
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
|
|
70
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function MN(e){switch(e.tag){case 26:case 27:case 5:return Bn(e.type);case 16:return Bn("Lazy");case 13:return Bn("Suspense");case 19:return Bn("SuspenseList");case 0:case 15:return pd(e.type,!1);case 11:return pd(e.type.render,!1);case 1:return pd(e.type,!0);case 31:return Bn("Activity");default:return""}}function py(e){try{var t="";do{t+=MN(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,h=s.env,b=Bn(s.name+(h?" ["+h+"]":""));t=c+b}}e=e.return}while(e);return t}catch(x){return`
|
|
71
71
|
Error generating stack: `+x.message+`
|
|
72
|
-
`+x.stack}}function
|
|
72
|
+
`+x.stack}}function by(e){return(e=e?e.displayName||e.name:"")?Bn(e):""}function fc(){if(xn===null)return null;var e=xn._debugOwner;return e!=null?J(e):null}function UN(){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+=Bn(e.type);break;case 13:t+=Bn("Suspense");break;case 19:t+=Bn("SuspenseList");break;case 31:t+=Bn("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
73
|
`+i))}else if(e.debugStack!=null){var s=e.debugStack;(e=e.owner)&&s&&(t+=`
|
|
74
|
-
`+
|
|
74
|
+
`+my(s))}else break;var c=t}catch(h){c=`
|
|
75
75
|
Error generating stack: `+h.message+`
|
|
76
|
-
`+h.stack}return c}function be(e,t,r,i,s,c,h){var b=xn;
|
|
76
|
+
`+h.stack}return c}function be(e,t,r,i,s,c,h){var b=xn;bd(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,r,i,s,c,h)):t(r,i,s,c,h)}finally{bd(b)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function bd(e){G.getCurrentStack=e===null?null:UN,Rr=!1,xn=e}function Ln(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Je(e),e;default:return""}}function gy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function BN(e){var t=gy(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Je(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(h){Je(h),i=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(h){Je(h),i=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dc(e){e._valueTracker||(e._valueTracker=BN(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 hc(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 jn(e){return e.replace(CA,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",fc()||"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",fc()||"A component",t.type),o_=!0)}function gd(e,t,r,i,s,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?(le(h,"type"),e.type=h):e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ln(t)):e.value!==""+Ln(t)&&(e.value=""+Ln(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?yd(e,h,Ln(t)):r!=null?yd(e,h,Ln(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=""+Ln(b)):e.removeAttribute("name")}function _y(e,t,r,i,s,c,h,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?""+Ln(r):"",t=t!=null?""+Ln(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,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(le(h,"name"),e.name=h)}function yd(e,t,r){t==="number"&&hc(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Ey(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?bm.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=fc();return e?`
|
|
77
77
|
|
|
78
|
-
Check the render method of \``+e+"`.":""}function oo(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=""+
|
|
78
|
+
Check the render method of \``+e+"`.":""}function oo(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=""+Ln(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=Gt(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",fc()||"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 ky(e,t,r){if(t!=null&&(t=""+Ln(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+Ln(r):""}function Ty(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(Gt(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=Ln(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 so(e){return"+ "+" ".repeat(e)}function oi(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 vs(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 mc(e,t,r){var i=120-2*r;if(t===null)return so(r)+vs(e,i)+`
|
|
79
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)),so(r)+vs(e,i)+`
|
|
80
80
|
`+oi(r)+vs(t,i)+`
|
|
81
81
|
`}return yn(r)+vs(e,i)+`
|
|
82
|
-
`}function
|
|
82
|
+
`}function vd(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,r){return r})}function _s(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(Gt(e))return"[...]";if(e.$$typeof===Ma)return(t=Z(e.type))?"<"+t+">":"<...>";var r=vd(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=_s(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 lo(e,t){return typeof e!="string"||m_.test(e)?"{"+_s(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function _d(e,t,r){var i=120-r.length-e.length,s=[],c;for(c in t)if(t.hasOwnProperty(c)&&c!=="children"){var h=lo(t[c],120-r.length-c.length-1);i-=c.length+h.length+2,s.push(c+"="+h)}return s.length===0?r+"<"+e+`>
|
|
83
83
|
`:0<i?r+"<"+e+" "+s.join(" ")+`>
|
|
84
84
|
`:r+"<"+e+`
|
|
85
85
|
`+r+" "+s.join(`
|
|
86
86
|
`+r+" ")+`
|
|
87
87
|
`+r+`>
|
|
88
|
-
`}function
|
|
88
|
+
`}function LN(e,t,r){var i="",s=Me({},t),c;for(c in e)if(e.hasOwnProperty(c)){delete s[c];var h=120-2*r-c.length-2,b=_s(e[c],h);t.hasOwnProperty(c)?(h=_s(t[c],h),i+=so(r)+c+": "+b+`
|
|
89
89
|
`,i+=oi(r)+c+": "+h+`
|
|
90
90
|
`):i+=so(r)+c+": "+b+`
|
|
91
91
|
`}for(var x in s)s.hasOwnProperty(x)&&(e=_s(s[x],120-2*r-x.length-2),i+=oi(r)+x+": "+e+`
|
|
92
|
-
`);return i}function
|
|
93
|
-
`+
|
|
92
|
+
`);return i}function jN(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+=_d(e,t,yn(i));else{for(var h in t)if(t.hasOwnProperty(h)&&h!=="children"){var b=120-2*(i+1)-h.length-1,x=c.get(h.toLowerCase());if(x!==void 0){c.delete(h.toLowerCase());var k=t[h];x=r[x];var z=lo(k,b);b=lo(x,b),typeof k=="object"&&k!==null&&typeof x=="object"&&x!==null&&vd(k)==="Object"&&vd(x)==="Object"&&(2<Object.keys(k).length||2<Object.keys(x).length||-1<z.indexOf("...")||-1<b.indexOf("..."))?s+=yn(i+1)+h+`={{
|
|
93
|
+
`+LN(k,x,i+2)+yn(i+1)+`}}
|
|
94
94
|
`:(s+=so(i+1)+h+"="+z+`
|
|
95
95
|
`,s+=oi(i+1)+h+"="+b+`
|
|
96
96
|
`)}else s+=yn(i+1)+h+"="+lo(t[h],b)+`
|
|
@@ -98,22 +98,22 @@ Check the render method of \``+e+"`.":""}function oo(e,t,r,i){if(e=e.options,t){
|
|
|
98
98
|
`}}),s=s===""?yn(i)+"<"+e+`>
|
|
99
99
|
`:yn(i)+"<"+e+`
|
|
100
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+=mc(c,""+e,i+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(s=e==null?s+mc(""+t,null,i+1):s+mc(""+t,void 0,i+1)),s}function
|
|
102
|
-
`}function
|
|
103
|
-
`+
|
|
104
|
-
`,t++)}if(i="",s=e.fiber.pendingProps,e.fiber.tag===6)i=mc(s,e.serverProps,t),t++;else if(c=
|
|
105
|
-
`,t++}else e.serverProps===null?(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+=mc(c,""+e,i+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(s=e==null?s+mc(""+t,null,i+1):s+mc(""+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 Ed(e,t){var r=Ny(e,t);if(r!==e&&(e.children.length!==1||e.children[0]!==r))return yn(t)+`...
|
|
103
|
+
`+Ed(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=mc(s,e.serverProps,t),t++;else if(c=Ry(e.fiber),c!==null)if(e.serverProps===void 0){i=t;var h=120-2*i-c.length-2,b="";for(k in s)if(s.hasOwnProperty(k)&&k!=="children"){var x=lo(s[k],15);if(h-=k.length+x.length+2,0>h){b+=" ...";break}b+=" "+k+"="+x}i=yn(i)+"<"+c+b+`>
|
|
105
|
+
`,t++}else e.serverProps===null?(i=_d(c,s,so(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=jN(c,s,e.serverProps,t),t++);var k="";for(s=e.fiber.child,c=0;s&&c<e.children.length;)h=e.children[c],h.fiber===s?(k+=Ed(h,t),c++):k+=Ay(s,t),s=s.sibling;for(s&&0<e.children.length&&(k+=yn(t)+`...
|
|
106
106
|
`),s=e.serverTail,e.serverProps===null&&t--,e=0;e<s.length;e++)c=s[e],k=typeof c=="string"?k+(oi(t)+vs(c,120-2*t)+`
|
|
107
|
-
`):k+
|
|
107
|
+
`):k+_d(c.type,c.props,oi(t));return r+i+k}function wd(e){try{return`
|
|
108
108
|
|
|
109
|
-
`+
|
|
109
|
+
`+Ed(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?wd(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),MA.indexOf(t)!==-1&&(r.pTagInButtonScope=null),DA.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 UA.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 HN(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 Sd(e,t){t=t||b_;var r=t.current;if(t=(r=Dy(e,r&&r.tag,t.implicitRootScope)?null:r)?null:HN(e,t),t=r||t,!t)return!0;var i=t.tag;if(t=String(!!r)+"|"+e+"|"+i,gu[t])return!1;gu[t]=!0;var s=(t=xn)?My(t.return,i):null,c=t!==null&&s!==null?Oy(s,t,null):"",h="<"+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
110
|
This will cause a hydration error.%s`,h,i,r,c)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
111
111
|
This will cause a hydration error.%s`,h,i,c),t&&(e=t.return,s===null||e===null||s===e&&e._debugOwner===t._debugOwner||be(s,function(){console.error(`<%s> cannot contain a nested %s.
|
|
112
|
-
See this log for the ancestor stack trace.`,i,h)})),!1}function pc(e,t,r){if(r||
|
|
112
|
+
See this log for the ancestor stack trace.`,i,h)})),!1}function pc(e,t,r){if(r||Dy("#text",t,!1))return!0;if(r="#text|"+t,gu[r])return!1;gu[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
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 Es(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}function UN(e){return e.replace(DA,function(t,r){return r.toUpperCase()})}function Ry(e,t,r){var i=t.indexOf("--")===0;i||(-1<t.indexOf("-")?No.hasOwnProperty(t)&&No[t]||(No[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,UN(t.replace(CA,"ms-")))):OA.test(t)?No.hasOwnProperty(t)&&No[t]||(No[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!h_.test(r)||Cm.hasOwnProperty(r)&&Cm[r]||(Cm[r]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,r.replace(h_,""))),typeof r=="number"&&(isNaN(r)?m_||(m_=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(r)||p_||(p_=!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||b_.has(t)?t==="float"?e.cssFloat=r:(Ge(r,t),e[t]=(""+r).trim()):e[t]=r+"px"}function Ay(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=Om[s]||[s],h=0;h<c.length;h++)i[c[h]]=s}for(var b in t)if(t.hasOwnProperty(b)&&(!r||r[b]!==t[b]))for(s=Om[b]||[b],c=0;c<s.length;c++)i[s[c]]=b;b={};for(var x in t)for(s=Om[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&&(h=s+","+c,!x[h])){x[h]=!0,h=console;var z=t[s];h.error.call(h,"%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.",z==null||typeof z=="boolean"||z===""?"Removing":"Updating",s,c)}}for(var q in r)!r.hasOwnProperty(q)||t!=null&&t.hasOwnProperty(q)||(q.indexOf("--")===0?e.setProperty(q,""):q==="float"?e.cssFloat="":e[q]="");for(var H in t)k=t[H],t.hasOwnProperty(H)&&r[H]!==k&&Ry(e,H,k)}else for(i in t)t.hasOwnProperty(i)&&Ry(e,i,t[i])}function ws(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 Oy(e){return MA.get(e)||e}function BN(e,t){if(ea.call(Ao,t)&&Ao[t])return!0;if(BA.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=g_.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ao[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ao[t]=!0}if(UA.test(t)){if(e=t.toLowerCase(),e=g_.hasOwnProperty(e)?e:null,e==null)return Ao[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ao[t]=!0)}return!0}function LN(e,t){var r=[],i;for(i in t)BN(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 jN(e,t,r,i){if(ea.call(Jt,t)&&Jt[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."),Jt[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),Jt[t]=!0;if(v_.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Jt[t]=!0}else if(v_.test(t))return LA.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Jt[t]=!0;if(jA.test(t)||HA.test(t))return!0;if(s==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Jt[t]=!0;if(s==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Jt[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),Jt[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),Jt[t]=!0;if(vu.hasOwnProperty(s)){if(s=vu[s],s!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,s),Jt[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),Jt[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),Jt[t]=!0)}case"function":case"symbol":return Jt[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),Jt[t]=!0}}return!0}function HN(e,t,r){var i=[],s;for(s in t)jN(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 Ss(e){return zA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ed(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Cy(e){var t=nr(e);if(t&&(e=t.stateNode)){var r=e[dn]||null;e:switch(e=t.stateNode,t.type){case"input":if(md(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.");md(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&&dy(i)}break e;case"textarea":vy(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&oo(e,!!r.multiple,t,!1)}}}function Dy(e,t,r){if(Dm)return e(t,r);Dm=!0;try{var i=e(t);return i}finally{if(Dm=!1,(Oo!==null||Co!==null)&&(go(),Oo&&(t=Oo,e=Co,Co=Oo=null,Cy(t),e)))for(t=0;t<e.length;t++)Cy(e[t])}}function xs(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 My(){if(_u)return _u;var e,t=Um,r=t.length,i,s="value"in Ha?Ha.value:Ha.textContent,c=s.length;for(e=0;e<r&&t[e]===s[e];e++);var h=r-e;for(i=1;i<=h&&t[r-i]===s[c-i];i++);return _u=s.slice(e,1<i?1-i:void 0)}function bc(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 gc(){return!0}function Uy(){return!1}function ln(e){function t(r,i,s,c,h){this._reactName=r,this._targetInst=s,this.type=i,this.nativeEvent=c,this.target=h,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)?gc:Uy,this.isPropagationStopped=Uy,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=gc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=gc)},persist:function(){},isPersistent:gc}),t}function zN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=KA[e])?!!t[e]:!1}function wd(){return zN}function By(e,t){switch(e){case"keyup":return uO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==S_;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ly(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function VN(e,t){switch(e){case"compositionend":return Ly(t);case"keypress":return t.which!==k_?null:(N_=!0,T_);case"textInput":return e=t.data,e===T_&&N_?null:e;default:return null}}function IN(e,t){if(Do)return e==="compositionend"||!Hm&&By(e,t)?(e=My(),_u=Um=Ha=null,Do=!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 x_&&t.locale!=="ko"?null:t.data;default:return null}}function jy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dO[e.type]:t==="textarea"}function GN(e){if(!Ar)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 Hy(e,t,r,i){Oo?Co?Co.push(i):Co=[i]:Oo=i,t=tu(t,"onChange"),0<t.length&&(r=new Eu("onChange","change",null,r,i),e.push({event:r,listeners:t}))}function qN(e){i1(e,0)}function yc(e){var t=Sa(e);if(dy(t))return e}function zy(e,t){if(e==="change")return t}function Vy(){ll&&(ll.detachEvent("onpropertychange",Iy),cl=ll=null)}function Iy(e){if(e.propertyName==="value"&&yc(cl)){var t=[];Hy(t,cl,e,Ed(e)),Dy(qN,t)}}function FN(e,t,r){e==="focusin"?(Vy(),ll=t,cl=r,ll.attachEvent("onpropertychange",Iy)):e==="focusout"&&Vy()}function PN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yc(cl)}function $N(e,t){if(e==="click")return yc(t)}function YN(e,t){if(e==="input"||e==="change")return yc(t)}function XN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function ks(e,t){if(en(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(!ea.call(t,s)||!en(e[s],t[s]))return!1}return!0}function Gy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qy(e,t){var r=Gy(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=Gy(r)}}function Fy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Py(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=hc(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=hc(e.document)}return t}function Sd(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 $y(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Vm||Mo==null||Mo!==hc(i)||(i=Mo,"selectionStart"in i&&Sd(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}),ul&&ks(ul,i)||(ul=i,i=tu(zm,"onSelect"),0<i.length&&(t=new Eu("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=Mo)))}function si(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}function li(e){if(Im[e])return Im[e];if(!Uo[e])return e;var t=Uo[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in A_)return Im[e]=t[r];return e}function rr(e,t){U_.set(e,t),K(t,[e])}function vn(e,t){if(typeof e=="object"&&e!==null){var r=qm.get(e);return r!==void 0?r:(t={value:e,source:t,stack:cy(t)},qm.set(e,t),t)}return{value:e,source:t,stack:cy(t)}}function vc(){for(var e=Bo,t=Pm=Bo=0;t<e;){var r=Vn[t];Vn[t++]=null;var i=Vn[t];Vn[t++]=null;var s=Vn[t];Vn[t++]=null;var c=Vn[t];if(Vn[t++]=null,i!==null&&s!==null){var h=i.pending;h===null?s.next=s:(s.next=h.next,h.next=s),i.pending=s}c!==0&&Yy(r,s,c)}}function _c(e,t,r,i){Vn[Bo++]=e,Vn[Bo++]=t,Vn[Bo++]=r,Vn[Bo++]=i,Pm|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function xd(e,t,r,i){return _c(e,t,r,i),Ec(e)}function cn(e,t){return _c(e,null,null,t),Ec(e)}function Yy(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&Fm||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-Kt(r),e=c.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=r|536870912),c):null}function Ec(e){if(Dl>BO)throw ji=Dl=0,Ml=Ep=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.");ji>LO&&(ji=0,Ml=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&&Kv(e);for(var t=e,r=t.return;r!==null;)t.alternate===null&&(t.flags&4098)!==0&&Kv(e),t=r,r=t.return;return t.tag===3?t.stateNode:null}function ci(e){if(In===null)return e;var t=In(e);return t===void 0?e:t.current}function kd(e){if(In===null)return e;var t=In(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=ci(e.render),e.render!==t)?(t={$$typeof:Js,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Xy(e,t){if(In===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===Js||s===Sn)&&(i=!0);break;case 14:case 15:(s===du||s===Sn)&&(i=!0);break;default:return!1}return!!(i&&(e=In(r),e!==void 0&&e===In(t)))}function Zy(e){In!==null&&typeof WeakSet=="function"&&(Lo===null&&(Lo=new WeakSet),Lo.add(e))}function Td(e,t,r){var i=e.alternate,s=e.child,c=e.sibling,h=e.tag,b=e.type,x=null;switch(h){case 0:case 15:case 1:x=b;break;case 11:x=b.render}if(In===null)throw Error("Expected resolveFamily to be set during hot reload.");var k=!1;b=!1,x!==null&&(x=In(x),x!==void 0&&(r.has(x)?b=!0:t.has(x)&&(h===1?b=!0:k=!0))),Lo!==null&&(Lo.has(e)||i!==null&&Lo.has(i))&&(b=!0),b&&(e._debugNeedsRemount=!0),(b||k)&&(i=cn(e,2),i!==null&&_t(i,e,2)),s===null||b||Td(s,t,r),c!==null&&Td(c,t,r)}function ZN(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,L_||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Nd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fr(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=ci(e.type);break;case 1:r.type=ci(e.type);break;case 11:r.type=kd(e.type)}return r}function Qy(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 Rd(e,t,r,i,s,c){var h=0,b=e;if(typeof e=="function")Nd(e)&&(h=1),b=ci(b);else if(typeof e=="string")h=W(),h=ZR(e,r,h)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ym:return t=g(31,r,t,s),t.elementType=ym,t.lanes=c,t;case xo:return ui(r.children,s,c,t);case fu:h=8,s|=Qt,s|=or;break;case mm: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|qt),t.elementType=mm,t.lanes=c,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case bm:return t=g(13,r,t,s),t.elementType=bm,t.lanes=c,t;case gm:return t=g(19,r,t,s),t.elementType=gm,t.lanes=c,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cA:case xr:h=10;break e;case pm:h=9;break e;case Js:h=11,b=kd(b);break e;case du:h=14;break e;case Sn:h=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":Gt(e)?r="array":e!==void 0&&e.$$typeof===Ma?(r="<"+(Z(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):r=typeof e,(h=i?J(i):null)&&(b+=`
|
|
114
|
+
This will cause a hydration error.%s`,t,r),!1}function Es(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}function zN(e){return e.replace(jA,function(t,r){return r.toUpperCase()})}function Uy(e,t,r){var i=t.indexOf("--")===0;i||(-1<t.indexOf("-")?No.hasOwnProperty(t)&&No[t]||(No[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,zN(t.replace(LA,"ms-")))):BA.test(t)?No.hasOwnProperty(t)&&No[t]||(No[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)||Um.hasOwnProperty(r)&&Um[r]||(Um[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:(Ge(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=Mm[s]||[s],h=0;h<c.length;h++)i[c[h]]=s}for(var b in t)if(t.hasOwnProperty(b)&&(!r||r[b]!==t[b]))for(s=Mm[b]||[b],c=0;c<s.length;c++)i[s[c]]=b;b={};for(var x in t)for(s=Mm[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&&(h=s+","+c,!x[h])){x[h]=!0,h=console;var z=t[s];h.error.call(h,"%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.",z==null||typeof z=="boolean"||z===""?"Removing":"Updating",s,c)}}for(var q in r)!r.hasOwnProperty(q)||t!=null&&t.hasOwnProperty(q)||(q.indexOf("--")===0?e.setProperty(q,""):q==="float"?e.cssFloat="":e[q]="");for(var H in t)k=t[H],t.hasOwnProperty(H)&&r[H]!==k&&Uy(e,H,k)}else for(i in t)t.hasOwnProperty(i)&&Uy(e,i,t[i])}function ws(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 HA.get(e)||e}function IN(e,t){if(ea.call(Ao,t)&&Ao[t])return!0;if(IA.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),Ao[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ao[t]=!0}if(zA.test(t)){if(e=t.toLowerCase(),e=S_.hasOwnProperty(e)?e:null,e==null)return Ao[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ao[t]=!0)}return!0}function VN(e,t){var r=[],i;for(i in t)IN(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 GN(e,t,r,i){if(ea.call(Jt,t)&&Jt[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."),Jt[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),Jt[t]=!0;if(k_.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Jt[t]=!0}else if(k_.test(t))return VA.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Jt[t]=!0;if(GA.test(t)||qA.test(t))return!0;if(s==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Jt[t]=!0;if(s==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Jt[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),Jt[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),Jt[t]=!0;if(vu.hasOwnProperty(s)){if(s=vu[s],s!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,s),Jt[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),Jt[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),Jt[t]=!0)}case"function":case"symbol":return Jt[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),Jt[t]=!0}}return!0}function qN(e,t,r){var i=[],s;for(s in t)GN(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 Ss(e){return FA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function jy(e){var t=nr(e);if(t&&(e=t.stateNode)){var r=e[dn]||null;e:switch(e=t.stateNode,t.type){case"input":if(gd(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="'+jn(""+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.");gd(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":ky(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&oo(e,!!r.multiple,t,!1)}}}function Hy(e,t,r){if(Bm)return e(t,r);Bm=!0;try{var i=e(t);return i}finally{if(Bm=!1,(Oo!==null||Co!==null)&&(go(),Oo&&(t=Oo,e=Co,Co=Oo=null,jy(t),e)))for(t=0;t<e.length;t++)jy(e[t])}}function xs(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(_u)return _u;var e,t=jm,r=t.length,i,s="value"in Ha?Ha.value:Ha.textContent,c=s.length;for(e=0;e<r&&t[e]===s[e];e++);var h=r-e;for(i=1;i<=h&&t[r-i]===s[c-i];i++);return _u=s.slice(e,1<i?1-i:void 0)}function bc(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 gc(){return!0}function Iy(){return!1}function ln(e){function t(r,i,s,c,h){this._reactName=r,this._targetInst=s,this.type=i,this.nativeEvent=c,this.target=h,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)?gc: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=gc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=gc)},persist:function(){},isPersistent:gc}),t}function FN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rO[e])?!!t[e]:!1}function kd(){return FN}function Vy(e,t){switch(e){case"keyup":return pO.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 PN(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 $N(e,t){if(Do)return e==="compositionend"||!Vm&&Vy(e,t)?(e=zy(),_u=jm=Ha=null,Do=!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"?!!gO[e.type]:t==="textarea"}function YN(e){if(!Ar)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){Oo?Co?Co.push(i):Co=[i]:Oo=i,t=tu(t,"onChange"),0<t.length&&(r=new Eu("onChange","change",null,r,i),e.push({event:r,listeners:t}))}function XN(e){f1(e,0)}function yc(e){var t=Sa(e);if(yy(t))return e}function Py(e,t){if(e==="change")return t}function $y(){ll&&(ll.detachEvent("onpropertychange",Yy),cl=ll=null)}function Yy(e){if(e.propertyName==="value"&&yc(cl)){var t=[];Fy(t,cl,e,xd(e)),Hy(XN,t)}}function ZN(e,t,r){e==="focusin"?($y(),ll=t,cl=r,ll.attachEvent("onpropertychange",Yy)):e==="focusout"&&$y()}function QN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yc(cl)}function WN(e,t){if(e==="click")return yc(t)}function KN(e,t){if(e==="input"||e==="change")return yc(t)}function JN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function ks(e,t){if(en(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(!ea.call(t,s)||!en(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=hc(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=hc(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;qm||Mo==null||Mo!==hc(i)||(i=Mo,"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}),ul&&ks(ul,i)||(ul=i,i=tu(Gm,"onSelect"),0<i.length&&(t=new Eu("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=Mo)))}function si(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}function li(e){if(Fm[e])return Fm[e];if(!Uo[e])return e;var t=Uo[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in B_)return Fm[e]=t[r];return e}function rr(e,t){I_.set(e,t),K(t,[e])}function vn(e,t){if(typeof e=="object"&&e!==null){var r=$m.get(e);return r!==void 0?r:(t={value:e,source:t,stack:py(t)},$m.set(e,t),t)}return{value:e,source:t,stack:py(t)}}function vc(){for(var e=Bo,t=Xm=Bo=0;t<e;){var r=Vn[t];Vn[t++]=null;var i=Vn[t];Vn[t++]=null;var s=Vn[t];Vn[t++]=null;var c=Vn[t];if(Vn[t++]=null,i!==null&&s!==null){var h=i.pending;h===null?s.next=s:(s.next=h.next,h.next=s),i.pending=s}c!==0&&Jy(r,s,c)}}function _c(e,t,r,i){Vn[Bo++]=e,Vn[Bo++]=t,Vn[Bo++]=r,Vn[Bo++]=i,Xm|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Nd(e,t,r,i){return _c(e,t,r,i),Ec(e)}function cn(e,t){return _c(e,null,null,t),Ec(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&Ym||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-Kt(r),e=c.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=r|536870912),c):null}function Ec(e){if(Dl>IO)throw ji=Dl=0,Ml=xp=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.");ji>VO&&(ji=0,Ml=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 ci(e){if(Gn===null)return e;var t=Gn(e);return t===void 0?e:t.current}function Rd(e){if(Gn===null)return e;var t=Gn(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=ci(e.render),e.render!==t)?(t={$$typeof:Js,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function e0(e,t){if(Gn===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===Js||s===Sn)&&(i=!0);break;case 14:case 15:(s===du||s===Sn)&&(i=!0);break;default:return!1}return!!(i&&(e=Gn(r),e!==void 0&&e===Gn(t)))}function t0(e){Gn!==null&&typeof WeakSet=="function"&&(Lo===null&&(Lo=new WeakSet),Lo.add(e))}function Ad(e,t,r){var i=e.alternate,s=e.child,c=e.sibling,h=e.tag,b=e.type,x=null;switch(h){case 0:case 15:case 1:x=b;break;case 11:x=b.render}if(Gn===null)throw Error("Expected resolveFamily to be set during hot reload.");var k=!1;b=!1,x!==null&&(x=Gn(x),x!==void 0&&(r.has(x)?b=!0:t.has(x)&&(h===1?b=!0:k=!0))),Lo!==null&&(Lo.has(e)||i!==null&&Lo.has(i))&&(b=!0),b&&(e._debugNeedsRemount=!0),(b||k)&&(i=cn(e,2),i!==null&&_t(i,e,2)),s===null||b||Ad(s,t,r),c!==null&&Ad(c,t,r)}function eR(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 Od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fr(e,t){var r=e.alternate;switch(r===null?(r=y(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=ci(e.type);break;case 1:r.type=ci(e.type);break;case 11:r.type=Rd(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 Cd(e,t,r,i,s,c){var h=0,b=e;if(typeof e=="function")Od(e)&&(h=1),b=ci(b);else if(typeof e=="string")h=W(),h=eA(e,r,h)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Em:return t=y(31,r,t,s),t.elementType=Em,t.lanes=c,t;case xo:return ui(r.children,s,c,t);case fu:h=8,s|=Qt,s|=or;break;case gm: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=y(12,e,t,i|qt),t.elementType=gm,t.lanes=c,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case vm:return t=y(13,r,t,s),t.elementType=vm,t.lanes=c,t;case _m:return t=y(19,r,t,s),t.elementType=_m,t.lanes=c,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mA:case xr:h=10;break e;case ym:h=9;break e;case Js:h=11,b=Rd(b);break e;case du:h=14;break e;case Sn:h=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":Gt(e)?r="array":e!==void 0&&e.$$typeof===Ma?(r="<"+(Z(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):r=typeof e,(h=i?J(i):null)&&(b+=`
|
|
115
115
|
|
|
116
|
-
Check the render method of \``+h+"`."),h=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=
|
|
116
|
+
Check the render method of \``+h+"`."),h=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=y(h,r,t,s),t.elementType=e,t.type=b,t.lanes=c,t._debugOwner=i,t}function wc(e,t,r){return t=Cd(e.type,e.key,e.props,e._owner,t,r),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function ui(e,t,r,i){return e=y(7,e,i,t),e.lanes=r,e}function Dd(e,t,r){return e=y(6,e,null,t),e.lanes=r,e}function Md(e,t,r){return t=y(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fi(e,t){di(),jo[Ho++]=xu,jo[Ho++]=Su,Su=e,xu=t}function r0(e,t,r){di(),qn[Fn++]=na,qn[Fn++]=ra,qn[Fn++]=ki,ki=e;var i=na;e=ra;var s=32-Kt(i)-1;i&=~(1<<s),r+=1;var c=32-Kt(t)+s;if(30<c){var h=s-s%5;c=(i&(1<<h)-1).toString(32),i>>=h,s-=h,na=1<<32-Kt(t)+s|r<<s|i,ra=c+e}else na=1<<c|r<<s|i,ra=e}function Ud(e){di(),e.return!==null&&(fi(e,1),r0(e,1,0))}function Bd(e){for(;e===Su;)Su=jo[--Ho],jo[Ho]=null,xu=jo[--Ho],jo[Ho]=null;for(;e===ki;)ki=qn[--Fn],qn[Fn]=null,ra=qn[--Fn],qn[Fn]=null,na=qn[--Fn],qn[Fn]=null}function di(){$e||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function hi(e,t){if(e.return===null){if(Pn===null)Pn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Pn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Pn.distanceFromLeaf>t&&(Pn.distanceFromLeaf=t)}return Pn}var r=hi(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 Ld(e,t){aa||(e=hi(e,0),e.serverProps=null,t!==null&&(t=k1(t),e.serverTail.push(t)))}function mi(e){var t="",r=Pn;throw r!==null&&(Pn=null,t=wd(r)),Rs(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
117
|
|
|
118
118
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
119
119
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -123,7 +123,7 @@ Check the render method of \``+h+"`."),h=29,r=Error("Element type is invalid: ex
|
|
|
123
123
|
|
|
124
124
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
125
125
|
|
|
126
|
-
https://react.dev/link/hydration-mismatch`+t),e))
|
|
126
|
+
https://react.dev/link/hydration-mismatch`+t),e)),Zm}function a0(e){var t=e.stateNode,r=e.type,i=e.memoizedProps;switch(t[Zt]=e,t[dn]=i,Jh(r,i),r){case"dialog":ze("cancel",t),ze("close",t);break;case"iframe":case"object":case"embed":ze("load",t);break;case"video":case"audio":for(r=0;r<Ul.length;r++)ze(Ul[r],t);break;case"source":ze("error",t);break;case"img":case"image":case"link":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"input":me("input",i),ze("invalid",t),vy(t,i),_y(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),dc(t);break;case"option":Ey(t,i);break;case"select":me("select",i),ze("invalid",t),Sy(t,i);break;case"textarea":me("textarea",i),ze("invalid",t),xy(t,i),Ty(t,i.value,i.defaultValue,i.children),dc(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&&(ze("beforetoggle",t),ze("toggle",t)),i.onScroll!=null&&ze("scroll",t),i.onScrollEnd!=null&&ze("scrollend",t),i.onClick!=null&&(t.onclick=nu),t=!0):t=!1,t||mi(e)}function i0(e){for(tn=e.return;tn;)switch(tn.tag){case 5:case 13:Or=!1;return;case 27:case 3:Or=!0;return;default:tn=tn.return}}function Ts(e){if(e!==tn)return!1;if(!$e)return i0(e),$e=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||am(e.type,e.memoizedProps)),r=!r),r&&bt){for(r=bt;r;){var i=hi(e,0),s=k1(r);i.serverTail.push(s),r=s.type==="Suspense"?N1(r):zn(r.nextSibling)}mi(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.");bt=N1(e)}else t===27?(t=bt,Da(e.type)?(e=Lp,Lp=null,bt=e):bt=t):bt=tn?zn(e.stateNode.nextSibling):null;return!0}function Ns(){bt=tn=null,aa=$e=!1}function o0(){var e=Ti;return e!==null&&(an===null?an=e:an.push.apply(an,e),Ti=null),e}function Rs(e){Ti===null?Ti=[e]:Ti.push(e)}function s0(){var e=Pn;if(e!==null){Pn=null;for(var t=wd(e);0<e.children.length;)e=e.children[0];be(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
127
|
|
|
128
128
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
129
129
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -133,43 +133,43 @@ https://react.dev/link/hydration-mismatch`+t),e)),$m}function Ky(e){var t=e.stat
|
|
|
133
133
|
|
|
134
134
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
135
135
|
|
|
136
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Sc(){zo=ku=null,
|
|
136
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Sc(){zo=ku=null,Io=!1}function xa(e,t,r){se(Qm,t._currentValue,e),t._currentValue=r,se(Wm,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 Pr(e,t){e._currentValue=Qm.current;var r=Wm.current;ne(Wm,t),e._currentRenderer=r,ne(Qm,t)}function jd(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 Hd(e,t,r,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var h=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),jd(c.return,r,e),i||(h=null);break e}c=b.next}}else if(s.tag===18){if(h=s.return,h===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");h.lanes|=r,c=h.alternate,c!==null&&(c.lanes|=r),jd(h,r,e),h=null}else h=s.child;if(h!==null)h.return=s;else for(h=s;h!==null;){if(h===e){h=null;break}if(s=h.sibling,s!==null){s.return=h.return,h=s;break}h=h.return}s=h}}function As(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 h=s.alternate;if(h===null)throw Error("Should have a current fiber. This is a bug in React.");if(h=h.memoizedProps,h!==null){var b=s.type;en(s.pendingProps.value,h.value)||(e!==null?e.push(b):e=[b])}}else if(s===hu.current){if(h=s.alternate,h===null)throw Error("Should have a current fiber. This is a bug in React.");h.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Hl):e=[Hl])}s=s.return}e!==null&&Hd(t,e,r,i),t.flags|=262144}function xc(e){for(e=e.firstContext;e!==null;){if(!en(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pi(e){ku=e,zo=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return Io&&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(ku,e)}function kc(e,t){return ku===null&&pi(e),l0(e,t)}function l0(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},zo===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().");zo=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else zo=zo.next=t;return r}function zd(){return{controller:new kO,data:new Map,refCount:0}}function bi(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 Os(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(NO,function(){e.controller.abort()})}function $r(){var e=Ni;return Ni=0,e}function Tc(e){var t=Ni;return Ni=e,t}function Cs(e){var t=Ni;return Ni+=e,t}function Id(e){hn=Vo(),0>e.actualStartTime&&(e.actualStartTime=hn)}function Vd(e){if(0<=hn){var t=Vo()-hn;e.actualDuration+=t,e.selfBaseDuration=t,hn=-1}}function c0(e){if(0<=hn){var t=Vo()-hn;e.actualDuration+=t,hn=-1}}function gr(){if(0<=hn){var e=Vo()-hn;hn=-1,Ni+=e}}function yr(){hn=Vo()}function Nc(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function tR(e,t){if(fl===null){var r=fl=[];Km=0,Ri=Zh(),Go={status:"pending",value:void 0,then:function(i){r.push(i)}}}return Km++,t.then(u0,u0),t}function u0(){if(--Km===0&&fl!==null){Go!==null&&(Go.status="fulfilled");var e=fl;fl=null,Ri=0,Go=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function nR(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 Gd(){var e=Ai.current;return e!==null?e:ot.pooledCache}function Rc(e,t){t===null?se(Ai,Ai.current,e):se(Ai,t.pool,e)}function f0(){var e=Gd();return e===null?null:{parent:Ot._currentValue,pool:e}}function d0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function h0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ac(){}function m0(e,t,r){G.actQueue!==null&&(G.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(Ac,Ac),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(Ac,Ac);else{if(e=ot,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 vl=t,Cu=!0,yl}}function p0(){if(vl===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=vl;return vl=null,Cu=!1,e}function b0(e){if(e===yl||e===Ou)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 qd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fd(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 ka(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,tp===i&&!eE){var s=X(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
137
137
|
|
|
138
|
-
Please update the following component: %s`,s),
|
|
138
|
+
Please update the following component: %s`,s),eE=!0}return(Qe&rn)!==kn?(s=i.pending,s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=Ec(e),Jy(e,null,r),t):(_c(e,i,t,r),Ec(e))}function Ds(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,uc(e,r)}}function Oc(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 h={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};c===null?s=c=h:c=c.next=h,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 Ms(){if(np){var e=Go;if(e!==null)throw e}}function Us(e,t,r,i){np=!1;var s=e.updateQueue;Ia=!1,tp=s.shared;var c=s.firstBaseUpdate,h=s.lastBaseUpdate,b=s.shared.pending;if(b!==null){s.shared.pending=null;var x=b,k=x.next;x.next=null,h===null?c=k:h.next=k,h=x;var z=e.alternate;z!==null&&(z=z.updateQueue,b=z.lastBaseUpdate,b!==h&&(b===null?z.firstBaseUpdate=k:b.next=k,z.lastBaseUpdate=x))}if(c!==null){var q=s.baseState;h=0,z=k=x=null,b=c;do{var H=b.lane&-536870913,P=H!==b.lane;if(P?(He&H)===H:(i&H)===H){H!==0&&H===Ri&&(np=!0),z!==null&&(z=z.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{H=e;var ce=b,ve=t,st=r;switch(ce.tag){case K_:if(ce=ce.payload,typeof ce=="function"){Io=!0;var Ie=ce.call(st,q,ve);if(H.mode&Qt){Ce(!0);try{ce.call(st,q,ve)}finally{Ce(!1)}}Io=!1,q=Ie;break e}q=ce;break e;case ep:H.flags=H.flags&-65537|128;case W_:if(Ie=ce.payload,typeof Ie=="function"){if(Io=!0,ce=Ie.call(st,q,ve),H.mode&Qt){Ce(!0);try{Ie.call(st,q,ve)}finally{Ce(!1)}}Io=!1}else ce=Ie;if(ce==null)break e;q=Me({},q,ce);break e;case J_:Ia=!0}}H=b.callback,H!==null&&(e.flags|=64,P&&(e.flags|=8192),P=s.callbacks,P===null?s.callbacks=[H]:P.push(H))}else P={lane:H,tag:b.tag,payload:b.payload,callback:b.callback,next:null},z===null?(k=z=P,x=q):z=z.next=P,h|=H;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);z===null&&(x=q),s.baseState=x,s.firstBaseUpdate=k,s.lastBaseUpdate=z,c===null&&(s.shared.lanes=0),Fa|=h,e.lanes=h,e.memoizedState=q}tp=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 rR(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=Mr;se(Du,r,e),se(qo,t,e),Mr=r|t.baseLanes}function Pd(e){se(Du,Mr,e),se(qo,qo.current,e)}function $d(e){Mr=Du.current,ne(qo,e),ne(Du,e)}function je(){var e=V;Xn===null?Xn=[e]:Xn.push(e)}function Q(){var e=V;if(Xn!==null&&(oa++,Xn[oa]!==e)){var t=X(Ee);if(!tE.has(t)&&(tE.add(t),Xn!==null)){for(var r="",i=0;i<=oa;i++){var s=Xn[i],c=i===oa?e:s;for(s=i+1+". "+s;30>s.length;)s+=" ";s+=c+`
|
|
139
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
140
|
|
|
141
141
|
Previous render Next render
|
|
142
142
|
------------------------------------------------------
|
|
143
143
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
144
|
-
`,t,r)}}}function co(e){e==null||Gt(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.",
|
|
144
|
+
`,t,r)}}}function co(e){e==null||Gt(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.",V,typeof e)}function Cc(){var e=X(Ee);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 vt(){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
145
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
146
146
|
2. You might be breaking the Rules of Hooks
|
|
147
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
|
|
148
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Yd(e,t){if(El)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.",V),!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
149
|
|
|
150
150
|
Previous: %s
|
|
151
|
-
Incoming: %s`,I,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var r=0;r<t.length&&r<e.length;r++)if(!en(e[r],t[r]))return!1;return!0}function Pd(e,t,r,i,s,c){Ia=c,Ee=t,Yn=e!==null?e._debugHookTypes:null,oa=-1,El=e!==null&&e.type!==t.type,(Object.prototype.toString.call(r)==="[object AsyncFunction]"||Object.prototype.toString.call(r)==="[object AsyncGeneratorFunction]")&&(c=X(Ee),ep.has(c)||(ep.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,G.H=e!==null&&e.memoizedState!==null?np:Yn!==null?K_:tp,Ci=c=(t.mode&Qt)!==lt;var h=rp(r,i,s);if(Ci=!1,Po&&(h=$d(t,r,i,s)),c){Ce(!0);try{h=$d(t,r,i,s)}finally{Ce(!1)}}return m0(e,t),h}function m0(e,t){t._debugHookTypes=Yn,t.dependencies===null?ia!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:ia}):t.dependencies._debugThenableState=ia,G.H=Bu;var r=at!==null&&at.next!==null;if(Ia=0,Yn=I=kt=at=Ee=null,oa=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Mu=!1,_l=0,ia=null,r)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Lt||(e=e.dependencies,e!==null&&xc(e)&&(Lt=!0)),Cu?(Cu=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",Q_.has(t)||ep.has(t)||(Q_.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 $d(e,t,r,i){Ee=e;var s=0;do{if(Po&&(ia=null),_l=0,Po=!1,s>=xO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(s+=1,El=!1,kt=at=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}oa=-1,G.H=J_,c=rp(t,r,i)}while(Po);return c}function JN(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?Bs(t):t,e=e.useState()[0],(at!==null?at.memoizedState:null)!==e&&(Ee.flags|=1024),t}function Yd(){var e=Uu!==0;return Uu=0,e}function Xd(e,t,r){t.updateQueue=e.updateQueue,t.flags=(t.mode&or)!==lt?t.flags&-402655237:t.flags&-2053,e.lanes&=~r}function Zd(e){if(Mu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mu=!1}Ia=0,Yn=kt=at=Ee=null,oa=-1,I=null,Po=!1,_l=Uu=0,ia=null}function un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?Ee.memoizedState=kt=e:kt=kt.next=e,kt}function et(){if(at===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=at.next;var t=kt===null?Ee.memoizedState:kt.next;if(t!==null)kt=t,at=e;else{if(e===null)throw Ee.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.");at=e,e={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},kt===null?Ee.memoizedState=kt=e:kt=kt.next=e}return kt}function Qd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bs(e){var t=_l;return _l+=1,ia===null&&(ia=o0()),e=l0(ia,e,t),t=Ee,(kt===null?t.memoizedState:kt.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?np:tp),e}function Na(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bs(e);if(e.$$typeof===xr)return dt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function gi(e){var t=null,r=Ee.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var i=Ee.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=Qd(),Ee.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0||El)for(r=t.data[t.index]=Array(e),i=0;i<e;i++)r[i]=uA;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 ar(e,t){return typeof t=="function"?t(e):t}function Wd(e,t,r){var i=un();if(r!==void 0){var s=r(t);if(Ci){Ce(!0);try{r(t)}finally{Ce(!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=rR.bind(null,Ee,e),[i.memoizedState,e]}function uo(e){var t=et();return Kd(t,at,e)}function Kd(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 h=s.next;s.next=c.next,c.next=h}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=h=null,x=null,k=t,z=!1;do{var q=k.lane&-536870913;if(q!==k.lane?(He&q)===q:(Ia&q)===q){var H=k.revertLane;if(H===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),q===Ri&&(z=!0);else if((Ia&H)===H){k=k.next,H===Ri&&(z=!0);continue}else q={lane:0,revertLane:k.revertLane,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(b=x=q,h=c):x=x.next=q,Ee.lanes|=H,Fa|=H;q=k.action,Ci&&r(c,q),c=k.hasEagerState?k.eagerState:r(c,q)}else H={lane:q,revertLane:k.revertLane,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(b=x=H,h=c):x=x.next=H,Ee.lanes|=q,Fa|=q;k=k.next}while(k!==null&&k!==t);if(x===null?h=c:x.next=b,!en(c,e.memoizedState)&&(Lt=!0,z&&(r=Go,r!==null)))throw r;e.memoizedState=c,e.baseState=h,e.baseQueue=x,i.lastRenderedState=c}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Ls(e){var t=et(),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 h=s=s.next;do c=e(c,h.action),h=h.next;while(h!==s);en(c,t.memoizedState)||(Lt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,i]}function Jd(e,t,r){var i=Ee,s=un();if($e){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var c=r();Fo||c===r()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Fo=!0)}else{if(c=t(),Fo||(r=t(),en(c,r)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fo=!0)),ot===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(He&124)!==0||p0(i,t,c)}return s.memoizedState=c,r={value:c,getSnapshot:t},s.queue=r,Lc(g0.bind(null,i,r,e),[e]),i.flags|=2048,ho($n|Ct,Bc(),b0.bind(null,i,r,c,t),null),c}function Dc(e,t,r){var i=Ee,s=et(),c=$e;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(),!Fo){var h=t();en(r,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fo=!0)}(h=!en((at||s).memoizedState,r))&&(s.memoizedState=r,Lt=!0),s=s.queue;var b=g0.bind(null,i,s,e);if(fn(2048,Ct,b,[e]),s.getSnapshot!==t||h||kt!==null&&kt.memoizedState.tag&$n){if(i.flags|=2048,ho($n|Ct,Bc(),b0.bind(null,i,s,r,t),null),ot===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");c||(Ia&124)!==0||p0(i,t,r)}return r}function p0(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ee.updateQueue,t===null?(t=Qd(),Ee.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function b0(e,t,r,i){t.value=r,t.getSnapshot=i,y0(t)&&v0(e)}function g0(e,t,r){return r(function(){y0(t)&&v0(e)})}function y0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!en(e,r)}catch{return!0}}function v0(e){var t=cn(e,2);t!==null&&_t(t,e,2)}function eh(e){var t=un();if(typeof e=="function"){var r=e;if(e=r(),Ci){Ce(!0);try{r()}finally{Ce(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:e},t}function th(e){e=eh(e);var t=e.queue,r=H0.bind(null,Ee,t);return t.dispatch=r,[e.memoizedState,r]}function nh(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=ph.bind(null,Ee,!0,r),r.dispatch=t,[e,t]}function _0(e,t){var r=et();return E0(r,at,e,t)}function E0(e,t,r,i){return e.baseState=r,Kd(e,at,typeof i=="function"?i:ar)}function w0(e,t){var r=et();return at!==null?E0(r,at,e,t):(r.baseState=e,[e,r.queue.dispatch])}function eR(e,t,r,i,s){if(Vc(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(h){c.listeners.push(h)}};G.T!==null?r(!0):c.isTransition=!1,i(c),r=t.pending,r===null?(c.next=t.pending=c,S0(t,c)):(c.next=r.next,t.pending=r.next=c)}}function S0(e,t){var r=t.action,i=t.payload,s=e.state;if(t.isTransition){var c=G.T,h={};G.T=h,G.T._updatedFibers=new Set;try{var b=r(s,i),x=G.S;x!==null&&x(h,b),x0(e,t,b)}catch(k){rh(e,t,k)}finally{G.T=c,c===null&&h._updatedFibers&&(e=h._updatedFibers.size,h._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{h=r(s,i),x0(e,t,h)}catch(k){rh(e,t,k)}}function x0(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?(r.then(function(i){k0(e,t,i)},function(i){return rh(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.")):k0(e,t,r)}function k0(e,t,r){t.status="fulfilled",t.value=r,T0(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,S0(e,r)))}function rh(e,t,r){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=r,T0(t),t=t.next;while(t!==i)}e.action=null}function T0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function N0(e,t){return t}function fo(e,t){if($e){var r=ot.formState;if(r!==null){e:{var i=Ee;if($e){if(bt){t:{for(var s=bt,c=Or;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===Ap||c===WE?s:null}if(s){bt=Hn(s.nextSibling),i=s.data===Ap;break e}}mi(i)}i=!1}i&&(t=r[0])}}return r=un(),r.memoizedState=r.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:N0,lastRenderedState:t},r.queue=i,r=H0.bind(null,Ee,i),i.dispatch=r,i=eh(!1),c=ph.bind(null,Ee,!1,i.queue),i=un(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,r=eR.bind(null,Ee,s,c,r),s.dispatch=r,i.memoizedState=e,[t,r,!1]}function Mc(e){var t=et();return R0(t,at,e)}function R0(e,t,r){if(t=Kd(e,t,N0)[0],e=uo(ar)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Bs(t)}catch(h){throw h===yl?Ou:h}else i=t;t=et();var s=t.queue,c=s.dispatch;return r!==t.memoizedState&&(Ee.flags|=2048,ho($n|Ct,Bc(),tR.bind(null,s,r),null)),[i,c,e]}function tR(e,t){e.action=t}function Uc(e){var t=et(),r=at;if(r!==null)return R0(t,r,e);et(),t=t.memoizedState,r=et();var i=r.queue.dispatch;return r.memoizedState=e,[t,i,!1]}function ho(e,t,r,i){return e={tag:e,create:r,deps:i,inst:t,next:null},t=Ee.updateQueue,t===null&&(t=Qd(),Ee.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 Bc(){return{destroy:void 0,resource:void 0}}function ah(e){var t=un();return e={current:e},t.memoizedState=e}function yi(e,t,r,i){var s=un();i=i===void 0?null:i,Ee.flags|=e,s.memoizedState=ho($n|t,Bc(),r,i)}function fn(e,t,r,i){var s=et();i=i===void 0?null:i;var c=s.memoizedState.inst;at!==null&&i!==null&&Fd(i,at.memoizedState.deps)?s.memoizedState=ho(t,c,r,i):(Ee.flags|=e,s.memoizedState=ho($n|t,c,r,i))}function Lc(e,t){(Ee.mode&or)!==lt&&(Ee.mode&B_)===lt?yi(276826112,Ct,e,t):yi(8390656,Ct,e,t)}function ih(e,t){var r=4194308;return(Ee.mode&or)!==lt&&(r|=134217728),yi(r,Ft,e,t)}function A0(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 oh(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;(Ee.mode&or)!==lt&&(i|=134217728),yi(i,Ft,A0.bind(null,t,e),r)}function jc(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,Ft,A0.bind(null,t,e),r)}function sh(e,t){return un().memoizedState=[e,t===void 0?null:t],e}function Hc(e,t){var r=et();t=t===void 0?null:t;var i=r.memoizedState;return t!==null&&Fd(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function lh(e,t){var r=un();t=t===void 0?null:t;var i=e();if(Ci){Ce(!0);try{e()}finally{Ce(!1)}}return r.memoizedState=[i,t],i}function zc(e,t){var r=et();t=t===void 0?null:t;var i=r.memoizedState;if(t!==null&&Fd(t,i[1]))return i[0];if(i=e(),Ci){Ce(!0);try{e()}finally{Ce(!1)}}return r.memoizedState=[i,t],i}function ch(e,t){var r=un();return uh(r,e,t)}function O0(e,t){var r=et();return D0(r,at.memoizedState,e,t)}function C0(e,t){var r=et();return at===null?uh(r,e,t):D0(r,at.memoizedState,e,t)}function uh(e,t,r){return r===void 0||(Ia&1073741824)!==0?e.memoizedState=t:(e.memoizedState=r,e=Mv(),Ee.lanes|=e,Fa|=e,r)}function D0(e,t,r,i){return en(r,t)?r:qo.current!==null?(e=uh(e,r,i),en(e,t)||(Lt=!0),e):(Ia&42)===0?(Lt=!0,e.memoizedState=r):(e=Mv(),Ee.lanes|=e,Fa|=e,t)}function M0(e,t,r,i,s){var c=Ze.p;Ze.p=c!==0&&c<Nr?c:Nr;var h=G.T,b={};G.T=b,ph(e,!1,t,r),b._updatedFibers=new Set;try{var x=s(),k=G.S;if(k!==null&&k(b,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var z=WN(x,i);js(e,t,z,wn(e))}else js(e,t,i,wn(e))}catch(q){js(e,t,{then:function(){},status:"rejected",reason:q},wn(e))}finally{Ze.p=c,G.T=h,h===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 fh(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=U0(e).queue;M0(e,s,t,Gi,r===null?v:function(){return B0(e),r(i)})}function U0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Gi,baseState:Gi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:Gi},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function B0(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=U0(e).next.queue;js(e,t,{},wn(e))}function dh(){var e=eh(!1);return e=M0.bind(null,Ee,e.queue,!0,!1),un().memoizedState=e,[!1,e]}function L0(){var e=uo(ar)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Bs(e),t]}function j0(){var e=Ls(ar)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Bs(e),t]}function vi(){return dt(Hl)}function hh(){var e=un(),t=ot.identifierPrefix;if($e){var r=ra,i=na;r=(i&~(1<<32-Kt(i)-1)).toString(32)+r,t="«"+t+"R"+r,r=Uu++,0<r&&(t+="H"+r.toString(32)),t+="»"}else r=SO++,t="«"+t+"r"+r.toString(32)+"»";return e.memoizedState=t}function mh(){return un().memoizedState=nR.bind(null,Ee)}function nR(e,t){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var i=wn(r);e=ka(i);var s=Ta(r,e,i);s!==null&&(_t(s,r,i),Ds(s,r,i)),r=Ld(),t!=null&&s!==null&&console.error("The seed argument is not enabled outside experimental channels."),e.payload={cache:r};return}r=r.return}}function rR(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};Vc(e)?z0(t,s):(s=xd(e,t,s,i),s!==null&&(_t(s,e,i),V0(s,t,i))),At(e,i)}function H0(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),js(e,t,r,i),At(e,i)}function js(e,t,r,i){var s={lane:i,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(Vc(e))z0(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null)){var h=G.H;G.H=lr;try{var b=t.lastRenderedState,x=c(b,r);if(s.hasEagerState=!0,s.eagerState=x,en(x,b))return _c(e,t,s,0),ot===null&&vc(),!1}catch{}finally{G.H=h}}if(r=xd(e,t,s,i),r!==null)return _t(r,e,i),V0(r,t,i),!0}return!1}function ph(e,t,r,i){if(G.T===null&&Ri===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:$h(),action:i,hasEagerState:!1,eagerState:null,next:null},Vc(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=xd(e,r,i,2),t!==null&&_t(t,e,2);At(e,2)}function Vc(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function z0(e,t){Po=Mu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function V0(e,t,r){if((r&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,uc(e,r)}}function zt(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=wc(e,r.mode,0),t._debugInfo=Oe,t.return=r),be(t,function(h){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",h)},c);break}}}function Gc(e){var t=wl;return wl+=1,$o===null&&($o=o0()),l0($o,e,t)}function Hs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qc(e,t){throw t.$$typeof===lA?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
151
|
+
Incoming: %s`,V,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var r=0;r<t.length&&r<e.length;r++)if(!en(e[r],t[r]))return!1;return!0}function Xd(e,t,r,i,s,c){Va=c,Ee=t,Xn=e!==null?e._debugHookTypes:null,oa=-1,El=e!==null&&e.type!==t.type,(Object.prototype.toString.call(r)==="[object AsyncFunction]"||Object.prototype.toString.call(r)==="[object AsyncGeneratorFunction]")&&(c=X(Ee),rp.has(c)||(rp.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,G.H=e!==null&&e.memoizedState!==null?ip:Xn!==null?aE:ap,Ci=c=(t.mode&Qt)!==lt;var h=op(r,i,s);if(Ci=!1,Po&&(h=Zd(t,r,i,s)),c){Ce(!0);try{h=Zd(t,r,i,s)}finally{Ce(!1)}}return _0(e,t),h}function _0(e,t){t._debugHookTypes=Xn,t.dependencies===null?ia!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:ia}):t.dependencies._debugThenableState=ia,G.H=Bu;var r=at!==null&&at.next!==null;if(Va=0,Xn=V=kt=at=Ee=null,oa=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Mu=!1,_l=0,ia=null,r)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Lt||(e=e.dependencies,e!==null&&xc(e)&&(Lt=!0)),Cu?(Cu=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",nE.has(t)||rp.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 Zd(e,t,r,i){Ee=e;var s=0;do{if(Po&&(ia=null),_l=0,Po=!1,s>=AO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(s+=1,El=!1,kt=at=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}oa=-1,G.H=iE,c=op(t,r,i)}while(Po);return c}function aR(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?Bs(t):t,e=e.useState()[0],(at!==null?at.memoizedState:null)!==e&&(Ee.flags|=1024),t}function Qd(){var e=Uu!==0;return Uu=0,e}function Wd(e,t,r){t.updateQueue=e.updateQueue,t.flags=(t.mode&or)!==lt?t.flags&-402655237:t.flags&-2053,e.lanes&=~r}function Kd(e){if(Mu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mu=!1}Va=0,Xn=kt=at=Ee=null,oa=-1,V=null,Po=!1,_l=Uu=0,ia=null}function un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?Ee.memoizedState=kt=e:kt=kt.next=e,kt}function et(){if(at===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=at.next;var t=kt===null?Ee.memoizedState:kt.next;if(t!==null)kt=t,at=e;else{if(e===null)throw Ee.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.");at=e,e={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},kt===null?Ee.memoizedState=kt=e:kt=kt.next=e}return kt}function Jd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bs(e){var t=_l;return _l+=1,ia===null&&(ia=d0()),e=m0(ia,e,t),t=Ee,(kt===null?t.memoizedState:kt.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?ip:ap),e}function Na(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bs(e);if(e.$$typeof===xr)return dt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function gi(e){var t=null,r=Ee.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var i=Ee.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=Jd(),Ee.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0||El)for(r=t.data[t.index]=Array(e),i=0;i<e;i++)r[i]=pA;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 ar(e,t){return typeof t=="function"?t(e):t}function eh(e,t,r){var i=un();if(r!==void 0){var s=r(t);if(Ci){Ce(!0);try{r(t)}finally{Ce(!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=lR.bind(null,Ee,e),[i.memoizedState,e]}function uo(e){var t=et();return th(t,at,e)}function th(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 h=s.next;s.next=c.next,c.next=h}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=h=null,x=null,k=t,z=!1;do{var q=k.lane&-536870913;if(q!==k.lane?(He&q)===q:(Va&q)===q){var H=k.revertLane;if(H===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),q===Ri&&(z=!0);else if((Va&H)===H){k=k.next,H===Ri&&(z=!0);continue}else q={lane:0,revertLane:k.revertLane,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(b=x=q,h=c):x=x.next=q,Ee.lanes|=H,Fa|=H;q=k.action,Ci&&r(c,q),c=k.hasEagerState?k.eagerState:r(c,q)}else H={lane:q,revertLane:k.revertLane,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(b=x=H,h=c):x=x.next=H,Ee.lanes|=q,Fa|=q;k=k.next}while(k!==null&&k!==t);if(x===null?h=c:x.next=b,!en(c,e.memoizedState)&&(Lt=!0,z&&(r=Go,r!==null)))throw r;e.memoizedState=c,e.baseState=h,e.baseQueue=x,i.lastRenderedState=c}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Ls(e){var t=et(),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 h=s=s.next;do c=e(c,h.action),h=h.next;while(h!==s);en(c,t.memoizedState)||(Lt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,i]}function nh(e,t,r){var i=Ee,s=un();if($e){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var c=r();Fo||c===r()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Fo=!0)}else{if(c=t(),Fo||(r=t(),en(c,r)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fo=!0)),ot===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(He&124)!==0||E0(i,t,c)}return s.memoizedState=c,r={value:c,getSnapshot:t},s.queue=r,Lc(S0.bind(null,i,r,e),[e]),i.flags|=2048,ho(Yn|Ct,Bc(),w0.bind(null,i,r,c,t),null),c}function Dc(e,t,r){var i=Ee,s=et(),c=$e;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(),!Fo){var h=t();en(r,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fo=!0)}(h=!en((at||s).memoizedState,r))&&(s.memoizedState=r,Lt=!0),s=s.queue;var b=S0.bind(null,i,s,e);if(fn(2048,Ct,b,[e]),s.getSnapshot!==t||h||kt!==null&&kt.memoizedState.tag&Yn){if(i.flags|=2048,ho(Yn|Ct,Bc(),w0.bind(null,i,s,r,t),null),ot===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");c||(Va&124)!==0||E0(i,t,r)}return r}function E0(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ee.updateQueue,t===null?(t=Jd(),Ee.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)&&k0(e)}function S0(e,t,r){return r(function(){x0(t)&&k0(e)})}function x0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!en(e,r)}catch{return!0}}function k0(e){var t=cn(e,2);t!==null&&_t(t,e,2)}function rh(e){var t=un();if(typeof e=="function"){var r=e;if(e=r(),Ci){Ce(!0);try{r()}finally{Ce(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:e},t}function ah(e){e=rh(e);var t=e.queue,r=F0.bind(null,Ee,t);return t.dispatch=r,[e.memoizedState,r]}function ih(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=yh.bind(null,Ee,!0,r),r.dispatch=t,[e,t]}function T0(e,t){var r=et();return N0(r,at,e,t)}function N0(e,t,r,i){return e.baseState=r,th(e,at,typeof i=="function"?i:ar)}function R0(e,t){var r=et();return at!==null?N0(r,at,e,t):(r.baseState=e,[e,r.queue.dispatch])}function iR(e,t,r,i,s){if(Ic(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(h){c.listeners.push(h)}};G.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=G.T,h={};G.T=h,G.T._updatedFibers=new Set;try{var b=r(s,i),x=G.S;x!==null&&x(h,b),O0(e,t,b)}catch(k){oh(e,t,k)}finally{G.T=c,c===null&&h._updatedFibers&&(e=h._updatedFibers.size,h._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{h=r(s,i),O0(e,t,h)}catch(k){oh(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 oh(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 oh(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 fo(e,t){if($e){var r=ot.formState;if(r!==null){e:{var i=Ee;if($e){if(bt){t:{for(var s=bt,c=Or;s.nodeType!==8;){if(!c){s=null;break t}if(s=zn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c===Dp||c===rw?s:null}if(s){bt=zn(s.nextSibling),i=s.data===Dp;break e}}mi(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,Ee,i),i.dispatch=r,i=rh(!1),c=yh.bind(null,Ee,!1,i.queue),i=un(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,r=iR.bind(null,Ee,s,c,r),s.dispatch=r,i.memoizedState=e,[t,r,!1]}function Mc(e){var t=et();return U0(t,at,e)}function U0(e,t,r){if(t=th(e,t,M0)[0],e=uo(ar)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Bs(t)}catch(h){throw h===yl?Ou:h}else i=t;t=et();var s=t.queue,c=s.dispatch;return r!==t.memoizedState&&(Ee.flags|=2048,ho(Yn|Ct,Bc(),oR.bind(null,s,r),null)),[i,c,e]}function oR(e,t){e.action=t}function Uc(e){var t=et(),r=at;if(r!==null)return U0(t,r,e);et(),t=t.memoizedState,r=et();var i=r.queue.dispatch;return r.memoizedState=e,[t,i,!1]}function ho(e,t,r,i){return e={tag:e,create:r,deps:i,inst:t,next:null},t=Ee.updateQueue,t===null&&(t=Jd(),Ee.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 Bc(){return{destroy:void 0,resource:void 0}}function sh(e){var t=un();return e={current:e},t.memoizedState=e}function yi(e,t,r,i){var s=un();i=i===void 0?null:i,Ee.flags|=e,s.memoizedState=ho(Yn|t,Bc(),r,i)}function fn(e,t,r,i){var s=et();i=i===void 0?null:i;var c=s.memoizedState.inst;at!==null&&i!==null&&Yd(i,at.memoizedState.deps)?s.memoizedState=ho(t,c,r,i):(Ee.flags|=e,s.memoizedState=ho(Yn|t,c,r,i))}function Lc(e,t){(Ee.mode&or)!==lt&&(Ee.mode&V_)===lt?yi(276826112,Ct,e,t):yi(8390656,Ct,e,t)}function lh(e,t){var r=4194308;return(Ee.mode&or)!==lt&&(r|=134217728),yi(r,Ft,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 ch(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;(Ee.mode&or)!==lt&&(i|=134217728),yi(i,Ft,B0.bind(null,t,e),r)}function jc(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,Ft,B0.bind(null,t,e),r)}function uh(e,t){return un().memoizedState=[e,t===void 0?null:t],e}function Hc(e,t){var r=et();t=t===void 0?null:t;var i=r.memoizedState;return t!==null&&Yd(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function fh(e,t){var r=un();t=t===void 0?null:t;var i=e();if(Ci){Ce(!0);try{e()}finally{Ce(!1)}}return r.memoizedState=[i,t],i}function zc(e,t){var r=et();t=t===void 0?null:t;var i=r.memoizedState;if(t!==null&&Yd(t,i[1]))return i[0];if(i=e(),Ci){Ce(!0);try{e()}finally{Ce(!1)}}return r.memoizedState=[i,t],i}function dh(e,t){var r=un();return hh(r,e,t)}function L0(e,t){var r=et();return H0(r,at.memoizedState,e,t)}function j0(e,t){var r=et();return at===null?hh(r,e,t):H0(r,at.memoizedState,e,t)}function hh(e,t,r){return r===void 0||(Va&1073741824)!==0?e.memoizedState=t:(e.memoizedState=r,e=zv(),Ee.lanes|=e,Fa|=e,r)}function H0(e,t,r,i){return en(r,t)?r:qo.current!==null?(e=hh(e,r,i),en(e,t)||(Lt=!0),e):(Va&42)===0?(Lt=!0,e.memoizedState=r):(e=zv(),Ee.lanes|=e,Fa|=e,t)}function z0(e,t,r,i,s){var c=Ze.p;Ze.p=c!==0&&c<Nr?c:Nr;var h=G.T,b={};G.T=b,yh(e,!1,t,r),b._updatedFibers=new Set;try{var x=s(),k=G.S;if(k!==null&&k(b,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var z=nR(x,i);js(e,t,z,wn(e))}else js(e,t,i,wn(e))}catch(q){js(e,t,{then:function(){},status:"rejected",reason:q},wn(e))}finally{Ze.p=c,G.T=h,h===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 mh(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,Gi,r===null?v:function(){return V0(e),r(i)})}function I0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Gi,baseState:Gi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:Gi},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function V0(e){G.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;js(e,t,{},wn(e))}function ph(){var e=rh(!1);return e=z0.bind(null,Ee,e.queue,!0,!1),un().memoizedState=e,[!1,e]}function G0(){var e=uo(ar)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Bs(e),t]}function q0(){var e=Ls(ar)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Bs(e),t]}function vi(){return dt(Hl)}function bh(){var e=un(),t=ot.identifierPrefix;if($e){var r=ra,i=na;r=(i&~(1<<32-Kt(i)-1)).toString(32)+r,t="«"+t+"R"+r,r=Uu++,0<r&&(t+="H"+r.toString(32)),t+="»"}else r=RO++,t="«"+t+"r"+r.toString(32)+"»";return e.memoizedState=t}function gh(){return un().memoizedState=sR.bind(null,Ee)}function sR(e,t){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var i=wn(r);e=ka(i);var s=Ta(r,e,i);s!==null&&(_t(s,r,i),Ds(s,r,i)),r=zd(),t!=null&&s!==null&&console.error("The seed argument is not enabled outside experimental channels."),e.payload={cache:r};return}r=r.return}}function lR(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};Ic(e)?P0(t,s):(s=Nd(e,t,s,i),s!==null&&(_t(s,e,i),$0(s,t,i))),At(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),js(e,t,r,i),At(e,i)}function js(e,t,r,i){var s={lane:i,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ic(e))P0(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null)){var h=G.H;G.H=lr;try{var b=t.lastRenderedState,x=c(b,r);if(s.hasEagerState=!0,s.eagerState=x,en(x,b))return _c(e,t,s,0),ot===null&&vc(),!1}catch{}finally{G.H=h}}if(r=Nd(e,t,s,i),r!==null)return _t(r,e,i),$0(r,t,i),!0}return!1}function yh(e,t,r,i){if(G.T===null&&Ri===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:Zh(),action:i,hasEagerState:!1,eagerState:null,next:null},Ic(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Nd(e,r,i,2),t!==null&&_t(t,e,2);At(e,2)}function Ic(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function P0(e,t){Po=Mu=!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,uc(e,r)}}function zt(e){var t=Oe;return e!=null&&(Oe=t===null?e:t.concat(e)),t}function Vc(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=wc(e,r.mode,0),t._debugInfo=Oe,t.return=r),be(t,function(h){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",h)},c);break}}}function Gc(e){var t=wl;return wl+=1,$o===null&&($o=d0()),m0($o,e,t)}function Hs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qc(e,t){throw t.$$typeof===hA?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
152
152
|
- Multiple copies of the "react" package is used.
|
|
153
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 Fc(e,t){var r=X(e)||"Component";
|
|
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 Fc(e,t){var r=X(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
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 Pc(e,t){var r=X(e)||"Component";
|
|
156
|
+
<%s>{%s}</%s>`,t,t,r,t,r))}function Pc(e,t){var r=X(e)||"Component";EE[r]||(EE[r]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
157
157
|
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
158
|
-
<%s>%s</%s>`,r,t,r))}function I0(e){function t(R,O){if(e){var B=R.deletions;B===null?(R.deletions=[O],R.flags|=16):B.push(O)}}function r(R,O){if(!e)return null;for(;O!==null;)t(R,O),O=O.sibling;return null}function i(R){for(var O=new Map;R!==null;)R.key!==null?O.set(R.key,R):O.set(R.index,R),R=R.sibling;return O}function s(R,O){return R=Fr(R,O),R.index=0,R.sibling=null,R}function c(R,O,B){return R.index=B,e?(B=R.alternate,B!==null?(B=B.index,B<O?(R.flags|=67108866,O):B):(R.flags|=67108866,O)):(R.flags|=1048576,O)}function h(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function b(R,O,B,Y){return O===null||O.tag!==6?(O=Ad(B,R.mode,Y),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Oe,O):(O=s(O,B),O.return=R,O._debugInfo=Oe,O)}function x(R,O,B,Y){var re=B.type;return re===xo?(O=z(R,O,B.props.children,Y,B.key),Ic(B,O,R),O):O!==null&&(O.elementType===re||Xy(O,B)||typeof re=="object"&&re!==null&&re.$$typeof===Sn&&Ga(re)===O.type)?(O=s(O,B.props),Hs(O,B),O.return=R,O._debugOwner=B._owner,O._debugInfo=Oe,O):(O=wc(B,R.mode,Y),Hs(O,B),O.return=R,O._debugInfo=Oe,O)}function k(R,O,B,Y){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=Od(B,R.mode,Y),O.return=R,O._debugInfo=Oe,O):(O=s(O,B.children||[]),O.return=R,O._debugInfo=Oe,O)}function z(R,O,B,Y,re){return O===null||O.tag!==7?(O=ui(B,R.mode,Y,re),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Oe,O):(O=s(O,B),O.return=R,O._debugInfo=Oe,O)}function q(R,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Ad(""+O,R.mode,B),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Oe,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Ma:return B=wc(O,R.mode,B),Hs(B,O),B.return=R,R=zt(O._debugInfo),B._debugInfo=Oe,Oe=R,B;case So:return O=Od(O,R.mode,B),O.return=R,O._debugInfo=Oe,O;case Sn:var Y=zt(O._debugInfo);return O=Ga(O),R=q(R,O,B),Oe=Y,R}if(Gt(O)||F(O))return B=ui(O,R.mode,B,null),B.return=R,B._debugOwner=R,B._debugTask=R._debugTask,R=zt(O._debugInfo),B._debugInfo=Oe,Oe=R,B;if(typeof O.then=="function")return Y=zt(O._debugInfo),R=q(R,Gc(O),B),Oe=Y,R;if(O.$$typeof===xr)return q(R,kc(R,O),B);qc(R,O)}return typeof O=="function"&&Fc(R,O),typeof O=="symbol"&&Pc(R,O),null}function H(R,O,B,Y){var re=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return re!==null?null:b(R,O,""+B,Y);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Ma:return B.key===re?(re=zt(B._debugInfo),R=x(R,O,B,Y),Oe=re,R):null;case So:return B.key===re?k(R,O,B,Y):null;case Sn:return re=zt(B._debugInfo),B=Ga(B),R=H(R,O,B,Y),Oe=re,R}if(Gt(B)||F(B))return re!==null?null:(re=zt(B._debugInfo),R=z(R,O,B,Y,null),Oe=re,R);if(typeof B.then=="function")return re=zt(B._debugInfo),R=H(R,O,Gc(B),Y),Oe=re,R;if(B.$$typeof===xr)return H(R,O,kc(R,B),Y);qc(R,B)}return typeof B=="function"&&Fc(R,B),typeof B=="symbol"&&Pc(R,B),null}function P(R,O,B,Y,re){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return R=R.get(B)||null,b(O,R,""+Y,re);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Ma:return B=R.get(Y.key===null?B:Y.key)||null,R=zt(Y._debugInfo),O=x(O,B,Y,re),Oe=R,O;case So:return R=R.get(Y.key===null?B:Y.key)||null,k(O,R,Y,re);case Sn:var Se=zt(Y._debugInfo);return Y=Ga(Y),O=P(R,O,B,Y,re),Oe=Se,O}if(Gt(Y)||F(Y))return B=R.get(B)||null,R=zt(Y._debugInfo),O=z(O,B,Y,re,null),Oe=R,O;if(typeof Y.then=="function")return Se=zt(Y._debugInfo),O=P(R,O,B,Gc(Y),re),Oe=Se,O;if(Y.$$typeof===xr)return P(R,O,B,kc(O,Y),re);qc(O,Y)}return typeof Y=="function"&&Fc(O,Y),typeof Y=="symbol"&&Pc(O,Y),null}function ce(R,O,B,Y){if(typeof B!="object"||B===null)return Y;switch(B.$$typeof){case Ma:case So:m(R,O,B);var re=B.key;if(typeof re!="string")break;if(Y===null){Y=new Set,Y.add(re);break}if(!Y.has(re)){Y.add(re);break}be(O,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.",re)});break;case Sn:B=Ga(B),ce(R,O,B,Y)}return Y}function ve(R,O,B,Y){for(var re=null,Se=null,ue=null,xe=O,ke=O=0,ct=null;xe!==null&&ke<B.length;ke++){xe.index>ke?(ct=xe,xe=null):ct=xe.sibling;var wt=H(R,xe,B[ke],Y);if(wt===null){xe===null&&(xe=ct);break}re=ce(R,wt,B[ke],re),e&&xe&&wt.alternate===null&&t(R,xe),O=c(wt,O,ke),ue===null?Se=wt:ue.sibling=wt,ue=wt,xe=ct}if(ke===B.length)return r(R,xe),$e&&fi(R,ke),Se;if(xe===null){for(;ke<B.length;ke++)xe=q(R,B[ke],Y),xe!==null&&(re=ce(R,xe,B[ke],re),O=c(xe,O,ke),ue===null?Se=xe:ue.sibling=xe,ue=xe);return $e&&fi(R,ke),Se}for(xe=i(xe);ke<B.length;ke++)ct=P(xe,R,ke,B[ke],Y),ct!==null&&(re=ce(R,ct,B[ke],re),e&&ct.alternate!==null&&xe.delete(ct.key===null?ke:ct.key),O=c(ct,O,ke),ue===null?Se=ct:ue.sibling=ct,ue=ct);return e&&xe.forEach(function(da){return t(R,da)}),$e&&fi(R,ke),Se}function st(R,O,B,Y){if(B==null)throw Error("An iterable object provided no iterator.");for(var re=null,Se=null,ue=O,xe=O=0,ke=null,ct=null,wt=B.next();ue!==null&&!wt.done;xe++,wt=B.next()){ue.index>xe?(ke=ue,ue=null):ke=ue.sibling;var da=H(R,ue,wt.value,Y);if(da===null){ue===null&&(ue=ke);break}ct=ce(R,da,wt.value,ct),e&&ue&&da.alternate===null&&t(R,ue),O=c(da,O,xe),Se===null?re=da:Se.sibling=da,Se=da,ue=ke}if(wt.done)return r(R,ue),$e&&fi(R,xe),re;if(ue===null){for(;!wt.done;xe++,wt=B.next())ue=q(R,wt.value,Y),ue!==null&&(ct=ce(R,ue,wt.value,ct),O=c(ue,O,xe),Se===null?re=ue:Se.sibling=ue,Se=ue);return $e&&fi(R,xe),re}for(ue=i(ue);!wt.done;xe++,wt=B.next())ke=P(ue,R,xe,wt.value,Y),ke!==null&&(ct=ce(R,ke,wt.value,ct),e&&ke.alternate!==null&&ue.delete(ke.key===null?xe:ke.key),O=c(ke,O,xe),Se===null?re=ke:Se.sibling=ke,Se=ke);return e&&ue.forEach(function(QO){return t(R,QO)}),$e&&fi(R,xe),re}function Ve(R,O,B,Y){if(typeof B=="object"&&B!==null&&B.type===xo&&B.key===null&&(Ic(B,null,R),B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case Ma:var re=zt(B._debugInfo);e:{for(var Se=B.key;O!==null;){if(O.key===Se){if(Se=B.type,Se===xo){if(O.tag===7){r(R,O.sibling),Y=s(O,B.props.children),Y.return=R,Y._debugOwner=B._owner,Y._debugInfo=Oe,Ic(B,Y,R),R=Y;break e}}else if(O.elementType===Se||Xy(O,B)||typeof Se=="object"&&Se!==null&&Se.$$typeof===Sn&&Ga(Se)===O.type){r(R,O.sibling),Y=s(O,B.props),Hs(Y,B),Y.return=R,Y._debugOwner=B._owner,Y._debugInfo=Oe,R=Y;break e}r(R,O);break}else t(R,O);O=O.sibling}B.type===xo?(Y=ui(B.props.children,R.mode,Y,B.key),Y.return=R,Y._debugOwner=R,Y._debugTask=R._debugTask,Y._debugInfo=Oe,Ic(B,Y,R),R=Y):(Y=wc(B,R.mode,Y),Hs(Y,B),Y.return=R,Y._debugInfo=Oe,R=Y)}return R=h(R),Oe=re,R;case So:e:{for(re=B,B=re.key;O!==null;){if(O.key===B)if(O.tag===4&&O.stateNode.containerInfo===re.containerInfo&&O.stateNode.implementation===re.implementation){r(R,O.sibling),Y=s(O,re.children||[]),Y.return=R,R=Y;break e}else{r(R,O);break}else t(R,O);O=O.sibling}Y=Od(re,R.mode,Y),Y.return=R,R=Y}return h(R);case Sn:return re=zt(B._debugInfo),B=Ga(B),R=Ve(R,O,B,Y),Oe=re,R}if(Gt(B))return re=zt(B._debugInfo),R=ve(R,O,B,Y),Oe=re,R;if(F(B)){if(re=zt(B._debugInfo),Se=F(B),typeof Se!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var ue=Se.call(B);return ue===B?(R.tag!==0||Object.prototype.toString.call(R.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(ue)!=="[object Generator]")&&(dE||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."),dE=!0):B.entries!==Se||ip||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ip=!0),R=st(R,O,ue,Y),Oe=re,R}if(typeof B.then=="function")return re=zt(B._debugInfo),R=Ve(R,O,Gc(B),Y),Oe=re,R;if(B.$$typeof===xr)return Ve(R,O,kc(R,B),Y);qc(R,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(re=""+B,O!==null&&O.tag===6?(r(R,O.sibling),Y=s(O,re),Y.return=R,R=Y):(r(R,O),Y=Ad(re,R.mode,Y),Y.return=R,Y._debugOwner=R,Y._debugTask=R._debugTask,Y._debugInfo=Oe,R=Y),h(R)):(typeof B=="function"&&Fc(R,B),typeof B=="symbol"&&Pc(R,B),r(R,O))}return function(R,O,B,Y){var re=Oe;Oe=null;try{wl=0;var Se=Ve(R,O,B,Y);return $o=null,Se}catch(ct){if(ct===yl||ct===Ou)throw ct;var ue=g(29,ct,null,R.mode);ue.lanes=Y,ue.return=R;var xe=ue._debugInfo=Oe;if(ue._debugOwner=R._debugOwner,ue._debugTask=R._debugTask,xe!=null){for(var ke=xe.length-1;0<=ke;ke--)if(typeof xe[ke].stack=="string"){ue._debugOwner=xe[ke],ue._debugTask=xe[ke].debugTask;break}}return ue}finally{Oe=re}}}function Ra(e){var t=e.alternate;se(Dt,Dt.current&Xo,e),se(Xn,e,e),Dr===null&&(t===null||qo.current!==null||t.memoizedState!==null)&&(Dr=e)}function G0(e){if(e.tag===22){if(se(Dt,Dt.current,e),se(Xn,e,e),Dr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Dr=e)}}else Aa(e)}function Aa(e){se(Dt,Dt.current,e),se(Xn,Xn.current,e)}function Yr(e){ne(Xn,e),Dr===e&&(Dr=null),ne(Dt,e)}function $c(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===ca||rm(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 bh(e){if(e!==null&&typeof e!="function"){var t=String(e);NE.has(t)||(NE.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function gh(e,t,r,i){var s=e.memoizedState,c=r(i,s);if(e.mode&Qt){Ce(!0);try{c=r(i,s)}finally{Ce(!1)}}c===void 0&&(t=Z(t)||"Component",SE.has(t)||(SE.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 q0(e,t,r,i,s,c,h){var b=e.stateNode;if(typeof b.shouldComponentUpdate=="function"){if(r=b.shouldComponentUpdate(i,c,h),e.mode&Qt){Ce(!0);try{r=b.shouldComponentUpdate(i,c,h)}finally{Ce(!1)}}return r===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Z(t)||"Component"),r}return t.prototype&&t.prototype.isPureReactComponent?!ks(r,i)||!ks(s,c):!0}function F0(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=X(e)||"Component",yE.has(e)||(yE.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),op.enqueueReplaceState(t,t.state,null))}function _i(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 P0(e){sp(e),console.warn(`%s
|
|
158
|
+
<%s>%s</%s>`,r,t,r))}function Y0(e){function t(R,O){if(e){var B=R.deletions;B===null?(R.deletions=[O],R.flags|=16):B.push(O)}}function r(R,O){if(!e)return null;for(;O!==null;)t(R,O),O=O.sibling;return null}function i(R){for(var O=new Map;R!==null;)R.key!==null?O.set(R.key,R):O.set(R.index,R),R=R.sibling;return O}function s(R,O){return R=Fr(R,O),R.index=0,R.sibling=null,R}function c(R,O,B){return R.index=B,e?(B=R.alternate,B!==null?(B=B.index,B<O?(R.flags|=67108866,O):B):(R.flags|=67108866,O)):(R.flags|=1048576,O)}function h(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function b(R,O,B,Y){return O===null||O.tag!==6?(O=Dd(B,R.mode,Y),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Oe,O):(O=s(O,B),O.return=R,O._debugInfo=Oe,O)}function x(R,O,B,Y){var re=B.type;return re===xo?(O=z(R,O,B.props.children,Y,B.key),Vc(B,O,R),O):O!==null&&(O.elementType===re||e0(O,B)||typeof re=="object"&&re!==null&&re.$$typeof===Sn&&Ga(re)===O.type)?(O=s(O,B.props),Hs(O,B),O.return=R,O._debugOwner=B._owner,O._debugInfo=Oe,O):(O=wc(B,R.mode,Y),Hs(O,B),O.return=R,O._debugInfo=Oe,O)}function k(R,O,B,Y){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=Md(B,R.mode,Y),O.return=R,O._debugInfo=Oe,O):(O=s(O,B.children||[]),O.return=R,O._debugInfo=Oe,O)}function z(R,O,B,Y,re){return O===null||O.tag!==7?(O=ui(B,R.mode,Y,re),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Oe,O):(O=s(O,B),O.return=R,O._debugInfo=Oe,O)}function q(R,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Dd(""+O,R.mode,B),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Oe,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Ma:return B=wc(O,R.mode,B),Hs(B,O),B.return=R,R=zt(O._debugInfo),B._debugInfo=Oe,Oe=R,B;case So:return O=Md(O,R.mode,B),O.return=R,O._debugInfo=Oe,O;case Sn:var Y=zt(O._debugInfo);return O=Ga(O),R=q(R,O,B),Oe=Y,R}if(Gt(O)||F(O))return B=ui(O,R.mode,B,null),B.return=R,B._debugOwner=R,B._debugTask=R._debugTask,R=zt(O._debugInfo),B._debugInfo=Oe,Oe=R,B;if(typeof O.then=="function")return Y=zt(O._debugInfo),R=q(R,Gc(O),B),Oe=Y,R;if(O.$$typeof===xr)return q(R,kc(R,O),B);qc(R,O)}return typeof O=="function"&&Fc(R,O),typeof O=="symbol"&&Pc(R,O),null}function H(R,O,B,Y){var re=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return re!==null?null:b(R,O,""+B,Y);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Ma:return B.key===re?(re=zt(B._debugInfo),R=x(R,O,B,Y),Oe=re,R):null;case So:return B.key===re?k(R,O,B,Y):null;case Sn:return re=zt(B._debugInfo),B=Ga(B),R=H(R,O,B,Y),Oe=re,R}if(Gt(B)||F(B))return re!==null?null:(re=zt(B._debugInfo),R=z(R,O,B,Y,null),Oe=re,R);if(typeof B.then=="function")return re=zt(B._debugInfo),R=H(R,O,Gc(B),Y),Oe=re,R;if(B.$$typeof===xr)return H(R,O,kc(R,B),Y);qc(R,B)}return typeof B=="function"&&Fc(R,B),typeof B=="symbol"&&Pc(R,B),null}function P(R,O,B,Y,re){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return R=R.get(B)||null,b(O,R,""+Y,re);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Ma:return B=R.get(Y.key===null?B:Y.key)||null,R=zt(Y._debugInfo),O=x(O,B,Y,re),Oe=R,O;case So:return R=R.get(Y.key===null?B:Y.key)||null,k(O,R,Y,re);case Sn:var Se=zt(Y._debugInfo);return Y=Ga(Y),O=P(R,O,B,Y,re),Oe=Se,O}if(Gt(Y)||F(Y))return B=R.get(B)||null,R=zt(Y._debugInfo),O=z(O,B,Y,re,null),Oe=R,O;if(typeof Y.then=="function")return Se=zt(Y._debugInfo),O=P(R,O,B,Gc(Y),re),Oe=Se,O;if(Y.$$typeof===xr)return P(R,O,B,kc(O,Y),re);qc(O,Y)}return typeof Y=="function"&&Fc(O,Y),typeof Y=="symbol"&&Pc(O,Y),null}function ce(R,O,B,Y){if(typeof B!="object"||B===null)return Y;switch(B.$$typeof){case Ma:case So:m(R,O,B);var re=B.key;if(typeof re!="string")break;if(Y===null){Y=new Set,Y.add(re);break}if(!Y.has(re)){Y.add(re);break}be(O,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.",re)});break;case Sn:B=Ga(B),ce(R,O,B,Y)}return Y}function ve(R,O,B,Y){for(var re=null,Se=null,ue=null,xe=O,ke=O=0,ct=null;xe!==null&&ke<B.length;ke++){xe.index>ke?(ct=xe,xe=null):ct=xe.sibling;var wt=H(R,xe,B[ke],Y);if(wt===null){xe===null&&(xe=ct);break}re=ce(R,wt,B[ke],re),e&&xe&&wt.alternate===null&&t(R,xe),O=c(wt,O,ke),ue===null?Se=wt:ue.sibling=wt,ue=wt,xe=ct}if(ke===B.length)return r(R,xe),$e&&fi(R,ke),Se;if(xe===null){for(;ke<B.length;ke++)xe=q(R,B[ke],Y),xe!==null&&(re=ce(R,xe,B[ke],re),O=c(xe,O,ke),ue===null?Se=xe:ue.sibling=xe,ue=xe);return $e&&fi(R,ke),Se}for(xe=i(xe);ke<B.length;ke++)ct=P(xe,R,ke,B[ke],Y),ct!==null&&(re=ce(R,ct,B[ke],re),e&&ct.alternate!==null&&xe.delete(ct.key===null?ke:ct.key),O=c(ct,O,ke),ue===null?Se=ct:ue.sibling=ct,ue=ct);return e&&xe.forEach(function(da){return t(R,da)}),$e&&fi(R,ke),Se}function st(R,O,B,Y){if(B==null)throw Error("An iterable object provided no iterator.");for(var re=null,Se=null,ue=O,xe=O=0,ke=null,ct=null,wt=B.next();ue!==null&&!wt.done;xe++,wt=B.next()){ue.index>xe?(ke=ue,ue=null):ke=ue.sibling;var da=H(R,ue,wt.value,Y);if(da===null){ue===null&&(ue=ke);break}ct=ce(R,da,wt.value,ct),e&&ue&&da.alternate===null&&t(R,ue),O=c(da,O,xe),Se===null?re=da:Se.sibling=da,Se=da,ue=ke}if(wt.done)return r(R,ue),$e&&fi(R,xe),re;if(ue===null){for(;!wt.done;xe++,wt=B.next())ue=q(R,wt.value,Y),ue!==null&&(ct=ce(R,ue,wt.value,ct),O=c(ue,O,xe),Se===null?re=ue:Se.sibling=ue,Se=ue);return $e&&fi(R,xe),re}for(ue=i(ue);!wt.done;xe++,wt=B.next())ke=P(ue,R,xe,wt.value,Y),ke!==null&&(ct=ce(R,ke,wt.value,ct),e&&ke.alternate!==null&&ue.delete(ke.key===null?xe:ke.key),O=c(ke,O,xe),Se===null?re=ke:Se.sibling=ke,Se=ke);return e&&ue.forEach(function(tC){return t(R,tC)}),$e&&fi(R,xe),re}function Ie(R,O,B,Y){if(typeof B=="object"&&B!==null&&B.type===xo&&B.key===null&&(Vc(B,null,R),B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case Ma:var re=zt(B._debugInfo);e:{for(var Se=B.key;O!==null;){if(O.key===Se){if(Se=B.type,Se===xo){if(O.tag===7){r(R,O.sibling),Y=s(O,B.props.children),Y.return=R,Y._debugOwner=B._owner,Y._debugInfo=Oe,Vc(B,Y,R),R=Y;break e}}else if(O.elementType===Se||e0(O,B)||typeof Se=="object"&&Se!==null&&Se.$$typeof===Sn&&Ga(Se)===O.type){r(R,O.sibling),Y=s(O,B.props),Hs(Y,B),Y.return=R,Y._debugOwner=B._owner,Y._debugInfo=Oe,R=Y;break e}r(R,O);break}else t(R,O);O=O.sibling}B.type===xo?(Y=ui(B.props.children,R.mode,Y,B.key),Y.return=R,Y._debugOwner=R,Y._debugTask=R._debugTask,Y._debugInfo=Oe,Vc(B,Y,R),R=Y):(Y=wc(B,R.mode,Y),Hs(Y,B),Y.return=R,Y._debugInfo=Oe,R=Y)}return R=h(R),Oe=re,R;case So:e:{for(re=B,B=re.key;O!==null;){if(O.key===B)if(O.tag===4&&O.stateNode.containerInfo===re.containerInfo&&O.stateNode.implementation===re.implementation){r(R,O.sibling),Y=s(O,re.children||[]),Y.return=R,R=Y;break e}else{r(R,O);break}else t(R,O);O=O.sibling}Y=Md(re,R.mode,Y),Y.return=R,R=Y}return h(R);case Sn:return re=zt(B._debugInfo),B=Ga(B),R=Ie(R,O,B,Y),Oe=re,R}if(Gt(B))return re=zt(B._debugInfo),R=ve(R,O,B,Y),Oe=re,R;if(F(B)){if(re=zt(B._debugInfo),Se=F(B),typeof Se!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var ue=Se.call(B);return ue===B?(R.tag!==0||Object.prototype.toString.call(R.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(ue)!=="[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):B.entries!==Se||lp||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),lp=!0),R=st(R,O,ue,Y),Oe=re,R}if(typeof B.then=="function")return re=zt(B._debugInfo),R=Ie(R,O,Gc(B),Y),Oe=re,R;if(B.$$typeof===xr)return Ie(R,O,kc(R,B),Y);qc(R,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(re=""+B,O!==null&&O.tag===6?(r(R,O.sibling),Y=s(O,re),Y.return=R,R=Y):(r(R,O),Y=Dd(re,R.mode,Y),Y.return=R,Y._debugOwner=R,Y._debugTask=R._debugTask,Y._debugInfo=Oe,R=Y),h(R)):(typeof B=="function"&&Fc(R,B),typeof B=="symbol"&&Pc(R,B),r(R,O))}return function(R,O,B,Y){var re=Oe;Oe=null;try{wl=0;var Se=Ie(R,O,B,Y);return $o=null,Se}catch(ct){if(ct===yl||ct===Ou)throw ct;var ue=y(29,ct,null,R.mode);ue.lanes=Y,ue.return=R;var xe=ue._debugInfo=Oe;if(ue._debugOwner=R._debugOwner,ue._debugTask=R._debugTask,xe!=null){for(var ke=xe.length-1;0<=ke;ke--)if(typeof xe[ke].stack=="string"){ue._debugOwner=xe[ke],ue._debugTask=xe[ke].debugTask;break}}return ue}finally{Oe=re}}}function Ra(e){var t=e.alternate;se(Dt,Dt.current&Xo,e),se(Zn,e,e),Dr===null&&(t===null||qo.current!==null||t.memoizedState!==null)&&(Dr=e)}function X0(e){if(e.tag===22){if(se(Dt,Dt.current,e),se(Zn,e,e),Dr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Dr=e)}}else Aa(e)}function Aa(e){se(Dt,Dt.current,e),se(Zn,Zn.current,e)}function Yr(e){ne(Zn,e),Dr===e&&(Dr=null),ne(Dt,e)}function $c(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===ca||om(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 vh(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 _h(e,t,r,i){var s=e.memoizedState,c=r(i,s);if(e.mode&Qt){Ce(!0);try{c=r(i,s)}finally{Ce(!1)}}c===void 0&&(t=Z(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,h){var b=e.stateNode;if(typeof b.shouldComponentUpdate=="function"){if(r=b.shouldComponentUpdate(i,c,h),e.mode&Qt){Ce(!0);try{r=b.shouldComponentUpdate(i,c,h)}finally{Ce(!1)}}return r===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Z(t)||"Component"),r}return t.prototype&&t.prototype.isPureReactComponent?!ks(r,i)||!ks(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=X(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)),cp.enqueueReplaceState(t,t.state,null))}function _i(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){up(e),console.warn(`%s
|
|
159
159
|
|
|
160
160
|
%s
|
|
161
161
|
`,Zo?"An error occurred in the <"+Zo+"> 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
|
|
162
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function K0(e){var t=Zo?"The above error occurred in the <"+Zo+"> 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, "+((fp||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var i=e.environmentName;e=[`%o
|
|
163
163
|
|
|
164
164
|
%s
|
|
165
165
|
|
|
166
166
|
%s
|
|
167
|
-
`,e,t,r].slice(0),typeof e[0]=="string"?e.splice(0,1,
|
|
167
|
+
`,e,t,r].slice(0),typeof e[0]=="string"?e.splice(0,1,fw+e[0],dw,ef+i+ef,hw):e.splice(0,0,fw,dw,ef+i+ef,hw),e.unshift(console),i=JO.apply(console.error,e),i()}else console.error(`%o
|
|
168
168
|
|
|
169
169
|
%s
|
|
170
170
|
|
|
171
171
|
%s
|
|
172
|
-
`,e,t,r)}function
|
|
172
|
+
`,e,t,r)}function J0(e){up(e)}function Yc(e,t){try{Zo=t.source?X(t.source):null,fp=null;var r=t.value;if(G.actQueue!==null)G.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{Zo=r.source?X(r.source):null,fp=X(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 Eh(e,t,r){return r=ka(r),r.tag=ep,r.payload={element:null},r.callback=function(){be(t.source,Yc,e,t)},r}function wh(e){return e=ka(e),e.tag=ep,e}function Sh(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),be(i.source,ev,t,r,i)}}var h=r.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){t0(r),be(i.source,ev,t,r,i),typeof s!="function"&&($a===null?$a=new Set([this]):$a.add(this)),OO(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.",X(r)||"Unknown")})}function cR(e,t,r,i,s){if(r.flags|=32768,ir&&Ps(e,s),i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=r.alternate,t!==null&&As(t,r,s,!0),$e&&(aa=!0),r=Zn.current,r!==null){switch(r.tag){case 13:return Dr===null?Gh():r.alternate===null&>===la&&(gt=pp),r.flags&=-257,r.flags|=65536,r.lanes=s,i===Jm?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([i]):t.add(i),Ph(e,i,s)),!1;case 22:return r.flags|=65536,i===Jm?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)),Ph(e,i,s)),!1}throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}return Ph(e,i,s),Gh(),!1}if($e)return aa=!0,t=Zn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==Zm&&Rs(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!==Zm&&Rs(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=Eh(e.stateNode,i,s),Oc(e,s),gt!==Di&&(gt=Jo)),!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(Ol===null?Ol=[c]:Ol.push(c),gt!==Di&&(gt=Jo),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=Eh(r.stateNode,i,e),Oc(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"&&($a===null||!$a.has(c))))return r.flags|=65536,s&=-s,r.lanes|=s,s=wh(s),Sh(s,e,r,i),Oc(r,s),!1}r=r.return}while(r!==null);return!1}function It(e,t,r,i){t.child=e===null?wE(t,null,r,i):Yo(t,e.child,r,i)}function tv(e,t,r,i,s){r=r.render;var c=t.ref;if("ref"in i){var h={};for(var b in i)b!=="ref"&&(h[b]=i[b])}else h=i;return pi(t),ft(t),i=Xd(e,t,r,h,c,s),b=Qd(),Mt(),e!==null&&!Lt?(Wd(e,t,s),Xr(e,t,s)):($e&&b&&Ud(t),t.flags|=1,It(e,t,i,s),t.child)}function nv(e,t,r,i,s){if(e===null){var c=r.type;return typeof c=="function"&&!Od(c)&&c.defaultProps===void 0&&r.compare===null?(r=ci(c),t.tag=15,t.type=r,kh(t,c),rv(e,t,r,i,s)):(e=Cd(r.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ch(e,s)){var h=c.memoizedProps;if(r=r.compare,r=r!==null?r:ks,r(h,i)&&e.ref===t.ref)return Xr(e,t,s)}return t.flags|=1,e=Fr(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(ks(c,i)&&e.ref===t.ref&&t.type===e.type)if(Lt=!1,t.pendingProps=i=c,Ch(e,s))(e.flags&131072)!==0&&(Lt=!0);else return t.lanes=e.lanes,Xr(e,t,s)}return xh(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&&Rc(t,c!==null?c.cachePool:null),c!==null?v0(t,c):Pd(t),X0(t);else return t.lanes=t.childLanes=536870912,iv(e,t,c!==null?c.baseLanes|r:r,r)}else c!==null?(Rc(t,c.cachePool),v0(t,c),Aa(t),t.memoizedState=null):(e!==null&&Rc(t,null),Pd(t),Aa(t));return It(e,t,s,r),t.child}function iv(e,t,r,i){var s=Gd();return s=s===null?null:{parent:Ot._currentValue,pool:s},t.memoizedState={baseLanes:r,cachePool:s},e!==null&&Rc(t,null),Pd(t),X0(t),e!==null&&As(e,t,i,!0),null}function Xc(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 xh(e,t,r,i,s){if(r.prototype&&typeof r.prototype.render=="function"){var c=Z(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&Qt&&sr.recordLegacyContextWarning(t,null),e===null&&(kh(t,t.type),r.contextTypes&&(c=Z(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)))),pi(t),ft(t),r=Xd(e,t,r,i,void 0,s),i=Qd(),Mt(),e!==null&&!Lt?(Wd(e,t,s),Xr(e,t,s)):($e&&i&&Ud(t),t.flags|=1,It(e,t,r,s),t.child)}function ov(e,t,r,i,s,c){return pi(t),ft(t),oa=-1,El=e!==null&&e.type!==t.type,t.updateQueue=null,r=Zd(t,i,r,s),_0(e,t),i=Qd(),Mt(),e!==null&&!Lt?(Wd(e,t,c),Xr(e,t,c)):($e&&i&&Ud(t),t.flags|=1,It(e,t,r,c),t.child)}function sv(e,t,r,i,s){switch(d(t)){case!1:var c=t.stateNode,h=new t.type(t.memoizedProps,c.context).state;c.updater.enqueueSetState(c,h,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,h=ot,h===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");b=wh(b),Sh(b,h,t,vn(c,t)),Oc(t,b)}if(pi(t),t.stateNode===null){if(h=za,c=r.contextType,"contextType"in r&&c!==null&&(c===void 0||c.$$typeof!==xr)&&!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===ym?" 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",Z(r)||"Component",b)),typeof c=="object"&&c!==null&&(h=dt(c)),c=new r(i,h),t.mode&Qt){Ce(!0);try{c=new r(i,h)}finally{Ce(!1)}}if(h=t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=cp,t.stateNode=c,c._reactInternals=t,c._reactInternalInstance=SE,typeof r.getDerivedStateFromProps=="function"&&h===null&&(h=Z(r)||"Component",kE.has(h)||(kE.add(h),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.",h,c.state===null?"null":"undefined",h))),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"){var x=b=h=null;if(typeof c.componentWillMount=="function"&&c.componentWillMount.__suppressDeprecationWarning!==!0?h="componentWillMount":typeof c.UNSAFE_componentWillMount=="function"&&(h="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"),h!==null||b!==null||x!==null){c=Z(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
173
|
|
|
174
174
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
175
175
|
|
|
@@ -177,8 +177,8 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
177
177
|
https://react.dev/link/unsafe-component-lifecycles`,c,k,h!==null?`
|
|
178
178
|
`+h:"",b!==null?`
|
|
179
179
|
`+b:"",x!==null?`
|
|
180
|
-
`+x:""))}}c=t.stateNode,h=Z(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?",h):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",h)),!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?",h),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.",h),c.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",h),r.childContextTypes&&!
|
|
181
|
-
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=Z(t)||"Unknown",DE[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),DE[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=Z(t)||"Unknown",OE[t]||(console.error("%s: Function components do not support contextType.",t),OE[t]=!0))}function Sh(e){return{baseLanes:e,cachePool:i0()}}function xh(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Nn),e}function rv(e,t,r){var i,s=t.pendingProps;f(t)&&(t.flags|=128);var c=!1,h=(t.flags&128)!==0;if((i=h)||(i=e!==null&&e.memoizedState===null?!1:(Dt.current&Sl)!==0),i&&(c=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if($e){if(c?Ra(t):Aa(t),$e){var b=bt,x;if(!(x=!b)){e:{var k=b;for(x=Or;k.nodeType!==8;){if(!x){x=null;break e}if(k=Hn(k.nextSibling),k===null){x=null;break e}}x=k}x!==null?(di(),t.memoizedState={dehydrated:x,treeContext:ki!==null?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},k=g(18,null,null,lt),k.stateNode=x,k.return=t,t.child=k,tn=t,bt=null,x=!0):x=!1,x=!x}x&&(Md(t,b),mi(t))}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return rm(b)?t.lanes=32:t.lanes=536870912,null;Yr(t)}return b=s.children,s=s.fallback,c?(Aa(t),c=t.mode,b=Zc({mode:"hidden",children:b},c),s=ui(s,c,r,null),b.return=t,s.return=t,b.sibling=s,t.child=b,c=t.child,c.memoizedState=Sh(r),c.childLanes=xh(e,i,r),t.memoizedState=up,s):(Ra(t),kh(t,b))}var z=e.memoizedState;if(z!==null&&(b=z.dehydrated,b!==null)){if(h)t.flags&256?(Ra(t),t.flags&=-257,t=Th(e,t,r)):t.memoizedState!==null?(Aa(t),t.child=e.child,t.flags|=128,t=null):(Aa(t),c=s.fallback,b=t.mode,s=Zc({mode:"visible",children:s.children},b),c=ui(c,b,r,null),c.flags|=2,s.return=t,c.return=t,s.sibling=c,t.child=s,Yo(t,e.child,null,r),s=t.child,s.memoizedState=Sh(r),s.childLanes=xh(e,i,r),t.memoizedState=up,t=c);else if(Ra(t),$e&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),rm(b)){if(i=b.nextSibling&&b.nextSibling.dataset,i){x=i.dgst;var q=i.msg;k=i.stck;var H=i.cstck}b=q,i=x,s=k,x=c=H,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"&&qm.set(c,s),Rs(s),t=Th(e,t,r)}else if(Lt||As(e,t,r,!1),i=(r&e.childLanes)!==0,Lt||i){if(i=ot,i!==null&&(s=r&-r,s=(s&42)!==0?1:ps(s),s=(s&(i.suspendedLanes|r))!==0?0:s,s!==0&&s!==z.retryLane))throw z.retryLane=s,cn(e,s),_t(i,e,s),RE;b.data===ca||zh(),t=Th(e,t,r)}else b.data===ca?(t.flags|=192,t.child=e.child,t=null):(e=z.treeContext,bt=Hn(b.nextSibling),tn=t,$e=!0,Ti=null,aa=!1,Fn=null,Or=!1,e!==null&&(di(),Gn[qn++]=na,Gn[qn++]=ra,Gn[qn++]=ki,na=e.id,ra=e.overflow,ki=t),t=kh(t,s.children),t.flags|=4096);return t}return c?(Aa(t),c=s.fallback,b=t.mode,x=e.child,k=x.sibling,s=Fr(x,{mode:"hidden",children:s.children}),s.subtreeFlags=x.subtreeFlags&65011712,k!==null?c=Fr(k,c):(c=ui(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=Sh(r):(x=b.cachePool,x!==null?(k=Ot._currentValue,x=x.parent!==k?{parent:k,pool:k}:x):x=i0(),b={baseLanes:b.baseLanes|r,cachePool:x}),c.memoizedState=b,c.childLanes=xh(e,i,r),t.memoizedState=up,s):(Ra(t),r=e.child,e=r.sibling,r=Fr(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 kh(e,t){return t=Zc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Zc(e,t){return e=g(22,e,null,t),e.lanes=0,e.stateNode={_visibility:Fm,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Th(e,t,r){return Yo(t,e.child,null,r),e=kh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function av(e,t,r){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Ud(e.return,t,r)}function iv(e,t){var r=Gt(e);return e=!r&&typeof F(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 Nh(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 ov(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"&&!ME[s])if(ME[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||cp[c]||(c!=="collapsed"&&c!=="hidden"?(cp[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"&&(cp[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(Gt(i)){for(var h=0;h<i.length;h++)if(!iv(i[h],h))break e}else if(h=F(i),typeof h=="function"){if(h=h.call(i))for(var b=h.next(),x=0;!b.done;b=h.next()){if(!iv(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(Vt(e,t,i,r),i=Dt.current,(i&Sl)!==0)i=i&Xo|Sl,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&&av(e,r,t);else if(e.tag===19)av(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&=Xo}switch(se(Dt,i,t),s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&$c(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),Nh(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&&$c(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}Nh(t,!0,r,null,c);break;case"together":Nh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),hn=-1,Fa|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(As(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=Fr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Fr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Rh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xc(e)))}function iR(e,t,r){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),xa(t,Ot,e.memoizedState.cache),Ns();break;case 27:case 5:ge(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:xa(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?(Ra(t),t.flags|=128,null):(r&t.child.childLanes)!==0?rv(e,t,r):(Ra(t),e=Xr(e,t,r),e!==null?e.sibling:null);Ra(t);break;case 19:var s=(e.flags&128)!==0;if(i=(r&t.childLanes)!==0,i||(As(e,t,r,!1),i=(r&t.childLanes)!==0),s){if(i)return ov(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),se(Dt,Dt.current,t),i)break;return null;case 22:case 23:return t.lanes=0,K0(e,t,r);case 24:xa(t,Ot,e.memoizedState.cache)}return Xr(e,t,r)}function Ah(e,t,r){if(t._debugNeedsRemount&&e!==null){r=Rd(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)Lt=!0;else{if(!Rh(e,r)&&(t.flags&128)===0)return Lt=!1,iR(e,t,r);Lt=(e.flags&131072)!==0}else Lt=!1,(i=$e)&&(di(),i=(t.flags&1048576)!==0),i&&(i=t.index,di(),Wy(t,xu,i));switch(t.lanes=0,t.tag){case 16:e:if(i=t.pendingProps,e=Ga(t.elementType),t.type=e,typeof e=="function")Nd(e)?(i=_i(e,i),t.tag=1,t.type=e=ci(e),t=tv(null,t,e,i,r)):(t.tag=0,wh(t,e),t.type=e=ci(e),t=Eh(null,t,e,i,r));else{if(e!=null){if(s=e.$$typeof,s===Js){t.tag=11,t.type=e=kd(e),t=Z0(null,t,e,i,r);break e}else if(s===du){t.tag=14,t=Q0(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=Z(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 Eh(e,t,t.type,t.pendingProps,r);case 1:return i=t.type,s=_i(i,t.pendingProps),tv(e,t,i,s,r);case 3:e:{if(Le(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,Id(e,t),Us(t,i,null,r);var h=t.memoizedState;if(i=h.cache,xa(t,Ot,i),i!==c.cache&&Bd(t,[Ot],r,!0),Ms(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=nv(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),Rs(s),t=nv(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(bt=Hn(e.firstChild),tn=t,$e=!0,Ti=null,aa=!1,Fn=null,Or=!0,e=bE(t,null,i,r),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Ns(),i===s){t=Xr(e,t,r);break e}Vt(e,t,i,r)}t=t.child}return t;case 26:return Xc(e,t),e===null?(e=k1(t.type,null,t.pendingProps,null))?t.memoizedState=e:$e||(e=t.type,r=t.pendingProps,i=he(Ba.current),i=ru(i).createElement(e),i[Zt]=t,i[dn]=r,It(i,e,r),j(i),t.stateNode=i):t.memoizedState=k1(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&$e&&(i=he(Ba.current),s=W(),i=t.stateNode=S1(t.type,t.pendingProps,i,s,!1),aa||(s=m1(i,t.type,t.pendingProps,s),s!==null&&(hi(t,0).serverProps=s)),tn=t,Or=!0,s=bt,Da(t.type)?(Mp=s,bt=Hn(i.firstChild)):bt=s),Vt(e,t,t.pendingProps.children,r),Xc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$e&&(c=W(),i=_d(t.type,c.ancestorInfo),s=bt,(h=!s)||(h=GR(s,t.type,t.pendingProps,Or),h!==null?(t.stateNode=h,aa||(c=m1(h,t.type,t.pendingProps,c),c!==null&&(hi(t,0).serverProps=c)),tn=t,bt=Hn(h.firstChild),Or=!1,c=!0):c=!1,h=!c),h&&(i&&Md(t,s),mi(t))),ge(t),s=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,tm(s,c)?i=null:h!==null&&tm(s,h)&&(t.flags|=32),t.memoizedState!==null&&(s=Pd(e,t,JN,null,null,r),Hl._currentValue=s),Xc(e,t),Vt(e,t,i,r),t.child;case 6:return e===null&&$e&&(e=t.pendingProps,r=W(),i=r.ancestorInfo.current,e=i!=null?pc(e,i.tag,r.ancestorInfo.implicitRootScope):!0,r=bt,(i=!r)||(i=qR(r,t.pendingProps,Or),i!==null?(t.stateNode=i,tn=t,bt=null,i=!0):i=!1,i=!i),i&&(e&&Md(t,r),mi(t))),null;case 13:return rv(e,t,r);case 4:return Le(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Yo(t,null,i,r):Vt(e,t,i,r),t.child;case 11:return Z0(e,t,t.type,t.pendingProps,r);case 7:return Vt(e,t,t.pendingProps,r),t.child;case 8:return Vt(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,Vt(e,t,t.pendingProps.children,r),t.child;case 10:return i=t.type,s=t.pendingProps,c=s.value,"value"in s||UE||(UE=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),xa(t,i,c),Vt(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."),pi(t),s=dt(s),ft(t),i=rp(i,s,void 0),Mt(),t.flags|=1,Vt(e,t,i,r),t.child;case 14:return Q0(e,t,t.type,t.pendingProps,r);case 15:return W0(e,t,t.type,t.pendingProps,r);case 19:return ov(e,t,r);case 31:return i=t.pendingProps,r=t.mode,i={mode:i.mode,children:i.children},e===null?(e=Zc(i,r),e.ref=t.ref,t.child=e,e.return=t,t=e):(e=Fr(e.child,i),e.ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return K0(e,t,r);case 24:return pi(t),i=dt(Ot),e===null?(s=zd(),s===null&&(s=ot,c=Ld(),s.pooledCache=c,bi(c),c!==null&&(s.pooledCacheLanes|=r),s=c),t.memoizedState={parent:i,cache:s},Vd(t),xa(t,Ot,s)):((e.lanes&r)!==0&&(Id(e,t),Us(t,null,null,r),Ms()),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),xa(t,Ot,i)):(i=c.cache,xa(t,Ot,i),i!==s.cache&&Bd(t,[Ot],r,!0))),Vt(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 Zr(e){e.flags|=4}function sv(e,t){if(t.type!=="stylesheet"||(t.state.loading&Zn)!==Ii)e.flags&=-16777217;else if(e.flags|=16777216,!O1(t)){if(t=Xn.current,t!==null&&((He&4194048)===He?Dr!==null:(He&62914560)!==He&&(He&536870912)===0||t!==Dr))throw vl=Qm,F_;e.flags|=8192}}function Qc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ii():536870912,e.lanes|=t,Bi|=t)}function zs(e,t){if(!$e)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&qt)!==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&qt)!==lt){s=e.actualDuration,c=e.selfBaseDuration;for(var h=e.child;h!==null;)r|=h.lanes|h.childLanes,i|=h.subtreeFlags,i|=h.flags,s+=h.actualDuration,c+=h.treeBaseDuration,h=h.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 oR(e,t,r){var i=t.pendingProps;switch(Dd(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),Pr(Ot,t),Ae(t),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ts(t)?(t0(),Zr(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,e0())),ht(t),null;case 26:return r=t.memoizedState,e===null?(Zr(t),r!==null?(ht(t),sv(t,r)):(ht(t),t.flags&=-16777217)):r?r!==e.memoizedState?(Zr(t),ht(t),sv(t,r)):(ht(t),t.flags&=-16777217):(e.memoizedProps!==i&&Zr(t),ht(t),t.flags&=-16777217),null;case 27:fe(t),r=he(Ba.current);var s=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Zr(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(),Ts(t)?Ky(t):(e=S1(s,i,r,e,!0),t.stateNode=e,Zr(t))}return ht(t),null;case 5:if(fe(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Zr(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(),Ts(t))Ky(t);else{switch(e=he(Ba.current),_d(r,s.ancestorInfo),s=s.context,e=ru(e),s){case is:e=e.createElementNS(Ro,r);break;case Wu:e=e.createElementNS(yu,r);break;default:switch(r){case"svg":e=e.createElementNS(Ro,r);break;case"math":e=e.createElementNS(yu,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]"||ea.call(JE,r)||(JE[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[Zt]=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&&Zr(t)}}return ht(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Zr(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=he(Ba.current),r=W(),Ts(t)){e=t.stateNode,r=t.memoizedProps,s=!aa,i=null;var c=tn;if(c!==null)switch(c.tag){case 3:s&&(s=_1(e,r,i),s!==null&&(hi(t,0).serverProps=s));break;case 27:case 5:i=c.memoizedProps,s&&(s=_1(e,r,i),s!==null&&(hi(t,0).serverProps=s))}e[Zt]=t,e=!!(e.nodeValue===r||i!==null&&i.suppressHydrationWarning===!0||c1(e.nodeValue,r)),e||mi(t)}else s=r.ancestorInfo.current,s!=null&&pc(i,s.tag,r.ancestorInfo.implicitRootScope),e=ru(e).createTextNode(i),e[Zt]=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=Ts(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[Zt]=t,ht(t),(t.mode&qt)!==lt&&i!==null&&(s=t.child,s!==null&&(t.treeBaseDuration-=s.treeBaseDuration))}else t0(),Ns(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4,ht(t),(t.mode&qt)!==lt&&i!==null&&(s=t.child,s!==null&&(t.treeBaseDuration-=s.treeBaseDuration));s=!1}else s=e0(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Yr(t),t):(Yr(t),null)}return Yr(t),(t.flags&128)!==0?(t.lanes=r,(t.mode&qt)!==lt&&Nc(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),Qc(t,t.updateQueue),ht(t),(t.mode&qt)!==lt&&r&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Ae(t),e===null&&Xh(t.stateNode.containerInfo),ht(t),null;case 10:return Pr(t.type,t),ht(t),null;case 19:if(ne(Dt,t),s=t.memoizedState,s===null)return ht(t),null;if(i=(t.flags&128)!==0,c=s.rendering,c===null)if(i)zs(s,!1);else{if(gt!==la||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=$c(e),c!==null){for(t.flags|=128,zs(s,!1),e=c.updateQueue,t.updateQueue=e,Qc(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)Qy(r,e),r=r.sibling;return se(Dt,Dt.current&Xo|Sl,t),t.child}e=e.sibling}s.tail!==null&&kr()>zu&&(t.flags|=128,i=!0,zs(s,!1),t.lanes=4194304)}else{if(!i)if(e=$c(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Qc(t,e),zs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!$e)return ht(t),null}else 2*kr()-s.renderingStartTime>zu&&r!==536870912&&(t.flags|=128,i=!0,zs(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=kr(),e.sibling=null,r=Dt.current,r=i?r&Xo|Sl:r&Xo,se(Dt,r,t),e):(ht(t),null);case 22:case 23:return Yr(t),qd(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&&Qc(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&&ne(Ai,t),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Pr(Ot,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 sR(e,t){switch(Dd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&qt)!==lt&&Nc(t),t):null;case 3:return Pr(Ot,t),Ae(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 13:if(Yr(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.");Ns()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&qt)!==lt&&Nc(t),t):null;case 19:return ne(Dt,t),null;case 4:return Ae(t),null;case 10:return Pr(t.type,t),null;case 22:case 23:return Yr(t),qd(t),e!==null&&ne(Ai,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&qt)!==lt&&Nc(t),t):null;case 24:return Pr(Ot,t),null;case 25:return null;default:return null}}function lv(e,t){switch(Dd(t),t.tag){case 3:Pr(Ot,t),Ae(t);break;case 26:case 27:case 5:fe(t);break;case 4:Ae(t);break;case 13:Yr(t);break;case 19:ne(Dt,t);break;case 10:Pr(t.type,t);break;case 22:case 23:Yr(t),qd(t),e!==null&&ne(Ai,t);break;case 24:Pr(Ot,t)}}function vr(e){return(e.mode&qt)!==lt}function cv(e,t){vr(e)?(yr(),Vs(t,e),gr()):Vs(t,e)}function Oh(e,t,r){vr(e)?(yr(),mo(r,e,t),gr()):mo(r,e,t)}function Vs(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&Ct)!==Pn?oe!==null&&typeof oe.markComponentPassiveEffectMountStarted=="function"&&oe.markComponentPassiveEffectMountStarted(t):(e&Ft)!==Pn&&oe!==null&&typeof oe.markComponentLayoutEffectMountStarted=="function"&&oe.markComponentLayoutEffectMountStarted(t),i=void 0,(e&nn)!==Pn&&(rs=!0),i=be(t,TO,r),(e&nn)!==Pn&&(rs=!1),(e&Ct)!==Pn?oe!==null&&typeof oe.markComponentPassiveEffectMountStopped=="function"&&oe.markComponentPassiveEffectMountStopped():(e&Ft)!==Pn&&oe!==null&&typeof oe.markComponentLayoutEffectMountStopped=="function"&&oe.markComponentLayoutEffectMountStopped(),i!==void 0&&typeof i!="function")){var c=void 0;c=(r.tag&Ft)!==0?"useLayoutEffect":(r.tag&nn)!==0?"useInsertionEffect":"useEffect";var h=void 0;h=i===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof i.then=="function"?`
|
|
180
|
+
`+x:""))}}c=t.stateNode,h=Z(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?",h):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",h)),!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?",h),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.",h),c.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",h),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)",h)),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)",h)),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.",h),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.",Z(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()?",h),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().",h),typeof c.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",h),typeof c.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",h),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.",h),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.",h,h),typeof c.getSnapshotBeforeUpdate!="function"||typeof c.componentDidUpdate=="function"||TE.has(r)||(TE.add(r),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Z(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.",h),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.",h),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.",h),(b=c.state)&&(typeof b!="object"||Gt(b))&&console.error("%s.state: must be set to an object or null",h),typeof c.getChildContext=="function"&&typeof r.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",h),c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},qd(t),h=r.contextType,c.context=typeof h=="object"&&h!==null?dt(h):za,c.state===i&&(h=Z(r)||"Component",RE.has(h)||(RE.add(h),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.",h))),t.mode&Qt&&sr.recordLegacyContextWarning(t,c),sr.recordUnsafeLifecycleWarnings(t,c),c.state=t.memoizedState,h=r.getDerivedStateFromProps,typeof h=="function"&&(_h(t,r,h,i),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",X(t)||"Component"),cp.enqueueReplaceState(c,c.state,null)),Us(t,i,c,s),Ms(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&or)!==lt&&(t.flags|=134217728),c=!0}else if(e===null){c=t.stateNode;var z=t.memoizedProps;b=_i(r,z),c.props=b;var q=c.context;x=r.contextType,h=za,typeof x=="object"&&x!==null&&(h=dt(x)),k=r.getDerivedStateFromProps,x=typeof k=="function"||typeof c.getSnapshotBeforeUpdate=="function",z=t.pendingProps!==z,x||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(z||q!==h)&&Q0(t,c,i,h),Ia=!1;var H=t.memoizedState;c.state=H,Us(t,i,c,s),Ms(),q=t.memoizedState,z||H!==q||Ia?(typeof k=="function"&&(_h(t,r,k,i),q=t.memoizedState),(b=Ia||Z0(t,r,b,i,H,q,h))?(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&or)!==lt&&(t.flags|=134217728)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&or)!==lt&&(t.flags|=134217728),t.memoizedProps=i,t.memoizedState=q),c.props=i,c.state=q,c.context=h,c=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&or)!==lt&&(t.flags|=134217728),c=!1)}else{c=t.stateNode,Fd(e,t),h=t.memoizedProps,x=_i(r,h),c.props=x,k=t.pendingProps,H=c.context,q=r.contextType,b=za,typeof q=="object"&&q!==null&&(b=dt(q)),z=r.getDerivedStateFromProps,(q=typeof z=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==k||H!==b)&&Q0(t,c,i,b),Ia=!1,H=t.memoizedState,c.state=H,Us(t,i,c,s),Ms();var P=t.memoizedState;h!==k||H!==P||Ia||e!==null&&e.dependencies!==null&&xc(e.dependencies)?(typeof z=="function"&&(_h(t,r,z,i),P=t.memoizedState),(x=Ia||Z0(t,r,x,i,H,P,b)||e!==null&&e.dependencies!==null&&xc(e.dependencies))?(q||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"||h===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&H===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"||h===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),c=!1)}if(b=c,Xc(e,t),h=(t.flags&128)!==0,b||h){if(b=t.stateNode,bd(t),h&&typeof r.getDerivedStateFromError!="function")r=null,hn=-1;else{if(ft(t),r=lE(b),t.mode&Qt){Ce(!0);try{lE(b)}finally{Ce(!1)}}Mt()}t.flags|=1,e!==null&&h?(t.child=Yo(t,e.child,null,s),t.child=Yo(t,null,r,s)):It(e,t,r,s),t.memoizedState=b.state,e=t.child}else e=Xr(e,t,s);return s=t.stateNode,c&&s.props!==i&&(Qo||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",X(t)||"a component"),Qo=!0),e}function lv(e,t,r,i){return Ns(),t.flags|=256,It(e,t,r,i),t.child}function kh(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=Z(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=Z(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 Nh(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,h=(t.flags&128)!==0;if((i=h)||(i=e!==null&&e.memoizedState===null?!1:(Dt.current&Sl)!==0),i&&(c=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if($e){if(c?Ra(t):Aa(t),$e){var b=bt,x;if(!(x=!b)){e:{var k=b;for(x=Or;k.nodeType!==8;){if(!x){x=null;break e}if(k=zn(k.nextSibling),k===null){x=null;break e}}x=k}x!==null?(di(),t.memoizedState={dehydrated:x,treeContext:ki!==null?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},k=y(18,null,null,lt),k.stateNode=x,k.return=t,t.child=k,tn=t,bt=null,x=!0):x=!1,x=!x}x&&(Ld(t,b),mi(t))}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return om(b)?t.lanes=32:t.lanes=536870912,null;Yr(t)}return b=s.children,s=s.fallback,c?(Aa(t),c=t.mode,b=Zc({mode:"hidden",children:b},c),s=ui(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=Nh(e,i,r),t.memoizedState=hp,s):(Ra(t),Rh(t,b))}var z=e.memoizedState;if(z!==null&&(b=z.dehydrated,b!==null)){if(h)t.flags&256?(Ra(t),t.flags&=-257,t=Ah(e,t,r)):t.memoizedState!==null?(Aa(t),t.child=e.child,t.flags|=128,t=null):(Aa(t),c=s.fallback,b=t.mode,s=Zc({mode:"visible",children:s.children},b),c=ui(c,b,r,null),c.flags|=2,s.return=t,c.return=t,s.sibling=c,t.child=s,Yo(t,e.child,null,r),s=t.child,s.memoizedState=Th(r),s.childLanes=Nh(e,i,r),t.memoizedState=hp,t=c);else if(Ra(t),$e&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),om(b)){if(i=b.nextSibling&&b.nextSibling.dataset,i){x=i.dgst;var q=i.msg;k=i.stck;var H=i.cstck}b=q,i=x,s=k,x=c=H,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"&&$m.set(c,s),Rs(s),t=Ah(e,t,r)}else if(Lt||As(e,t,r,!1),i=(r&e.childLanes)!==0,Lt||i){if(i=ot,i!==null&&(s=r&-r,s=(s&42)!==0?1:ps(s),s=(s&(i.suspendedLanes|r))!==0?0:s,s!==0&&s!==z.retryLane))throw z.retryLane=s,cn(e,s),_t(i,e,s),UE;b.data===ca||Gh(),t=Ah(e,t,r)}else b.data===ca?(t.flags|=192,t.child=e.child,t=null):(e=z.treeContext,bt=zn(b.nextSibling),tn=t,$e=!0,Ti=null,aa=!1,Pn=null,Or=!1,e!==null&&(di(),qn[Fn++]=na,qn[Fn++]=ra,qn[Fn++]=ki,na=e.id,ra=e.overflow,ki=t),t=Rh(t,s.children),t.flags|=4096);return t}return c?(Aa(t),c=s.fallback,b=t.mode,x=e.child,k=x.sibling,s=Fr(x,{mode:"hidden",children:s.children}),s.subtreeFlags=x.subtreeFlags&65011712,k!==null?c=Fr(k,c):(c=ui(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=Ot._currentValue,x=x.parent!==k?{parent:k,pool:k}:x):x=f0(),b={baseLanes:b.baseLanes|r,cachePool:x}),c.memoizedState=b,c.childLanes=Nh(e,i,r),t.memoizedState=hp,s):(Ra(t),r=e.child,e=r.sibling,r=Fr(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 Rh(e,t){return t=Zc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Zc(e,t){return e=y(22,e,null,t),e.lanes=0,e.stateNode={_visibility:Ym,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ah(e,t,r){return Yo(t,e.child,null,r),e=Rh(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),jd(e.return,t,r)}function fv(e,t){var r=Gt(e);return e=!r&&typeof F(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 Oh(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||dp[c]||(c!=="collapsed"&&c!=="hidden"?(dp[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"&&(dp[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(Gt(i)){for(var h=0;h<i.length;h++)if(!fv(i[h],h))break e}else if(h=F(i),typeof h=="function"){if(h=h.call(i))for(var b=h.next(),x=0;!b.done;b=h.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(It(e,t,i,r),i=Dt.current,(i&Sl)!==0)i=i&Xo|Sl,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&=Xo}switch(se(Dt,i,t),s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&$c(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),Oh(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&&$c(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}Oh(t,!0,r,null,c);break;case"together":Oh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),hn=-1,Fa|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(As(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=Fr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Fr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Ch(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xc(e)))}function uR(e,t,r){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),xa(t,Ot,e.memoizedState.cache),Ns();break;case 27:case 5:ge(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:xa(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?(Ra(t),t.flags|=128,null):(r&t.child.childLanes)!==0?cv(e,t,r):(Ra(t),e=Xr(e,t,r),e!==null?e.sibling:null);Ra(t);break;case 19:var s=(e.flags&128)!==0;if(i=(r&t.childLanes)!==0,i||(As(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),se(Dt,Dt.current,t),i)break;return null;case 22:case 23:return t.lanes=0,av(e,t,r);case 24:xa(t,Ot,e.memoizedState.cache)}return Xr(e,t,r)}function Dh(e,t,r){if(t._debugNeedsRemount&&e!==null){r=Cd(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)Lt=!0;else{if(!Ch(e,r)&&(t.flags&128)===0)return Lt=!1,uR(e,t,r);Lt=(e.flags&131072)!==0}else Lt=!1,(i=$e)&&(di(),i=(t.flags&1048576)!==0),i&&(i=t.index,di(),r0(t,xu,i));switch(t.lanes=0,t.tag){case 16:e:if(i=t.pendingProps,e=Ga(t.elementType),t.type=e,typeof e=="function")Od(e)?(i=_i(e,i),t.tag=1,t.type=e=ci(e),t=sv(null,t,e,i,r)):(t.tag=0,kh(t,e),t.type=e=ci(e),t=xh(null,t,e,i,r));else{if(e!=null){if(s=e.$$typeof,s===Js){t.tag=11,t.type=e=Rd(e),t=tv(null,t,e,i,r);break e}else if(s===du){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=Z(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 xh(e,t,t.type,t.pendingProps,r);case 1:return i=t.type,s=_i(i,t.pendingProps),sv(e,t,i,s,r);case 3:e:{if(Le(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,Fd(e,t),Us(t,i,null,r);var h=t.memoizedState;if(i=h.cache,xa(t,Ot,i),i!==c.cache&&Hd(t,[Ot],r,!0),Ms(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.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),Rs(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(bt=zn(e.firstChild),tn=t,$e=!0,Ti=null,aa=!1,Pn=null,Or=!0,e=wE(t,null,i,r),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Ns(),i===s){t=Xr(e,t,r);break e}It(e,t,i,r)}t=t.child}return t;case 26:return Xc(e,t),e===null?(e=C1(t.type,null,t.pendingProps,null))?t.memoizedState=e:$e||(e=t.type,r=t.pendingProps,i=he(Ba.current),i=ru(i).createElement(e),i[Zt]=t,i[dn]=r,Vt(i,e,r),j(i),t.stateNode=i):t.memoizedState=C1(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&$e&&(i=he(Ba.current),s=W(),i=t.stateNode=A1(t.type,t.pendingProps,i,s,!1),aa||(s=_1(i,t.type,t.pendingProps,s),s!==null&&(hi(t,0).serverProps=s)),tn=t,Or=!0,s=bt,Da(t.type)?(Lp=s,bt=zn(i.firstChild)):bt=s),It(e,t,t.pendingProps.children,r),Xc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$e&&(c=W(),i=Sd(t.type,c.ancestorInfo),s=bt,(h=!s)||(h=YR(s,t.type,t.pendingProps,Or),h!==null?(t.stateNode=h,aa||(c=_1(h,t.type,t.pendingProps,c),c!==null&&(hi(t,0).serverProps=c)),tn=t,bt=zn(h.firstChild),Or=!1,c=!0):c=!1,h=!c),h&&(i&&Ld(t,s),mi(t))),ge(t),s=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,am(s,c)?i=null:h!==null&&am(s,h)&&(t.flags|=32),t.memoizedState!==null&&(s=Xd(e,t,aR,null,null,r),Hl._currentValue=s),Xc(e,t),It(e,t,i,r),t.child;case 6:return e===null&&$e&&(e=t.pendingProps,r=W(),i=r.ancestorInfo.current,e=i!=null?pc(e,i.tag,r.ancestorInfo.implicitRootScope):!0,r=bt,(i=!r)||(i=XR(r,t.pendingProps,Or),i!==null?(t.stateNode=i,tn=t,bt=null,i=!0):i=!1,i=!i),i&&(e&&Ld(t,r),mi(t))),null;case 13:return cv(e,t,r);case 4:return Le(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Yo(t,null,i,r):It(e,t,i,r),t.child;case 11:return tv(e,t,t.type,t.pendingProps,r);case 7:return It(e,t,t.pendingProps,r),t.child;case 8:return It(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,It(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?")),xa(t,i,c),It(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."),pi(t),s=dt(s),ft(t),i=op(i,s,void 0),Mt(),t.flags|=1,It(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=Zc(i,r),e.ref=t.ref,t.child=e,e.return=t,t=e):(e=Fr(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 pi(t),i=dt(Ot),e===null?(s=Gd(),s===null&&(s=ot,c=zd(),s.pooledCache=c,bi(c),c!==null&&(s.pooledCacheLanes|=r),s=c),t.memoizedState={parent:i,cache:s},qd(t),xa(t,Ot,s)):((e.lanes&r)!==0&&(Fd(e,t),Us(t,null,null,r),Ms()),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),xa(t,Ot,i)):(i=c.cache,xa(t,Ot,i),i!==s.cache&&Hd(t,[Ot],r,!0))),It(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 Zr(e){e.flags|=4}function hv(e,t){if(t.type!=="stylesheet"||(t.state.loading&Qn)!==Vi)e.flags&=-16777217;else if(e.flags|=16777216,!L1(t)){if(t=Zn.current,t!==null&&((He&4194048)===He?Dr!==null:(He&62914560)!==He&&(He&536870912)===0||t!==Dr))throw vl=Jm,Q_;e.flags|=8192}}function Qc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ii():536870912,e.lanes|=t,Bi|=t)}function zs(e,t){if(!$e)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&qt)!==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&qt)!==lt){s=e.actualDuration,c=e.selfBaseDuration;for(var h=e.child;h!==null;)r|=h.lanes|h.childLanes,i|=h.subtreeFlags,i|=h.flags,s+=h.actualDuration,c+=h.treeBaseDuration,h=h.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 fR(e,t,r){var i=t.pendingProps;switch(Bd(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),Pr(Ot,t),Ae(t),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ts(t)?(s0(),Zr(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?(Zr(t),r!==null?(ht(t),hv(t,r)):(ht(t),t.flags&=-16777217)):r?r!==e.memoizedState?(Zr(t),ht(t),hv(t,r)):(ht(t),t.flags&=-16777217):(e.memoizedProps!==i&&Zr(t),ht(t),t.flags&=-16777217),null;case 27:fe(t),r=he(Ba.current);var s=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Zr(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(),Ts(t)?a0(t):(e=A1(s,i,r,e,!0),t.stateNode=e,Zr(t))}return ht(t),null;case 5:if(fe(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Zr(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(),Ts(t))a0(t);else{switch(e=he(Ba.current),Sd(r,s.ancestorInfo),s=s.context,e=ru(e),s){case is:e=e.createElementNS(Ro,r);break;case Wu:e=e.createElementNS(yu,r);break;default:switch(r){case"svg":e=e.createElementNS(Ro,r);break;case"math":e=e.createElementNS(yu,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]"||ea.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[Zt]=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(Vt(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&&Zr(t)}}return ht(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Zr(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=he(Ba.current),r=W(),Ts(t)){e=t.stateNode,r=t.memoizedProps,s=!aa,i=null;var c=tn;if(c!==null)switch(c.tag){case 3:s&&(s=T1(e,r,i),s!==null&&(hi(t,0).serverProps=s));break;case 27:case 5:i=c.memoizedProps,s&&(s=T1(e,r,i),s!==null&&(hi(t,0).serverProps=s))}e[Zt]=t,e=!!(e.nodeValue===r||i!==null&&i.suppressHydrationWarning===!0||p1(e.nodeValue,r)),e||mi(t)}else s=r.ancestorInfo.current,s!=null&&pc(i,s.tag,r.ancestorInfo.implicitRootScope),e=ru(e).createTextNode(i),e[Zt]=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=Ts(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[Zt]=t,ht(t),(t.mode&qt)!==lt&&i!==null&&(s=t.child,s!==null&&(t.treeBaseDuration-=s.treeBaseDuration))}else s0(),Ns(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4,ht(t),(t.mode&qt)!==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?(Yr(t),t):(Yr(t),null)}return Yr(t),(t.flags&128)!==0?(t.lanes=r,(t.mode&qt)!==lt&&Nc(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),Qc(t,t.updateQueue),ht(t),(t.mode&qt)!==lt&&r&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Ae(t),e===null&&Wh(t.stateNode.containerInfo),ht(t),null;case 10:return Pr(t.type,t),ht(t),null;case 19:if(ne(Dt,t),s=t.memoizedState,s===null)return ht(t),null;if(i=(t.flags&128)!==0,c=s.rendering,c===null)if(i)zs(s,!1);else{if(gt!==la||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=$c(e),c!==null){for(t.flags|=128,zs(s,!1),e=c.updateQueue,t.updateQueue=e,Qc(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)n0(r,e),r=r.sibling;return se(Dt,Dt.current&Xo|Sl,t),t.child}e=e.sibling}s.tail!==null&&kr()>zu&&(t.flags|=128,i=!0,zs(s,!1),t.lanes=4194304)}else{if(!i)if(e=$c(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Qc(t,e),zs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!$e)return ht(t),null}else 2*kr()-s.renderingStartTime>zu&&r!==536870912&&(t.flags|=128,i=!0,zs(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=kr(),e.sibling=null,r=Dt.current,r=i?r&Xo|Sl:r&Xo,se(Dt,r,t),e):(ht(t),null);case 22:case 23:return Yr(t),$d(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&&Qc(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&&ne(Ai,t),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Pr(Ot,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 dR(e,t){switch(Bd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&qt)!==lt&&Nc(t),t):null;case 3:return Pr(Ot,t),Ae(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 13:if(Yr(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.");Ns()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&qt)!==lt&&Nc(t),t):null;case 19:return ne(Dt,t),null;case 4:return Ae(t),null;case 10:return Pr(t.type,t),null;case 22:case 23:return Yr(t),$d(t),e!==null&&ne(Ai,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&qt)!==lt&&Nc(t),t):null;case 24:return Pr(Ot,t),null;case 25:return null;default:return null}}function mv(e,t){switch(Bd(t),t.tag){case 3:Pr(Ot,t),Ae(t);break;case 26:case 27:case 5:fe(t);break;case 4:Ae(t);break;case 13:Yr(t);break;case 19:ne(Dt,t);break;case 10:Pr(t.type,t);break;case 22:case 23:Yr(t),$d(t),e!==null&&ne(Ai,t);break;case 24:Pr(Ot,t)}}function vr(e){return(e.mode&qt)!==lt}function pv(e,t){vr(e)?(yr(),Is(t,e),gr()):Is(t,e)}function Mh(e,t,r){vr(e)?(yr(),mo(r,e,t),gr()):mo(r,e,t)}function Is(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&Ct)!==$n?oe!==null&&typeof oe.markComponentPassiveEffectMountStarted=="function"&&oe.markComponentPassiveEffectMountStarted(t):(e&Ft)!==$n&&oe!==null&&typeof oe.markComponentLayoutEffectMountStarted=="function"&&oe.markComponentLayoutEffectMountStarted(t),i=void 0,(e&nn)!==$n&&(rs=!0),i=be(t,CO,r),(e&nn)!==$n&&(rs=!1),(e&Ct)!==$n?oe!==null&&typeof oe.markComponentPassiveEffectMountStopped=="function"&&oe.markComponentPassiveEffectMountStopped():(e&Ft)!==$n&&oe!==null&&typeof oe.markComponentLayoutEffectMountStopped=="function"&&oe.markComponentLayoutEffectMountStopped(),i!==void 0&&typeof i!="function")){var c=void 0;c=(r.tag&Ft)!==0?"useLayoutEffect":(r.tag&nn)!==0?"useInsertionEffect":"useEffect";var h=void 0;h=i===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof i.then=="function"?`
|
|
182
182
|
|
|
183
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
184
|
|
|
@@ -191,11 +191,11 @@ It looks like you wrote `+c+`(async () => ...) or returned a Promise. Instead, w
|
|
|
191
191
|
fetchData();
|
|
192
192
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
193
193
|
|
|
194
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+i,be(t,function(b,x){console.error("%s must not return anything besides a function, which is used for clean-up.%s",b,x)},c,h)}r=r.next}while(r!==s)}}catch(b){nt(t,t.return,b)}}function mo(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 h=i.inst,b=h.destroy;b!==void 0&&(h.destroy=void 0,(e&Ct)!==Pn?oe!==null&&typeof oe.markComponentPassiveEffectUnmountStarted=="function"&&oe.markComponentPassiveEffectUnmountStarted(t):(e&Ft)!==Pn&&oe!==null&&typeof oe.markComponentLayoutEffectUnmountStarted=="function"&&oe.markComponentLayoutEffectUnmountStarted(t),(e&nn)!==Pn&&(rs=!0),s=t,be(s,NO,s,r,b),(e&nn)!==Pn&&(rs=!1),(e&Ct)!==Pn?oe!==null&&typeof oe.markComponentPassiveEffectUnmountStopped=="function"&&oe.markComponentPassiveEffectUnmountStopped():(e&Ft)!==Pn&&oe!==null&&typeof oe.markComponentLayoutEffectUnmountStopped=="function"&&oe.markComponentLayoutEffectUnmountStopped())}i=i.next}while(i!==c)}}catch(x){nt(t,t.return,x)}}function uv(e,t){vr(e)?(yr(),Vs(t,e),gr()):Vs(t,e)}function Ch(e,t,r){vr(e)?(yr(),mo(r,e,t),gr()):mo(r,e,t)}function fv(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Qo||(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.",X(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.",X(e)||"instance"));try{be(e,d0,t,r)}catch(i){nt(e,e.return,i)}}}function lR(e,t,r){return e.getSnapshotBeforeUpdate(t,r)}function cR(e,t){var r=t.memoizedProps,i=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Qo||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{var s=_i(e.type,r,e.elementType===e.type),c=be(e,lR,t,s,i);r=BE,c!==void 0||r.has(e.type)||(r.add(e.type),be(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",X(e))})),t.__reactInternalSnapshotBeforeUpdate=c}catch(h){nt(e,e.return,h)}}function dv(e,t,r){r.props=_i(e.type,e.memoizedProps),r.state=e.memoizedState,vr(e)?(yr(),be(e,lE,e,t,r),gr()):be(e,lE,e,t,r)}function uR(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(vr(e))try{yr(),e.refCleanup=t(r)}finally{gr()}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().",X(e)),t.current=r}}function Is(e,t){try{be(e,uR,e)}catch(r){nt(e,t,r)}}function _r(e,t){var r=e.ref,i=e.refCleanup;if(r!==null)if(typeof i=="function")try{if(vr(e))try{yr(),be(e,i)}finally{gr(e)}else be(e,i)}catch(s){nt(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{if(vr(e))try{yr(),be(e,r,null)}finally{gr(e)}else be(e,r,null)}catch(s){nt(e,t,s)}else r.current=null}function hv(e,t,r,i){var s=e.memoizedProps,c=s.id,h=s.onCommit;s=s.onRender,t=t===null?"mount":"update",Nu&&(t="nested-update"),typeof s=="function"&&s(c,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,r),typeof h=="function"&&h(e.memoizedProps.id,t,i,r)}function fR(e,t,r,i){var s=e.memoizedProps;e=s.id,s=s.onPostCommit,t=t===null?"mount":"update",Nu&&(t="nested-update"),typeof s=="function"&&s(e,t,i,r)}function mv(e){var t=e.type,r=e.memoizedProps,i=e.stateNode;try{be(e,MR,i,t,r,e)}catch(s){nt(e,e.return,s)}}function Dh(e,t,r){try{be(e,UR,e.stateNode,e.type,r,t,e)}catch(i){nt(e,e.return,i)}}function pv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Da(e.type)||e.tag===4}function Mh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pv(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&&Da(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 Uh(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=nu));else if(i!==4&&(i===27&&Da(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Uh(e,t,r),e=e.sibling;e!==null;)Uh(e,t,r),e=e.sibling}function Wc(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&&Da(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Wc(e,t,r),e=e.sibling;e!==null;)Wc(e,t,r),e=e.sibling}function dR(e){for(var t,r=e.return;r!==null;){if(pv(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=Mh(e),Wc(e,r,t);break;case 5:r=t.stateNode,t.flags&32&&(g1(r),t.flags&=-33),t=Mh(e),Wc(e,t,r);break;case 3:case 4:t=t.stateNode.containerInfo,r=Mh(e),Uh(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 bv(e){var t=e.stateNode,r=e.memoizedProps;try{be(e,YR,e.type,r,t,e)}catch(i){nt(e,e.return,i)}}function hR(e,t){if(e=e.containerInfo,Op=tf,e=Py(e),Sd(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 h=0,b=-1,x=-1,k=0,z=0,q=e,H=null;t:for(;;){for(var P;q!==r||s!==0&&q.nodeType!==3||(b=h+s),q!==c||i!==0&&q.nodeType!==3||(x=h+i),q.nodeType===3&&(h+=q.nodeValue.length),(P=q.firstChild)!==null;)H=q,q=P;for(;;){if(q===e)break t;if(H===r&&++k===s&&(b=h),H===c&&++z===i&&(x=h),(P=q.nextSibling)!==null)break;q=H,H=q.parentNode}q=P}r=b===-1||x===-1?null:{start:b,end:x}}else r=null}r=r||{start:0,end:0}}else r=null;for(Cp={focusedElem:e,selectionRange:r},tf=!1,jt=t;jt!==null;)if(t=jt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,jt=e;else for(;jt!==null;){switch(e=t=jt,r=e.alternate,s=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:(s&1024)!==0&&r!==null&&cR(e,r);break;case 3:if((s&1024)!==0){if(e=e.stateNode.containerInfo,r=e.nodeType,r===9)nm(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":nm(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,jt=e;break}jt=t.return}}function gv(e,t,r){var i=r.flags;switch(r.tag){case 0:case 11:case 15:Wr(e,r),i&4&&cv(r,Ft|$n);break;case 1:if(Wr(e,r),i&4)if(e=r.stateNode,t===null)r.type.defaultProps||"ref"in r.memoizedProps||Qo||(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.",X(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.",X(r)||"instance")),vr(r)?(yr(),be(r,ap,r,e),gr()):be(r,ap,r,e);else{var s=_i(r.type,t.memoizedProps);t=t.memoizedState,r.type.defaultProps||"ref"in r.memoizedProps||Qo||(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.",X(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.",X(r)||"instance")),vr(r)?(yr(),be(r,iE,r,e,s,t,e.__reactInternalSnapshotBeforeUpdate),gr()):be(r,iE,r,e,s,t,e.__reactInternalSnapshotBeforeUpdate)}i&64&&fv(r),i&512&&Is(r,r.return);break;case 3:if(t=$r(),Wr(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{be(r,d0,i,s)}catch(h){nt(r,r.return,h)}}e.effectDuration+=Tc(t);break;case 27:t===null&&i&4&&bv(r);case 26:case 5:Wr(e,r),t===null&&i&4&&mv(r),i&512&&Is(r,r.return);break;case 12:if(i&4){i=$r(),Wr(e,r),e=r.stateNode,e.effectDuration+=Cs(i);try{be(r,hv,r,t,Tu,e.effectDuration)}catch(h){nt(r,r.return,h)}}else Wr(e,r);break;case 13:Wr(e,r),i&4&&_v(e,r),i&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=wR.bind(null,r),FR(e,r))));break;case 22:if(i=r.memoizedState!==null||sa,!i){t=t!==null&&t.memoizedState!==null||Et,s=sa;var c=Et;sa=i,(Et=t)&&!c?Kr(e,r,(r.subtreeFlags&8772)!==0):Wr(e,r),sa=s,Et=c}break;case 30:break;default:Wr(e,r)}}function yv(e){var t=e.alternate;t!==null&&(e.alternate=null,yv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wa(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 Qr(e,t,r){for(r=r.child;r!==null;)vv(e,t,r),r=r.sibling}function vv(e,t,r){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(To,r)}catch(c){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",c))}switch(r.tag){case 26:Et||_r(r,t),Qr(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Et||_r(r,t);var i=Tt,s=mn;Da(r.type)&&(Tt=r.stateNode,mn=!1),Qr(e,t,r),be(r,Xs,r.stateNode),Tt=i,mn=s;break;case 5:Et||_r(r,t);case 6:if(i=Tt,s=mn,Tt=null,Qr(e,t,r),Tt=i,mn=s,Tt!==null)if(mn)try{be(r,jR,Tt,r.stateNode)}catch(c){nt(r,t,c)}else try{be(r,LR,Tt,r.stateNode)}catch(c){nt(r,t,c)}break;case 18:Tt!==null&&(mn?(e=Tt,y1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Ks(e)):y1(Tt,r.stateNode));break;case 4:i=Tt,s=mn,Tt=r.stateNode.containerInfo,mn=!0,Qr(e,t,r),Tt=i,mn=s;break;case 0:case 11:case 14:case 15:Et||mo(nn,r,t),Et||Oh(r,t,Ft),Qr(e,t,r);break;case 1:Et||(_r(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"&&dv(r,t,i)),Qr(e,t,r);break;case 21:Qr(e,t,r);break;case 22:Et=(i=Et)||r.memoizedState!==null,Qr(e,t,r),Et=i;break;default:Qr(e,t,r)}}function _v(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{be(t,$R,e)}catch(r){nt(t,t.return,r)}}function mR(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new LE),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new LE),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Bh(e,t){var r=mR(e);t.forEach(function(i){var s=SR.bind(null,e,i);if(!r.has(i)){if(r.add(i),ir)if(Wo!==null&&Ko!==null)Ps(Ko,Wo);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,h=r[i],b=c;e:for(;b!==null;){switch(b.tag){case 27:if(Da(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.");vv(s,c,h),Tt=null,mn=!1,s=h,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Ev(t,e),t=t.sibling}function Ev(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&&(mo(nn|$n,e,e.return),Vs(nn|$n,e),Oh(e,e.return,Ft|$n));break;case 1:_n(t,e),En(e),i&512&&(Et||r===null||_r(r,r.return)),i&64&&sa&&(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=cr;if(_n(t,e),En(e),i&512&&(Et||r===null||_r(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[tl]||s[Zt]||s.namespaceURI===Ro||s.hasAttribute("itemprop"))&&(s=t.createElement(i),t.head.insertBefore(s,t.querySelector("head > title"))),It(s,i,r),s[Zt]=e,j(s),i=s;break e;case"link":var c=R1("link","href",t).get(i+(r.href||""));if(c){for(var h=0;h<c.length;h++)if(s=c[h],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(h,1);break t}}s=t.createElement(i),It(s,i,r),t.head.appendChild(s);break;case"meta":if(c=R1("meta","content",t).get(i+(r.content||""))){for(h=0;h<c.length;h++)if(s=c[h],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(h,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[Zt]=e,j(s),i=s}e.stateNode=i}else A1(s,e.type,e.stateNode);else e.stateNode=N1(s,i,e.memoizedProps);else t!==i?(t===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):t.count--,i===null?A1(s,e.type,e.stateNode):N1(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Dh(e,e.memoizedProps,r.memoizedProps);break;case 27:_n(t,e),En(e),i&512&&(Et||r===null||_r(r,r.return)),r!==null&&i&4&&Dh(e,e.memoizedProps,r.memoizedProps);break;case 5:if(_n(t,e),En(e),i&512&&(Et||r===null||_r(r,r.return)),e.flags&32){t=e.stateNode;try{be(e,g1,t)}catch(z){nt(e,e.return,z)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Dh(e,t,r!==null?r.memoizedProps:t)),i&1024&&(fp=!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{be(e,BR,t,r,i)}catch(z){nt(e,e.return,z)}}break;case 3:if(s=$r(),Ku=null,c=cr,cr=au(t.containerInfo),_n(t,e),cr=c,En(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{be(e,PR,t.containerInfo)}catch(z){nt(e,e.return,z)}fp&&(fp=!1,wv(e)),t.effectDuration+=Tc(s);break;case 4:i=cr,cr=au(e.stateNode.containerInfo),_n(t,e),En(e),cr=i;break;case 12:i=$r(),_n(t,e),En(e),e.stateNode.effectDuration+=Cs(i);break;case 13:_n(t,e),En(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(gp=kr()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Bh(e,i)));break;case 22:s=e.memoizedState!==null;var b=r!==null&&r.memoizedState!==null,x=sa,k=Et;if(sa=x||s,Et=k||b,_n(t,e),Et=k,sa=x,En(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|Fm,s&&(r===null||b||sa||Et||Ei(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){b=r=t;try{c=b.stateNode,s?be(b,HR,c):be(b,VR,b.stateNode,b.memoizedProps)}catch(z){nt(b,b.return,z)}}}else if(t.tag===6){if(r===null){b=t;try{h=b.stateNode,s?be(b,zR,h):be(b,IR,h,b.memoizedProps)}catch(z){nt(b,b.return,z)}}}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,Bh(e,r))));break;case 19:_n(t,e),En(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Bh(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{be(e,dR,e)}catch(r){nt(e,e.return,r)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gv(e,t.alternate,t),t=t.sibling}function Sv(e){switch(e.tag){case 0:case 11:case 14:case 15:Oh(e,e.return,Ft),Ei(e);break;case 1:_r(e,e.return);var t=e.stateNode;typeof t.componentWillUnmount=="function"&&dv(e,e.return,t),Ei(e);break;case 27:be(e,Xs,e.stateNode);case 26:case 5:_r(e,e.return),Ei(e);break;case 22:e.memoizedState===null&&Ei(e);break;case 30:Ei(e);break;default:Ei(e)}}function Ei(e){for(e=e.child;e!==null;)Sv(e),e=e.sibling}function xv(e,t,r,i){var s=r.flags;switch(r.tag){case 0:case 11:case 15:Kr(e,r,i),cv(r,Ft);break;case 1:if(Kr(e,r,i),t=r.stateNode,typeof t.componentDidMount=="function"&&be(r,ap,r,t),t=r.updateQueue,t!==null){e=r.stateNode;try{be(r,KN,t,e)}catch(c){nt(r,r.return,c)}}i&&s&64&&fv(r),Is(r,r.return);break;case 27:bv(r);case 26:case 5:Kr(e,r,i),i&&t===null&&s&4&&mv(r),Is(r,r.return);break;case 12:if(i&&s&4){s=$r(),Kr(e,r,i),i=r.stateNode,i.effectDuration+=Cs(s);try{be(r,hv,r,t,Tu,i.effectDuration)}catch(c){nt(r,r.return,c)}}else Kr(e,r,i);break;case 13:Kr(e,r,i),i&&s&4&&_v(e,r);break;case 22:r.memoizedState===null&&Kr(e,r,i),Is(r,r.return);break;case 30:break;default:Kr(e,r,i)}}function Kr(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)xv(e,t.alternate,t,r),t=t.sibling}function Lh(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&&bi(e),r!=null&&Os(r))}function jh(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(bi(t),e!=null&&Os(e))}function Er(e,t,r,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kv(e,t,r,i),t=t.sibling}function kv(e,t,r,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Er(e,t,r,i),s&2048&&uv(t,Ct|$n);break;case 1:Er(e,t,r,i);break;case 3:var c=$r();Er(e,t,r,i),s&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==r&&(bi(t),r!=null&&Os(r))),e.passiveEffectDuration+=Tc(c);break;case 12:if(s&2048){s=$r(),Er(e,t,r,i),e=t.stateNode,e.passiveEffectDuration+=Cs(s);try{be(t,fR,t,t.alternate,Tu,e.passiveEffectDuration)}catch(b){nt(t,t.return,b)}}else Er(e,t,r,i);break;case 13:Er(e,t,r,i);break;case 23:break;case 22:c=t.stateNode;var h=t.alternate;t.memoizedState!==null?c._visibility&xi?Er(e,t,r,i):Gs(e,t):c._visibility&xi?Er(e,t,r,i):(c._visibility|=xi,po(e,t,r,i,(t.subtreeFlags&10256)!==0)),s&2048&&Lh(h,t);break;case 24:Er(e,t,r,i),s&2048&&jh(t.alternate,t);break;default:Er(e,t,r,i)}}function po(e,t,r,i,s){for(s=s&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;)Tv(e,t,r,i,s),t=t.sibling}function Tv(e,t,r,i,s){var c=t.flags;switch(t.tag){case 0:case 11:case 15:po(e,t,r,i,s),uv(t,Ct);break;case 23:break;case 22:var h=t.stateNode;t.memoizedState!==null?h._visibility&xi?po(e,t,r,i,s):Gs(e,t):(h._visibility|=xi,po(e,t,r,i,s)),s&&c&2048&&Lh(t.alternate,t);break;case 24:po(e,t,r,i,s),s&&c&2048&&jh(t.alternate,t);break;default:po(e,t,r,i,s)}}function Gs(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:Gs(r,i),s&2048&&Lh(i.alternate,i);break;case 24:Gs(r,i),s&2048&&jh(i.alternate,i);break;default:Gs(r,i)}t=t.sibling}}function bo(e){if(e.subtreeFlags&xl)for(e=e.child;e!==null;)Nv(e),e=e.sibling}function Nv(e){switch(e.tag){case 26:bo(e),e.flags&xl&&e.memoizedState!==null&&WR(cr,e.memoizedState,e.memoizedProps);break;case 5:bo(e);break;case 3:case 4:var t=cr;cr=au(e.stateNode.containerInfo),bo(e),cr=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=xl,xl=16777216,bo(e),xl=t):bo(e));break;default:bo(e)}}function Rv(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 qs(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];jt=i,Cv(i,e)}Rv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Av(e),e=e.sibling}function Av(e){switch(e.tag){case 0:case 11:case 15:qs(e),e.flags&2048&&Ch(e,e.return,Ct|$n);break;case 3:var t=$r();qs(e),e.stateNode.passiveEffectDuration+=Tc(t);break;case 12:t=$r(),qs(e),e.stateNode.passiveEffectDuration+=Cs(t);break;case 22:t=e.stateNode,e.memoizedState!==null&&t._visibility&xi&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Kc(e)):qs(e);break;default:qs(e)}}function Kc(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];jt=i,Cv(i,e)}Rv(e)}for(e=e.child;e!==null;)Ov(e),e=e.sibling}function Ov(e){switch(e.tag){case 0:case 11:case 15:Ch(e,e.return,Ct),Kc(e);break;case 22:var t=e.stateNode;t._visibility&xi&&(t._visibility&=-3,Kc(e));break;default:Kc(e)}}function Cv(e,t){for(;jt!==null;){var r=jt,i=r;switch(i.tag){case 0:case 11:case 15:Ch(i,t,Ct);break;case 23:case 22:i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(i=i.memoizedState.cachePool.pool,i!=null&&bi(i));break;case 24:Os(i.memoizedState.cache)}if(i=r.child,i!==null)i.return=r,jt=i;else e:for(r=e;jt!==null;){i=jt;var s=i.sibling,c=i.return;if(yv(i),i===r){jt=null;break e}if(s!==null){s.return=c,jt=s;break e}jt=c}}}function pR(){AO.forEach(function(e){return e()})}function Dv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function wn(e){if((Qe&rn)!==kn&&He!==0)return He&-He;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),e=Ri,e!==0?e:$h()):ys()}function Mv(){Nn===0&&(Nn=(He&536870912)===0||$e?Ue():536870912);var e=Xn.current;return e!==null&&(e.flags|=32),Nn}function _t(e,t,r){if(rs&&console.error("useInsertionEffect must not schedule updates."),wp&&(Vu=!0),(e===ot&&(We===Mi||We===Ui)||e.cancelPendingCommit!==null)&&(yo(e,0),Oa(e,He,Nn,!1)),Ea(e,r),(Qe&rn)!==0&&e===ot){if(Rr)switch(t.tag){case 0:case 11:case 15:e=Be&&X(Be)||"Unknown",$E.has(e)||($E.add(e),t=X(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:PE||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),PE=!0)}}else ir&&bs(e,t,r),kR(t),e===ot&&((Qe&rn)===kn&&(Pa|=r),gt===Di&&Oa(e,He,Nn,!1)),wr(e)}function Uv(e,t,r){if((Qe&(rn|ur))!==kn)throw Error("Should not already be working.");var i=!r&&(t&124)===0&&(t&e.expiredLanes)===0||_a(e,t),s=i?gR(e,t):Vh(e,t,!0),c=i;do{if(s===la){ts&&!i&&Oa(e,t,0,!1);break}else{if(r=e.current.alternate,c&&!bR(r)){s=Vh(e,t,!1),c=!1;continue}if(s===Jo){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{s=e;var b=h;h=Ol;var x=s.current.memoizedState.isDehydrated;if(x&&(yo(s,b).flags|=256),b=Vh(s,b,!1),b!==Jo){if(pp&&!x){s.errorRecoveryDisabledLanes|=c,Pa|=c,s=Di;break e}s=an,an=h,s!==null&&(an===null?an=s:an.push.apply(an,s))}s=b}if(c=!1,s!==Jo)continue}}if(s===Tl){yo(e,0),Oa(e,t,0,!0);break}e:{switch(i=e,s){case la:case Tl:throw Error("Root did not complete. This is a bug in React.");case Di:if((t&4194048)!==t)break;case ju:Oa(i,t,Nn,!qa);break e;case Jo:an=null;break;case dp:case jE:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)Ih(i,r,t,an,Cl,Hu,Nn,Pa,Bi);else{if((t&62914560)===t&&(c=gp+zE-kr(),10<c)){if(Oa(i,t,Nn,!qa),Gr(i,0,!0)!==0)break e;i.timeoutHandle=ew(Bv.bind(null,i,r,an,Cl,Hu,t,Nn,Pa,Bi,qa,s,MO,I_,0),c);break e}Bv(i,r,an,Cl,Hu,t,Nn,Pa,Bi,qa,s,CO,I_,0)}}}break}while(!0);wr(e)}function Bv(e,t,r,i,s,c,h,b,x,k,z,q,H,P){if(e.timeoutHandle=Vi,q=t.subtreeFlags,(q&8192||(q&16785408)===16785408)&&(jl={stylesheets:null,count:0,unsuspend:QR},Nv(t),q=KR(),q!==null)){e.cancelPendingCommit=q(Ih.bind(null,e,t,c,r,i,s,h,b,x,z,DO,H,P)),Oa(e,c,h,!k);return}Ih(e,t,c,r,i,s,h,b,x)}function bR(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(!en(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 Oa(e,t,r,i){t&=~bp,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var c=31-Kt(s),h=1<<c;i[c]=-1,s&=~h}r!==0&&ms(e,r,t)}function go(){return(Qe&(rn|ur))===kn?($s(0),!1):!0}function Hh(){if(Be!==null){if(We===pn)var e=Be.return;else e=Be,Sc(),Zd(e),$o=null,wl=0,e=Be;for(;e!==null;)lv(e.alternate,e),e=e.return;Be=null}}function yo(e,t){var r=e.timeoutHandle;r!==Vi&&(e.timeoutHandle=Vi,$O(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Hh(),ot=e,Be=r=Fr(e.current,null),He=t,We=pn,Tn=null,qa=!1,ts=_a(e,t),pp=!1,gt=la,Bi=Nn=bp=Pa=Fa=0,an=Ol=null,Hu=!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-Kt(i),c=1<<s;t|=e[s],i&=~c}return Mr=t,vc(),t=z_(),1e3<t-H_&&(G.recentlyCreatedOwnerStacks=0,H_=t),sr.discardPendingWarnings(),r}function Lv(e,t){Ee=null,G.H=Bu,G.getCurrentStack=null,Rr=!1,xn=null,t===yl||t===Ou?(t=c0(),We=Rl):t===F_?(t=c0(),We=HE):We=t===RE?mp:t!==null&&typeof t=="object"&&typeof t.then=="function"?es:Nl,Tn=t;var r=Be;if(r===null)gt=Tl,Yc(e,vn(t,e.current));else switch(r.mode&qt&&Hd(r),Mt(),We){case Nl:oe!==null&&typeof oe.markComponentErrored=="function"&&oe.markComponentErrored(r,t,He);break;case Mi:case Ui:case Rl:case es:case Al:oe!==null&&typeof oe.markComponentSuspended=="function"&&oe.markComponentSuspended(r,t,He)}}function jv(){var e=G.H;return G.H=Bu,e===null?Bu:e}function Hv(){var e=G.A;return G.A=RO,e}function zh(){gt=Di,qa||(He&4194048)!==He&&Xn.current!==null||(ts=!0),(Fa&134217727)===0&&(Pa&134217727)===0||ot===null||Oa(ot,He,Nn,!1)}function Vh(e,t,r){var i=Qe;Qe|=rn;var s=jv(),c=Hv();if(ot!==e||He!==t){if(ir){var h=e.memoizedUpdaters;0<h.size&&(Ps(e,He),h.clear()),gs(e,t)}Cl=null,yo(e,t)}br(t),t=!1,h=gt;e:do try{if(We!==pn&&Be!==null){var b=Be,x=Tn;switch(We){case mp:Hh(),h=ju;break e;case Rl:case Mi:case Ui:case es:Xn.current===null&&(t=!0);var k=We;if(We=pn,Tn=null,vo(e,b,x,k),r&&ts){h=la;break e}break;default:k=We,We=pn,Tn=null,vo(e,b,x,k)}}zv(),h=gt;break}catch(z){Lv(e,z)}while(!0);return t&&e.shellSuspendCounter++,Sc(),Qe=i,G.H=s,G.A=c,ie(),Be===null&&(ot=null,He=0,vc()),h}function zv(){for(;Be!==null;)Vv(Be)}function gR(e,t){var r=Qe;Qe|=rn;var i=jv(),s=Hv();if(ot!==e||He!==t){if(ir){var c=e.memoizedUpdaters;0<c.size&&(Ps(e,He),c.clear()),gs(e,t)}Cl=null,zu=kr()+VE,yo(e,t)}else ts=_a(e,t);br(t);e:do try{if(We!==pn&&Be!==null)t:switch(t=Be,c=Tn,We){case Nl:We=pn,Tn=null,vo(e,t,c,Nl);break;case Mi:case Ui:if(s0(c)){We=pn,Tn=null,Iv(t);break}t=function(){We!==Mi&&We!==Ui||ot!==e||(We=Al),wr(e)},c.then(t,t);break e;case Rl:We=Al;break e;case HE:We=hp;break e;case Al:s0(c)?(We=pn,Tn=null,Iv(t)):(We=pn,Tn=null,vo(e,t,c,Al));break;case hp:var h=null;switch(Be.tag){case 26:h=Be.memoizedState;case 5:case 27:var b=Be;if(!h||O1(h)){We=pn,Tn=null;var x=b.sibling;if(x!==null)Be=x;else{var k=b.return;k!==null?(Be=k,Jc(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,Tn=null,vo(e,t,c,hp);break;case es:We=pn,Tn=null,vo(e,t,c,es);break;case mp:Hh(),gt=ju;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?zv():yR();break}catch(z){Lv(e,z)}while(!0);return Sc(),G.H=i,G.A=s,Qe=r,Be!==null?(oe!==null&&typeof oe.markRenderYielded=="function"&&oe.markRenderYielded(),la):(ie(),ot=null,He=0,vc(),gt)}function yR(){for(;Be!==null&&!mA();)Vv(Be)}function Vv(e){var t=e.alternate;(e.mode&qt)!==lt?(jd(e),t=be(e,Ah,t,e,Mr),Hd(e)):t=be(e,Ah,t,e,Mr),e.memoizedProps=e.pendingProps,t===null?Jc(e):Be=t}function Iv(e){var t=be(e,vR,e);e.memoizedProps=e.pendingProps,t===null?Jc(e):Be=t}function vR(e){var t=e.alternate,r=(e.mode&qt)!==lt;switch(r&&jd(e),e.tag){case 15:case 0:t=ev(t,e,e.pendingProps,e.type,void 0,He);break;case 11:t=ev(t,e,e.pendingProps,e.type.render,e.ref,He);break;case 5:Zd(e);default:lv(t,e),e=Be=Qy(e,Mr),t=Ah(t,e,Mr)}return r&&Hd(e),t}function vo(e,t,r,i){Sc(),Zd(t),$o=null,wl=0;var s=t.return;try{if(aR(e,s,t,r,He)){gt=Tl,Yc(e,vn(r,e.current)),Be=null;return}}catch(c){if(s!==null)throw Be=s,c;gt=Tl,Yc(e,vn(r,e.current)),Be=null;return}t.flags&32768?($e||i===Nl?e=!0:ts||(He&536870912)!==0?e=!1:(qa=e=!0,(i===Mi||i===Ui||i===Rl||i===es)&&(i=Xn.current,i!==null&&i.tag===13&&(i.flags|=16384))),Gv(t,e)):Jc(t)}function Jc(e){var t=e;do{if((t.flags&32768)!==0){Gv(t,qa);return}var r=t.alternate;if(e=t.return,jd(t),r=be(t,oR,r,t,Mr),(t.mode&qt)!==lt&&r0(t),r!==null){Be=r;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);gt===la&&(gt=jE)}function Gv(e,t){do{var r=sR(e.alternate,e);if(r!==null){r.flags&=32767,Be=r;return}if((e.mode&qt)!==lt){r0(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);gt=ju,Be=null}function Ih(e,t,r,i,s,c,h,b,x){e.cancelPendingCommit=null;do Fs();while(Pt!==Li);if(sr.flushLegacyContextWarning(),sr.flushPendingUnsafeLifecycleWarnings(),(Qe&(rn|ur))!==kn)throw Error("Should not already be working.");if(oe!==null&&typeof oe.markCommitStarted=="function"&&oe.markCommitStarted(r),t===null)it();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|=Pm,cc(e,r,c,h,b,x),e===ot&&(Be=ot=null,He=0),ns=t,Ya=e,Xa=r,vp=c,_p=s,FE=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,xR(ko,function(){return Yv(),null})):(e.callbackNode=null,e.callbackPriority=0),Tu=Io(),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null,s=Ze.p,Ze.p=zn,h=Qe,Qe|=ur;try{hR(e,t,r)}finally{Qe=h,Ze.p=s,G.T=i}}Pt=IE,qv(),Fv(),Pv()}}function qv(){if(Pt===IE){Pt=Li;var e=Ya,t=ns,r=Xa,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null;var s=Ze.p;Ze.p=zn;var c=Qe;Qe|=ur;try{Wo=r,Ko=e,Ev(t,e),Ko=Wo=null,r=Cp;var h=Py(e.containerInfo),b=r.focusedElem,x=r.selectionRange;if(h!==b&&b&&b.ownerDocument&&Fy(b.ownerDocument.documentElement,b)){if(x!==null&&Sd(b)){var k=x.start,z=x.end;if(z===void 0&&(z=k),"selectionStart"in b)b.selectionStart=k,b.selectionEnd=Math.min(z,b.value.length);else{var q=b.ownerDocument||document,H=q&&q.defaultView||window;if(H.getSelection){var P=H.getSelection(),ce=b.textContent.length,ve=Math.min(x.start,ce),st=x.end===void 0?ve:Math.min(x.end,ce);!P.extend&&ve>st&&(h=st,st=ve,ve=h);var Ve=qy(b,ve),R=qy(b,st);if(Ve&&R&&(P.rangeCount!==1||P.anchorNode!==Ve.node||P.anchorOffset!==Ve.offset||P.focusNode!==R.node||P.focusOffset!==R.offset)){var O=q.createRange();O.setStart(Ve.node,Ve.offset),P.removeAllRanges(),ve>st?(P.addRange(O),P.extend(R.node,R.offset)):(O.setEnd(R.node,R.offset),P.addRange(O))}}}}for(q=[],P=b;P=P.parentNode;)P.nodeType===1&&q.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<q.length;b++){var B=q[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}tf=!!Op,Cp=Op=null}finally{Qe=c,Ze.p=s,G.T=i}}e.current=t,Pt=GE}}function Fv(){if(Pt===GE){Pt=Li;var e=Ya,t=ns,r=Xa,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=G.T,G.T=null;var s=Ze.p;Ze.p=zn;var c=Qe;Qe|=ur;try{oe!==null&&typeof oe.markLayoutEffectsStarted=="function"&&oe.markLayoutEffectsStarted(r),Wo=r,Ko=e,gv(e,t.alternate,t),Ko=Wo=null,oe!==null&&typeof oe.markLayoutEffectsStopped=="function"&&oe.markLayoutEffectsStopped()}finally{Qe=c,Ze.p=s,G.T=i}}Pt=qE}}function Pv(){if(Pt===UO||Pt===qE){Pt=Li,pA();var e=Ya,t=ns,r=Xa,i=FE,s=(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0;s?Pt=yp:(Pt=Li,ns=Ya=null,$v(e,e.pendingLanes),ji=0,Ml=null);var c=e.pendingLanes;if(c===0&&($a=null),s||Wv(e),s=ao(r),t=t.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{var h=(t.current.flags&128)===128;switch(s){case zn:var b=wm;break;case Nr:b=Sm;break;case ta:b=ko;break;case bu:b=xm;break;default:b=ko}Xt.onCommitFiberRoot(To,t,b,h)}catch(q){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",q))}if(ir&&e.memoizedUpdaters.clear(),pR(),i!==null){h=G.T,b=Ze.p,Ze.p=zn,G.T=null;try{var x=e.onRecoverableError;for(t=0;t<i.length;t++){var k=i[t],z=_R(k.stack);be(k.source,x,k.value,z)}}finally{G.T=h,Ze.p=b}}(Xa&3)!==0&&Fs(),wr(e),c=e.pendingLanes,(r&4194090)!==0&&(c&42)!==0?(Ru=!0,e===Ep?Dl++:(Dl=0,Ep=e)):Dl=0,$s(0),it()}}function _R(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 $v(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Os(t)))}function Fs(e){return qv(),Fv(),Pv(),Yv()}function Yv(){if(Pt!==yp)return!1;var e=Ya,t=vp;vp=0;var r=ao(Xa),i=ta>r?ta:r;r=G.T;var s=Ze.p;try{Ze.p=i,G.T=null,i=_p,_p=null;var c=Ya,h=Xa;if(Pt=Li,ns=Ya=null,Xa=0,(Qe&(rn|ur))!==kn)throw Error("Cannot flush passive effects while already rendering.");wp=!0,Vu=!1,oe!==null&&typeof oe.markPassiveEffectsStarted=="function"&&oe.markPassiveEffectsStarted(h);var b=Qe;if(Qe|=ur,Av(c.current),kv(c,c.current,h,i),oe!==null&&typeof oe.markPassiveEffectsStopped=="function"&&oe.markPassiveEffectsStopped(),Wv(c),Qe=b,$s(0,!1),Vu?c===Ml?ji++:(ji=0,Ml=c):ji=0,Vu=wp=!1,Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.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,G.T=r,$v(e,t)}}function Xv(e,t,r){t=vn(r,t),t=yh(e.stateNode,t,2),e=Ta(e,t,2),e!==null&&(Ea(e,2),wr(e))}function nt(e,t,r){if(rs=!1,e.tag===3)Xv(e,e,r);else{for(;t!==null;){if(t.tag===3){Xv(t,e,r);return}if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&($a===null||!$a.has(i))){e=vn(r,e),r=vh(2),i=Ta(t,r,2),i!==null&&(_h(r,i,t,e),Ea(i,2),wr(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.
|
|
194
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+i,be(t,function(b,x){console.error("%s must not return anything besides a function, which is used for clean-up.%s",b,x)},c,h)}r=r.next}while(r!==s)}}catch(b){nt(t,t.return,b)}}function mo(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 h=i.inst,b=h.destroy;b!==void 0&&(h.destroy=void 0,(e&Ct)!==$n?oe!==null&&typeof oe.markComponentPassiveEffectUnmountStarted=="function"&&oe.markComponentPassiveEffectUnmountStarted(t):(e&Ft)!==$n&&oe!==null&&typeof oe.markComponentLayoutEffectUnmountStarted=="function"&&oe.markComponentLayoutEffectUnmountStarted(t),(e&nn)!==$n&&(rs=!0),s=t,be(s,DO,s,r,b),(e&nn)!==$n&&(rs=!1),(e&Ct)!==$n?oe!==null&&typeof oe.markComponentPassiveEffectUnmountStopped=="function"&&oe.markComponentPassiveEffectUnmountStopped():(e&Ft)!==$n&&oe!==null&&typeof oe.markComponentLayoutEffectUnmountStopped=="function"&&oe.markComponentLayoutEffectUnmountStopped())}i=i.next}while(i!==c)}}catch(x){nt(t,t.return,x)}}function bv(e,t){vr(e)?(yr(),Is(t,e),gr()):Is(t,e)}function Uh(e,t,r){vr(e)?(yr(),mo(r,e,t),gr()):mo(r,e,t)}function gv(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Qo||(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.",X(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.",X(e)||"instance"));try{be(e,y0,t,r)}catch(i){nt(e,e.return,i)}}}function hR(e,t,r){return e.getSnapshotBeforeUpdate(t,r)}function mR(e,t){var r=t.memoizedProps,i=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Qo||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{var s=_i(e.type,r,e.elementType===e.type),c=be(e,hR,t,s,i);r=VE,c!==void 0||r.has(e.type)||(r.add(e.type),be(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",X(e))})),t.__reactInternalSnapshotBeforeUpdate=c}catch(h){nt(e,e.return,h)}}function yv(e,t,r){r.props=_i(e.type,e.memoizedProps),r.state=e.memoizedState,vr(e)?(yr(),be(e,mE,e,t,r),gr()):be(e,mE,e,t,r)}function pR(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(vr(e))try{yr(),e.refCleanup=t(r)}finally{gr()}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().",X(e)),t.current=r}}function Vs(e,t){try{be(e,pR,e)}catch(r){nt(e,t,r)}}function _r(e,t){var r=e.ref,i=e.refCleanup;if(r!==null)if(typeof i=="function")try{if(vr(e))try{yr(),be(e,i)}finally{gr(e)}else be(e,i)}catch(s){nt(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{if(vr(e))try{yr(),be(e,r,null)}finally{gr(e)}else be(e,r,null)}catch(s){nt(e,t,s)}else r.current=null}function vv(e,t,r,i){var s=e.memoizedProps,c=s.id,h=s.onCommit;s=s.onRender,t=t===null?"mount":"update",Nu&&(t="nested-update"),typeof s=="function"&&s(c,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,r),typeof h=="function"&&h(e.memoizedProps.id,t,i,r)}function bR(e,t,r,i){var s=e.memoizedProps;e=s.id,s=s.onPostCommit,t=t===null?"mount":"update",Nu&&(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{be(e,HR,i,t,r,e)}catch(s){nt(e,e.return,s)}}function Bh(e,t,r){try{be(e,zR,e.stateNode,e.type,r,t,e)}catch(i){nt(e,e.return,i)}}function Ev(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Da(e.type)||e.tag===4}function Lh(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&&Da(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 jh(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=nu));else if(i!==4&&(i===27&&Da(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(jh(e,t,r),e=e.sibling;e!==null;)jh(e,t,r),e=e.sibling}function Wc(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&&Da(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Wc(e,t,r),e=e.sibling;e!==null;)Wc(e,t,r),e=e.sibling}function gR(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=Lh(e),Wc(e,r,t);break;case 5:r=t.stateNode,t.flags&32&&(S1(r),t.flags&=-33),t=Lh(e),Wc(e,t,r);break;case 3:case 4:t=t.stateNode.containerInfo,r=Lh(e),jh(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{be(e,KR,e.type,r,t,e)}catch(i){nt(e,e.return,i)}}function yR(e,t){if(e=e.containerInfo,Mp=tf,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 h=0,b=-1,x=-1,k=0,z=0,q=e,H=null;t:for(;;){for(var P;q!==r||s!==0&&q.nodeType!==3||(b=h+s),q!==c||i!==0&&q.nodeType!==3||(x=h+i),q.nodeType===3&&(h+=q.nodeValue.length),(P=q.firstChild)!==null;)H=q,q=P;for(;;){if(q===e)break t;if(H===r&&++k===s&&(b=h),H===c&&++z===i&&(x=h),(P=q.nextSibling)!==null)break;q=H,H=q.parentNode}q=P}r=b===-1||x===-1?null:{start:b,end:x}}else r=null}r=r||{start:0,end:0}}else r=null;for(Up={focusedElem:e,selectionRange:r},tf=!1,jt=t;jt!==null;)if(t=jt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,jt=e;else for(;jt!==null;){switch(e=t=jt,r=e.alternate,s=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:(s&1024)!==0&&r!==null&&mR(e,r);break;case 3:if((s&1024)!==0){if(e=e.stateNode.containerInfo,r=e.nodeType,r===9)im(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":im(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,jt=e;break}jt=t.return}}function Sv(e,t,r){var i=r.flags;switch(r.tag){case 0:case 11:case 15:Wr(e,r),i&4&&pv(r,Ft|Yn);break;case 1:if(Wr(e,r),i&4)if(e=r.stateNode,t===null)r.type.defaultProps||"ref"in r.memoizedProps||Qo||(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.",X(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.",X(r)||"instance")),vr(r)?(yr(),be(r,sp,r,e),gr()):be(r,sp,r,e);else{var s=_i(r.type,t.memoizedProps);t=t.memoizedState,r.type.defaultProps||"ref"in r.memoizedProps||Qo||(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.",X(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.",X(r)||"instance")),vr(r)?(yr(),be(r,fE,r,e,s,t,e.__reactInternalSnapshotBeforeUpdate),gr()):be(r,fE,r,e,s,t,e.__reactInternalSnapshotBeforeUpdate)}i&64&&gv(r),i&512&&Vs(r,r.return);break;case 3:if(t=$r(),Wr(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{be(r,y0,i,s)}catch(h){nt(r,r.return,h)}}e.effectDuration+=Tc(t);break;case 27:t===null&&i&4&&wv(r);case 26:case 5:Wr(e,r),t===null&&i&4&&_v(r),i&512&&Vs(r,r.return);break;case 12:if(i&4){i=$r(),Wr(e,r),e=r.stateNode,e.effectDuration+=Cs(i);try{be(r,vv,r,t,Tu,e.effectDuration)}catch(h){nt(r,r.return,h)}}else Wr(e,r);break;case 13:Wr(e,r),i&4&&Tv(e,r),i&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=NR.bind(null,r),ZR(e,r))));break;case 22:if(i=r.memoizedState!==null||sa,!i){t=t!==null&&t.memoizedState!==null||Et,s=sa;var c=Et;sa=i,(Et=t)&&!c?Kr(e,r,(r.subtreeFlags&8772)!==0):Wr(e,r),sa=s,Et=c}break;case 30:break;default:Wr(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&&wa(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 Qr(e,t,r){for(r=r.child;r!==null;)kv(e,t,r),r=r.sibling}function kv(e,t,r){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(To,r)}catch(c){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",c))}switch(r.tag){case 26:Et||_r(r,t),Qr(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Et||_r(r,t);var i=Tt,s=mn;Da(r.type)&&(Tt=r.stateNode,mn=!1),Qr(e,t,r),be(r,Xs,r.stateNode),Tt=i,mn=s;break;case 5:Et||_r(r,t);case 6:if(i=Tt,s=mn,Tt=null,Qr(e,t,r),Tt=i,mn=s,Tt!==null)if(mn)try{be(r,GR,Tt,r.stateNode)}catch(c){nt(r,t,c)}else try{be(r,VR,Tt,r.stateNode)}catch(c){nt(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),Ks(e)):x1(Tt,r.stateNode));break;case 4:i=Tt,s=mn,Tt=r.stateNode.containerInfo,mn=!0,Qr(e,t,r),Tt=i,mn=s;break;case 0:case 11:case 14:case 15:Et||mo(nn,r,t),Et||Mh(r,t,Ft),Qr(e,t,r);break;case 1:Et||(_r(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"&&yv(r,t,i)),Qr(e,t,r);break;case 21:Qr(e,t,r);break;case 22:Et=(i=Et)||r.memoizedState!==null,Qr(e,t,r),Et=i;break;default:Qr(e,t,r)}}function Tv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{be(t,WR,e)}catch(r){nt(t,t.return,r)}}function vR(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 Hh(e,t){var r=vR(e);t.forEach(function(i){var s=RR.bind(null,e,i);if(!r.has(i)){if(r.add(i),ir)if(Wo!==null&&Ko!==null)Ps(Ko,Wo);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,h=r[i],b=c;e:for(;b!==null;){switch(b.tag){case 27:if(Da(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.");kv(s,c,h),Tt=null,mn=!1,s=h,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&&(mo(nn|Yn,e,e.return),Is(nn|Yn,e),Mh(e,e.return,Ft|Yn));break;case 1:_n(t,e),En(e),i&512&&(Et||r===null||_r(r,r.return)),i&64&&sa&&(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=cr;if(_n(t,e),En(e),i&512&&(Et||r===null||_r(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[tl]||s[Zt]||s.namespaceURI===Ro||s.hasAttribute("itemprop"))&&(s=t.createElement(i),t.head.insertBefore(s,t.querySelector("head > title"))),Vt(s,i,r),s[Zt]=e,j(s),i=s;break e;case"link":var c=U1("link","href",t).get(i+(r.href||""));if(c){for(var h=0;h<c.length;h++)if(s=c[h],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(h,1);break t}}s=t.createElement(i),Vt(s,i,r),t.head.appendChild(s);break;case"meta":if(c=U1("meta","content",t).get(i+(r.content||""))){for(h=0;h<c.length;h++)if(s=c[h],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(h,1);break t}}s=t.createElement(i),Vt(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[Zt]=e,j(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&&Bh(e,e.memoizedProps,r.memoizedProps);break;case 27:_n(t,e),En(e),i&512&&(Et||r===null||_r(r,r.return)),r!==null&&i&4&&Bh(e,e.memoizedProps,r.memoizedProps);break;case 5:if(_n(t,e),En(e),i&512&&(Et||r===null||_r(r,r.return)),e.flags&32){t=e.stateNode;try{be(e,S1,t)}catch(z){nt(e,e.return,z)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Bh(e,t,r!==null?r.memoizedProps:t)),i&1024&&(mp=!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{be(e,IR,t,r,i)}catch(z){nt(e,e.return,z)}}break;case 3:if(s=$r(),Ku=null,c=cr,cr=au(t.containerInfo),_n(t,e),cr=c,En(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{be(e,QR,t.containerInfo)}catch(z){nt(e,e.return,z)}mp&&(mp=!1,Rv(e)),t.effectDuration+=Tc(s);break;case 4:i=cr,cr=au(e.stateNode.containerInfo),_n(t,e),En(e),cr=i;break;case 12:i=$r(),_n(t,e),En(e),e.stateNode.effectDuration+=Cs(i);break;case 13:_n(t,e),En(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(_p=kr()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Hh(e,i)));break;case 22:s=e.memoizedState!==null;var b=r!==null&&r.memoizedState!==null,x=sa,k=Et;if(sa=x||s,Et=k||b,_n(t,e),Et=k,sa=x,En(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|Ym,s&&(r===null||b||sa||Et||Ei(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){b=r=t;try{c=b.stateNode,s?be(b,qR,c):be(b,PR,b.stateNode,b.memoizedProps)}catch(z){nt(b,b.return,z)}}}else if(t.tag===6){if(r===null){b=t;try{h=b.stateNode,s?be(b,FR,h):be(b,$R,h,b.memoizedProps)}catch(z){nt(b,b.return,z)}}}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,Hh(e,r))));break;case 19:_n(t,e),En(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Hh(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{be(e,gR,e)}catch(r){nt(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 Wr(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:Mh(e,e.return,Ft),Ei(e);break;case 1:_r(e,e.return);var t=e.stateNode;typeof t.componentWillUnmount=="function"&&yv(e,e.return,t),Ei(e);break;case 27:be(e,Xs,e.stateNode);case 26:case 5:_r(e,e.return),Ei(e);break;case 22:e.memoizedState===null&&Ei(e);break;case 30:Ei(e);break;default:Ei(e)}}function Ei(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:Kr(e,r,i),pv(r,Ft);break;case 1:if(Kr(e,r,i),t=r.stateNode,typeof t.componentDidMount=="function"&&be(r,sp,r,t),t=r.updateQueue,t!==null){e=r.stateNode;try{be(r,rR,t,e)}catch(c){nt(r,r.return,c)}}i&&s&64&&gv(r),Vs(r,r.return);break;case 27:wv(r);case 26:case 5:Kr(e,r,i),i&&t===null&&s&4&&_v(r),Vs(r,r.return);break;case 12:if(i&&s&4){s=$r(),Kr(e,r,i),i=r.stateNode,i.effectDuration+=Cs(s);try{be(r,vv,r,t,Tu,i.effectDuration)}catch(c){nt(r,r.return,c)}}else Kr(e,r,i);break;case 13:Kr(e,r,i),i&&s&4&&Tv(e,r);break;case 22:r.memoizedState===null&&Kr(e,r,i),Vs(r,r.return);break;case 30:break;default:Kr(e,r,i)}}function Kr(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 zh(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&&bi(e),r!=null&&Os(r))}function Ih(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(bi(t),e!=null&&Os(e))}function Er(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:Er(e,t,r,i),s&2048&&bv(t,Ct|Yn);break;case 1:Er(e,t,r,i);break;case 3:var c=$r();Er(e,t,r,i),s&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==r&&(bi(t),r!=null&&Os(r))),e.passiveEffectDuration+=Tc(c);break;case 12:if(s&2048){s=$r(),Er(e,t,r,i),e=t.stateNode,e.passiveEffectDuration+=Cs(s);try{be(t,bR,t,t.alternate,Tu,e.passiveEffectDuration)}catch(b){nt(t,t.return,b)}}else Er(e,t,r,i);break;case 13:Er(e,t,r,i);break;case 23:break;case 22:c=t.stateNode;var h=t.alternate;t.memoizedState!==null?c._visibility&xi?Er(e,t,r,i):Gs(e,t):c._visibility&xi?Er(e,t,r,i):(c._visibility|=xi,po(e,t,r,i,(t.subtreeFlags&10256)!==0)),s&2048&&zh(h,t);break;case 24:Er(e,t,r,i),s&2048&&Ih(t.alternate,t);break;default:Er(e,t,r,i)}}function po(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:po(e,t,r,i,s),bv(t,Ct);break;case 23:break;case 22:var h=t.stateNode;t.memoizedState!==null?h._visibility&xi?po(e,t,r,i,s):Gs(e,t):(h._visibility|=xi,po(e,t,r,i,s)),s&&c&2048&&zh(t.alternate,t);break;case 24:po(e,t,r,i,s),s&&c&2048&&Ih(t.alternate,t);break;default:po(e,t,r,i,s)}}function Gs(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:Gs(r,i),s&2048&&zh(i.alternate,i);break;case 24:Gs(r,i),s&2048&&Ih(i.alternate,i);break;default:Gs(r,i)}t=t.sibling}}function bo(e){if(e.subtreeFlags&xl)for(e=e.child;e!==null;)Mv(e),e=e.sibling}function Mv(e){switch(e.tag){case 26:bo(e),e.flags&xl&&e.memoizedState!==null&&nA(cr,e.memoizedState,e.memoizedProps);break;case 5:bo(e);break;case 3:case 4:var t=cr;cr=au(e.stateNode.containerInfo),bo(e),cr=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=xl,xl=16777216,bo(e),xl=t):bo(e));break;default:bo(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 qs(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];jt=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:qs(e),e.flags&2048&&Uh(e,e.return,Ct|Yn);break;case 3:var t=$r();qs(e),e.stateNode.passiveEffectDuration+=Tc(t);break;case 12:t=$r(),qs(e),e.stateNode.passiveEffectDuration+=Cs(t);break;case 22:t=e.stateNode,e.memoizedState!==null&&t._visibility&xi&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Kc(e)):qs(e);break;default:qs(e)}}function Kc(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];jt=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:Uh(e,e.return,Ct),Kc(e);break;case 22:var t=e.stateNode;t._visibility&xi&&(t._visibility&=-3,Kc(e));break;default:Kc(e)}}function jv(e,t){for(;jt!==null;){var r=jt,i=r;switch(i.tag){case 0:case 11:case 15:Uh(i,t,Ct);break;case 23:case 22:i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(i=i.memoizedState.cachePool.pool,i!=null&&bi(i));break;case 24:Os(i.memoizedState.cache)}if(i=r.child,i!==null)i.return=r,jt=i;else e:for(r=e;jt!==null;){i=jt;var s=i.sibling,c=i.return;if(xv(i),i===r){jt=null;break e}if(s!==null){s.return=c,jt=s;break e}jt=c}}}function _R(){UO.forEach(function(e){return e()})}function Hv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function wn(e){if((Qe&rn)!==kn&&He!==0)return He&-He;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),e=Ri,e!==0?e:Zh()):ys()}function zv(){Nn===0&&(Nn=(He&536870912)===0||$e?Ue():536870912);var e=Zn.current;return e!==null&&(e.flags|=32),Nn}function _t(e,t,r){if(rs&&console.error("useInsertionEffect must not schedule updates."),kp&&(Iu=!0),(e===ot&&(We===Mi||We===Ui)||e.cancelPendingCommit!==null)&&(yo(e,0),Oa(e,He,Nn,!1)),Ea(e,r),(Qe&rn)!==0&&e===ot){if(Rr)switch(t.tag){case 0:case 11:case 15:e=Be&&X(Be)||"Unknown",KE.has(e)||(KE.add(e),t=X(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1: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 ir&&bs(e,t,r),OR(t),e===ot&&((Qe&rn)===kn&&(Pa|=r),gt===Di&&Oa(e,He,Nn,!1)),wr(e)}function Iv(e,t,r){if((Qe&(rn|ur))!==kn)throw Error("Should not already be working.");var i=!r&&(t&124)===0&&(t&e.expiredLanes)===0||_a(e,t),s=i?wR(e,t):qh(e,t,!0),c=i;do{if(s===la){ts&&!i&&Oa(e,t,0,!1);break}else{if(r=e.current.alternate,c&&!ER(r)){s=qh(e,t,!1),c=!1;continue}if(s===Jo){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{s=e;var b=h;h=Ol;var x=s.current.memoizedState.isDehydrated;if(x&&(yo(s,b).flags|=256),b=qh(s,b,!1),b!==Jo){if(yp&&!x){s.errorRecoveryDisabledLanes|=c,Pa|=c,s=Di;break e}s=an,an=h,s!==null&&(an===null?an=s:an.push.apply(an,s))}s=b}if(c=!1,s!==Jo)continue}}if(s===Tl){yo(e,0),Oa(e,t,0,!0);break}e:{switch(i=e,s){case la:case Tl:throw Error("Root did not complete. This is a bug in React.");case Di:if((t&4194048)!==t)break;case ju:Oa(i,t,Nn,!qa);break e;case Jo:an=null;break;case pp:case qE:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)Fh(i,r,t,an,Cl,Hu,Nn,Pa,Bi);else{if((t&62914560)===t&&(c=_p+PE-kr(),10<c)){if(Oa(i,t,Nn,!qa),Gr(i,0,!0)!==0)break e;i.timeoutHandle=ow(Vv.bind(null,i,r,an,Cl,Hu,t,Nn,Pa,Bi,qa,s,HO,Y_,0),c);break e}Vv(i,r,an,Cl,Hu,t,Nn,Pa,Bi,qa,s,LO,Y_,0)}}}break}while(!0);wr(e)}function Vv(e,t,r,i,s,c,h,b,x,k,z,q,H,P){if(e.timeoutHandle=Ii,q=t.subtreeFlags,(q&8192||(q&16785408)===16785408)&&(jl={stylesheets:null,count:0,unsuspend:tA},Mv(t),q=rA(),q!==null)){e.cancelPendingCommit=q(Fh.bind(null,e,t,c,r,i,s,h,b,x,z,jO,H,P)),Oa(e,c,h,!k);return}Fh(e,t,c,r,i,s,h,b,x)}function ER(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(!en(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 Oa(e,t,r,i){t&=~vp,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var c=31-Kt(s),h=1<<c;i[c]=-1,s&=~h}r!==0&&ms(e,r,t)}function go(){return(Qe&(rn|ur))===kn?($s(0),!1):!0}function Vh(){if(Be!==null){if(We===pn)var e=Be.return;else e=Be,Sc(),Kd(e),$o=null,wl=0,e=Be;for(;e!==null;)mv(e.alternate,e),e=e.return;Be=null}}function yo(e,t){var r=e.timeoutHandle;r!==Ii&&(e.timeoutHandle=Ii,WO(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Vh(),ot=e,Be=r=Fr(e.current,null),He=t,We=pn,Tn=null,qa=!1,ts=_a(e,t),yp=!1,gt=la,Bi=Nn=vp=Pa=Fa=0,an=Ol=null,Hu=!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-Kt(i),c=1<<s;t|=e[s],i&=~c}return Mr=t,vc(),t=P_(),1e3<t-F_&&(G.recentlyCreatedOwnerStacks=0,F_=t),sr.discardPendingWarnings(),r}function Gv(e,t){Ee=null,G.H=Bu,G.getCurrentStack=null,Rr=!1,xn=null,t===yl||t===Ou?(t=p0(),We=Rl):t===Q_?(t=p0(),We=FE):We=t===UE?gp:t!==null&&typeof t=="object"&&typeof t.then=="function"?es:Nl,Tn=t;var r=Be;if(r===null)gt=Tl,Yc(e,vn(t,e.current));else switch(r.mode&qt&&Vd(r),Mt(),We){case Nl:oe!==null&&typeof oe.markComponentErrored=="function"&&oe.markComponentErrored(r,t,He);break;case Mi:case Ui:case Rl:case es:case Al:oe!==null&&typeof oe.markComponentSuspended=="function"&&oe.markComponentSuspended(r,t,He)}}function qv(){var e=G.H;return G.H=Bu,e===null?Bu:e}function Fv(){var e=G.A;return G.A=MO,e}function Gh(){gt=Di,qa||(He&4194048)!==He&&Zn.current!==null||(ts=!0),(Fa&134217727)===0&&(Pa&134217727)===0||ot===null||Oa(ot,He,Nn,!1)}function qh(e,t,r){var i=Qe;Qe|=rn;var s=qv(),c=Fv();if(ot!==e||He!==t){if(ir){var h=e.memoizedUpdaters;0<h.size&&(Ps(e,He),h.clear()),gs(e,t)}Cl=null,yo(e,t)}br(t),t=!1,h=gt;e:do try{if(We!==pn&&Be!==null){var b=Be,x=Tn;switch(We){case gp:Vh(),h=ju;break e;case Rl:case Mi:case Ui:case es:Zn.current===null&&(t=!0);var k=We;if(We=pn,Tn=null,vo(e,b,x,k),r&&ts){h=la;break e}break;default:k=We,We=pn,Tn=null,vo(e,b,x,k)}}Pv(),h=gt;break}catch(z){Gv(e,z)}while(!0);return t&&e.shellSuspendCounter++,Sc(),Qe=i,G.H=s,G.A=c,ie(),Be===null&&(ot=null,He=0,vc()),h}function Pv(){for(;Be!==null;)$v(Be)}function wR(e,t){var r=Qe;Qe|=rn;var i=qv(),s=Fv();if(ot!==e||He!==t){if(ir){var c=e.memoizedUpdaters;0<c.size&&(Ps(e,He),c.clear()),gs(e,t)}Cl=null,zu=kr()+$E,yo(e,t)}else ts=_a(e,t);br(t);e:do try{if(We!==pn&&Be!==null)t:switch(t=Be,c=Tn,We){case Nl:We=pn,Tn=null,vo(e,t,c,Nl);break;case Mi:case Ui:if(h0(c)){We=pn,Tn=null,Yv(t);break}t=function(){We!==Mi&&We!==Ui||ot!==e||(We=Al),wr(e)},c.then(t,t);break e;case Rl:We=Al;break e;case FE:We=bp;break e;case Al:h0(c)?(We=pn,Tn=null,Yv(t)):(We=pn,Tn=null,vo(e,t,c,Al));break;case bp:var h=null;switch(Be.tag){case 26:h=Be.memoizedState;case 5:case 27:var b=Be;if(!h||L1(h)){We=pn,Tn=null;var x=b.sibling;if(x!==null)Be=x;else{var k=b.return;k!==null?(Be=k,Jc(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,Tn=null,vo(e,t,c,bp);break;case es:We=pn,Tn=null,vo(e,t,c,es);break;case gp:Vh(),gt=ju;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?Pv():SR();break}catch(z){Gv(e,z)}while(!0);return Sc(),G.H=i,G.A=s,Qe=r,Be!==null?(oe!==null&&typeof oe.markRenderYielded=="function"&&oe.markRenderYielded(),la):(ie(),ot=null,He=0,vc(),gt)}function SR(){for(;Be!==null&&!vA();)$v(Be)}function $v(e){var t=e.alternate;(e.mode&qt)!==lt?(Id(e),t=be(e,Dh,t,e,Mr),Vd(e)):t=be(e,Dh,t,e,Mr),e.memoizedProps=e.pendingProps,t===null?Jc(e):Be=t}function Yv(e){var t=be(e,xR,e);e.memoizedProps=e.pendingProps,t===null?Jc(e):Be=t}function xR(e){var t=e.alternate,r=(e.mode&qt)!==lt;switch(r&&Id(e),e.tag){case 15:case 0:t=ov(t,e,e.pendingProps,e.type,void 0,He);break;case 11:t=ov(t,e,e.pendingProps,e.type.render,e.ref,He);break;case 5:Kd(e);default:mv(t,e),e=Be=n0(e,Mr),t=Dh(t,e,Mr)}return r&&Vd(e),t}function vo(e,t,r,i){Sc(),Kd(t),$o=null,wl=0;var s=t.return;try{if(cR(e,s,t,r,He)){gt=Tl,Yc(e,vn(r,e.current)),Be=null;return}}catch(c){if(s!==null)throw Be=s,c;gt=Tl,Yc(e,vn(r,e.current)),Be=null;return}t.flags&32768?($e||i===Nl?e=!0:ts||(He&536870912)!==0?e=!1:(qa=e=!0,(i===Mi||i===Ui||i===Rl||i===es)&&(i=Zn.current,i!==null&&i.tag===13&&(i.flags|=16384))),Xv(t,e)):Jc(t)}function Jc(e){var t=e;do{if((t.flags&32768)!==0){Xv(t,qa);return}var r=t.alternate;if(e=t.return,Id(t),r=be(t,fR,r,t,Mr),(t.mode&qt)!==lt&&c0(t),r!==null){Be=r;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);gt===la&&(gt=qE)}function Xv(e,t){do{var r=dR(e.alternate,e);if(r!==null){r.flags&=32767,Be=r;return}if((e.mode&qt)!==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);gt=ju,Be=null}function Fh(e,t,r,i,s,c,h,b,x){e.cancelPendingCommit=null;do Fs();while(Pt!==Li);if(sr.flushLegacyContextWarning(),sr.flushPendingUnsafeLifecycleWarnings(),(Qe&(rn|ur))!==kn)throw Error("Should not already be working.");if(oe!==null&&typeof oe.markCommitStarted=="function"&&oe.markCommitStarted(r),t===null)it();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|=Xm,cc(e,r,c,h,b,x),e===ot&&(Be=ot=null,He=0),ns=t,Ya=e,Xa=r,wp=c,Sp=s,QE=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,AR(ko,function(){return Jv(),null})):(e.callbackNode=null,e.callbackPriority=0),Tu=Vo(),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null,s=Ze.p,Ze.p=In,h=Qe,Qe|=ur;try{yR(e,t,r)}finally{Qe=h,Ze.p=s,G.T=i}}Pt=YE,Zv(),Qv(),Wv()}}function Zv(){if(Pt===YE){Pt=Li;var e=Ya,t=ns,r=Xa,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null;var s=Ze.p;Ze.p=In;var c=Qe;Qe|=ur;try{Wo=r,Ko=e,Nv(t,e),Ko=Wo=null,r=Up;var h=Wy(e.containerInfo),b=r.focusedElem,x=r.selectionRange;if(h!==b&&b&&b.ownerDocument&&Qy(b.ownerDocument.documentElement,b)){if(x!==null&&Td(b)){var k=x.start,z=x.end;if(z===void 0&&(z=k),"selectionStart"in b)b.selectionStart=k,b.selectionEnd=Math.min(z,b.value.length);else{var q=b.ownerDocument||document,H=q&&q.defaultView||window;if(H.getSelection){var P=H.getSelection(),ce=b.textContent.length,ve=Math.min(x.start,ce),st=x.end===void 0?ve:Math.min(x.end,ce);!P.extend&&ve>st&&(h=st,st=ve,ve=h);var Ie=Zy(b,ve),R=Zy(b,st);if(Ie&&R&&(P.rangeCount!==1||P.anchorNode!==Ie.node||P.anchorOffset!==Ie.offset||P.focusNode!==R.node||P.focusOffset!==R.offset)){var O=q.createRange();O.setStart(Ie.node,Ie.offset),P.removeAllRanges(),ve>st?(P.addRange(O),P.extend(R.node,R.offset)):(O.setEnd(R.node,R.offset),P.addRange(O))}}}}for(q=[],P=b;P=P.parentNode;)P.nodeType===1&&q.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<q.length;b++){var B=q[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}tf=!!Mp,Up=Mp=null}finally{Qe=c,Ze.p=s,G.T=i}}e.current=t,Pt=XE}}function Qv(){if(Pt===XE){Pt=Li;var e=Ya,t=ns,r=Xa,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=G.T,G.T=null;var s=Ze.p;Ze.p=In;var c=Qe;Qe|=ur;try{oe!==null&&typeof oe.markLayoutEffectsStarted=="function"&&oe.markLayoutEffectsStarted(r),Wo=r,Ko=e,Sv(e,t.alternate,t),Ko=Wo=null,oe!==null&&typeof oe.markLayoutEffectsStopped=="function"&&oe.markLayoutEffectsStopped()}finally{Qe=c,Ze.p=s,G.T=i}}Pt=ZE}}function Wv(){if(Pt===zO||Pt===ZE){Pt=Li,_A();var e=Ya,t=ns,r=Xa,i=QE,s=(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0;s?Pt=Ep:(Pt=Li,ns=Ya=null,Kv(e,e.pendingLanes),ji=0,Ml=null);var c=e.pendingLanes;if(c===0&&($a=null),s||r1(e),s=ao(r),t=t.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{var h=(t.current.flags&128)===128;switch(s){case In:var b=km;break;case Nr:b=Tm;break;case ta:b=ko;break;case bu:b=Nm;break;default:b=ko}Xt.onCommitFiberRoot(To,t,b,h)}catch(q){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",q))}if(ir&&e.memoizedUpdaters.clear(),_R(),i!==null){h=G.T,b=Ze.p,Ze.p=In,G.T=null;try{var x=e.onRecoverableError;for(t=0;t<i.length;t++){var k=i[t],z=kR(k.stack);be(k.source,x,k.value,z)}}finally{G.T=h,Ze.p=b}}(Xa&3)!==0&&Fs(),wr(e),c=e.pendingLanes,(r&4194090)!==0&&(c&42)!==0?(Ru=!0,e===xp?Dl++:(Dl=0,xp=e)):Dl=0,$s(0),it()}}function kR(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,Os(t)))}function Fs(e){return Zv(),Qv(),Wv(),Jv()}function Jv(){if(Pt!==Ep)return!1;var e=Ya,t=wp;wp=0;var r=ao(Xa),i=ta>r?ta:r;r=G.T;var s=Ze.p;try{Ze.p=i,G.T=null,i=Sp,Sp=null;var c=Ya,h=Xa;if(Pt=Li,ns=Ya=null,Xa=0,(Qe&(rn|ur))!==kn)throw Error("Cannot flush passive effects while already rendering.");kp=!0,Iu=!1,oe!==null&&typeof oe.markPassiveEffectsStarted=="function"&&oe.markPassiveEffectsStarted(h);var b=Qe;if(Qe|=ur,Bv(c.current),Cv(c,c.current,h,i),oe!==null&&typeof oe.markPassiveEffectsStopped=="function"&&oe.markPassiveEffectsStopped(),r1(c),Qe=b,$s(0,!1),Iu?c===Ml?ji++:(ji=0,Ml=c):ji=0,Iu=kp=!1,Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.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,G.T=r,Kv(e,t)}}function e1(e,t,r){t=vn(r,t),t=Eh(e.stateNode,t,2),e=Ta(e,t,2),e!==null&&(Ea(e,2),wr(e))}function nt(e,t,r){if(rs=!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"&&($a===null||!$a.has(i))){e=vn(r,e),r=wh(2),i=Ta(t,r,2),i!==null&&(Sh(r,i,t,e),Ea(i,2),wr(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
195
|
|
|
196
196
|
Error message:
|
|
197
197
|
|
|
198
|
-
%s`,r)}}function
|
|
198
|
+
%s`,r)}}function Ph(e,t,r){var i=e.pingCache;if(i===null){i=e.pingCache=new BO;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)||(yp=!0,s.add(r),i=TR.bind(null,e,t,r),ir&&Ps(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()&&G.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
199
199
|
|
|
200
200
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
201
201
|
|
|
@@ -204,7 +204,7 @@ act(() => {
|
|
|
204
204
|
});
|
|
205
205
|
/* assert on the output */
|
|
206
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`),ot===e&&(He&r)===r&&(gt===Di||gt===
|
|
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`),ot===e&&(He&r)===r&&(gt===Di||gt===pp&&(He&62914560)===He&&kr()-_p<PE?(Qe&rn)===kn&&yo(e,0):vp|=r,Bi===He&&(Bi=0)),wr(e)}function t1(e,t){t===0&&(t=ii()),e=cn(e,t),e!==null&&(Ea(e,t),wr(e))}function NR(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),t1(e,r)}function RR(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 $h(e,t,r){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var i=e,s=t,c=s.type===fu;c=r||c,s.tag!==22?s.flags&67108864?c&&be(s,n1,i,s,(s.mode&V_)===lt):$h(i,s,c):s.memoizedState===null&&(c&&s.flags&8192?be(s,n1,i,s):s.subtreeFlags&67108864&&be(s,$h,i,s,c)),t=t.sibling}}function n1(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;Ce(!0);try{Av(t),r&&Lv(t),Ov(e,t.alternate,t,!1),r&&Dv(e,t,0,null,!1,0)}finally{Ce(!1)}}function r1(e){var t=!0;e.current.mode&(Qt|or)||(t=!1),$h(e,e.current,t)}function a1(e){if((Qe&rn)===kn){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=X(e)||"ReactComponent",Vu!==null){if(Vu.has(t))return;Vu.add(t)}else Vu=new Set([t]);be(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 Ps(e,t){ir&&e.memoizedUpdaters.forEach(function(r){bs(e,r,t)})}function AR(e,t){var r=G.actQueue;return r!==null?(r.push(t),GO):xm(e,t)}function OR(e){Hv()&&G.actQueue===null&&be(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
208
208
|
|
|
209
209
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
210
210
|
|
|
@@ -213,16 +213,16 @@ act(() => {
|
|
|
213
213
|
});
|
|
214
214
|
/* assert on the output */
|
|
215
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`,X(e))})}function wr(e){e!==as&&e.next===null&&(as===null?Gu=as=e:as=as.next=e),qu=!0,G.actQueue!==null?xp||(xp=!0,n1()):Sp||(Sp=!0,n1())}function $s(e,t){if(!kp&&qu){kp=!0;do for(var r=!1,i=Gu;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var c=0;else{var h=i.suspendedLanes,b=i.pingedLanes;c=(1<<31-Kt(42|e)+1)-1,c&=s&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(r=!0,t1(i,c))}else c=He,c=Gr(i,i===ot?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==Vi),(c&3)===0||_a(i,c)||(r=!0,t1(i,c));i=i.next}while(r);kp=!1}}function TR(){Fh()}function Fh(){qu=xp=Sp=!1;var e=0;Hi!==0&&(CR()&&(e=Hi),Hi=0);for(var t=kr(),r=null,i=Gu;i!==null;){var s=i.next,c=Jv(i,t);c===0?(i.next=null,r===null?Gu=s:r.next=s,s===null&&(as=r)):(r=i,(e!==0||(c&3)!==0)&&(qu=!0)),i=s}$s(e)}function Jv(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Kt(c),b=1<<h,x=s[h];x===-1?((b&r)===0||(b&i)!==0)&&(s[h]=cd(b,t)):x<=t&&(e.expiredLanes|=b),c&=~b}if(t=ot,r=He,r=Gr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Vi),i=e.callbackNode,r===0||e===t&&(We===Mi||We===Ui)||e.cancelPendingCommit!==null)return i!==null&&Ph(i),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||_a(e,r)){if(t=r&-r,t!==e.callbackPriority||G.actQueue!==null&&i!==Tp)Ph(i);else return t;switch(ao(r)){case zn:case Nr:r=Sm;break;case ta:r=ko;break;case bu:r=xm;break;default:r=ko}return i=e1.bind(null,e),G.actQueue!==null?(G.actQueue.push(i),r=Tp):r=Em(r,i),e.callbackPriority=t,e.callbackNode=r,t}return i!==null&&Ph(i),e.callbackPriority=2,e.callbackNode=null,2}function e1(e,t){if(Ru=Nu=!1,Pt!==Li&&Pt!==yp)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Fs()&&e.callbackNode!==r)return null;var i=He;return i=Gr(e,e===ot?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Vi),i===0?null:(Uv(e,i,t),Jv(e,kr()),e.callbackNode!=null&&e.callbackNode===r?e1.bind(null,e):null)}function t1(e,t){if(Fs())return null;Nu=Ru,Ru=!1,Uv(e,t,!0)}function Ph(e){e!==Tp&&e!==null&&hA(e)}function n1(){G.actQueue!==null&&G.actQueue.push(function(){return Fh(),null}),YO(function(){(Qe&(rn|ur))!==kn?Em(wm,TR):Fh()})}function $h(){return Hi===0&&(Hi=Ue()),Hi}function r1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(le(e,"action"),Ss(""+e))}function a1(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 NR(e,t,r,i,s){if(t==="submit"&&r&&r.stateNode===s){var c=r1((s[dn]||null).action),h=i.submitter;h&&(t=(t=h[dn]||null)?r1(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var b=new Eu("action","action",null,i,s);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Hi!==0){var x=h?a1(s,h):new FormData(s),k={pending:!0,data:x,method:s.method,action:c};Object.freeze(k),fh(r,k,null,x)}}else typeof c=="function"&&(b.preventDefault(),x=h?a1(s,h):new FormData(s),k={pending:!0,data:x,method:s.method,action:c},Object.freeze(k),fh(r,k,c,x))},currentTarget:s}]})}}function eu(e,t,r){e.currentTarget=r;try{t(e)}catch(i){sp(i)}e.currentTarget=null}function i1(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 h=i.length-1;0<=h;h--){var b=i[h],x=b.instance,k=b.currentTarget;if(b=b.listener,x!==s&&c.isPropagationStopped())break e;x!==null?be(x,eu,c,b,k):eu(c,b,k),s=x}else for(h=0;h<i.length;h++){if(b=i[h],x=b.instance,k=b.currentTarget,b=b.listener,x!==s&&c.isPropagationStopped())break e;x!==null?be(x,eu,c,b,k):eu(c,b,k),s=x}}}}function ze(e,t){Np.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[km];r===void 0&&(r=t[km]=new Set);var i=e+"__bubble";r.has(i)||(o1(t,e,2,!1),r.add(i))}function Yh(e,t,r){Np.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),o1(r,e,i,t)}function Xh(e){if(!e[Fu]){e[Fu]=!0,q1.forEach(function(r){r!=="selectionchange"&&(Np.has(r)||Yh(r,!1,e),Yh(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fu]||(t[Fu]=!0,Yh("selectionchange",!1,t))}}function o1(e,t,r,i){switch(B1(t)){case zn:var s=rA;break;case Nr:s=aA;break;default:s=cm}r=s.bind(null,t,r,e),s=void 0,!Mm||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 Zh(e,t,r,i,s){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var b=i.stateNode.containerInfo;if(b===s)break;if(h===4)for(h=i.return;h!==null;){var x=h.tag;if((x===3||x===4)&&h.stateNode.containerInfo===s)return;h=h.return}for(;b!==null;){if(h=tr(b),h===null)return;if(x=h.tag,x===5||x===6||x===26||x===27){i=c=h;continue e}b=b.parentNode}}i=i.return}Dy(function(){var k=c,z=Ed(r),q=[];e:{var H=U_.get(e);if(H!==void 0){var P=Eu,ce=e;switch(e){case"keypress":if(bc(r)===0)break e;case"keydown":case"keyup":P=eO;break;case"focusin":ce="focus",P=jm;break;case"focusout":ce="blur",P=jm;break;case"beforeblur":case"afterblur":P=jm;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=__;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=GA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=rO;break;case O_:case C_:case D_:P=PA;break;case M_:P=iO;break;case"scroll":case"scrollend":P=VA;break;case"wheel":P=sO;break;case"copy":case"cut":case"paste":P=YA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=w_;break;case"toggle":case"beforetoggle":P=cO}var ve=(t&4)!==0,st=!ve&&(e==="scroll"||e==="scrollend"),Ve=ve?H!==null?H+"Capture":null:H;ve=[];for(var R=k,O;R!==null;){var B=R;if(O=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||O===null||Ve===null||(B=xs(R,Ve),B!=null&&ve.push(Ys(R,B,O))),st)break;R=R.return}0<ve.length&&(H=new P(H,ce,null,r,z),q.push({event:H,listeners:ve}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",H&&r!==rl&&(ce=r.relatedTarget||r.fromElement)&&(tr(ce)||ce[ja]))break e;if((P||H)&&(H=z.window===z?z:(H=z.ownerDocument)?H.defaultView||H.parentWindow:window,P?(ce=r.relatedTarget||r.toElement,P=k,ce=ce?tr(ce):null,ce!==null&&(st=M(ce),ve=ce.tag,ce!==st||ve!==5&&ve!==27&&ve!==6)&&(ce=null)):(P=null,ce=k),P!==ce)){if(ve=__,B="onMouseLeave",Ve="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ve=w_,B="onPointerLeave",Ve="onPointerEnter",R="pointer"),st=P==null?H:Sa(P),O=ce==null?H:Sa(ce),H=new ve(B,R+"leave",P,r,z),H.target=st,H.relatedTarget=O,B=null,tr(z)===k&&(ve=new ve(Ve,R+"enter",ce,r,z),ve.target=O,ve.relatedTarget=st,B=ve),st=B,P&&ce)t:{for(ve=P,Ve=ce,R=0,O=ve;O;O=_o(O))R++;for(O=0,B=Ve;B;B=_o(B))O++;for(;0<R-O;)ve=_o(ve),R--;for(;0<O-R;)Ve=_o(Ve),O--;for(;R--;){if(ve===Ve||Ve!==null&&ve===Ve.alternate)break t;ve=_o(ve),Ve=_o(Ve)}ve=null}else ve=null;P!==null&&s1(q,H,P,ve,!1),ce!==null&&st!==null&&s1(q,st,ce,ve,!0)}}e:{if(H=k?Sa(k):window,P=H.nodeName&&H.nodeName.toLowerCase(),P==="select"||P==="input"&&H.type==="file")var Y=zy;else if(jy(H))if(R_)Y=YN;else{Y=PN;var re=FN}else P=H.nodeName,!P||P.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?k&&ws(k.elementType)&&(Y=zy):Y=$N;if(Y&&(Y=Y(e,k))){Hy(q,Y,r,z);break e}re&&re(e,H,k),e==="focusout"&&k&&H.type==="number"&&k.memoizedProps.value!=null&&pd(H,"number",H.value)}switch(re=k?Sa(k):window,e){case"focusin":(jy(re)||re.contentEditable==="true")&&(Mo=re,zm=k,ul=null);break;case"focusout":ul=zm=Mo=null;break;case"mousedown":Vm=!0;break;case"contextmenu":case"mouseup":case"dragend":Vm=!1,$y(q,r,z);break;case"selectionchange":if(hO)break;case"keydown":case"keyup":$y(q,r,z)}var Se;if(Hm)e:{switch(e){case"compositionstart":var ue="onCompositionStart";break e;case"compositionend":ue="onCompositionEnd";break e;case"compositionupdate":ue="onCompositionUpdate";break e}ue=void 0}else Do?By(e,r)&&(ue="onCompositionEnd"):e==="keydown"&&r.keyCode===S_&&(ue="onCompositionStart");ue&&(x_&&r.locale!=="ko"&&(Do||ue!=="onCompositionStart"?ue==="onCompositionEnd"&&Do&&(Se=My()):(Ha=z,Um="value"in Ha?Ha.value:Ha.textContent,Do=!0)),re=tu(k,ue),0<re.length&&(ue=new E_(ue,e,null,r,z),q.push({event:ue,listeners:re}),Se?ue.data=Se:(Se=Ly(r),Se!==null&&(ue.data=Se)))),(Se=fO?VN(e,r):IN(e,r))&&(ue=tu(k,"onBeforeInput"),0<ue.length&&(re=new ZA("onBeforeInput","beforeinput",null,r,z),q.push({event:re,listeners:ue}),re.data=Se)),NR(q,e,k,r,z)}i1(q,t)})}function Ys(e,t,r){return{instance:e,listener:t,currentTarget:r}}function tu(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=xs(e,r),s!=null&&i.unshift(Ys(e,s,c)),s=xs(e,t),s!=null&&i.push(Ys(e,s,c))),e.tag===3)return i;e=e.return}return[]}function _o(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function s1(e,t,r,i,s){for(var c=t._reactName,h=[];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=xs(r,c),k!=null&&h.unshift(Ys(r,k,x))):s||(k=xs(r,c),k!=null&&h.push(Ys(r,k,x)))),r=r.return}h.length!==0&&e.push({event:t,listeners:h})}function Qh(e,t){LN(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||y_||(y_=!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:wi,possibleRegistrationNames:Tm};ws(e)||typeof t.is=="string"||HN(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 Bt(e,t,r,i){t!==r&&(r=Ca(r),Ca(t)!==r&&(i[e]=t))}function RR(e,t,r){t.forEach(function(i){r[u1(i)]=i==="style"?Kh(e):e.getAttribute(i)})}function Sr(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 l1(e,t){return e=e.namespaceURI===yu||e.namespaceURI===Ro?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Ca(e){return $(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.",we(e)),de(e)),(typeof e=="string"?e:""+e).replace(HO,`
|
|
217
|
-
`).replace(zO,"")}function c1(e,t){return t=Ca(t),Ca(e)===t}function nu(){}function rt(e,t,r,i,s,c){switch(r){case"children":typeof i=="string"?(pc(i,t,!1),t==="body"||t==="textarea"&&i===""||Es(e,i)):(typeof i=="number"||typeof i=="bigint")&&(pc(""+i,t,!1),t!=="body"&&Es(e,""+i));break;case"className":Ne(e,"class",i);break;case"tabIndex":Ne(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ne(e,r,i);break;case"style":Ay(e,i,c);break;case"data":if(t!=="object"){Ne(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=Ss(""+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||Yu||(Yu=!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||$u||($u=!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"||Pu?t!=="button"||s.type==null||s.type==="submit"||Pu?typeof i=="function"&&(s.name==null||ZE||(ZE=!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||Yu||(Yu=!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||$u||($u=!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."))):(Pu=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Pu=!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"&&rt(e,t,"name",s.name,s,null),rt(e,t,"formEncType",s.formEncType,s,null),rt(e,t,"formMethod",s.formMethod,s,null),rt(e,t,"formTarget",s.formTarget,s,null)):(rt(e,t,"encType",s.encType,s,null),rt(e,t,"method",s.method,s,null),rt(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}le(i,r),i=Ss(""+i),e.setAttribute(r,i);break;case"onClick":i!=null&&(typeof i!="function"&&Sr(r,i),e.onclick=nu);break;case"onScroll":i!=null&&(typeof i!="function"&&Sr(r,i),ze("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!="function"&&Sr(r,i),ze("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=Ss(""+i),e.setAttributeNS(zi,"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!==""||Xu[r]||(Xu[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":ze("beforetoggle",e),ze("toggle",e),Pe(e,"popover",i);break;case"xlinkActuate":Ut(e,zi,"xlink:actuate",i);break;case"xlinkArcrole":Ut(e,zi,"xlink:arcrole",i);break;case"xlinkRole":Ut(e,zi,"xlink:role",i);break;case"xlinkShow":Ut(e,zi,"xlink:show",i);break;case"xlinkTitle":Ut(e,zi,"xlink:title",i);break;case"xlinkType":Ut(e,zi,"xlink:type",i);break;case"xmlBase":Ut(e,Rp,"xml:base",i);break;case"xmlLang":Ut(e,Rp,"xml:lang",i);break;case"xmlSpace":Ut(e,Rp,"xml:space",i);break;case"is":c!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Pe(e,"is",i);break;case"innerText":case"textContent":break;case"popoverTarget":QE||i==null||typeof i!="object"||(QE=!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=Oy(r),Pe(e,r,i)):wi.hasOwnProperty(r)&&i!=null&&typeof i!="function"&&Sr(r,i)}}function Wh(e,t,r,i,s,c){switch(r){case"style":Ay(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"?Es(e,i):(typeof i=="number"||typeof i=="bigint")&&Es(e,""+i);break;case"onScroll":i!=null&&(typeof i!="function"&&Sr(r,i),ze("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!="function"&&Sr(r,i),ze("scrollend",e));break;case"onClick":i!=null&&(typeof i!="function"&&Sr(r,i),e.onclick=nu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(wi.hasOwnProperty(r))i!=null&&typeof i!="function"&&Sr(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,""):Pe(e,r,i)}}}function It(e,t,r){switch(Qh(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var i=!1,s=!1,c;for(c in r)if(r.hasOwnProperty(c)){var h=r[c];if(h!=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:rt(e,t,c,h,r,null)}}s&&rt(e,t,"srcSet",r.srcSet,r,null),i&&rt(e,t,"src",r.src,r,null);return;case"input":me("input",r),ze("invalid",e);var b=c=h=s=null,x=null,k=null;for(i in r)if(r.hasOwnProperty(i)){var z=r[i];if(z!=null)switch(i){case"name":s=z;break;case"type":h=z;break;case"checked":x=z;break;case"defaultChecked":k=z;break;case"value":c=z;break;case"defaultValue":b=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:rt(e,t,i,z,r,null)}}hy(e,r),my(e,c,b,x,k,h,s,!1),dc(e);return;case"select":me("select",r),ze("invalid",e),i=h=c=null;for(s in r)if(r.hasOwnProperty(s)&&(b=r[s],b!=null))switch(s){case"value":c=b;break;case"defaultValue":h=b;break;case"multiple":i=b;default:rt(e,t,s,b,r,null)}gy(e,r),t=c,r=h,e.multiple=!!i,t!=null?oo(e,!!i,t,!1):r!=null&&oo(e,!!i,r,!0);return;case"textarea":me("textarea",r),ze("invalid",e),c=s=i=null;for(h in r)if(r.hasOwnProperty(h)&&(b=r[h],b!=null))switch(h){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:rt(e,t,h,b,r,null)}yy(e,r),_y(e,i,s,c),dc(e);return;case"option":py(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:rt(e,t,x,i,r,null)}return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(i=0;i<Ul.length;i++)ze(Ul[i],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("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:rt(e,t,k,i,r,null)}return;default:if(ws(t)){for(z in r)r.hasOwnProperty(z)&&(i=r[z],i!==void 0&&Wh(e,t,z,i,r,void 0));return}}for(b in r)r.hasOwnProperty(b)&&(i=r[b],i!=null&&rt(e,t,b,i,r,null))}function AR(e,t,r,i){switch(Qh(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,h=null,b=null,x=null,k=null,z=null;for(P in r){var q=r[P];if(r.hasOwnProperty(P)&&q!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":x=q;default:i.hasOwnProperty(P)||rt(e,t,P,null,i,q)}}for(var H in i){var P=i[H];if(q=r[H],i.hasOwnProperty(H)&&(P!=null||q!=null))switch(H){case"type":c=P;break;case"name":s=P;break;case"checked":k=P;break;case"defaultChecked":z=P;break;case"value":h=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!==q&&rt(e,t,H,P,i,q)}}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||XE||(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"),XE=!0),!t||i||YE||(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"),YE=!0),md(e,h,b,x,k,z,c,s);return;case"select":P=h=b=H=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)||rt(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":H=c;break;case"defaultValue":b=c;break;case"multiple":h=c;default:c!==x&&rt(e,t,s,c,i,x)}i=b,t=h,r=P,H!=null?oo(e,!!t,H,!1):!!r!=!!t&&(i!=null?oo(e,!!t,i,!0):oo(e,!!t,t?[]:"",!1));return;case"textarea":P=H=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:rt(e,t,b,null,i,s)}for(h in i)if(s=i[h],c=r[h],i.hasOwnProperty(h)&&(s!=null||c!=null))switch(h){case"value":H=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&&rt(e,t,h,s,i,c)}vy(e,H,P);return;case"option":for(var ce in r)if(H=r[ce],r.hasOwnProperty(ce)&&H!=null&&!i.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:rt(e,t,ce,null,i,H)}for(x in i)if(H=i[x],P=r[x],i.hasOwnProperty(x)&&H!==P&&(H!=null||P!=null))switch(x){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:rt(e,t,x,H,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 ve in r)H=r[ve],r.hasOwnProperty(ve)&&H!=null&&!i.hasOwnProperty(ve)&&rt(e,t,ve,null,i,H);for(k in i)if(H=i[k],P=r[k],i.hasOwnProperty(k)&&H!==P&&(H!=null||P!=null))switch(k){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:rt(e,t,k,H,i,P)}return;default:if(ws(t)){for(var st in r)H=r[st],r.hasOwnProperty(st)&&H!==void 0&&!i.hasOwnProperty(st)&&Wh(e,t,st,void 0,i,H);for(z in i)H=i[z],P=r[z],!i.hasOwnProperty(z)||H===P||H===void 0&&P===void 0||Wh(e,t,z,H,i,P);return}}for(var Ve in r)H=r[Ve],r.hasOwnProperty(Ve)&&H!=null&&!i.hasOwnProperty(Ve)&&rt(e,t,Ve,null,i,H);for(q in i)H=i[q],P=r[q],!i.hasOwnProperty(q)||H===P||H==null&&P==null||rt(e,t,q,H,i,P)}function u1(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Kh(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 f1(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 h=t[c];h!=null&&typeof h!="boolean"&&h!==""&&(c.indexOf("--")===0?(Ge(h,c),i+=s+c+":"+(""+h).trim()):typeof h!="number"||h===0||b_.has(c)?(Ge(h,c),i+=s+c.replace(f_,"-$1").toLowerCase().replace(d_,"-ms-")+":"+(""+h).trim()):i+=s+c.replace(f_,"-$1").toLowerCase().replace(d_,"-ms-")+":"+h+"px",s=";")}i=i||null,t=e.getAttribute("style"),t!==i&&(i=Ca(i),Ca(t)!==i&&(r.style=Kh(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}Bt(t,e,i,c)}function d1(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}Bt(t,e,i,c)}function Jh(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}Bt(t,e,i,c)}function h1(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}Bt(t,e,i,c)}function em(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=Ss(""+i),e===r)return}Bt(t,e,i,c)}function m1(e,t,r,i){for(var s={},c=new Set,h=e.attributes,b=0;b<h.length;b++)switch(h[b].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:c.add(h[b].name)}if(ws(t)){for(var x in r)if(r.hasOwnProperty(x)){var k=r[x];if(k!=null){if(wi.hasOwnProperty(x))typeof k!="function"&&Sr(x,k);else if(r.suppressHydrationWarning!==!0)switch(x){case"children":typeof k!="string"&&typeof k!="number"||Bt("children",e.textContent,k,s);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":h=e.innerHTML,k=k?k.__html:void 0,k!=null&&(k=l1(e,k),Bt(x,h,k,s));continue;case"style":c.delete(x),f1(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"),h=Te(e,"class",k),Bt("className",h,k,s);continue;default:i.context===ua&&t!=="svg"&&t!=="math"?c.delete(x.toLowerCase()):c.delete(x),h=Te(e,x,k),Bt(x,h,k,s)}}}}else for(k in r)if(r.hasOwnProperty(k)&&(x=r[k],x!=null)){if(wi.hasOwnProperty(k))typeof x!="function"&&Sr(k,x);else if(r.suppressHydrationWarning!==!0)switch(k){case"children":typeof x!="string"&&typeof x!="number"||Bt("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":h=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=l1(e,x),h!==x&&(s[k]={__html:h}));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),f1(e,x,s);continue;case"multiple":c.delete(k),Bt(k,e.multiple,x,s);continue;case"muted":c.delete(k),Bt(k,e.muted,x,s);continue;case"autoFocus":c.delete("autofocus"),Bt(k,e.autofocus,x,s);continue;case"data":if(t!=="object"){c.delete(k),h=e.getAttribute("data"),Bt(k,h,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}em(e,k,k,x,c,s);continue;case"action":case"formAction":if(h=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(h===VO){c.delete(k.toLowerCase()),Bt(k,"function",x,s);continue}em(e,k,k.toLowerCase(),x,c,s);continue;case"xlinkHref":em(e,k,"xlink:href",x,c,s);continue;case"contentEditable":Jh(e,k,"contenteditable",x,c,s);continue;case"spellCheck":Jh(e,k,"spellcheck",x,c,s);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Jh(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":d1(e,k,k.toLowerCase(),x,c,s);continue;case"capture":case"download":e:{b=e;var z=h=k,q=s;if(c.delete(z),b=b.getAttribute(z),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,h),b===""+x)break e}Bt(h,b,x,q)}continue;case"cols":case"rows":case"size":case"span":e:{if(b=e,z=h=k,q=s,c.delete(z),b=b.getAttribute(z),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,h),b===""+x))break e}Bt(h,b,x,q)}continue;case"rowSpan":h1(e,k,"rowspan",x,c,s);continue;case"start":h1(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!==""||Xu[k]||(Xu[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)),d1(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=Oy(k),h=!1,i.context===ua&&t!=="svg"&&t!=="math"?c.delete(b.toLowerCase()):(z=k.toLowerCase(),z=vu.hasOwnProperty(z)&&vu[z]||null,z!==null&&z!==k&&(h=!0,c.delete(z)),c.delete(b));e:if(z=e,q=b,b=x,De(q))if(z.hasAttribute(q))z=z.getAttribute(q),le(b,q),b=z===""+b?b:z;else{switch(typeof b){case"function":case"symbol":break e;case"boolean":if(z=q.toLowerCase().slice(0,5),z!=="data-"&&z!=="aria-")break e}b=b===void 0?void 0:null}else b=void 0;h||Bt(k,b,x,s)}}}return 0<c.size&&r.suppressHydrationWarning!==!0&&RR(e,c,s),Object.keys(s).length===0?null:s}function OR(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 ru(e){return e.nodeType===9?e:e.ownerDocument}function p1(e){switch(e){case Ro:return is;case yu:return Wu;default:return ua}}function b1(e,t){if(e===ua)switch(t){case"svg":return is;case"math":return Wu;default:return ua}return e===is&&t==="foreignObject"?ua:e}function tm(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 CR(){var e=window.event;return e&&e.type==="popstate"?e===Dp?!1:(Dp=e,!0):(Dp=null,!1)}function DR(e){setTimeout(function(){throw e})}function MR(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 UR(e,t,r,i){AR(e,t,r,i),e[dn]=i}function g1(e){Es(e,"")}function BR(e,t,r){e.nodeValue=r}function Da(e){return e==="head"}function LR(e,t){e.removeChild(t)}function jR(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function y1(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===Qu){if(0<i&&8>i){r=i;var h=e.ownerDocument;if(r&GO&&Xs(h.documentElement),r&qO&&Xs(h.body),r&FO)for(r=h.head,Xs(r),h=r.firstChild;h;){var b=h.nextSibling,x=h.nodeName;h[tl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&h.rel.toLowerCase()==="stylesheet"||r.removeChild(h),h=b}}if(s===0){e.removeChild(c),Ks(t);return}s--}else r===Zu||r===ca||r===Bl?s++:i=r.charCodeAt(0)-48;else i=0;r=c}while(r);Ks(t)}function HR(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function zR(e){e.nodeValue=""}function VR(e,t){t=t[PO],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function IR(e,t){e.nodeValue=t}function nm(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":nm(r),wa(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function GR(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[tl])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 qR(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 rm(e){return e.data===Bl||e.data===ca&&e.ownerDocument.readyState===KE}function FR(e,t){var r=e.ownerDocument;if(e.data!==ca||r.readyState===KE)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===Zu||t===Bl||t===ca||t===Ap||t===WE)break;if(t===Qu)return null}}return e}function v1(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[u1(c.name)]=c.name.toLowerCase()==="style"?Kh(e):c.value}return{type:t,props:r}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function _1(e,t,r){return r===null||r[IO]!==!0?(e.nodeValue===t?e=null:(t=Ca(t),e=Ca(e.nodeValue)===t?null:e.nodeValue),e):null}function E1(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===Qu){if(t===0)return Hn(e.nextSibling);t--}else r!==Zu&&r!==Bl&&r!==ca||t++}e=e.nextSibling}return null}function w1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===Zu||r===Bl||r===ca){if(t===0)return e;t--}else r===Qu&&t++}e=e.previousSibling}return null}function PR(e){Ks(e)}function $R(e){Ks(e)}function S1(e,t,r,i,s){switch(s&&_d(e,i.ancestorInfo),t=ru(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 YR(e,t,r,i){if(!r[ja]&&nr(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[Zt]=i,r[dn]=t}function Xs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wa(e)}function au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function x1(e,t,r){var i=os;if(i&&typeof t=="string"&&t){var s=Ln(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof r=="string"&&(s+='[crossorigin="'+r+'"]'),aw.has(s)||(aw.add(s),e={rel:e,crossOrigin:r,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),It(t,"link",e),j(t),i.head.appendChild(t)))}}function k1(e,t,r,i){var s=(s=Ba.current)?au(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=Eo(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=Eo(r.href);var c=S(s).hoistableStyles,h=c.get(e);if(!h&&(s=s.ownerDocument||s,h={type:"stylesheet",instance:null,count:0,state:{loading:Ii,preload:null}},c.set(e,h),(c=s.querySelector(Zs(e)))&&!c._p&&(h.instance=c,h.state.loading=Ll|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||XR(s,e,b,h.state)}if(t&&i===null)throw r=`
|
|
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`,X(e))})}function wr(e){e!==as&&e.next===null&&(as===null?Gu=as=e:as=as.next=e),qu=!0,G.actQueue!==null?Np||(Np=!0,l1()):Tp||(Tp=!0,l1())}function $s(e,t){if(!Rp&&qu){Rp=!0;do for(var r=!1,i=Gu;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var c=0;else{var h=i.suspendedLanes,b=i.pingedLanes;c=(1<<31-Kt(42|e)+1)-1,c&=s&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(r=!0,s1(i,c))}else c=He,c=Gr(i,i===ot?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==Ii),(c&3)===0||_a(i,c)||(r=!0,s1(i,c));i=i.next}while(r);Rp=!1}}function CR(){Yh()}function Yh(){qu=Np=Tp=!1;var e=0;Hi!==0&&(LR()&&(e=Hi),Hi=0);for(var t=kr(),r=null,i=Gu;i!==null;){var s=i.next,c=i1(i,t);c===0?(i.next=null,r===null?Gu=s:r.next=s,s===null&&(as=r)):(r=i,(e!==0||(c&3)!==0)&&(qu=!0)),i=s}$s(e)}function i1(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Kt(c),b=1<<h,x=s[h];x===-1?((b&r)===0||(b&i)!==0)&&(s[h]=dd(b,t)):x<=t&&(e.expiredLanes|=b),c&=~b}if(t=ot,r=He,r=Gr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ii),i=e.callbackNode,r===0||e===t&&(We===Mi||We===Ui)||e.cancelPendingCommit!==null)return i!==null&&Xh(i),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||_a(e,r)){if(t=r&-r,t!==e.callbackPriority||G.actQueue!==null&&i!==Ap)Xh(i);else return t;switch(ao(r)){case In:case Nr:r=Tm;break;case ta:r=ko;break;case bu:r=Nm;break;default:r=ko}return i=o1.bind(null,e),G.actQueue!==null?(G.actQueue.push(i),r=Ap):r=xm(r,i),e.callbackPriority=t,e.callbackNode=r,t}return i!==null&&Xh(i),e.callbackPriority=2,e.callbackNode=null,2}function o1(e,t){if(Ru=Nu=!1,Pt!==Li&&Pt!==Ep)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Fs()&&e.callbackNode!==r)return null;var i=He;return i=Gr(e,e===ot?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ii),i===0?null:(Iv(e,i,t),i1(e,kr()),e.callbackNode!=null&&e.callbackNode===r?o1.bind(null,e):null)}function s1(e,t){if(Fs())return null;Nu=Ru,Ru=!1,Iv(e,t,!0)}function Xh(e){e!==Ap&&e!==null&&yA(e)}function l1(){G.actQueue!==null&&G.actQueue.push(function(){return Yh(),null}),KO(function(){(Qe&(rn|ur))!==kn?xm(km,CR):Yh()})}function Zh(){return Hi===0&&(Hi=Ue()),Hi}function c1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(le(e,"action"),Ss(""+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 DR(e,t,r,i,s){if(t==="submit"&&r&&r.stateNode===s){var c=c1((s[dn]||null).action),h=i.submitter;h&&(t=(t=h[dn]||null)?c1(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var b=new Eu("action","action",null,i,s);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Hi!==0){var x=h?u1(s,h):new FormData(s),k={pending:!0,data:x,method:s.method,action:c};Object.freeze(k),mh(r,k,null,x)}}else typeof c=="function"&&(b.preventDefault(),x=h?u1(s,h):new FormData(s),k={pending:!0,data:x,method:s.method,action:c},Object.freeze(k),mh(r,k,c,x))},currentTarget:s}]})}}function eu(e,t,r){e.currentTarget=r;try{t(e)}catch(i){up(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 h=i.length-1;0<=h;h--){var b=i[h],x=b.instance,k=b.currentTarget;if(b=b.listener,x!==s&&c.isPropagationStopped())break e;x!==null?be(x,eu,c,b,k):eu(c,b,k),s=x}else for(h=0;h<i.length;h++){if(b=i[h],x=b.instance,k=b.currentTarget,b=b.listener,x!==s&&c.isPropagationStopped())break e;x!==null?be(x,eu,c,b,k):eu(c,b,k),s=x}}}}function ze(e,t){Op.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[Rm];r===void 0&&(r=t[Rm]=new Set);var i=e+"__bubble";r.has(i)||(d1(t,e,2,!1),r.add(i))}function Qh(e,t,r){Op.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 Wh(e){if(!e[Fu]){e[Fu]=!0,Z1.forEach(function(r){r!=="selectionchange"&&(Op.has(r)||Qh(r,!1,e),Qh(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fu]||(t[Fu]=!0,Qh("selectionchange",!1,t))}}function d1(e,t,r,i){switch(V1(t)){case In:var s=lA;break;case Nr:s=cA;break;default:s=dm}r=s.bind(null,t,r,e),s=void 0,!Lm||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 Kh(e,t,r,i,s){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var b=i.stateNode.containerInfo;if(b===s)break;if(h===4)for(h=i.return;h!==null;){var x=h.tag;if((x===3||x===4)&&h.stateNode.containerInfo===s)return;h=h.return}for(;b!==null;){if(h=tr(b),h===null)return;if(x=h.tag,x===5||x===6||x===26||x===27){i=c=h;continue e}b=b.parentNode}}i=i.return}Hy(function(){var k=c,z=xd(r),q=[];e:{var H=I_.get(e);if(H!==void 0){var P=Eu,ce=e;switch(e){case"keypress":if(bc(r)===0)break e;case"keydown":case"keyup":P=iO;break;case"focusin":ce="focus",P=Im;break;case"focusout":ce="blur",P=Im;break;case"beforeblur":case"afterblur":P=Im;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=T_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=YA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=lO;break;case L_:case j_:case H_:P=QA;break;case z_:P=uO;break;case"scroll":case"scrollend":P=PA;break;case"wheel":P=dO;break;case"copy":case"cut":case"paste":P=KA;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=mO}var ve=(t&4)!==0,st=!ve&&(e==="scroll"||e==="scrollend"),Ie=ve?H!==null?H+"Capture":null:H;ve=[];for(var R=k,O;R!==null;){var B=R;if(O=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||O===null||Ie===null||(B=xs(R,Ie),B!=null&&ve.push(Ys(R,B,O))),st)break;R=R.return}0<ve.length&&(H=new P(H,ce,null,r,z),q.push({event:H,listeners:ve}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",H&&r!==rl&&(ce=r.relatedTarget||r.fromElement)&&(tr(ce)||ce[ja]))break e;if((P||H)&&(H=z.window===z?z:(H=z.ownerDocument)?H.defaultView||H.parentWindow:window,P?(ce=r.relatedTarget||r.toElement,P=k,ce=ce?tr(ce):null,ce!==null&&(st=M(ce),ve=ce.tag,ce!==st||ve!==5&&ve!==27&&ve!==6)&&(ce=null)):(P=null,ce=k),P!==ce)){if(ve=T_,B="onMouseLeave",Ie="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ve=R_,B="onPointerLeave",Ie="onPointerEnter",R="pointer"),st=P==null?H:Sa(P),O=ce==null?H:Sa(ce),H=new ve(B,R+"leave",P,r,z),H.target=st,H.relatedTarget=O,B=null,tr(z)===k&&(ve=new ve(Ie,R+"enter",ce,r,z),ve.target=O,ve.relatedTarget=st,B=ve),st=B,P&&ce)t:{for(ve=P,Ie=ce,R=0,O=ve;O;O=_o(O))R++;for(O=0,B=Ie;B;B=_o(B))O++;for(;0<R-O;)ve=_o(ve),R--;for(;0<O-R;)Ie=_o(Ie),O--;for(;R--;){if(ve===Ie||Ie!==null&&ve===Ie.alternate)break t;ve=_o(ve),Ie=_o(Ie)}ve=null}else ve=null;P!==null&&h1(q,H,P,ve,!1),ce!==null&&st!==null&&h1(q,st,ce,ve,!0)}}e:{if(H=k?Sa(k):window,P=H.nodeName&&H.nodeName.toLowerCase(),P==="select"||P==="input"&&H.type==="file")var Y=Py;else if(qy(H))if(U_)Y=KN;else{Y=QN;var re=ZN}else P=H.nodeName,!P||P.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?k&&ws(k.elementType)&&(Y=Py):Y=WN;if(Y&&(Y=Y(e,k))){Fy(q,Y,r,z);break e}re&&re(e,H,k),e==="focusout"&&k&&H.type==="number"&&k.memoizedProps.value!=null&&yd(H,"number",H.value)}switch(re=k?Sa(k):window,e){case"focusin":(qy(re)||re.contentEditable==="true")&&(Mo=re,Gm=k,ul=null);break;case"focusout":ul=Gm=Mo=null;break;case"mousedown":qm=!0;break;case"contextmenu":case"mouseup":case"dragend":qm=!1,Ky(q,r,z);break;case"selectionchange":if(yO)break;case"keydown":case"keyup":Ky(q,r,z)}var Se;if(Vm)e:{switch(e){case"compositionstart":var ue="onCompositionStart";break e;case"compositionend":ue="onCompositionEnd";break e;case"compositionupdate":ue="onCompositionUpdate";break e}ue=void 0}else Do?Vy(e,r)&&(ue="onCompositionEnd"):e==="keydown"&&r.keyCode===A_&&(ue="onCompositionStart");ue&&(O_&&r.locale!=="ko"&&(Do||ue!=="onCompositionStart"?ue==="onCompositionEnd"&&Do&&(Se=zy()):(Ha=z,jm="value"in Ha?Ha.value:Ha.textContent,Do=!0)),re=tu(k,ue),0<re.length&&(ue=new N_(ue,e,null,r,z),q.push({event:ue,listeners:re}),Se?ue.data=Se:(Se=Gy(r),Se!==null&&(ue.data=Se)))),(Se=bO?PN(e,r):$N(e,r))&&(ue=tu(k,"onBeforeInput"),0<ue.length&&(re=new eO("onBeforeInput","beforeinput",null,r,z),q.push({event:re,listeners:ue}),re.data=Se)),DR(q,e,k,r,z)}f1(q,t)})}function Ys(e,t,r){return{instance:e,listener:t,currentTarget:r}}function tu(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=xs(e,r),s!=null&&i.unshift(Ys(e,s,c)),s=xs(e,t),s!=null&&i.push(Ys(e,s,c))),e.tag===3)return i;e=e.return}return[]}function _o(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,h=[];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=xs(r,c),k!=null&&h.unshift(Ys(r,k,x))):s||(k=xs(r,c),k!=null&&h.push(Ys(r,k,x)))),r=r.return}h.length!==0&&e.push({event:t,listeners:h})}function Jh(e,t){VN(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:wi,possibleRegistrationNames:Am};ws(e)||typeof t.is=="string"||qN(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 Bt(e,t,r,i){t!==r&&(r=Ca(r),Ca(t)!==r&&(i[e]=t))}function MR(e,t,r){t.forEach(function(i){r[b1(i)]=i==="style"?tm(e):e.getAttribute(i)})}function Sr(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===yu||e.namespaceURI===Ro?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Ca(e){return $(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.",we(e)),de(e)),(typeof e=="string"?e:""+e).replace(qO,`
|
|
217
|
+
`).replace(FO,"")}function p1(e,t){return t=Ca(t),Ca(e)===t}function nu(){}function rt(e,t,r,i,s,c){switch(r){case"children":typeof i=="string"?(pc(i,t,!1),t==="body"||t==="textarea"&&i===""||Es(e,i)):(typeof i=="number"||typeof i=="bigint")&&(pc(""+i,t,!1),t!=="body"&&Es(e,""+i));break;case"className":Ne(e,"class",i);break;case"tabIndex":Ne(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ne(e,r,i);break;case"style":By(e,i,c);break;case"data":if(t!=="object"){Ne(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=Ss(""+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||Yu||(Yu=!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||$u||($u=!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"||Pu?t!=="button"||s.type==null||s.type==="submit"||Pu?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||Yu||(Yu=!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||$u||($u=!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."))):(Pu=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Pu=!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"&&rt(e,t,"name",s.name,s,null),rt(e,t,"formEncType",s.formEncType,s,null),rt(e,t,"formMethod",s.formMethod,s,null),rt(e,t,"formTarget",s.formTarget,s,null)):(rt(e,t,"encType",s.encType,s,null),rt(e,t,"method",s.method,s,null),rt(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}le(i,r),i=Ss(""+i),e.setAttribute(r,i);break;case"onClick":i!=null&&(typeof i!="function"&&Sr(r,i),e.onclick=nu);break;case"onScroll":i!=null&&(typeof i!="function"&&Sr(r,i),ze("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!="function"&&Sr(r,i),ze("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=Ss(""+i),e.setAttributeNS(zi,"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!==""||Xu[r]||(Xu[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":ze("beforetoggle",e),ze("toggle",e),Pe(e,"popover",i);break;case"xlinkActuate":Ut(e,zi,"xlink:actuate",i);break;case"xlinkArcrole":Ut(e,zi,"xlink:arcrole",i);break;case"xlinkRole":Ut(e,zi,"xlink:role",i);break;case"xlinkShow":Ut(e,zi,"xlink:show",i);break;case"xlinkTitle":Ut(e,zi,"xlink:title",i);break;case"xlinkType":Ut(e,zi,"xlink:type",i);break;case"xmlBase":Ut(e,Cp,"xml:base",i);break;case"xmlLang":Ut(e,Cp,"xml:lang",i);break;case"xmlSpace":Ut(e,Cp,"xml:space",i);break;case"is":c!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Pe(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),Pe(e,r,i)):wi.hasOwnProperty(r)&&i!=null&&typeof i!="function"&&Sr(r,i)}}function em(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"?Es(e,i):(typeof i=="number"||typeof i=="bigint")&&Es(e,""+i);break;case"onScroll":i!=null&&(typeof i!="function"&&Sr(r,i),ze("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!="function"&&Sr(r,i),ze("scrollend",e));break;case"onClick":i!=null&&(typeof i!="function"&&Sr(r,i),e.onclick=nu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(wi.hasOwnProperty(r))i!=null&&typeof i!="function"&&Sr(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,""):Pe(e,r,i)}}}function Vt(e,t,r){switch(Jh(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var i=!1,s=!1,c;for(c in r)if(r.hasOwnProperty(c)){var h=r[c];if(h!=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:rt(e,t,c,h,r,null)}}s&&rt(e,t,"srcSet",r.srcSet,r,null),i&&rt(e,t,"src",r.src,r,null);return;case"input":me("input",r),ze("invalid",e);var b=c=h=s=null,x=null,k=null;for(i in r)if(r.hasOwnProperty(i)){var z=r[i];if(z!=null)switch(i){case"name":s=z;break;case"type":h=z;break;case"checked":x=z;break;case"defaultChecked":k=z;break;case"value":c=z;break;case"defaultValue":b=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:rt(e,t,i,z,r,null)}}vy(e,r),_y(e,c,b,x,k,h,s,!1),dc(e);return;case"select":me("select",r),ze("invalid",e),i=h=c=null;for(s in r)if(r.hasOwnProperty(s)&&(b=r[s],b!=null))switch(s){case"value":c=b;break;case"defaultValue":h=b;break;case"multiple":i=b;default:rt(e,t,s,b,r,null)}Sy(e,r),t=c,r=h,e.multiple=!!i,t!=null?oo(e,!!i,t,!1):r!=null&&oo(e,!!i,r,!0);return;case"textarea":me("textarea",r),ze("invalid",e),c=s=i=null;for(h in r)if(r.hasOwnProperty(h)&&(b=r[h],b!=null))switch(h){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:rt(e,t,h,b,r,null)}xy(e,r),Ty(e,i,s,c),dc(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:rt(e,t,x,i,r,null)}return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(i=0;i<Ul.length;i++)ze(Ul[i],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("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:rt(e,t,k,i,r,null)}return;default:if(ws(t)){for(z in r)r.hasOwnProperty(z)&&(i=r[z],i!==void 0&&em(e,t,z,i,r,void 0));return}}for(b in r)r.hasOwnProperty(b)&&(i=r[b],i!=null&&rt(e,t,b,i,r,null))}function UR(e,t,r,i){switch(Jh(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,h=null,b=null,x=null,k=null,z=null;for(P in r){var q=r[P];if(r.hasOwnProperty(P)&&q!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":x=q;default:i.hasOwnProperty(P)||rt(e,t,P,null,i,q)}}for(var H in i){var P=i[H];if(q=r[H],i.hasOwnProperty(H)&&(P!=null||q!=null))switch(H){case"type":c=P;break;case"name":s=P;break;case"checked":k=P;break;case"defaultChecked":z=P;break;case"value":h=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!==q&&rt(e,t,H,P,i,q)}}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),gd(e,h,b,x,k,z,c,s);return;case"select":P=h=b=H=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)||rt(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":H=c;break;case"defaultValue":b=c;break;case"multiple":h=c;default:c!==x&&rt(e,t,s,c,i,x)}i=b,t=h,r=P,H!=null?oo(e,!!t,H,!1):!!r!=!!t&&(i!=null?oo(e,!!t,i,!0):oo(e,!!t,t?[]:"",!1));return;case"textarea":P=H=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:rt(e,t,b,null,i,s)}for(h in i)if(s=i[h],c=r[h],i.hasOwnProperty(h)&&(s!=null||c!=null))switch(h){case"value":H=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&&rt(e,t,h,s,i,c)}ky(e,H,P);return;case"option":for(var ce in r)if(H=r[ce],r.hasOwnProperty(ce)&&H!=null&&!i.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:rt(e,t,ce,null,i,H)}for(x in i)if(H=i[x],P=r[x],i.hasOwnProperty(x)&&H!==P&&(H!=null||P!=null))switch(x){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:rt(e,t,x,H,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 ve in r)H=r[ve],r.hasOwnProperty(ve)&&H!=null&&!i.hasOwnProperty(ve)&&rt(e,t,ve,null,i,H);for(k in i)if(H=i[k],P=r[k],i.hasOwnProperty(k)&&H!==P&&(H!=null||P!=null))switch(k){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:rt(e,t,k,H,i,P)}return;default:if(ws(t)){for(var st in r)H=r[st],r.hasOwnProperty(st)&&H!==void 0&&!i.hasOwnProperty(st)&&em(e,t,st,void 0,i,H);for(z in i)H=i[z],P=r[z],!i.hasOwnProperty(z)||H===P||H===void 0&&P===void 0||em(e,t,z,H,i,P);return}}for(var Ie in r)H=r[Ie],r.hasOwnProperty(Ie)&&H!=null&&!i.hasOwnProperty(Ie)&&rt(e,t,Ie,null,i,H);for(q in i)H=i[q],P=r[q],!i.hasOwnProperty(q)||H===P||H==null&&P==null||rt(e,t,q,H,i,P)}function b1(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function tm(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 h=t[c];h!=null&&typeof h!="boolean"&&h!==""&&(c.indexOf("--")===0?(Ge(h,c),i+=s+c+":"+(""+h).trim()):typeof h!="number"||h===0||w_.has(c)?(Ge(h,c),i+=s+c.replace(g_,"-$1").toLowerCase().replace(y_,"-ms-")+":"+(""+h).trim()):i+=s+c.replace(g_,"-$1").toLowerCase().replace(y_,"-ms-")+":"+h+"px",s=";")}i=i||null,t=e.getAttribute("style"),t!==i&&(i=Ca(i),Ca(t)!==i&&(r.style=tm(e)))}}function Hn(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}Bt(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}Bt(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":return}else if(i!=null)switch(typeof i){case"function":case"symbol":break;default:if(le(i,r),e===""+i)return}Bt(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}Bt(t,e,i,c)}function rm(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=Ss(""+i),e===r)return}Bt(t,e,i,c)}function _1(e,t,r,i){for(var s={},c=new Set,h=e.attributes,b=0;b<h.length;b++)switch(h[b].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:c.add(h[b].name)}if(ws(t)){for(var x in r)if(r.hasOwnProperty(x)){var k=r[x];if(k!=null){if(wi.hasOwnProperty(x))typeof k!="function"&&Sr(x,k);else if(r.suppressHydrationWarning!==!0)switch(x){case"children":typeof k!="string"&&typeof k!="number"||Bt("children",e.textContent,k,s);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":h=e.innerHTML,k=k?k.__html:void 0,k!=null&&(k=m1(e,k),Bt(x,h,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"),h=Te(e,"class",k),Bt("className",h,k,s);continue;default:i.context===ua&&t!=="svg"&&t!=="math"?c.delete(x.toLowerCase()):c.delete(x),h=Te(e,x,k),Bt(x,h,k,s)}}}}else for(k in r)if(r.hasOwnProperty(k)&&(x=r[k],x!=null)){if(wi.hasOwnProperty(k))typeof x!="function"&&Sr(k,x);else if(r.suppressHydrationWarning!==!0)switch(k){case"children":typeof x!="string"&&typeof x!="number"||Bt("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":h=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=m1(e,x),h!==x&&(s[k]={__html:h}));continue;case"className":Hn(e,k,"class",x,c,s);continue;case"tabIndex":Hn(e,k,"tabindex",x,c,s);continue;case"style":c.delete(k),g1(e,x,s);continue;case"multiple":c.delete(k),Bt(k,e.multiple,x,s);continue;case"muted":c.delete(k),Bt(k,e.muted,x,s);continue;case"autoFocus":c.delete("autofocus"),Bt(k,e.autofocus,x,s);continue;case"data":if(t!=="object"){c.delete(k),h=e.getAttribute("data"),Bt(k,h,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}rm(e,k,k,x,c,s);continue;case"action":case"formAction":if(h=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(h===PO){c.delete(k.toLowerCase()),Bt(k,"function",x,s);continue}rm(e,k,k.toLowerCase(),x,c,s);continue;case"xlinkHref":rm(e,k,"xlink:href",x,c,s);continue;case"contentEditable":nm(e,k,"contenteditable",x,c,s);continue;case"spellCheck":nm(e,k,"spellcheck",x,c,s);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":nm(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 z=h=k,q=s;if(c.delete(z),b=b.getAttribute(z),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,h),b===""+x)break e}Bt(h,b,x,q)}continue;case"cols":case"rows":case"size":case"span":e:{if(b=e,z=h=k,q=s,c.delete(z),b=b.getAttribute(z),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,h),b===""+x))break e}Bt(h,b,x,q)}continue;case"rowSpan":v1(e,k,"rowspan",x,c,s);continue;case"start":v1(e,k,k,x,c,s);continue;case"xHeight":Hn(e,k,"x-height",x,c,s);continue;case"xlinkActuate":Hn(e,k,"xlink:actuate",x,c,s);continue;case"xlinkArcrole":Hn(e,k,"xlink:arcrole",x,c,s);continue;case"xlinkRole":Hn(e,k,"xlink:role",x,c,s);continue;case"xlinkShow":Hn(e,k,"xlink:show",x,c,s);continue;case"xlinkTitle":Hn(e,k,"xlink:title",x,c,s);continue;case"xlinkType":Hn(e,k,"xlink:type",x,c,s);continue;case"xmlBase":Hn(e,k,"xml:base",x,c,s);continue;case"xmlLang":Hn(e,k,"xml:lang",x,c,s);continue;case"xmlSpace":Hn(e,k,"xml:space",x,c,s);continue;case"inert":x!==""||Xu[k]||(Xu[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),h=!1,i.context===ua&&t!=="svg"&&t!=="math"?c.delete(b.toLowerCase()):(z=k.toLowerCase(),z=vu.hasOwnProperty(z)&&vu[z]||null,z!==null&&z!==k&&(h=!0,c.delete(z)),c.delete(b));e:if(z=e,q=b,b=x,De(q))if(z.hasAttribute(q))z=z.getAttribute(q),le(b,q),b=z===""+b?b:z;else{switch(typeof b){case"function":case"symbol":break e;case"boolean":if(z=q.toLowerCase().slice(0,5),z!=="data-"&&z!=="aria-")break e}b=b===void 0?void 0:null}else b=void 0;h||Bt(k,b,x,s)}}}return 0<c.size&&r.suppressHydrationWarning!==!0&&MR(e,c,s),Object.keys(s).length===0?null:s}function BR(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 ru(e){return e.nodeType===9?e:e.ownerDocument}function E1(e){switch(e){case Ro:return is;case yu:return Wu;default:return ua}}function w1(e,t){if(e===ua)switch(t){case"svg":return is;case"math":return Wu;default:return ua}return e===is&&t==="foreignObject"?ua:e}function am(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 LR(){var e=window.event;return e&&e.type==="popstate"?e===Bp?!1:(Bp=e,!0):(Bp=null,!1)}function jR(e){setTimeout(function(){throw e})}function HR(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 zR(e,t,r,i){UR(e,t,r,i),e[dn]=i}function S1(e){Es(e,"")}function IR(e,t,r){e.nodeValue=r}function Da(e){return e==="head"}function VR(e,t){e.removeChild(t)}function GR(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===Qu){if(0<i&&8>i){r=i;var h=e.ownerDocument;if(r&YO&&Xs(h.documentElement),r&XO&&Xs(h.body),r&ZO)for(r=h.head,Xs(r),h=r.firstChild;h;){var b=h.nextSibling,x=h.nodeName;h[tl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&h.rel.toLowerCase()==="stylesheet"||r.removeChild(h),h=b}}if(s===0){e.removeChild(c),Ks(t);return}s--}else r===Zu||r===ca||r===Bl?s++:i=r.charCodeAt(0)-48;else i=0;r=c}while(r);Ks(t)}function qR(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function FR(e){e.nodeValue=""}function PR(e,t){t=t[QO],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function $R(e,t){e.nodeValue=t}function im(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":im(r),wa(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function YR(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[tl])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=zn(e.nextSibling),e===null)break}return null}function XR(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=zn(e.nextSibling),e===null))return null;return e}function om(e){return e.data===Bl||e.data===ca&&e.ownerDocument.readyState===aw}function ZR(e,t){var r=e.ownerDocument;if(e.data!==ca||r.readyState===aw)t();else{var i=function(){t(),r.removeEventListener("DOMContentLoaded",i)};r.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function zn(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===Zu||t===Bl||t===ca||t===Dp||t===rw)break;if(t===Qu)return null}}return e}function k1(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"?tm(e):c.value}return{type:t,props:r}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function T1(e,t,r){return r===null||r[$O]!==!0?(e.nodeValue===t?e=null:(t=Ca(t),e=Ca(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===Qu){if(t===0)return zn(e.nextSibling);t--}else r!==Zu&&r!==Bl&&r!==ca||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===Zu||r===Bl||r===ca){if(t===0)return e;t--}else r===Qu&&t++}e=e.previousSibling}return null}function QR(e){Ks(e)}function WR(e){Ks(e)}function A1(e,t,r,i,s){switch(s&&Sd(e,i.ancestorInfo),t=ru(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 KR(e,t,r,i){if(!r[ja]&&nr(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]);Vt(r,e,t),r[Zt]=i,r[dn]=t}function Xs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wa(e)}function au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function O1(e,t,r){var i=os;if(i&&typeof t=="string"&&t){var s=jn(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"),Vt(t,"link",e),j(t),i.head.appendChild(t)))}}function C1(e,t,r,i){var s=(s=Ba.current)?au(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=Eo(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=Eo(r.href);var c=S(s).hoistableStyles,h=c.get(e);if(!h&&(s=s.ownerDocument||s,h={type:"stylesheet",instance:null,count:0,state:{loading:Vi,preload:null}},c.set(e,h),(c=s.querySelector(Zs(e)))&&!c._p&&(h.instance=c,h.state.loading=Ll|Qn),!Wn.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};Wn.set(e,b),c||JR(s,e,b,h.state)}if(t&&i===null)throw r=`
|
|
218
218
|
|
|
219
219
|
- `+iu(t)+`
|
|
220
220
|
+ `+iu(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 h}if(t&&i!==null)throw r=`
|
|
221
221
|
|
|
222
222
|
- `+iu(t)+`
|
|
223
|
-
+ `+iu(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=wo(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 iu(e){var t=0,r="<link";return typeof e.rel=="string"?(t++,r+=' rel="'+e.rel+'"'):ea.call(e,"rel")&&(t++,r+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,r+=' href="'+e.href+'"'):ea.call(e,"href")&&(t++,r+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,r+=' precedence="'+e.precedence+'"'):ea.call(e,"precedence")&&(t++,r+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(r+=" ..."),r+" />"}function Eo(e){return'href="'+Ln(e)+'"'}function Zs(e){return'link[rel="stylesheet"]['+e+"]"}function T1(e){return Me({},e,{"data-precedence":e.precedence,precedence:null})}function XR(e,t,r,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=Ll:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=Ll}),t.addEventListener("error",function(){return i.loading|=nw}),It(t,"link",r),j(t),e.head.appendChild(t))}function wo(e){return'[src="'+Ln(e)+'"]'}function Qs(e){return"script[async]"+e}function N1(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,j(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"),j(i),It(i,"style",s),ou(i,r.precedence,e),t.instance=i;case"stylesheet":s=Eo(r.href);var c=e.querySelector(Zs(s));if(c)return t.state.loading|=Zn,t.instance=c,j(c),c;i=T1(r),(s=Qn.get(s))&&am(i,s),c=(e.ownerDocument||e).createElement("link"),j(c);var h=c;return h._p=new Promise(function(b,x){h.onload=b,h.onerror=x}),It(c,"link",i),t.state.loading|=Zn,ou(c,r.precedence,e),t.instance=c;case"script":return c=wo(r.src),(s=e.querySelector(Qs(c)))?(t.instance=s,j(s),s):(i=r,(s=Qn.get(c))&&(i=Me({},r),im(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),j(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,ou(i,r.precedence,e));return t.instance}function ou(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,h=0;h<i.length;h++){var b=i[h];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 am(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function im(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function R1(e,t,r){if(Ku===null){var i=new Map,s=Ku=new Map;s.set(r,i)}else s=Ku,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[tl]||c[Zt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!==Ro){var h=c.getAttribute(t)||"";h=e+h;var b=i.get(h);b?b.push(c):i.set(h,[c])}}return i}function A1(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function ZR(e,t,r){var i=!r.ancestorInfo.containerTagInScope;if(r.context===is||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=OR(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 O1(e){return!(e.type==="stylesheet"&&(e.state.loading&rw)===Ii)}function QR(){}function WR(e,t,r){if(jl===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var i=jl;if(t.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(t.state.loading&Zn)===Ii){if(t.instance===null){var s=Eo(r.href),c=e.querySelector(Zs(s));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=su.bind(i),e.then(i,i)),t.state.loading|=Zn,t.instance=c,j(c);return}c=e.ownerDocument||e,r=T1(r),(s=Qn.get(s))&&am(r,s),c=c.createElement("link"),j(c);var h=c;h._p=new Promise(function(b,x){h.onload=b,h.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&rw)===Ii&&(i.count++,t=su.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function KR(){if(jl===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=jl;return e.stylesheets&&e.count===0&&om(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&om(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 su(){if(this.count--,this.count===0){if(this.stylesheets)om(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function om(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ju=new Map,t.forEach(JR,e),Ju=null,su.call(e))}function JR(e,t){if(!(t.state.loading&Zn)){var r=Ju.get(e);if(r)var i=r.get(Up);else{r=new Map,Ju.set(e,r);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var h=s[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(r.set(h.dataset.precedence,h),i=h)}i&&r.set(Up,i)}s=t.instance,h=s.getAttribute("data-precedence"),c=r.get(h)||i,c===i&&r.set(Up,s),r.set(h,s),this.count++,i=su.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 eA(e,t,r,i,s,c,h,b){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Vi,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ro(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ro(0),this.hiddenUpdates=ro(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=h,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 C1(e,t,r,i,s,c,h,b,x,k,z,q){return e=new eA(e,t,r,h,b,x,k,q),t=gO,c===!0&&(t|=Qt|or),ir&&(t|=qt),c=g(3,null,null,t),e.current=c,c.stateNode=e,t=Ld(),bi(t),e.pooledCache=t,bi(t),c.memoizedState={element:i,isDehydrated:r,cache:t},Vd(c),e}function D1(e){return e?(e=za,e):za}function sm(e,t,r,i,s,c){if(Xt&&typeof Xt.onScheduleFiberRoot=="function")try{Xt.onScheduleFiberRoot(To,i,r)}catch(h){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",h))}oe!==null&&typeof oe.markRenderScheduled=="function"&&oe.markRenderScheduled(t),s=D1(s),i.context===null?i.context=s:i.pendingContext=s,Rr&&xn!==null&&!lw&&(lw=!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.
|
|
223
|
+
+ `+iu(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=wo(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 iu(e){var t=0,r="<link";return typeof e.rel=="string"?(t++,r+=' rel="'+e.rel+'"'):ea.call(e,"rel")&&(t++,r+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,r+=' href="'+e.href+'"'):ea.call(e,"href")&&(t++,r+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,r+=' precedence="'+e.precedence+'"'):ea.call(e,"precedence")&&(t++,r+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(r+=" ..."),r+" />"}function Eo(e){return'href="'+jn(e)+'"'}function Zs(e){return'link[rel="stylesheet"]['+e+"]"}function D1(e){return Me({},e,{"data-precedence":e.precedence,precedence:null})}function JR(e,t,r,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=Ll:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=Ll}),t.addEventListener("error",function(){return i.loading|=lw}),Vt(t,"link",r),j(t),e.head.appendChild(t))}function wo(e){return'[src="'+jn(e)+'"]'}function Qs(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~="'+jn(r.href)+'"]');if(i)return t.instance=i,j(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"),j(i),Vt(i,"style",s),ou(i,r.precedence,e),t.instance=i;case"stylesheet":s=Eo(r.href);var c=e.querySelector(Zs(s));if(c)return t.state.loading|=Qn,t.instance=c,j(c),c;i=D1(r),(s=Wn.get(s))&&sm(i,s),c=(e.ownerDocument||e).createElement("link"),j(c);var h=c;return h._p=new Promise(function(b,x){h.onload=b,h.onerror=x}),Vt(c,"link",i),t.state.loading|=Qn,ou(c,r.precedence,e),t.instance=c;case"script":return c=wo(r.src),(s=e.querySelector(Qs(c)))?(t.instance=s,j(s),s):(i=r,(s=Wn.get(c))&&(i=Me({},r),lm(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),j(s),Vt(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&Qn)===Vi&&(i=t.instance,t.state.loading|=Qn,ou(i,r.precedence,e));return t.instance}function ou(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,h=0;h<i.length;h++){var b=i[h];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 sm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lm(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(Ku===null){var i=new Map,s=Ku=new Map;s.set(r,i)}else s=Ku,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[tl]||c[Zt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!==Ro){var h=c.getAttribute(t)||"";h=e+h;var b=i.get(h);b?b.push(c):i.set(h,[c])}}return i}function B1(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function eA(e,t,r){var i=!r.ancestorInfo.containerTagInScope;if(r.context===is||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=BR(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)===Vi)}function tA(){}function nA(e,t,r){if(jl===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var i=jl;if(t.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(t.state.loading&Qn)===Vi){if(t.instance===null){var s=Eo(r.href),c=e.querySelector(Zs(s));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=su.bind(i),e.then(i,i)),t.state.loading|=Qn,t.instance=c,j(c);return}c=e.ownerDocument||e,r=D1(r),(s=Wn.get(s))&&sm(r,s),c=c.createElement("link"),j(c);var h=c;h._p=new Promise(function(b,x){h.onload=b,h.onerror=x}),Vt(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)===Vi&&(i.count++,t=su.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function rA(){if(jl===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=jl;return e.stylesheets&&e.count===0&&cm(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&cm(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 su(){if(this.count--,this.count===0){if(this.stylesheets)cm(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function cm(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ju=new Map,t.forEach(aA,e),Ju=null,su.call(e))}function aA(e,t){if(!(t.state.loading&Qn)){var r=Ju.get(e);if(r)var i=r.get(jp);else{r=new Map,Ju.set(e,r);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var h=s[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(r.set(h.dataset.precedence,h),i=h)}i&&r.set(jp,i)}s=t.instance,h=s.getAttribute("data-precedence"),c=r.get(h)||i,c===i&&r.set(jp,s),r.set(h,s),this.count++,i=su.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|=Qn}}function iA(e,t,r,i,s,c,h,b){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ii,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ro(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ro(0),this.hiddenUpdates=ro(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=h,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,h,b,x,k,z,q){return e=new iA(e,t,r,h,b,x,k,q),t=wO,c===!0&&(t|=Qt|or),ir&&(t|=qt),c=y(3,null,null,t),e.current=c,c.stateNode=e,t=zd(),bi(t),e.pooledCache=t,bi(t),c.memoizedState={element:i,isDehydrated:r,cache:t},qd(c),e}function H1(e){return e?(e=za,e):za}function um(e,t,r,i,s,c){if(Xt&&typeof Xt.onScheduleFiberRoot=="function")try{Xt.onScheduleFiberRoot(To,i,r)}catch(h){Tr||(Tr=!0,console.error("React instrumentation encountered an error: %s",h))}oe!==null&&typeof oe.markRenderScheduled=="function"&&oe.markRenderScheduled(t),s=H1(s),i.context===null?i.context=s:i.pendingContext=s,Rr&&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
224
|
|
|
225
|
-
Check the render method of %s.`,X(xn)||"Unknown")),i=ka(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&&(_t(r,e,t),Ds(r,e,t))}function M1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function lm(e,t){M1(e,t),(e=e.alternate)&&M1(e,t)}function U1(e){if(e.tag===13){var t=cn(e,67108864);t!==null&&_t(t,e,67108864),lm(e,67108864)}}function tA(){return xn}function nA(){for(var e=new Map,t=1,r=0;31>r;r++){var i=va(t);e.set(t,i),t*=2}return e}function rA(e,t,r,i){var s=G.T;G.T=null;var c=Ze.p;try{Ze.p=zn,cm(e,t,r,i)}finally{Ze.p=c,G.T=s}}function aA(e,t,r,i){var s=G.T;G.T=null;var c=Ze.p;try{Ze.p=Nr,cm(e,t,r,i)}finally{Ze.p=c,G.T=s}}function cm(e,t,r,i){if(tf){var s=um(i);if(s===null)Zh(e,t,i,nf,r),L1(e,i);else if(iA(s,e,t,r,i))i.stopPropagation();else if(L1(e,i),t&4&&-1<ZO.indexOf(e)){for(;s!==null;){var c=nr(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=St(c.pendingLanes);if(h!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var x=1<<31-Kt(h);b.entanglements[1]|=x,h&=~x}wr(c),(Qe&(rn|ur))===kn&&(zu=kr()+VE,$s(0))}}break;case 13:b=cn(c,2),b!==null&&_t(b,c,2),go(),lm(c,2)}if(c=um(i),c===null&&Zh(e,t,i,nf,r),c===s)break;s=c}s!==null&&i.stopPropagation()}else Zh(e,t,i,null,r)}}function um(e){return e=Ed(e),fm(e)}function fm(e){if(nf=null,e=tr(e),e!==null){var t=M(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=U(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 nf=e,null}function B1(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 Nr;case"message":switch(bA()){case wm:return zn;case Sm:return Nr;case ko:case gA:return ta;case xm:return bu;default:return ta}default:return ta}}function L1(e,t){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":zl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vl.delete(t.pointerId)}}function Ws(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=nr(t),t!==null&&U1(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function iA(e,t,r,i,s){switch(t){case"focusin":return Za=Ws(Za,e,t,r,i,s),!0;case"dragenter":return Qa=Ws(Qa,e,t,r,i,s),!0;case"mouseover":return Wa=Ws(Wa,e,t,r,i,s),!0;case"pointerover":var c=s.pointerId;return zl.set(c,Ws(zl.get(c)||null,e,t,r,i,s)),!0;case"gotpointercapture":return c=s.pointerId,Vl.set(c,Ws(Vl.get(c)||null,e,t,r,i,s)),!0}return!1}function j1(e){var t=tr(e.target);if(t!==null){var r=M(t);if(r!==null){if(t=r.tag,t===13){if(t=U(r),t!==null){e.blockedOn=t,io(e.priority,function(){if(r.tag===13){var i=wn(r);i=ps(i);var s=cn(r,i);s!==null&&_t(s,r,i),lm(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 lu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=um(e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r),s=i;rl!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),rl=s,r.target.dispatchEvent(i),rl===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."),rl=null}else return t=nr(r),t!==null&&U1(t),e.blockedOn=r,!1;t.shift()}return!0}function H1(e,t,r){lu(e)&&r.delete(t)}function oA(){Bp=!1,Za!==null&&lu(Za)&&(Za=null),Qa!==null&&lu(Qa)&&(Qa=null),Wa!==null&&lu(Wa)&&(Wa=null),zl.forEach(H1),Vl.forEach(H1)}function cu(e,t){e.blockedOn===t&&(e.blockedOn=null,Bp||(Bp=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,oA)))}function z1(e){rf!==e&&(rf=e,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,function(){rf===e&&(rf=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(fm(i||r)===null)continue;break}var c=nr(r);c!==null&&(e.splice(t,3),t-=3,r={pending:!0,data:s,method:r.method,action:i},Object.freeze(r),fh(c,r,i,s))}}))}function Ks(e){function t(x){return cu(x,e)}Za!==null&&cu(Za,e),Qa!==null&&cu(Qa,e),Wa!==null&&cu(Wa,e),zl.forEach(t),Vl.forEach(t);for(var r=0;r<Ka.length;r++){var i=Ka[r];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ka.length&&(r=Ka[0],r.blockedOn===null);)j1(r),r.blockedOn===null&&Ka.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],h=s[dn]||null;if(typeof c=="function")h||z1(r);else if(h){var b=null;if(c&&c.hasAttribute("formAction")){if(s=c,h=c[dn]||null)b=h.formAction;else if(fm(s)!==null)continue}else b=h.action;typeof b=="function"?r[i+1]=b:(r.splice(i,3),i-=3),z1(r)}}}function dm(e){this._internalRoot=e}function uu(e){this._internalRoot=e}function V1(e){e[ja]&&(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 xt=rC(),hm=no(),sA=iC(),Me=Object.assign,lA=Symbol.for("react.element"),Ma=Symbol.for("react.transitional.element"),So=Symbol.for("react.portal"),xo=Symbol.for("react.fragment"),fu=Symbol.for("react.strict_mode"),mm=Symbol.for("react.profiler"),cA=Symbol.for("react.provider"),pm=Symbol.for("react.consumer"),xr=Symbol.for("react.context"),Js=Symbol.for("react.forward_ref"),bm=Symbol.for("react.suspense"),gm=Symbol.for("react.suspense_list"),du=Symbol.for("react.memo"),Sn=Symbol.for("react.lazy"),ym=Symbol.for("react.activity"),uA=Symbol.for("react.memo_cache_sentinel"),I1=Symbol.iterator,fA=Symbol.for("react.client.reference"),Gt=Array.isArray,G=hm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ze=sA.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,dA=Object.freeze({pending:!1,data:null,method:null,action:null}),vm=[],_m=[],Jr=-1,Ua=te(null),el=te(null),Ba=te(null),hu=te(null),ea=Object.prototype.hasOwnProperty,Em=xt.unstable_scheduleCallback,hA=xt.unstable_cancelCallback,mA=xt.unstable_shouldYield,pA=xt.unstable_requestPaint,kr=xt.unstable_now,bA=xt.unstable_getCurrentPriorityLevel,wm=xt.unstable_ImmediatePriority,Sm=xt.unstable_UserBlockingPriority,ko=xt.unstable_NormalPriority,gA=xt.unstable_LowPriority,xm=xt.unstable_IdlePriority,yA=xt.log,vA=xt.unstable_setDisableYieldValue,To=null,Xt=null,oe=null,Tr=!1,ir=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Kt=Math.clz32?Math.clz32:Ir,_A=Math.log,EA=Math.LN2,mu=256,pu=4194304,zn=2,Nr=8,ta=32,bu=268435456,La=Math.random().toString(36).slice(2),Zt="__reactFiber$"+La,dn="__reactProps$"+La,ja="__reactContainer$"+La,km="__reactEvents$"+La,wA="__reactListeners$"+La,SA="__reactHandles$"+La,G1="__reactResources$"+La,tl="__reactMarker$"+La,q1=new Set,wi={},Tm={},xA={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},kA=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]*$"),F1={},P1={},nl=0,$1,Y1,X1,Z1,Q1,W1,K1;qr.__reactDisabledLog=!0;var Nm,J1,Rm=!1,Am=new(typeof WeakMap=="function"?WeakMap:Map),xn=null,Rr=!1,TA=/[\n"\\]/g,e_=!1,t_=!1,n_=!1,r_=!1,a_=!1,i_=!1,o_=["value","defaultValue"],s_=!1,l_=/["'&<>\n\t]|^\s|\s$/,NA="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(" "),c_="applet caption html table td th marquee object template foreignObject desc title".split(" "),RA=c_.concat(["button"]),AA="dd dt li option optgroup p rp rt".split(" "),u_={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},gu={},Om={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"]},f_=/([A-Z])/g,d_=/^ms-/,OA=/^(?:webkit|moz|o)[A-Z]/,CA=/^-ms-/,DA=/-(.)/g,h_=/;\s*$/,No={},Cm={},m_=!1,p_=!1,b_=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(" ")),yu="http://www.w3.org/1998/Math/MathML",Ro="http://www.w3.org/2000/svg",MA=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"]]),vu={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"},g_={"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},Ao={},UA=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]*$"),BA=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]*$"),y_=!1,Jt={},v_=/^on./,LA=/^on[^A-Z]/,jA=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]*$"),HA=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]*$"),zA=/^[\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,rl=null,Oo=null,Co=null,Dm=!1,Ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mm=!1;if(Ar)try{var al={};Object.defineProperty(al,"passive",{get:function(){Mm=!0}}),window.addEventListener("test",al,al),window.removeEventListener("test",al,al)}catch{Mm=!1}var Ha=null,Um=null,_u=null,Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eu=ln(Si),il=Me({},Si,{view:0,detail:0}),VA=ln(il),Bm,Lm,ol,wu=Me({},il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wd,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!==ol&&(ol&&e.type==="mousemove"?(Bm=e.screenX-ol.screenX,Lm=e.screenY-ol.screenY):Lm=Bm=0,ol=e),Bm)},movementY:function(e){return"movementY"in e?e.movementY:Lm}}),__=ln(wu),IA=Me({},wu,{dataTransfer:0}),GA=ln(IA),qA=Me({},il,{relatedTarget:0}),jm=ln(qA),FA=Me({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),PA=ln(FA),$A=Me({},Si,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),YA=ln($A),XA=Me({},Si,{data:0}),E_=ln(XA),ZA=E_,QA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WA={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"},KA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},JA=Me({},il,{key:function(e){if(e.key){var t=QA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?WA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wd,charCode:function(e){return e.type==="keypress"?bc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eO=ln(JA),tO=Me({},wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),w_=ln(tO),nO=Me({},il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wd}),rO=ln(nO),aO=Me({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),iO=ln(aO),oO=Me({},wu,{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}),sO=ln(oO),lO=Me({},Si,{newState:0,oldState:0}),cO=ln(lO),uO=[9,13,27,32],S_=229,Hm=Ar&&"CompositionEvent"in window,sl=null;Ar&&"documentMode"in document&&(sl=document.documentMode);var fO=Ar&&"TextEvent"in window&&!sl,x_=Ar&&(!Hm||sl&&8<sl&&11>=sl),k_=32,T_=String.fromCharCode(k_),N_=!1,Do=!1,dO={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},ll=null,cl=null,R_=!1;Ar&&(R_=GN("input")&&(!document.documentMode||9<document.documentMode));var en=typeof Object.is=="function"?Object.is:XN,hO=Ar&&"documentMode"in document&&11>=document.documentMode,Mo=null,zm=null,ul=null,Vm=!1,Uo={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionrun:si("Transition","TransitionRun"),transitionstart:si("Transition","TransitionStart"),transitioncancel:si("Transition","TransitionCancel"),transitionend:si("Transition","TransitionEnd")},Im={},A_={};Ar&&(A_=document.createElement("div").style,"AnimationEvent"in window||(delete Uo.animationend.animation,delete Uo.animationiteration.animation,delete Uo.animationstart.animation),"TransitionEvent"in window||delete Uo.transitionend.transition);var O_=li("animationend"),C_=li("animationiteration"),D_=li("animationstart"),mO=li("transitionrun"),pO=li("transitionstart"),bO=li("transitioncancel"),M_=li("transitionend"),U_=new Map,Gm="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(" ");Gm.push("scrollEnd");var qm=new WeakMap,Fm=1,xi=2,Vn=[],Bo=0,Pm=0,za={};Object.freeze(za);var In=null,Lo=null,lt=0,gO=1,qt=2,Qt=8,or=16,B_=64,L_=!1;try{var j_=Object.preventExtensions({})}catch{L_=!0}var jo=[],Ho=0,Su=null,xu=0,Gn=[],qn=0,ki=null,na=1,ra="",tn=null,bt=null,$e=!1,aa=!1,Fn=null,Ti=null,Or=!1,$m=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."),H_=0;if(typeof performance=="object"&&typeof performance.now=="function")var yO=performance,z_=function(){return yO.now()};else{var vO=Date;z_=function(){return vO.now()}}var Ym=te(null),Xm=te(null),V_={},ku=null,zo=null,Vo=!1,_O=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()})}},EO=xt.unstable_scheduleCallback,wO=xt.unstable_NormalPriority,Ot={$$typeof:xr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Io=xt.unstable_now,I_=-0,Tu=-0,hn=-1.1,Ni=-0,Nu=!1,Ru=!1,fl=null,Zm=0,Ri=0,Go=null,G_=G.S;G.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&QN(e,t),G_!==null&&G_(e,t)};var Ai=te(null),sr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},dl=[],hl=[],ml=[],pl=[],bl=[],gl=[],Oi=new Set;sr.recordUnsafeLifecycleWarnings=function(e,t){Oi.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&dl.push(e),e.mode&Qt&&typeof t.UNSAFE_componentWillMount=="function"&&hl.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ml.push(e),e.mode&Qt&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&pl.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&bl.push(e),e.mode&Qt&&typeof t.UNSAFE_componentWillUpdate=="function"&&gl.push(e))},sr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<dl.length&&(dl.forEach(function(b){e.add(X(b)||"Component"),Oi.add(b.type)}),dl=[]);var t=new Set;0<hl.length&&(hl.forEach(function(b){t.add(X(b)||"Component"),Oi.add(b.type)}),hl=[]);var r=new Set;0<ml.length&&(ml.forEach(function(b){r.add(X(b)||"Component"),Oi.add(b.type)}),ml=[]);var i=new Set;0<pl.length&&(pl.forEach(function(b){i.add(X(b)||"Component"),Oi.add(b.type)}),pl=[]);var s=new Set;0<bl.length&&(bl.forEach(function(b){s.add(X(b)||"Component"),Oi.add(b.type)}),bl=[]);var c=new Set;if(0<gl.length&&(gl.forEach(function(b){c.add(X(b)||"Component"),Oi.add(b.type)}),gl=[]),0<t.size){var h=E(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.
|
|
225
|
+
Check the render method of %s.`,X(xn)||"Unknown")),i=ka(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&&(_t(r,e,t),Ds(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 fm(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&&_t(t,e,67108864),fm(e,67108864)}}function oA(){return xn}function sA(){for(var e=new Map,t=1,r=0;31>r;r++){var i=va(t);e.set(t,i),t*=2}return e}function lA(e,t,r,i){var s=G.T;G.T=null;var c=Ze.p;try{Ze.p=In,dm(e,t,r,i)}finally{Ze.p=c,G.T=s}}function cA(e,t,r,i){var s=G.T;G.T=null;var c=Ze.p;try{Ze.p=Nr,dm(e,t,r,i)}finally{Ze.p=c,G.T=s}}function dm(e,t,r,i){if(tf){var s=hm(i);if(s===null)Kh(e,t,i,nf,r),G1(e,i);else if(uA(s,e,t,r,i))i.stopPropagation();else if(G1(e,i),t&4&&-1<eC.indexOf(e)){for(;s!==null;){var c=nr(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=St(c.pendingLanes);if(h!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var x=1<<31-Kt(h);b.entanglements[1]|=x,h&=~x}wr(c),(Qe&(rn|ur))===kn&&(zu=kr()+$E,$s(0))}}break;case 13:b=cn(c,2),b!==null&&_t(b,c,2),go(),fm(c,2)}if(c=hm(i),c===null&&Kh(e,t,i,nf,r),c===s)break;s=c}s!==null&&i.stopPropagation()}else Kh(e,t,i,null,r)}}function hm(e){return e=xd(e),mm(e)}function mm(e){if(nf=null,e=tr(e),e!==null){var t=M(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=U(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 nf=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 In;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 Nr;case"message":switch(EA()){case km:return In;case Tm:return Nr;case ko:case wA:return ta;case Nm:return bu;default:return ta}default:return ta}}function G1(e,t){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":zl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Il.delete(t.pointerId)}}function Ws(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=nr(t),t!==null&&I1(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function uA(e,t,r,i,s){switch(t){case"focusin":return Za=Ws(Za,e,t,r,i,s),!0;case"dragenter":return Qa=Ws(Qa,e,t,r,i,s),!0;case"mouseover":return Wa=Ws(Wa,e,t,r,i,s),!0;case"pointerover":var c=s.pointerId;return zl.set(c,Ws(zl.get(c)||null,e,t,r,i,s)),!0;case"gotpointercapture":return c=s.pointerId,Il.set(c,Ws(Il.get(c)||null,e,t,r,i,s)),!0}return!1}function q1(e){var t=tr(e.target);if(t!==null){var r=M(t);if(r!==null){if(t=r.tag,t===13){if(t=U(r),t!==null){e.blockedOn=t,io(e.priority,function(){if(r.tag===13){var i=wn(r);i=ps(i);var s=cn(r,i);s!==null&&_t(s,r,i),fm(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 lu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=hm(e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r),s=i;rl!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),rl=s,r.target.dispatchEvent(i),rl===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."),rl=null}else return t=nr(r),t!==null&&I1(t),e.blockedOn=r,!1;t.shift()}return!0}function F1(e,t,r){lu(e)&&r.delete(t)}function fA(){Hp=!1,Za!==null&&lu(Za)&&(Za=null),Qa!==null&&lu(Qa)&&(Qa=null),Wa!==null&&lu(Wa)&&(Wa=null),zl.forEach(F1),Il.forEach(F1)}function cu(e,t){e.blockedOn===t&&(e.blockedOn=null,Hp||(Hp=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,fA)))}function P1(e){rf!==e&&(rf=e,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,function(){rf===e&&(rf=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(mm(i||r)===null)continue;break}var c=nr(r);c!==null&&(e.splice(t,3),t-=3,r={pending:!0,data:s,method:r.method,action:i},Object.freeze(r),mh(c,r,i,s))}}))}function Ks(e){function t(x){return cu(x,e)}Za!==null&&cu(Za,e),Qa!==null&&cu(Qa,e),Wa!==null&&cu(Wa,e),zl.forEach(t),Il.forEach(t);for(var r=0;r<Ka.length;r++){var i=Ka[r];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ka.length&&(r=Ka[0],r.blockedOn===null);)q1(r),r.blockedOn===null&&Ka.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],h=s[dn]||null;if(typeof c=="function")h||P1(r);else if(h){var b=null;if(c&&c.hasAttribute("formAction")){if(s=c,h=c[dn]||null)b=h.formAction;else if(mm(s)!==null)continue}else b=h.action;typeof b=="function"?r[i+1]=b:(r.splice(i,3),i-=3),P1(r)}}}function pm(e){this._internalRoot=e}function uu(e){this._internalRoot=e}function $1(e){e[ja]&&(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 xt=lC(),bm=no(),dA=uC(),Me=Object.assign,hA=Symbol.for("react.element"),Ma=Symbol.for("react.transitional.element"),So=Symbol.for("react.portal"),xo=Symbol.for("react.fragment"),fu=Symbol.for("react.strict_mode"),gm=Symbol.for("react.profiler"),mA=Symbol.for("react.provider"),ym=Symbol.for("react.consumer"),xr=Symbol.for("react.context"),Js=Symbol.for("react.forward_ref"),vm=Symbol.for("react.suspense"),_m=Symbol.for("react.suspense_list"),du=Symbol.for("react.memo"),Sn=Symbol.for("react.lazy"),Em=Symbol.for("react.activity"),pA=Symbol.for("react.memo_cache_sentinel"),Y1=Symbol.iterator,bA=Symbol.for("react.client.reference"),Gt=Array.isArray,G=bm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ze=dA.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gA=Object.freeze({pending:!1,data:null,method:null,action:null}),wm=[],Sm=[],Jr=-1,Ua=te(null),el=te(null),Ba=te(null),hu=te(null),ea=Object.prototype.hasOwnProperty,xm=xt.unstable_scheduleCallback,yA=xt.unstable_cancelCallback,vA=xt.unstable_shouldYield,_A=xt.unstable_requestPaint,kr=xt.unstable_now,EA=xt.unstable_getCurrentPriorityLevel,km=xt.unstable_ImmediatePriority,Tm=xt.unstable_UserBlockingPriority,ko=xt.unstable_NormalPriority,wA=xt.unstable_LowPriority,Nm=xt.unstable_IdlePriority,SA=xt.log,xA=xt.unstable_setDisableYieldValue,To=null,Xt=null,oe=null,Tr=!1,ir=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Kt=Math.clz32?Math.clz32:Vr,kA=Math.log,TA=Math.LN2,mu=256,pu=4194304,In=2,Nr=8,ta=32,bu=268435456,La=Math.random().toString(36).slice(2),Zt="__reactFiber$"+La,dn="__reactProps$"+La,ja="__reactContainer$"+La,Rm="__reactEvents$"+La,NA="__reactListeners$"+La,RA="__reactHandles$"+La,X1="__reactResources$"+La,tl="__reactMarker$"+La,Z1=new Set,wi={},Am={},AA={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},OA=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={},nl=0,K1,J1,e_,t_,n_,r_,a_;qr.__reactDisabledLog=!0;var Om,i_,Cm=!1,Dm=new(typeof WeakMap=="function"?WeakMap:Map),xn=null,Rr=!1,CA=/[\n"\\]/g,o_=!1,s_=!1,l_=!1,c_=!1,u_=!1,f_=!1,d_=["value","defaultValue"],h_=!1,m_=/["'&<>\n\t]|^\s|\s$/,DA="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(" "),MA=p_.concat(["button"]),UA="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},gu={},Mm={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-/,BA=/^(?:webkit|moz|o)[A-Z]/,LA=/^-ms-/,jA=/-(.)/g,v_=/;\s*$/,No={},Um={},__=!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(" ")),yu="http://www.w3.org/1998/Math/MathML",Ro="http://www.w3.org/2000/svg",HA=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"]]),vu={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},Ao={},zA=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]*$"),IA=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,Jt={},k_=/^on./,VA=/^on[^A-Z]/,GA=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]*$"),qA=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]*$"),FA=/^[\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,rl=null,Oo=null,Co=null,Bm=!1,Ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lm=!1;if(Ar)try{var al={};Object.defineProperty(al,"passive",{get:function(){Lm=!0}}),window.addEventListener("test",al,al),window.removeEventListener("test",al,al)}catch{Lm=!1}var Ha=null,jm=null,_u=null,Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eu=ln(Si),il=Me({},Si,{view:0,detail:0}),PA=ln(il),Hm,zm,ol,wu=Me({},il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kd,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!==ol&&(ol&&e.type==="mousemove"?(Hm=e.screenX-ol.screenX,zm=e.screenY-ol.screenY):zm=Hm=0,ol=e),Hm)},movementY:function(e){return"movementY"in e?e.movementY:zm}}),T_=ln(wu),$A=Me({},wu,{dataTransfer:0}),YA=ln($A),XA=Me({},il,{relatedTarget:0}),Im=ln(XA),ZA=Me({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),QA=ln(ZA),WA=Me({},Si,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),KA=ln(WA),JA=Me({},Si,{data:0}),N_=ln(JA),eO=N_,tO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nO={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"},rO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},aO=Me({},il,{key:function(e){if(e.key){var t=tO[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nO[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kd,charCode:function(e){return e.type==="keypress"?bc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iO=ln(aO),oO=Me({},wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),R_=ln(oO),sO=Me({},il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kd}),lO=ln(sO),cO=Me({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),uO=ln(cO),fO=Me({},wu,{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}),dO=ln(fO),hO=Me({},Si,{newState:0,oldState:0}),mO=ln(hO),pO=[9,13,27,32],A_=229,Vm=Ar&&"CompositionEvent"in window,sl=null;Ar&&"documentMode"in document&&(sl=document.documentMode);var bO=Ar&&"TextEvent"in window&&!sl,O_=Ar&&(!Vm||sl&&8<sl&&11>=sl),C_=32,D_=String.fromCharCode(C_),M_=!1,Do=!1,gO={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},ll=null,cl=null,U_=!1;Ar&&(U_=YN("input")&&(!document.documentMode||9<document.documentMode));var en=typeof Object.is=="function"?Object.is:JN,yO=Ar&&"documentMode"in document&&11>=document.documentMode,Mo=null,Gm=null,ul=null,qm=!1,Uo={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionrun:si("Transition","TransitionRun"),transitionstart:si("Transition","TransitionStart"),transitioncancel:si("Transition","TransitionCancel"),transitionend:si("Transition","TransitionEnd")},Fm={},B_={};Ar&&(B_=document.createElement("div").style,"AnimationEvent"in window||(delete Uo.animationend.animation,delete Uo.animationiteration.animation,delete Uo.animationstart.animation),"TransitionEvent"in window||delete Uo.transitionend.transition);var L_=li("animationend"),j_=li("animationiteration"),H_=li("animationstart"),vO=li("transitionrun"),_O=li("transitionstart"),EO=li("transitioncancel"),z_=li("transitionend"),I_=new Map,Pm="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(" ");Pm.push("scrollEnd");var $m=new WeakMap,Ym=1,xi=2,Vn=[],Bo=0,Xm=0,za={};Object.freeze(za);var Gn=null,Lo=null,lt=0,wO=1,qt=2,Qt=8,or=16,V_=64,G_=!1;try{var q_=Object.preventExtensions({})}catch{G_=!0}var jo=[],Ho=0,Su=null,xu=0,qn=[],Fn=0,ki=null,na=1,ra="",tn=null,bt=null,$e=!1,aa=!1,Pn=null,Ti=null,Or=!1,Zm=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 SO=performance,P_=function(){return SO.now()};else{var xO=Date;P_=function(){return xO.now()}}var Qm=te(null),Wm=te(null),$_={},ku=null,zo=null,Io=!1,kO=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=xt.unstable_scheduleCallback,NO=xt.unstable_NormalPriority,Ot={$$typeof:xr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Vo=xt.unstable_now,Y_=-0,Tu=-0,hn=-1.1,Ni=-0,Nu=!1,Ru=!1,fl=null,Km=0,Ri=0,Go=null,X_=G.S;G.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&tR(e,t),X_!==null&&X_(e,t)};var Ai=te(null),sr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},dl=[],hl=[],ml=[],pl=[],bl=[],gl=[],Oi=new Set;sr.recordUnsafeLifecycleWarnings=function(e,t){Oi.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&dl.push(e),e.mode&Qt&&typeof t.UNSAFE_componentWillMount=="function"&&hl.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ml.push(e),e.mode&Qt&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&pl.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&bl.push(e),e.mode&Qt&&typeof t.UNSAFE_componentWillUpdate=="function"&&gl.push(e))},sr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<dl.length&&(dl.forEach(function(b){e.add(X(b)||"Component"),Oi.add(b.type)}),dl=[]);var t=new Set;0<hl.length&&(hl.forEach(function(b){t.add(X(b)||"Component"),Oi.add(b.type)}),hl=[]);var r=new Set;0<ml.length&&(ml.forEach(function(b){r.add(X(b)||"Component"),Oi.add(b.type)}),ml=[]);var i=new Set;0<pl.length&&(pl.forEach(function(b){i.add(X(b)||"Component"),Oi.add(b.type)}),pl=[]);var s=new Set;0<bl.length&&(bl.forEach(function(b){s.add(X(b)||"Component"),Oi.add(b.type)}),bl=[]);var c=new Set;if(0<gl.length&&(gl.forEach(function(b){c.add(X(b)||"Component"),Oi.add(b.type)}),gl=[]),0<t.size){var h=E(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
226
|
|
|
227
227
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
228
228
|
|
|
@@ -251,24 +251,24 @@ Please update the following components: %s`,h)),0<s.size&&(h=E(s),console.warn(`
|
|
|
251
251
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
252
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
253
|
|
|
254
|
-
Please update the following components: %s`,h))};var Au=new Map,
|
|
254
|
+
Please update the following components: %s`,h))};var Au=new Map,Z_=new Set;sr.recordLegacyContextWarning=function(e,t){for(var r=null,i=e;i!==null;)i.mode&Qt&&(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=Au.get(r),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(i===void 0&&(i=[],Au.set(r,i)),i.push(e))},sr.flushLegacyContextWarning=function(){Au.forEach(function(e){if(e.length!==0){var t=e[0],r=new Set;e.forEach(function(s){r.add(X(s)||"Component"),Z_.add(s.type)});var i=E(r);be(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
255
255
|
|
|
256
256
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
257
257
|
|
|
258
258
|
Please update the following components: %s
|
|
259
259
|
|
|
260
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,i)})}})},sr.discardPendingWarnings=function(){dl=[],hl=[],ml=[],pl=[],bl=[],gl=[],Au=new Map};var yl=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`."),F_=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."),Ou=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."),Qm={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.')}},vl=null,Cu=!1,Pn=0,$n=1,nn=2,Ft=4,Ct=8,P_=0,$_=1,Y_=2,Wm=3,Va=!1,X_=!1,Km=null,Jm=!1,qo=te(null),Du=te(0),Fo,Z_=new Set,Q_=new Set,ep=new Set,W_=new Set,Ia=0,Ee=null,at=null,kt=null,Mu=!1,Po=!1,Ci=!1,Uu=0,_l=0,ia=null,SO=0,xO=25,I=null,Yn=null,oa=-1,El=!1,Bu={readContext:dt,use:Na,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt},tp=null,K_=null,np=null,J_=null,Cr=null,lr=null,Lu=null;tp={readContext:function(e){return dt(e)},use:Na,useCallback:function(e,t){return I="useCallback",je(),co(t),sh(e,t)},useContext:function(e){return I="useContext",je(),dt(e)},useEffect:function(e,t){return I="useEffect",je(),co(t),Lc(e,t)},useImperativeHandle:function(e,t,r){return I="useImperativeHandle",je(),co(r),oh(e,t,r)},useInsertionEffect:function(e,t){I="useInsertionEffect",je(),co(t),yi(4,nn,e,t)},useLayoutEffect:function(e,t){return I="useLayoutEffect",je(),co(t),ih(e,t)},useMemo:function(e,t){I="useMemo",je(),co(t);var r=G.H;G.H=Cr;try{return lh(e,t)}finally{G.H=r}},useReducer:function(e,t,r){I="useReducer",je();var i=G.H;G.H=Cr;try{return Wd(e,t,r)}finally{G.H=i}},useRef:function(e){return I="useRef",je(),ah(e)},useState:function(e){I="useState",je();var t=G.H;G.H=Cr;try{return th(e)}finally{G.H=t}},useDebugValue:function(){I="useDebugValue",je()},useDeferredValue:function(e,t){return I="useDeferredValue",je(),ch(e,t)},useTransition:function(){return I="useTransition",je(),dh()},useSyncExternalStore:function(e,t,r){return I="useSyncExternalStore",je(),Jd(e,t,r)},useId:function(){return I="useId",je(),hh()},useFormState:function(e,t){return I="useFormState",je(),Cc(),fo(e,t)},useActionState:function(e,t){return I="useActionState",je(),fo(e,t)},useOptimistic:function(e){return I="useOptimistic",je(),nh(e)},useHostTransitionStatus:vi,useMemoCache:gi,useCacheRefresh:function(){return I="useCacheRefresh",je(),mh()}},K_={readContext:function(e){return dt(e)},use:Na,useCallback:function(e,t){return I="useCallback",Q(),sh(e,t)},useContext:function(e){return I="useContext",Q(),dt(e)},useEffect:function(e,t){return I="useEffect",Q(),Lc(e,t)},useImperativeHandle:function(e,t,r){return I="useImperativeHandle",Q(),oh(e,t,r)},useInsertionEffect:function(e,t){I="useInsertionEffect",Q(),yi(4,nn,e,t)},useLayoutEffect:function(e,t){return I="useLayoutEffect",Q(),ih(e,t)},useMemo:function(e,t){I="useMemo",Q();var r=G.H;G.H=Cr;try{return lh(e,t)}finally{G.H=r}},useReducer:function(e,t,r){I="useReducer",Q();var i=G.H;G.H=Cr;try{return Wd(e,t,r)}finally{G.H=i}},useRef:function(e){return I="useRef",Q(),ah(e)},useState:function(e){I="useState",Q();var t=G.H;G.H=Cr;try{return th(e)}finally{G.H=t}},useDebugValue:function(){I="useDebugValue",Q()},useDeferredValue:function(e,t){return I="useDeferredValue",Q(),ch(e,t)},useTransition:function(){return I="useTransition",Q(),dh()},useSyncExternalStore:function(e,t,r){return I="useSyncExternalStore",Q(),Jd(e,t,r)},useId:function(){return I="useId",Q(),hh()},useActionState:function(e,t){return I="useActionState",Q(),fo(e,t)},useFormState:function(e,t){return I="useFormState",Q(),Cc(),fo(e,t)},useOptimistic:function(e){return I="useOptimistic",Q(),nh(e)},useHostTransitionStatus:vi,useMemoCache:gi,useCacheRefresh:function(){return I="useCacheRefresh",Q(),mh()}},np={readContext:function(e){return dt(e)},use:Na,useCallback:function(e,t){return I="useCallback",Q(),Hc(e,t)},useContext:function(e){return I="useContext",Q(),dt(e)},useEffect:function(e,t){I="useEffect",Q(),fn(2048,Ct,e,t)},useImperativeHandle:function(e,t,r){return I="useImperativeHandle",Q(),jc(e,t,r)},useInsertionEffect:function(e,t){return I="useInsertionEffect",Q(),fn(4,nn,e,t)},useLayoutEffect:function(e,t){return I="useLayoutEffect",Q(),fn(4,Ft,e,t)},useMemo:function(e,t){I="useMemo",Q();var r=G.H;G.H=lr;try{return zc(e,t)}finally{G.H=r}},useReducer:function(e,t,r){I="useReducer",Q();var i=G.H;G.H=lr;try{return uo(e,t,r)}finally{G.H=i}},useRef:function(){return I="useRef",Q(),et().memoizedState},useState:function(){I="useState",Q();var e=G.H;G.H=lr;try{return uo(ar)}finally{G.H=e}},useDebugValue:function(){I="useDebugValue",Q()},useDeferredValue:function(e,t){return I="useDeferredValue",Q(),O0(e,t)},useTransition:function(){return I="useTransition",Q(),L0()},useSyncExternalStore:function(e,t,r){return I="useSyncExternalStore",Q(),Dc(e,t,r)},useId:function(){return I="useId",Q(),et().memoizedState},useFormState:function(e){return I="useFormState",Q(),Cc(),Mc(e)},useActionState:function(e){return I="useActionState",Q(),Mc(e)},useOptimistic:function(e,t){return I="useOptimistic",Q(),_0(e,t)},useHostTransitionStatus:vi,useMemoCache:gi,useCacheRefresh:function(){return I="useCacheRefresh",Q(),et().memoizedState}},J_={readContext:function(e){return dt(e)},use:Na,useCallback:function(e,t){return I="useCallback",Q(),Hc(e,t)},useContext:function(e){return I="useContext",Q(),dt(e)},useEffect:function(e,t){I="useEffect",Q(),fn(2048,Ct,e,t)},useImperativeHandle:function(e,t,r){return I="useImperativeHandle",Q(),jc(e,t,r)},useInsertionEffect:function(e,t){return I="useInsertionEffect",Q(),fn(4,nn,e,t)},useLayoutEffect:function(e,t){return I="useLayoutEffect",Q(),fn(4,Ft,e,t)},useMemo:function(e,t){I="useMemo",Q();var r=G.H;G.H=Lu;try{return zc(e,t)}finally{G.H=r}},useReducer:function(e,t,r){I="useReducer",Q();var i=G.H;G.H=Lu;try{return Ls(e,t,r)}finally{G.H=i}},useRef:function(){return I="useRef",Q(),et().memoizedState},useState:function(){I="useState",Q();var e=G.H;G.H=Lu;try{return Ls(ar)}finally{G.H=e}},useDebugValue:function(){I="useDebugValue",Q()},useDeferredValue:function(e,t){return I="useDeferredValue",Q(),C0(e,t)},useTransition:function(){return I="useTransition",Q(),j0()},useSyncExternalStore:function(e,t,r){return I="useSyncExternalStore",Q(),Dc(e,t,r)},useId:function(){return I="useId",Q(),et().memoizedState},useFormState:function(e){return I="useFormState",Q(),Cc(),Uc(e)},useActionState:function(e){return I="useActionState",Q(),Uc(e)},useOptimistic:function(e,t){return I="useOptimistic",Q(),w0(e,t)},useHostTransitionStatus:vi,useMemoCache:gi,useCacheRefresh:function(){return I="useCacheRefresh",Q(),et().memoizedState}},Cr={readContext:function(e){return y(),dt(e)},use:function(e){return p(),Na(e)},useCallback:function(e,t){return I="useCallback",p(),je(),sh(e,t)},useContext:function(e){return I="useContext",p(),je(),dt(e)},useEffect:function(e,t){return I="useEffect",p(),je(),Lc(e,t)},useImperativeHandle:function(e,t,r){return I="useImperativeHandle",p(),je(),oh(e,t,r)},useInsertionEffect:function(e,t){I="useInsertionEffect",p(),je(),yi(4,nn,e,t)},useLayoutEffect:function(e,t){return I="useLayoutEffect",p(),je(),ih(e,t)},useMemo:function(e,t){I="useMemo",p(),je();var r=G.H;G.H=Cr;try{return lh(e,t)}finally{G.H=r}},useReducer:function(e,t,r){I="useReducer",p(),je();var i=G.H;G.H=Cr;try{return Wd(e,t,r)}finally{G.H=i}},useRef:function(e){return I="useRef",p(),je(),ah(e)},useState:function(e){I="useState",p(),je();var t=G.H;G.H=Cr;try{return th(e)}finally{G.H=t}},useDebugValue:function(){I="useDebugValue",p(),je()},useDeferredValue:function(e,t){return I="useDeferredValue",p(),je(),ch(e,t)},useTransition:function(){return I="useTransition",p(),je(),dh()},useSyncExternalStore:function(e,t,r){return I="useSyncExternalStore",p(),je(),Jd(e,t,r)},useId:function(){return I="useId",p(),je(),hh()},useFormState:function(e,t){return I="useFormState",p(),je(),fo(e,t)},useActionState:function(e,t){return I="useActionState",p(),je(),fo(e,t)},useOptimistic:function(e){return I="useOptimistic",p(),je(),nh(e)},useMemoCache:function(e){return p(),gi(e)},useHostTransitionStatus:vi,useCacheRefresh:function(){return I="useCacheRefresh",je(),mh()}},lr={readContext:function(e){return y(),dt(e)},use:function(e){return p(),Na(e)},useCallback:function(e,t){return I="useCallback",p(),Q(),Hc(e,t)},useContext:function(e){return I="useContext",p(),Q(),dt(e)},useEffect:function(e,t){I="useEffect",p(),Q(),fn(2048,Ct,e,t)},useImperativeHandle:function(e,t,r){return I="useImperativeHandle",p(),Q(),jc(e,t,r)},useInsertionEffect:function(e,t){return I="useInsertionEffect",p(),Q(),fn(4,nn,e,t)},useLayoutEffect:function(e,t){return I="useLayoutEffect",p(),Q(),fn(4,Ft,e,t)},useMemo:function(e,t){I="useMemo",p(),Q();var r=G.H;G.H=lr;try{return zc(e,t)}finally{G.H=r}},useReducer:function(e,t,r){I="useReducer",p(),Q();var i=G.H;G.H=lr;try{return uo(e,t,r)}finally{G.H=i}},useRef:function(){return I="useRef",p(),Q(),et().memoizedState},useState:function(){I="useState",p(),Q();var e=G.H;G.H=lr;try{return uo(ar)}finally{G.H=e}},useDebugValue:function(){I="useDebugValue",p(),Q()},useDeferredValue:function(e,t){return I="useDeferredValue",p(),Q(),O0(e,t)},useTransition:function(){return I="useTransition",p(),Q(),L0()},useSyncExternalStore:function(e,t,r){return I="useSyncExternalStore",p(),Q(),Dc(e,t,r)},useId:function(){return I="useId",p(),Q(),et().memoizedState},useFormState:function(e){return I="useFormState",p(),Q(),Mc(e)},useActionState:function(e){return I="useActionState",p(),Q(),Mc(e)},useOptimistic:function(e,t){return I="useOptimistic",p(),Q(),_0(e,t)},useMemoCache:function(e){return p(),gi(e)},useHostTransitionStatus:vi,useCacheRefresh:function(){return I="useCacheRefresh",Q(),et().memoizedState}},Lu={readContext:function(e){return y(),dt(e)},use:function(e){return p(),Na(e)},useCallback:function(e,t){return I="useCallback",p(),Q(),Hc(e,t)},useContext:function(e){return I="useContext",p(),Q(),dt(e)},useEffect:function(e,t){I="useEffect",p(),Q(),fn(2048,Ct,e,t)},useImperativeHandle:function(e,t,r){return I="useImperativeHandle",p(),Q(),jc(e,t,r)},useInsertionEffect:function(e,t){return I="useInsertionEffect",p(),Q(),fn(4,nn,e,t)},useLayoutEffect:function(e,t){return I="useLayoutEffect",p(),Q(),fn(4,Ft,e,t)},useMemo:function(e,t){I="useMemo",p(),Q();var r=G.H;G.H=lr;try{return zc(e,t)}finally{G.H=r}},useReducer:function(e,t,r){I="useReducer",p(),Q();var i=G.H;G.H=lr;try{return Ls(e,t,r)}finally{G.H=i}},useRef:function(){return I="useRef",p(),Q(),et().memoizedState},useState:function(){I="useState",p(),Q();var e=G.H;G.H=lr;try{return Ls(ar)}finally{G.H=e}},useDebugValue:function(){I="useDebugValue",p(),Q()},useDeferredValue:function(e,t){return I="useDeferredValue",p(),Q(),C0(e,t)},useTransition:function(){return I="useTransition",p(),Q(),j0()},useSyncExternalStore:function(e,t,r){return I="useSyncExternalStore",p(),Q(),Dc(e,t,r)},useId:function(){return I="useId",p(),Q(),et().memoizedState},useFormState:function(e){return I="useFormState",p(),Q(),Uc(e)},useActionState:function(e){return I="useActionState",p(),Q(),Uc(e)},useOptimistic:function(e,t){return I="useOptimistic",p(),Q(),w0(e,t)},useMemoCache:function(e){return p(),gi(e)},useHostTransitionStatus:vi,useCacheRefresh:function(){return I="useCacheRefresh",Q(),et().memoizedState}};var eE={"react-stack-bottom-frame":function(e,t,r){var i=Rr;Rr=!0;try{return e(t,r)}finally{Rr=i}}},rp=eE["react-stack-bottom-frame"].bind(eE),tE={"react-stack-bottom-frame":function(e){var t=Rr;Rr=!0;try{return e.render()}finally{Rr=t}}},nE=tE["react-stack-bottom-frame"].bind(tE),rE={"react-stack-bottom-frame":function(e,t){try{t.componentDidMount()}catch(r){nt(e,e.return,r)}}},ap=rE["react-stack-bottom-frame"].bind(rE),aE={"react-stack-bottom-frame":function(e,t,r,i,s){try{t.componentDidUpdate(r,i,s)}catch(c){nt(e,e.return,c)}}},iE=aE["react-stack-bottom-frame"].bind(aE),oE={"react-stack-bottom-frame":function(e,t){var r=t.stack;e.componentDidCatch(t.value,{componentStack:r!==null?r:""})}},kO=oE["react-stack-bottom-frame"].bind(oE),sE={"react-stack-bottom-frame":function(e,t,r){try{r.componentWillUnmount()}catch(i){nt(e,t,i)}}},lE=sE["react-stack-bottom-frame"].bind(sE),cE={"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}},TO=cE["react-stack-bottom-frame"].bind(cE),uE={"react-stack-bottom-frame":function(e,t,r){try{r()}catch(i){nt(e,t,i)}}},NO=uE["react-stack-bottom-frame"].bind(uE),fE={"react-stack-bottom-frame":function(e){var t=e._init;return t(e._payload)}},Ga=fE["react-stack-bottom-frame"].bind(fE),$o=null,wl=0,Oe=null,ip,dE=ip=!1,hE={},mE={},pE={};m=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=X(e),s=i||"null";if(!hE[s]){hE[s]=!0,r=r._owner,e=e._debugOwner;var c="";e&&typeof e.tag=="number"&&(s=X(e))&&(c=`
|
|
260
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,i)})}})},sr.discardPendingWarnings=function(){dl=[],hl=[],ml=[],pl=[],bl=[],gl=[],Au=new Map};var yl=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."),Ou=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."),Jm={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.')}},vl=null,Cu=!1,$n=0,Yn=1,nn=2,Ft=4,Ct=8,W_=0,K_=1,J_=2,ep=3,Ia=!1,eE=!1,tp=null,np=!1,qo=te(null),Du=te(0),Fo,tE=new Set,nE=new Set,rp=new Set,rE=new Set,Va=0,Ee=null,at=null,kt=null,Mu=!1,Po=!1,Ci=!1,Uu=0,_l=0,ia=null,RO=0,AO=25,V=null,Xn=null,oa=-1,El=!1,Bu={readContext:dt,use:Na,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt},ap=null,aE=null,ip=null,iE=null,Cr=null,lr=null,Lu=null;ap={readContext:function(e){return dt(e)},use:Na,useCallback:function(e,t){return V="useCallback",je(),co(t),uh(e,t)},useContext:function(e){return V="useContext",je(),dt(e)},useEffect:function(e,t){return V="useEffect",je(),co(t),Lc(e,t)},useImperativeHandle:function(e,t,r){return V="useImperativeHandle",je(),co(r),ch(e,t,r)},useInsertionEffect:function(e,t){V="useInsertionEffect",je(),co(t),yi(4,nn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",je(),co(t),lh(e,t)},useMemo:function(e,t){V="useMemo",je(),co(t);var r=G.H;G.H=Cr;try{return fh(e,t)}finally{G.H=r}},useReducer:function(e,t,r){V="useReducer",je();var i=G.H;G.H=Cr;try{return eh(e,t,r)}finally{G.H=i}},useRef:function(e){return V="useRef",je(),sh(e)},useState:function(e){V="useState",je();var t=G.H;G.H=Cr;try{return ah(e)}finally{G.H=t}},useDebugValue:function(){V="useDebugValue",je()},useDeferredValue:function(e,t){return V="useDeferredValue",je(),dh(e,t)},useTransition:function(){return V="useTransition",je(),ph()},useSyncExternalStore:function(e,t,r){return V="useSyncExternalStore",je(),nh(e,t,r)},useId:function(){return V="useId",je(),bh()},useFormState:function(e,t){return V="useFormState",je(),Cc(),fo(e,t)},useActionState:function(e,t){return V="useActionState",je(),fo(e,t)},useOptimistic:function(e){return V="useOptimistic",je(),ih(e)},useHostTransitionStatus:vi,useMemoCache:gi,useCacheRefresh:function(){return V="useCacheRefresh",je(),gh()}},aE={readContext:function(e){return dt(e)},use:Na,useCallback:function(e,t){return V="useCallback",Q(),uh(e,t)},useContext:function(e){return V="useContext",Q(),dt(e)},useEffect:function(e,t){return V="useEffect",Q(),Lc(e,t)},useImperativeHandle:function(e,t,r){return V="useImperativeHandle",Q(),ch(e,t,r)},useInsertionEffect:function(e,t){V="useInsertionEffect",Q(),yi(4,nn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",Q(),lh(e,t)},useMemo:function(e,t){V="useMemo",Q();var r=G.H;G.H=Cr;try{return fh(e,t)}finally{G.H=r}},useReducer:function(e,t,r){V="useReducer",Q();var i=G.H;G.H=Cr;try{return eh(e,t,r)}finally{G.H=i}},useRef:function(e){return V="useRef",Q(),sh(e)},useState:function(e){V="useState",Q();var t=G.H;G.H=Cr;try{return ah(e)}finally{G.H=t}},useDebugValue:function(){V="useDebugValue",Q()},useDeferredValue:function(e,t){return V="useDeferredValue",Q(),dh(e,t)},useTransition:function(){return V="useTransition",Q(),ph()},useSyncExternalStore:function(e,t,r){return V="useSyncExternalStore",Q(),nh(e,t,r)},useId:function(){return V="useId",Q(),bh()},useActionState:function(e,t){return V="useActionState",Q(),fo(e,t)},useFormState:function(e,t){return V="useFormState",Q(),Cc(),fo(e,t)},useOptimistic:function(e){return V="useOptimistic",Q(),ih(e)},useHostTransitionStatus:vi,useMemoCache:gi,useCacheRefresh:function(){return V="useCacheRefresh",Q(),gh()}},ip={readContext:function(e){return dt(e)},use:Na,useCallback:function(e,t){return V="useCallback",Q(),Hc(e,t)},useContext:function(e){return V="useContext",Q(),dt(e)},useEffect:function(e,t){V="useEffect",Q(),fn(2048,Ct,e,t)},useImperativeHandle:function(e,t,r){return V="useImperativeHandle",Q(),jc(e,t,r)},useInsertionEffect:function(e,t){return V="useInsertionEffect",Q(),fn(4,nn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",Q(),fn(4,Ft,e,t)},useMemo:function(e,t){V="useMemo",Q();var r=G.H;G.H=lr;try{return zc(e,t)}finally{G.H=r}},useReducer:function(e,t,r){V="useReducer",Q();var i=G.H;G.H=lr;try{return uo(e,t,r)}finally{G.H=i}},useRef:function(){return V="useRef",Q(),et().memoizedState},useState:function(){V="useState",Q();var e=G.H;G.H=lr;try{return uo(ar)}finally{G.H=e}},useDebugValue:function(){V="useDebugValue",Q()},useDeferredValue:function(e,t){return V="useDeferredValue",Q(),L0(e,t)},useTransition:function(){return V="useTransition",Q(),G0()},useSyncExternalStore:function(e,t,r){return V="useSyncExternalStore",Q(),Dc(e,t,r)},useId:function(){return V="useId",Q(),et().memoizedState},useFormState:function(e){return V="useFormState",Q(),Cc(),Mc(e)},useActionState:function(e){return V="useActionState",Q(),Mc(e)},useOptimistic:function(e,t){return V="useOptimistic",Q(),T0(e,t)},useHostTransitionStatus:vi,useMemoCache:gi,useCacheRefresh:function(){return V="useCacheRefresh",Q(),et().memoizedState}},iE={readContext:function(e){return dt(e)},use:Na,useCallback:function(e,t){return V="useCallback",Q(),Hc(e,t)},useContext:function(e){return V="useContext",Q(),dt(e)},useEffect:function(e,t){V="useEffect",Q(),fn(2048,Ct,e,t)},useImperativeHandle:function(e,t,r){return V="useImperativeHandle",Q(),jc(e,t,r)},useInsertionEffect:function(e,t){return V="useInsertionEffect",Q(),fn(4,nn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",Q(),fn(4,Ft,e,t)},useMemo:function(e,t){V="useMemo",Q();var r=G.H;G.H=Lu;try{return zc(e,t)}finally{G.H=r}},useReducer:function(e,t,r){V="useReducer",Q();var i=G.H;G.H=Lu;try{return Ls(e,t,r)}finally{G.H=i}},useRef:function(){return V="useRef",Q(),et().memoizedState},useState:function(){V="useState",Q();var e=G.H;G.H=Lu;try{return Ls(ar)}finally{G.H=e}},useDebugValue:function(){V="useDebugValue",Q()},useDeferredValue:function(e,t){return V="useDeferredValue",Q(),j0(e,t)},useTransition:function(){return V="useTransition",Q(),q0()},useSyncExternalStore:function(e,t,r){return V="useSyncExternalStore",Q(),Dc(e,t,r)},useId:function(){return V="useId",Q(),et().memoizedState},useFormState:function(e){return V="useFormState",Q(),Cc(),Uc(e)},useActionState:function(e){return V="useActionState",Q(),Uc(e)},useOptimistic:function(e,t){return V="useOptimistic",Q(),R0(e,t)},useHostTransitionStatus:vi,useMemoCache:gi,useCacheRefresh:function(){return V="useCacheRefresh",Q(),et().memoizedState}},Cr={readContext:function(e){return g(),dt(e)},use:function(e){return p(),Na(e)},useCallback:function(e,t){return V="useCallback",p(),je(),uh(e,t)},useContext:function(e){return V="useContext",p(),je(),dt(e)},useEffect:function(e,t){return V="useEffect",p(),je(),Lc(e,t)},useImperativeHandle:function(e,t,r){return V="useImperativeHandle",p(),je(),ch(e,t,r)},useInsertionEffect:function(e,t){V="useInsertionEffect",p(),je(),yi(4,nn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",p(),je(),lh(e,t)},useMemo:function(e,t){V="useMemo",p(),je();var r=G.H;G.H=Cr;try{return fh(e,t)}finally{G.H=r}},useReducer:function(e,t,r){V="useReducer",p(),je();var i=G.H;G.H=Cr;try{return eh(e,t,r)}finally{G.H=i}},useRef:function(e){return V="useRef",p(),je(),sh(e)},useState:function(e){V="useState",p(),je();var t=G.H;G.H=Cr;try{return ah(e)}finally{G.H=t}},useDebugValue:function(){V="useDebugValue",p(),je()},useDeferredValue:function(e,t){return V="useDeferredValue",p(),je(),dh(e,t)},useTransition:function(){return V="useTransition",p(),je(),ph()},useSyncExternalStore:function(e,t,r){return V="useSyncExternalStore",p(),je(),nh(e,t,r)},useId:function(){return V="useId",p(),je(),bh()},useFormState:function(e,t){return V="useFormState",p(),je(),fo(e,t)},useActionState:function(e,t){return V="useActionState",p(),je(),fo(e,t)},useOptimistic:function(e){return V="useOptimistic",p(),je(),ih(e)},useMemoCache:function(e){return p(),gi(e)},useHostTransitionStatus:vi,useCacheRefresh:function(){return V="useCacheRefresh",je(),gh()}},lr={readContext:function(e){return g(),dt(e)},use:function(e){return p(),Na(e)},useCallback:function(e,t){return V="useCallback",p(),Q(),Hc(e,t)},useContext:function(e){return V="useContext",p(),Q(),dt(e)},useEffect:function(e,t){V="useEffect",p(),Q(),fn(2048,Ct,e,t)},useImperativeHandle:function(e,t,r){return V="useImperativeHandle",p(),Q(),jc(e,t,r)},useInsertionEffect:function(e,t){return V="useInsertionEffect",p(),Q(),fn(4,nn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",p(),Q(),fn(4,Ft,e,t)},useMemo:function(e,t){V="useMemo",p(),Q();var r=G.H;G.H=lr;try{return zc(e,t)}finally{G.H=r}},useReducer:function(e,t,r){V="useReducer",p(),Q();var i=G.H;G.H=lr;try{return uo(e,t,r)}finally{G.H=i}},useRef:function(){return V="useRef",p(),Q(),et().memoizedState},useState:function(){V="useState",p(),Q();var e=G.H;G.H=lr;try{return uo(ar)}finally{G.H=e}},useDebugValue:function(){V="useDebugValue",p(),Q()},useDeferredValue:function(e,t){return V="useDeferredValue",p(),Q(),L0(e,t)},useTransition:function(){return V="useTransition",p(),Q(),G0()},useSyncExternalStore:function(e,t,r){return V="useSyncExternalStore",p(),Q(),Dc(e,t,r)},useId:function(){return V="useId",p(),Q(),et().memoizedState},useFormState:function(e){return V="useFormState",p(),Q(),Mc(e)},useActionState:function(e){return V="useActionState",p(),Q(),Mc(e)},useOptimistic:function(e,t){return V="useOptimistic",p(),Q(),T0(e,t)},useMemoCache:function(e){return p(),gi(e)},useHostTransitionStatus:vi,useCacheRefresh:function(){return V="useCacheRefresh",Q(),et().memoizedState}},Lu={readContext:function(e){return g(),dt(e)},use:function(e){return p(),Na(e)},useCallback:function(e,t){return V="useCallback",p(),Q(),Hc(e,t)},useContext:function(e){return V="useContext",p(),Q(),dt(e)},useEffect:function(e,t){V="useEffect",p(),Q(),fn(2048,Ct,e,t)},useImperativeHandle:function(e,t,r){return V="useImperativeHandle",p(),Q(),jc(e,t,r)},useInsertionEffect:function(e,t){return V="useInsertionEffect",p(),Q(),fn(4,nn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",p(),Q(),fn(4,Ft,e,t)},useMemo:function(e,t){V="useMemo",p(),Q();var r=G.H;G.H=lr;try{return zc(e,t)}finally{G.H=r}},useReducer:function(e,t,r){V="useReducer",p(),Q();var i=G.H;G.H=lr;try{return Ls(e,t,r)}finally{G.H=i}},useRef:function(){return V="useRef",p(),Q(),et().memoizedState},useState:function(){V="useState",p(),Q();var e=G.H;G.H=lr;try{return Ls(ar)}finally{G.H=e}},useDebugValue:function(){V="useDebugValue",p(),Q()},useDeferredValue:function(e,t){return V="useDeferredValue",p(),Q(),j0(e,t)},useTransition:function(){return V="useTransition",p(),Q(),q0()},useSyncExternalStore:function(e,t,r){return V="useSyncExternalStore",p(),Q(),Dc(e,t,r)},useId:function(){return V="useId",p(),Q(),et().memoizedState},useFormState:function(e){return V="useFormState",p(),Q(),Uc(e)},useActionState:function(e){return V="useActionState",p(),Q(),Uc(e)},useOptimistic:function(e,t){return V="useOptimistic",p(),Q(),R0(e,t)},useMemoCache:function(e){return p(),gi(e)},useHostTransitionStatus:vi,useCacheRefresh:function(){return V="useCacheRefresh",Q(),et().memoizedState}};var oE={"react-stack-bottom-frame":function(e,t,r){var i=Rr;Rr=!0;try{return e(t,r)}finally{Rr=i}}},op=oE["react-stack-bottom-frame"].bind(oE),sE={"react-stack-bottom-frame":function(e){var t=Rr;Rr=!0;try{return e.render()}finally{Rr=t}}},lE=sE["react-stack-bottom-frame"].bind(sE),cE={"react-stack-bottom-frame":function(e,t){try{t.componentDidMount()}catch(r){nt(e,e.return,r)}}},sp=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){nt(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:""})}},OO=dE["react-stack-bottom-frame"].bind(dE),hE={"react-stack-bottom-frame":function(e,t,r){try{r.componentWillUnmount()}catch(i){nt(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}},CO=pE["react-stack-bottom-frame"].bind(pE),bE={"react-stack-bottom-frame":function(e,t,r){try{r()}catch(i){nt(e,t,i)}}},DO=bE["react-stack-bottom-frame"].bind(bE),gE={"react-stack-bottom-frame":function(e){var t=e._init;return t(e._payload)}},Ga=gE["react-stack-bottom-frame"].bind(gE),$o=null,wl=0,Oe=null,lp,yE=lp=!1,vE={},_E={},EE={};m=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=X(e),s=i||"null";if(!vE[s]){vE[s]=!0,r=r._owner,e=e._debugOwner;var c="";e&&typeof e.tag=="number"&&(s=X(e))&&(c=`
|
|
261
261
|
|
|
262
262
|
Check the render method of \``+s+"`."),c||i&&(c=`
|
|
263
263
|
|
|
264
|
-
Check the top-level render call using <`+i+">.");var h="";r!=null&&e!==r&&(i=null,typeof r.tag=="number"?i=X(r):typeof r.name=="string"&&(i=r.name),i&&(h=" It was passed a child from "+i+".")),be(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,h)})}}};var Yo=I0(!0),bE=I0(!1),Xn=te(null),Dr=null,Xo=1,Sl=2,Dt=te(0),gE={},yE=new Set,vE=new Set,_E=new Set,EE=new Set,wE=new Set,SE=new Set,xE=new Set,kE=new Set,TE=new Set,NE=new Set;Object.freeze(gE);var op={enqueueSetState:function(e,t,r){e=e._reactInternals;var i=wn(e),s=ka(i);s.payload=t,r!=null&&(bh(r),s.callback=r),t=Ta(e,s,i),t!==null&&(_t(t,e,i),Ds(t,e,i)),At(e,i)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=wn(e),s=ka(i);s.tag=$_,s.payload=t,r!=null&&(bh(r),s.callback=r),t=Ta(e,s,i),t!==null&&(_t(t,e,i),Ds(t,e,i)),At(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=wn(e),i=ka(r);i.tag=Y_,t!=null&&(bh(t),i.callback=t),t=Ta(e,i,r),t!==null&&(_t(t,e,r),Ds(t,e,r)),oe!==null&&typeof oe.markForceUpdateScheduled=="function"&&oe.markForceUpdateScheduled(e,r)}},sp=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)},Zo=null,lp=null,RE=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."),Lt=!1,AE={},OE={},CE={},DE={},Qo=!1,ME={},cp={},up={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},UE=!1,BE=null;BE=new Set;var sa=!1,Et=!1,fp=!1,LE=typeof WeakSet=="function"?WeakSet:Set,jt=null,Wo=null,Ko=null,Tt=null,mn=!1,cr=null,xl=8192,RO={getCacheForType:function(e){var t=dt(Ot),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 kl=Symbol.for;kl("selector.component"),kl("selector.has_pseudo_class"),kl("selector.role"),kl("selector.test_id"),kl("selector.text")}var AO=[],OO=typeof WeakMap=="function"?WeakMap:Map,kn=0,rn=2,ur=4,la=0,Tl=1,Jo=2,dp=3,Di=4,ju=6,jE=5,Qe=kn,ot=null,Be=null,He=0,pn=0,Nl=1,Mi=2,Rl=3,HE=4,hp=5,es=6,Al=7,mp=8,Ui=9,We=pn,Tn=null,qa=!1,ts=!1,pp=!1,Mr=0,gt=la,Fa=0,Pa=0,bp=0,Nn=0,Bi=0,Ol=null,an=null,Hu=!1,gp=0,zE=300,zu=1/0,VE=500,Cl=null,$a=null,CO=0,DO=1,MO=2,Li=0,IE=1,GE=2,qE=3,UO=4,yp=5,Pt=0,Ya=null,ns=null,Xa=0,vp=0,_p=null,FE=null,BO=50,Dl=0,Ep=null,wp=!1,Vu=!1,LO=50,ji=0,Ml=null,rs=!1,Iu=null,PE=!1,$E=new Set,jO={},Gu=null,as=null,Sp=!1,xp=!1,qu=!1,kp=!1,Hi=0,Tp={};(function(){for(var e=0;e<Gm.length;e++){var t=Gm[e],r=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),rr(r,"on"+t)}rr(O_,"onAnimationEnd"),rr(C_,"onAnimationIteration"),rr(D_,"onAnimationStart"),rr("dblclick","onDoubleClick"),rr("focusin","onFocus"),rr("focusout","onBlur"),rr(mO,"onTransitionRun"),rr(pO,"onTransitionStart"),rr(bO,"onTransitionCancel"),rr(M_,"onTransitionEnd")})(),ae("onMouseEnter",["mouseout","mouseover"]),ae("onMouseLeave",["mouseout","mouseover"]),ae("onPointerEnter",["pointerout","pointerover"]),ae("onPointerLeave",["pointerout","pointerover"]),K("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),K("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),K("onBeforeInput",["compositionend","keypress","textInput","paste"]),K("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),K("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),K("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ul="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(" "),Np=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ul)),Fu="_reactListening"+Math.random().toString(36).slice(2),YE=!1,XE=!1,Pu=!1,ZE=!1,$u=!1,Yu=!1,QE=!1,Xu={},HO=/\r\n?/g,zO=/\u0000|\uFFFD/g,zi="http://www.w3.org/1999/xlink",Rp="http://www.w3.org/XML/1998/namespace",VO="javascript:throw new Error('React form unexpectedly submitted.')",IO="suppressHydrationWarning",Zu="$",Qu="/$",ca="$?",Bl="$!",GO=1,qO=2,FO=4,Ap="F!",WE="F",KE="complete",PO="style",ua=0,is=1,Wu=2,Op=null,Cp=null,JE={dialog:!0,webview:!0},Dp=null,ew=typeof setTimeout=="function"?setTimeout:void 0,$O=typeof clearTimeout=="function"?clearTimeout:void 0,Vi=-1,tw=typeof Promise=="function"?Promise:void 0,YO=typeof queueMicrotask=="function"?queueMicrotask:typeof tw<"u"?function(e){return tw.resolve(null).then(e).catch(DR)}:ew,Mp=null,Ii=0,Ll=1,nw=2,rw=3,Zn=4,Qn=new Map,aw=new Set,fa=Ze.d;Ze.d={f:function(){var e=fa.f(),t=go();return e||t},r:function(e){var t=nr(e);t!==null&&t.tag===5&&t.type==="form"?B0(t):fa.r(e)},D:function(e){fa.D(e),x1("dns-prefetch",e,null)},C:function(e,t){fa.C(e,t),x1("preconnect",e,t)},L:function(e,t,r){fa.L(e,t,r);var i=os;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=Eo(e);break;case"script":c=wo(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(Zs(c))||t==="script"&&i.querySelector(Qs(c))||(t=i.createElement("link"),It(t,"link",e),j(t),i.head.appendChild(t)))}},m:function(e,t){fa.m(e,t);var r=os;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=wo(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(Qs(c)))return}i=r.createElement("link"),It(i,"link",e),j(i),r.head.appendChild(i)}}},X:function(e,t){fa.X(e,t);var r=os;if(r&&e){var i=S(r).hoistableScripts,s=wo(e),c=i.get(s);c||(c=r.querySelector(Qs(s)),c||(e=Me({src:e,async:!0},t),(t=Qn.get(s))&&im(e,t),c=r.createElement("script"),j(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){fa.S(e,t,r);var i=os;if(i&&e){var s=S(i).hoistableStyles,c=Eo(e);t=t||"default";var h=s.get(c);if(!h){var b={loading:Ii,preload:null};if(h=i.querySelector(Zs(c)))b.loading=Ll|Zn;else{e=Me({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Qn.get(c))&&am(e,r);var x=h=i.createElement("link");j(x),It(x,"link",e),x._p=new Promise(function(k,z){x.onload=k,x.onerror=z}),x.addEventListener("load",function(){b.loading|=Ll}),x.addEventListener("error",function(){b.loading|=nw}),b.loading|=Zn,ou(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:b},s.set(c,h)}}},M:function(e,t){fa.M(e,t);var r=os;if(r&&e){var i=S(r).hoistableScripts,s=wo(e),c=i.get(s);c||(c=r.querySelector(Qs(s)),c||(e=Me({src:e,async:!0,type:"module"},t),(t=Qn.get(s))&&im(e,t),c=r.createElement("script"),j(c),It(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(s,c))}}};var os=typeof document>"u"?null:document,Ku=null,jl=null,Up=null,Ju=null,Gi=dA,Hl={$$typeof:xr,Provider:null,Consumer:null,_currentValue:Gi,_currentValue2:Gi,_threadCount:0},iw="%c%s%c ",ow="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",sw="",ef=" ",XO=Function.prototype.bind,lw=!1,cw=null,uw=null,fw=null,dw=null,hw=null,mw=null,pw=null,bw=null,gw=null;cw=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&&_t(r,e,2))},uw=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&&_t(r,e,2))},fw=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&&_t(r,e,2))},dw=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&&_t(t,e,2)},hw=function(e,t){e.pendingProps=u(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=cn(e,2),t!==null&&_t(t,e,2)},mw=function(e,t,r){e.pendingProps=o(e.memoizedProps,t,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=cn(e,2),t!==null&&_t(t,e,2)},pw=function(e){var t=cn(e,2);t!==null&&_t(t,e,2)},bw=function(e){d=e},gw=function(e){f=e};var tf=!0,nf=null,Bp=!1,Za=null,Qa=null,Wa=null,zl=new Map,Vl=new Map,Ka=[],ZO="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(" "),rf=null;if(uu.prototype.render=dm.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()."):T(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);sm(i,s,r,t,null,null)},uu.prototype.unmount=dm.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&(rn|ur))!==kn&&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."),sm(e.current,2,null,e,null,null),go(),t[ja]=null}},uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ys();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ka.length&&t!==0&&t<Ka[r].priority;r++);Ka.splice(r,0,e),r===0&&j1(e)}},function(){var e=hm.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:
|
|
264
|
+
Check the top-level render call using <`+i+">.");var h="";r!=null&&e!==r&&(i=null,typeof r.tag=="number"?i=X(r):typeof r.name=="string"&&(i=r.name),i&&(h=" It was passed a child from "+i+".")),be(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,h)})}}};var Yo=Y0(!0),wE=Y0(!1),Zn=te(null),Dr=null,Xo=1,Sl=2,Dt=te(0),SE={},xE=new Set,kE=new Set,TE=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 cp={enqueueSetState:function(e,t,r){e=e._reactInternals;var i=wn(e),s=ka(i);s.payload=t,r!=null&&(vh(r),s.callback=r),t=Ta(e,s,i),t!==null&&(_t(t,e,i),Ds(t,e,i)),At(e,i)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=wn(e),s=ka(i);s.tag=K_,s.payload=t,r!=null&&(vh(r),s.callback=r),t=Ta(e,s,i),t!==null&&(_t(t,e,i),Ds(t,e,i)),At(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=wn(e),i=ka(r);i.tag=J_,t!=null&&(vh(t),i.callback=t),t=Ta(e,i,r),t!==null&&(_t(t,e,r),Ds(t,e,r)),oe!==null&&typeof oe.markForceUpdateScheduled=="function"&&oe.markForceUpdateScheduled(e,r)}},up=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)},Zo=null,fp=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."),Lt=!1,BE={},LE={},jE={},HE={},Qo=!1,zE={},dp={},hp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},IE=!1,VE=null;VE=new Set;var sa=!1,Et=!1,mp=!1,GE=typeof WeakSet=="function"?WeakSet:Set,jt=null,Wo=null,Ko=null,Tt=null,mn=!1,cr=null,xl=8192,MO={getCacheForType:function(e){var t=dt(Ot),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 kl=Symbol.for;kl("selector.component"),kl("selector.has_pseudo_class"),kl("selector.role"),kl("selector.test_id"),kl("selector.text")}var UO=[],BO=typeof WeakMap=="function"?WeakMap:Map,kn=0,rn=2,ur=4,la=0,Tl=1,Jo=2,pp=3,Di=4,ju=6,qE=5,Qe=kn,ot=null,Be=null,He=0,pn=0,Nl=1,Mi=2,Rl=3,FE=4,bp=5,es=6,Al=7,gp=8,Ui=9,We=pn,Tn=null,qa=!1,ts=!1,yp=!1,Mr=0,gt=la,Fa=0,Pa=0,vp=0,Nn=0,Bi=0,Ol=null,an=null,Hu=!1,_p=0,PE=300,zu=1/0,$E=500,Cl=null,$a=null,LO=0,jO=1,HO=2,Li=0,YE=1,XE=2,ZE=3,zO=4,Ep=5,Pt=0,Ya=null,ns=null,Xa=0,wp=0,Sp=null,QE=null,IO=50,Dl=0,xp=null,kp=!1,Iu=!1,VO=50,ji=0,Ml=null,rs=!1,Vu=null,WE=!1,KE=new Set,GO={},Gu=null,as=null,Tp=!1,Np=!1,qu=!1,Rp=!1,Hi=0,Ap={};(function(){for(var e=0;e<Pm.length;e++){var t=Pm[e],r=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),rr(r,"on"+t)}rr(L_,"onAnimationEnd"),rr(j_,"onAnimationIteration"),rr(H_,"onAnimationStart"),rr("dblclick","onDoubleClick"),rr("focusin","onFocus"),rr("focusout","onBlur"),rr(vO,"onTransitionRun"),rr(_O,"onTransitionStart"),rr(EO,"onTransitionCancel"),rr(z_,"onTransitionEnd")})(),ae("onMouseEnter",["mouseout","mouseover"]),ae("onMouseLeave",["mouseout","mouseover"]),ae("onPointerEnter",["pointerout","pointerover"]),ae("onPointerLeave",["pointerout","pointerover"]),K("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),K("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),K("onBeforeInput",["compositionend","keypress","textInput","paste"]),K("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),K("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),K("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ul="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(" "),Op=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ul)),Fu="_reactListening"+Math.random().toString(36).slice(2),JE=!1,ew=!1,Pu=!1,tw=!1,$u=!1,Yu=!1,nw=!1,Xu={},qO=/\r\n?/g,FO=/\u0000|\uFFFD/g,zi="http://www.w3.org/1999/xlink",Cp="http://www.w3.org/XML/1998/namespace",PO="javascript:throw new Error('React form unexpectedly submitted.')",$O="suppressHydrationWarning",Zu="$",Qu="/$",ca="$?",Bl="$!",YO=1,XO=2,ZO=4,Dp="F!",rw="F",aw="complete",QO="style",ua=0,is=1,Wu=2,Mp=null,Up=null,iw={dialog:!0,webview:!0},Bp=null,ow=typeof setTimeout=="function"?setTimeout:void 0,WO=typeof clearTimeout=="function"?clearTimeout:void 0,Ii=-1,sw=typeof Promise=="function"?Promise:void 0,KO=typeof queueMicrotask=="function"?queueMicrotask:typeof sw<"u"?function(e){return sw.resolve(null).then(e).catch(jR)}:ow,Lp=null,Vi=0,Ll=1,lw=2,cw=3,Qn=4,Wn=new Map,uw=new Set,fa=Ze.d;Ze.d={f:function(){var e=fa.f(),t=go();return e||t},r:function(e){var t=nr(e);t!==null&&t.tag===5&&t.type==="form"?V0(t):fa.r(e)},D:function(e){fa.D(e),O1("dns-prefetch",e,null)},C:function(e,t){fa.C(e,t),O1("preconnect",e,t)},L:function(e,t,r){fa.L(e,t,r);var i=os;if(i&&e&&t){var s='link[rel="preload"][as="'+jn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(s+='[imagesrcset="'+jn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(s+='[imagesizes="'+jn(r.imageSizes)+'"]')):s+='[href="'+jn(e)+'"]';var c=s;switch(t){case"style":c=Eo(e);break;case"script":c=wo(e)}Wn.has(c)||(e=Me({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Wn.set(c,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(Zs(c))||t==="script"&&i.querySelector(Qs(c))||(t=i.createElement("link"),Vt(t,"link",e),j(t),i.head.appendChild(t)))}},m:function(e,t){fa.m(e,t);var r=os;if(r&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+jn(i)+'"][href="'+jn(e)+'"]',c=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wo(e)}if(!Wn.has(c)&&(e=Me({rel:"modulepreload",href:e},t),Wn.set(c,e),r.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Qs(c)))return}i=r.createElement("link"),Vt(i,"link",e),j(i),r.head.appendChild(i)}}},X:function(e,t){fa.X(e,t);var r=os;if(r&&e){var i=S(r).hoistableScripts,s=wo(e),c=i.get(s);c||(c=r.querySelector(Qs(s)),c||(e=Me({src:e,async:!0},t),(t=Wn.get(s))&&lm(e,t),c=r.createElement("script"),j(c),Vt(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){fa.S(e,t,r);var i=os;if(i&&e){var s=S(i).hoistableStyles,c=Eo(e);t=t||"default";var h=s.get(c);if(!h){var b={loading:Vi,preload:null};if(h=i.querySelector(Zs(c)))b.loading=Ll|Qn;else{e=Me({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Wn.get(c))&&sm(e,r);var x=h=i.createElement("link");j(x),Vt(x,"link",e),x._p=new Promise(function(k,z){x.onload=k,x.onerror=z}),x.addEventListener("load",function(){b.loading|=Ll}),x.addEventListener("error",function(){b.loading|=lw}),b.loading|=Qn,ou(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:b},s.set(c,h)}}},M:function(e,t){fa.M(e,t);var r=os;if(r&&e){var i=S(r).hoistableScripts,s=wo(e),c=i.get(s);c||(c=r.querySelector(Qs(s)),c||(e=Me({src:e,async:!0,type:"module"},t),(t=Wn.get(s))&&lm(e,t),c=r.createElement("script"),j(c),Vt(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(s,c))}}};var os=typeof document>"u"?null:document,Ku=null,jl=null,jp=null,Ju=null,Gi=gA,Hl={$$typeof:xr,Provider:null,Consumer:null,_currentValue:Gi,_currentValue2:Gi,_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="",ef=" ",JO=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&&_t(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&&_t(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&&_t(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&&_t(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&&_t(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&&_t(t,e,2)},Ew=function(e){var t=cn(e,2);t!==null&&_t(t,e,2)},ww=function(e){d=e},Sw=function(e){f=e};var tf=!0,nf=null,Hp=!1,Za=null,Qa=null,Wa=null,zl=new Map,Il=new Map,Ka=[],eC="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(" "),rf=null;if(uu.prototype.render=pm.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()."):T(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);um(i,s,r,t,null,null)},uu.prototype.unmount=pm.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&(rn|ur))!==kn&&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."),um(e.current,2,null,e,null,null),go(),t[ja]=null}},uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ys();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ka.length&&t!==0&&t<Ka[r].priority;r++);Ka.splice(r,0,e),r===0&&q1(e)}},function(){var e=bm.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
265
|
- react: `+(e+`
|
|
266
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=A(t),e=e!==null?L(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.0"};return e.overrideHookState=
|
|
268
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}
|
|
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=A(t),e=e!==null?L(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:G,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=w,e.scheduleRoot=N,e.setRefreshHandler=D,e.getCurrentFiber=oA,e.getLaneLabelMap=sA,e.injectProfilingHooks=Un,pt(e)}()&&Ar&&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")}Vl.createRoot=function(e,t){if(!T(e))throw Error("Target container is not a DOM element.");$1(e);var r=!1,i="",s=W0,c=K0,h=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===Ma&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
269
269
|
|
|
270
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&&(h=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(b=t.unstable_transitionCallbacks)),t=
|
|
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&&(h=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(b=t.unstable_transitionCallbacks)),t=j1(e,1,!1,null,null,r,i,s,c,h,b,null),e[ja]=t.current,Wh(e),new pm(t)},Vl.hydrateRoot=function(e,t,r){if(!T(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,h=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&&(h=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,h,b,x,k),t.context=H1(null),r=t.current,i=wn(r),i=ps(i),s=ka(i),s.callback=null,Ta(r,s,i),r=i,t.current.lanes=r,Ea(t,r),wr(t),e[ja]=t.current,Wh(e),new uu(t)},Vl.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Vl}var Uw;function dC(){return Uw||(Uw=1,Vp.exports=fC()),Vp.exports}var hC=dC(),I=no();const _k=Qf(I);var Pp={exports:{}},$p={},Bw;function mC(){if(Bw)return $p;Bw=1;/**
|
|
272
272
|
* @license React
|
|
273
273
|
* use-sync-external-store-with-selector.development.js
|
|
274
274
|
*
|
|
@@ -276,76 +276,76 @@ You might need to use a local HTTP server (instead of file://): https://react.de
|
|
|
276
276
|
*
|
|
277
277
|
* This source code is licensed under the MIT license found in the
|
|
278
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=no(),o=typeof Object.is=="function"?Object.is:n,l=a.useSyncExternalStore,u=a.useRef,f=a.useEffect,d=a.useMemo,m=a.useDebugValue;qp.useSyncExternalStoreWithSelector=function(p,y,v,E,g){var N=u(null);if(N.current===null){var w={hasValue:!1,value:null};N.current=w}else w=N.current;N=d(function(){function T(L){if(!M){if(M=!0,U=L,L=E(L),g!==void 0&&w.hasValue){var F=w.value;if(g(F,L))return C=F}return C=L}if(F=C,o(U,L))return F;var Z=E(L);return g!==void 0&&g(F,Z)?(U=L,F):(U=L,C=Z)}var M=!1,U,C,A=v===void 0?null:v;return[function(){return T(y())},A===null?void 0:function(){return T(A())}]},[y,v,E,g]);var D=l(p,N[0],N[1]);return f(function(){w.hasValue=!0,w.value=D},[D]),m(D),D},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),qp}var Ow;function uC(){return Ow||(Ow=1,Gp.exports=cC()),Gp.exports}var fC=uC(),pk=V.version.startsWith("19"),dC=Symbol.for(pk?"react.transitional.element":"react.element"),hC=Symbol.for("react.portal"),bk=Symbol.for("react.fragment"),gk=Symbol.for("react.strict_mode"),yk=Symbol.for("react.profiler"),Sg=Symbol.for("react.consumer"),xg=Symbol.for("react.context"),kg=Symbol.for("react.forward_ref"),vk=Symbol.for("react.suspense"),_k=Symbol.for("react.suspense_list"),Zf=Symbol.for("react.memo"),Ek=Symbol.for("react.lazy"),mC=Symbol.for("react.offscreen"),pC=Symbol.for("react.client.reference"),bC=kg,gC=Zf;function yC(n){return typeof n=="string"||typeof n=="function"||n===bk||n===yk||n===gk||n===vk||n===_k||n===mC||typeof n=="object"&&n!==null&&(n.$$typeof===Ek||n.$$typeof===Zf||n.$$typeof===xg||n.$$typeof===Sg||n.$$typeof===kg||n.$$typeof===pC||n.getModuleId!==void 0)}function Xb(n){if(typeof n=="object"&&n!==null){const{$$typeof:a}=n;switch(a){case dC:switch(n=n.type,n){case bk:case yk:case gk:case vk:case _k:return n;default:switch(n=n&&n.$$typeof,n){case xg:case kg:case Ek:case Zf:return n;case Sg:return n;default:return a}}case hC:return a}}}function vC(n){return pk?Xb(n)===Sg:Xb(n)===xg}function _C(n){return Xb(n)===Zf}function Tg(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function Fp(n,a){if(n)(a==="mapStateToProps"||a==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(n,"dependsOnOwnProps")||Tg(`The selector for ${a} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${a} in connect.`)}function EC(n,a,o){Fp(n,"mapStateToProps"),Fp(a,"mapDispatchToProps"),Fp(o,"mergeProps")}function wC(n,a,o,l,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:d}){let m=!1,p,y,v,E,g;function N(U,C){return p=U,y=C,v=n(p,y),E=a(l,y),g=o(v,E,y),m=!0,g}function w(){return v=n(p,y),a.dependsOnOwnProps&&(E=a(l,y)),g=o(v,E,y),g}function D(){return n.dependsOnOwnProps&&(v=n(p,y)),a.dependsOnOwnProps&&(E=a(l,y)),g=o(v,E,y),g}function T(){const U=n(p,y),C=!d(U,v);return v=U,C&&(g=o(v,E,y)),g}function M(U,C){const A=!f(C,y),L=!u(U,p,C,y);return p=U,y=C,A&&L?w():A?D():L?T():g}return function(C,A){return m?M(C,A):N(C,A)}}function SC(n,{initMapStateToProps:a,initMapDispatchToProps:o,initMergeProps:l,...u}){const f=a(n,u),d=o(n,u),m=l(n,u);return EC(f,d,m),wC(f,d,m,n,u)}function xC(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 kC(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 wk(n,a,o){kC(n)||Tg(`${o}() in ${a} must return a plain object. Instead received ${n}.`)}function Zb(n){return function(o){const l=n(o);function u(){return l}return u.dependsOnOwnProps=!1,u}}function Cw(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function Sk(n,a){return function(l,{displayName:u}){const f=function(m,p){return f.dependsOnOwnProps?f.mapToProps(m,p):f.mapToProps(m,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(m,p){f.mapToProps=n,f.dependsOnOwnProps=Cw(n);let y=f(m,p);return typeof y=="function"&&(f.mapToProps=y,f.dependsOnOwnProps=Cw(y),y=f(m,p)),wk(y,u,a),y},f}}function Ng(n,a){return(o,l)=>{throw new Error(`Invalid value of type ${typeof n} for ${a} argument when connecting component ${l.wrappedComponentName}.`)}}function TC(n){return n&&typeof n=="object"?Zb(a=>xC(n,a)):n?typeof n=="function"?Sk(n,"mapDispatchToProps"):Ng(n,"mapDispatchToProps"):Zb(a=>({dispatch:a}))}function NC(n){return n?typeof n=="function"?Sk(n,"mapStateToProps"):Ng(n,"mapStateToProps"):Zb(()=>({}))}function RC(n,a,o){return{...o,...n,...a}}function AC(n){return function(o,{displayName:l,areMergedPropsEqual:u}){let f=!1,d;return function(p,y,v){const E=n(p,y,v);return f?u(E,d)||(d=E):(f=!0,d=E,wk(d,l,"mergeProps")),d}}}function OC(n){return n?typeof n=="function"?AC(n):Ng(n,"mergeProps"):()=>RC}function CC(n){n()}function DC(){let n=null,a=null;return{clear(){n=null,a=null},notify(){CC(()=>{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 Dw={notify(){},get:()=>[]};function xk(n,a){let o,l=Dw,u=0,f=!1;function d(D){v();const T=l.subscribe(D);let M=!1;return()=>{M||(M=!0,T(),E())}}function m(){l.notify()}function p(){w.onStateChange&&w.onStateChange()}function y(){return f}function v(){u++,o||(o=a?a.addNestedSub(p):n.subscribe(p),l=DC())}function E(){u--,o&&u===0&&(o(),o=void 0,l.clear(),l=Dw)}function g(){f||(f=!0,v())}function N(){f&&(f=!1,E())}const w={addNestedSub:d,notifyNestedSubs:m,handleChangeWrapper:p,isSubscribed:y,trySubscribe:g,tryUnsubscribe:N,getListeners:()=>l};return w}var MC=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UC=MC(),BC=()=>typeof navigator<"u"&&navigator.product==="ReactNative",LC=BC(),jC=()=>UC||LC?V.useLayoutEffect:V.useEffect,If=jC();function Mw(n,a){return n===a?n!==0||a!==0||1/n===1/a:n!==n&&a!==a}function Pp(n,a){if(Mw(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])||!Mw(n[o[u]],a[o[u]]))return!1;return!0}var HC={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zC={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},VC={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kk={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},IC={[bC]:VC,[gC]:kk};function Uw(n){return _C(n)?kk:IC[n.$$typeof]||HC}var GC=Object.defineProperty,qC=Object.getOwnPropertyNames,Bw=Object.getOwnPropertySymbols,FC=Object.getOwnPropertyDescriptor,PC=Object.getPrototypeOf,Lw=Object.prototype;function Qb(n,a){if(typeof a!="string"){if(Lw){const f=PC(a);f&&f!==Lw&&Qb(n,f)}let o=qC(a);Bw&&(o=o.concat(Bw(a)));const l=Uw(n),u=Uw(a);for(let f=0;f<o.length;++f){const d=o[f];if(!zC[d]&&!(u&&u[d])&&!(l&&l[d])){const m=FC(a,d);try{GC(n,d,m)}catch{}}}}return n}var $p=Symbol.for("react-redux-context"),Yp=typeof globalThis<"u"?globalThis:{};function $C(){if(!V.createContext)return{};const n=Yp[$p]??(Yp[$p]=new Map);let a=n.get(V.createContext);return a||(a=V.createContext(null),a.displayName="ReactRedux",n.set(V.createContext,a)),a}var ga=$C(),YC=[null,null],XC=n=>{try{return JSON.stringify(n)}catch{return String(n)}};function ZC(n,a,o){If(()=>n(...a),o)}function QC(n,a,o,l,u,f){n.current=l,o.current=!1,u.current&&(u.current=null,f())}function WC(n,a,o,l,u,f,d,m,p,y,v){if(!n)return()=>{};let E=!1,g=null;const N=()=>{if(E||!m.current)return;const D=a.getState();let T,M;try{T=l(D,u.current)}catch(U){M=U,g=U}M||(g=null),T===f.current?d.current||y():(f.current=T,p.current=T,d.current=!0,v())};return o.onStateChange=N,o.trySubscribe(),N(),()=>{if(E=!0,o.tryUnsubscribe(),o.onStateChange=null,g)throw g}}function KC(n,a){return n===a}var jw=!1;function JC(n,a,o,{pure:l,areStatesEqual:u=KC,areOwnPropsEqual:f=Pp,areStatePropsEqual:d=Pp,areMergedPropsEqual:m=Pp,forwardRef:p=!1,context:y=ga}={}){l!==void 0&&!jw&&(jw=!0,Tg('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const v=y,E=NC(n),g=TC(a),N=OC(o),w=!!n;return T=>{if(!yC(T))throw new Error(`You must pass a component to the function returned by connect. Instead received ${XC(T)}`);const M=T.displayName||T.name||"Component",U=`Connect(${M})`,C={shouldHandleStateChanges:w,displayName:U,wrappedComponentName:M,WrappedComponent:T,initMapStateToProps:E,initMapDispatchToProps:g,initMergeProps:N,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:m};function A(Z){const[J,X,te]=V.useMemo(()=>{const{reactReduxForwardedRef:ie,...At}=Z;return[Z.context,ie,At]},[Z]),ne=V.useMemo(()=>{let ie=v;if(J!=null&&J.Consumer){if(!vC(V.createElement(J.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");ie=J}return ie},[J,v]),se=V.useContext(ne),he=!!Z.store&&!!Z.store.getState&&!!Z.store.dispatch,Le=!!se&&!!se.store;if(!he&&!Le)throw new Error(`Could not find "store" in the context of "${U}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${U} in connect options.`);const Ae=he?Z.store:se.store,W=Le?se.getServerState:Ae.getState,ge=V.useMemo(()=>SC(Ae.dispatch,C),[Ae]),[fe,we]=V.useMemo(()=>{if(!w)return YC;const ie=xk(Ae,he?void 0:se.subscription),At=ie.notifyNestedSubs.bind(ie);return[ie,At]},[Ae,he,se]),$=V.useMemo(()=>he?se:{...se,subscription:fe},[he,se,fe]),de=V.useRef(void 0),le=V.useRef(te),Ge=V.useRef(void 0),Je=V.useRef(!1),pt=V.useRef(!1),Ce=V.useRef(void 0);If(()=>(pt.current=!0,()=>{pt.current=!1}),[]);const Mn=V.useMemo(()=>()=>Ge.current&&te===le.current?Ge.current:ge(Ae.getState(),te),[Ae,te]),it=V.useMemo(()=>At=>fe?WC(w,Ae,fe,ge,le,de,Je,pt,Ge,we,At):()=>{},[fe]);ZC(QC,[le,de,Je,te,Ge,we]);let ft;try{ft=V.useSyncExternalStore(it,Mn,W?()=>ge(W(),te):Mn)}catch(ie){throw Ce.current&&(ie.message+=`
|
|
279
|
+
*/return function(){function n(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=no(),o=typeof Object.is=="function"?Object.is:n,l=a.useSyncExternalStore,u=a.useRef,f=a.useEffect,d=a.useMemo,m=a.useDebugValue;$p.useSyncExternalStoreWithSelector=function(p,g,v,E,y){var N=u(null);if(N.current===null){var w={hasValue:!1,value:null};N.current=w}else w=N.current;N=d(function(){function T(L){if(!M){if(M=!0,U=L,L=E(L),y!==void 0&&w.hasValue){var F=w.value;if(y(F,L))return C=F}return C=L}if(F=C,o(U,L))return F;var Z=E(L);return y!==void 0&&y(F,Z)?(U=L,F):(U=L,C=Z)}var M=!1,U,C,A=v===void 0?null:v;return[function(){return T(g())},A===null?void 0:function(){return T(A())}]},[g,v,E,y]);var D=l(p,N[0],N[1]);return f(function(){w.hasValue=!0,w.value=D},[D]),m(D),D},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),$p}var Lw;function pC(){return Lw||(Lw=1,Pp.exports=mC()),Pp.exports}var bC=pC(),Ek=I.version.startsWith("19"),gC=Symbol.for(Ek?"react.transitional.element":"react.element"),yC=Symbol.for("react.portal"),wk=Symbol.for("react.fragment"),Sk=Symbol.for("react.strict_mode"),xk=Symbol.for("react.profiler"),Rg=Symbol.for("react.consumer"),Ag=Symbol.for("react.context"),Og=Symbol.for("react.forward_ref"),kk=Symbol.for("react.suspense"),Tk=Symbol.for("react.suspense_list"),Wf=Symbol.for("react.memo"),Nk=Symbol.for("react.lazy"),vC=Symbol.for("react.offscreen"),_C=Symbol.for("react.client.reference"),EC=Og,wC=Wf;function SC(n){return typeof n=="string"||typeof n=="function"||n===wk||n===xk||n===Sk||n===kk||n===Tk||n===vC||typeof n=="object"&&n!==null&&(n.$$typeof===Nk||n.$$typeof===Wf||n.$$typeof===Ag||n.$$typeof===Rg||n.$$typeof===Og||n.$$typeof===_C||n.getModuleId!==void 0)}function Wb(n){if(typeof n=="object"&&n!==null){const{$$typeof:a}=n;switch(a){case gC:switch(n=n.type,n){case wk:case xk:case Sk:case kk:case Tk:return n;default:switch(n=n&&n.$$typeof,n){case Ag:case Og:case Nk:case Wf:return n;case Rg:return n;default:return a}}case yC:return a}}}function xC(n){return Ek?Wb(n)===Rg:Wb(n)===Ag}function kC(n){return Wb(n)===Wf}function Cg(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function Yp(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){Yp(n,"mapStateToProps"),Yp(a,"mapDispatchToProps"),Yp(o,"mergeProps")}function NC(n,a,o,l,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:d}){let m=!1,p,g,v,E,y;function N(U,C){return p=U,g=C,v=n(p,g),E=a(l,g),y=o(v,E,g),m=!0,y}function w(){return v=n(p,g),a.dependsOnOwnProps&&(E=a(l,g)),y=o(v,E,g),y}function D(){return n.dependsOnOwnProps&&(v=n(p,g)),a.dependsOnOwnProps&&(E=a(l,g)),y=o(v,E,g),y}function T(){const U=n(p,g),C=!d(U,v);return v=U,C&&(y=o(v,E,g)),y}function M(U,C){const A=!f(C,g),L=!u(U,p,C,g);return p=U,g=C,A&&L?w():A?D():L?T():y}return function(C,A){return m?M(C,A):N(C,A)}}function RC(n,{initMapStateToProps:a,initMapDispatchToProps:o,initMergeProps:l,...u}){const f=a(n,u),d=o(n,u),m=l(n,u);return TC(f,d,m),NC(f,d,m,n,u)}function AC(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 OC(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 Rk(n,a,o){OC(n)||Cg(`${o}() in ${a} must return a plain object. Instead received ${n}.`)}function Kb(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 Ak(n,a){return function(l,{displayName:u}){const f=function(m,p){return f.dependsOnOwnProps?f.mapToProps(m,p):f.mapToProps(m,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(m,p){f.mapToProps=n,f.dependsOnOwnProps=jw(n);let g=f(m,p);return typeof g=="function"&&(f.mapToProps=g,f.dependsOnOwnProps=jw(g),g=f(m,p)),Rk(g,u,a),g},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 CC(n){return n&&typeof n=="object"?Kb(a=>AC(n,a)):n?typeof n=="function"?Ak(n,"mapDispatchToProps"):Dg(n,"mapDispatchToProps"):Kb(a=>({dispatch:a}))}function DC(n){return n?typeof n=="function"?Ak(n,"mapStateToProps"):Dg(n,"mapStateToProps"):Kb(()=>({}))}function MC(n,a,o){return{...o,...n,...a}}function UC(n){return function(o,{displayName:l,areMergedPropsEqual:u}){let f=!1,d;return function(p,g,v){const E=n(p,g,v);return f?u(E,d)||(d=E):(f=!0,d=E,Rk(d,l,"mergeProps")),d}}}function BC(n){return n?typeof n=="function"?UC(n):Dg(n,"mergeProps"):()=>MC}function LC(n){n()}function jC(){let n=null,a=null;return{clear(){n=null,a=null},notify(){LC(()=>{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 Ok(n,a){let o,l=Hw,u=0,f=!1;function d(D){v();const T=l.subscribe(D);let M=!1;return()=>{M||(M=!0,T(),E())}}function m(){l.notify()}function p(){w.onStateChange&&w.onStateChange()}function g(){return f}function v(){u++,o||(o=a?a.addNestedSub(p):n.subscribe(p),l=jC())}function E(){u--,o&&u===0&&(o(),o=void 0,l.clear(),l=Hw)}function y(){f||(f=!0,v())}function N(){f&&(f=!1,E())}const w={addNestedSub:d,notifyNestedSubs:m,handleChangeWrapper:p,isSubscribed:g,trySubscribe:y,tryUnsubscribe:N,getListeners:()=>l};return w}var HC=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zC=HC(),IC=()=>typeof navigator<"u"&&navigator.product==="ReactNative",VC=IC(),GC=()=>zC||VC?I.useLayoutEffect:I.useEffect,qf=GC();function zw(n,a){return n===a?n!==0||a!==0||1/n===1/a:n!==n&&a!==a}function Xp(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 qC={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},FC={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},PC={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ck={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$C={[EC]:PC,[wC]:Ck};function Iw(n){return kC(n)?Ck:$C[n.$$typeof]||qC}var YC=Object.defineProperty,XC=Object.getOwnPropertyNames,Vw=Object.getOwnPropertySymbols,ZC=Object.getOwnPropertyDescriptor,QC=Object.getPrototypeOf,Gw=Object.prototype;function Jb(n,a){if(typeof a!="string"){if(Gw){const f=QC(a);f&&f!==Gw&&Jb(n,f)}let o=XC(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(!FC[d]&&!(u&&u[d])&&!(l&&l[d])){const m=ZC(a,d);try{YC(n,d,m)}catch{}}}}return n}var Zp=Symbol.for("react-redux-context"),Qp=typeof globalThis<"u"?globalThis:{};function WC(){if(!I.createContext)return{};const n=Qp[Zp]??(Qp[Zp]=new Map);let a=n.get(I.createContext);return a||(a=I.createContext(null),a.displayName="ReactRedux",n.set(I.createContext,a)),a}var ga=WC(),KC=[null,null],JC=n=>{try{return JSON.stringify(n)}catch{return String(n)}};function eD(n,a,o){qf(()=>n(...a),o)}function tD(n,a,o,l,u,f){n.current=l,o.current=!1,u.current&&(u.current=null,f())}function nD(n,a,o,l,u,f,d,m,p,g,v){if(!n)return()=>{};let E=!1,y=null;const N=()=>{if(E||!m.current)return;const D=a.getState();let T,M;try{T=l(D,u.current)}catch(U){M=U,y=U}M||(y=null),T===f.current?d.current||g():(f.current=T,p.current=T,d.current=!0,v())};return o.onStateChange=N,o.trySubscribe(),N(),()=>{if(E=!0,o.tryUnsubscribe(),o.onStateChange=null,y)throw y}}function rD(n,a){return n===a}var qw=!1;function aD(n,a,o,{pure:l,areStatesEqual:u=rD,areOwnPropsEqual:f=Xp,areStatePropsEqual:d=Xp,areMergedPropsEqual:m=Xp,forwardRef:p=!1,context:g=ga}={}){l!==void 0&&!qw&&(qw=!0,Cg('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const v=g,E=DC(n),y=CC(a),N=BC(o),w=!!n;return T=>{if(!SC(T))throw new Error(`You must pass a component to the function returned by connect. Instead received ${JC(T)}`);const M=T.displayName||T.name||"Component",U=`Connect(${M})`,C={shouldHandleStateChanges:w,displayName:U,wrappedComponentName:M,WrappedComponent:T,initMapStateToProps:E,initMapDispatchToProps:y,initMergeProps:N,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:m};function A(Z){const[J,X,te]=I.useMemo(()=>{const{reactReduxForwardedRef:ie,...At}=Z;return[Z.context,ie,At]},[Z]),ne=I.useMemo(()=>{let ie=v;if(J!=null&&J.Consumer){if(!xC(I.createElement(J.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");ie=J}return ie},[J,v]),se=I.useContext(ne),he=!!Z.store&&!!Z.store.getState&&!!Z.store.dispatch,Le=!!se&&!!se.store;if(!he&&!Le)throw new Error(`Could not find "store" in the context of "${U}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${U} in connect options.`);const Ae=he?Z.store:se.store,W=Le?se.getServerState:Ae.getState,ge=I.useMemo(()=>RC(Ae.dispatch,C),[Ae]),[fe,we]=I.useMemo(()=>{if(!w)return KC;const ie=Ok(Ae,he?void 0:se.subscription),At=ie.notifyNestedSubs.bind(ie);return[ie,At]},[Ae,he,se]),$=I.useMemo(()=>he?se:{...se,subscription:fe},[he,se,fe]),de=I.useRef(void 0),le=I.useRef(te),Ge=I.useRef(void 0),Je=I.useRef(!1),pt=I.useRef(!1),Ce=I.useRef(void 0);qf(()=>(pt.current=!0,()=>{pt.current=!1}),[]);const Un=I.useMemo(()=>()=>Ge.current&&te===le.current?Ge.current:ge(Ae.getState(),te),[Ae,te]),it=I.useMemo(()=>At=>fe?nD(w,Ae,fe,ge,le,de,Je,pt,Ge,we,At):()=>{},[fe]);eD(tD,[le,de,Je,te,Ge,we]);let ft;try{ft=I.useSyncExternalStore(it,Un,W?()=>ge(W(),te):Un)}catch(ie){throw Ce.current&&(ie.message+=`
|
|
280
280
|
The error may be correlated with this previous error:
|
|
281
281
|
${Ce.current.stack}
|
|
282
282
|
|
|
283
|
-
`),ie}
|
|
283
|
+
`),ie}qf(()=>{Ce.current=void 0,Ge.current=void 0,de.current=ft});const Mt=I.useMemo(()=>I.createElement(T,{...ft,ref:X}),[X,T,ft]);return I.useMemo(()=>w?I.createElement(ne.Provider,{value:$},Mt):Mt,[ne,Mt,$])}const F=I.memo(A);if(F.WrappedComponent=T,F.displayName=A.displayName=U,p){const J=I.forwardRef(function(te,ne){return I.createElement(F,{...te,reactReduxForwardedRef:ne})});return J.displayName=U,J.WrappedComponent=T,Jb(J,T)}return Jb(F,T)}}var iD=aD;function oD(n){const{children:a,context:o,serverState:l,store:u}=n,f=I.useMemo(()=>{const p=Ok(u),g={store:u,subscription:p,getServerState:l?()=>l:void 0};{const{identityFunctionCheck:v="once",stabilityCheck:E="once"}=n;return Object.assign(g,{stabilityCheck:E,identityFunctionCheck:v})}},[u,l]),d=I.useMemo(()=>u.getState(),[u]);qf(()=>{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 m=o||ga;return I.createElement(m.Provider,{value:f},a)}var sD=oD;function Mg(n=ga){return function(){const o=I.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 Dk=Mg();function Mk(n=ga){const a=n===ga?Dk:Mg(n),o=()=>{const{store:l}=a();return l};return Object.assign(o,{withTypes:()=>o}),o}var lD=Mk();function cD(n=ga){const a=n===ga?lD:Mk(n),o=()=>a().dispatch;return Object.assign(o,{withTypes:()=>o}),o}var uD=cD(),fD=(n,a)=>n===a;function dD(n=ga){const a=n===ga?Dk:Mg(n),o=(l,u={})=>{const{equalityFn:f=fD}=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:m,subscription:p,getServerState:g}=d,v=I.useRef(!0),E=I.useCallback({[l.name](N){const w=l(N);{const{devModeChecks:D={}}=typeof u=="function"?{}:u,{identityFunctionCheck:T,stabilityCheck:M}=d,{identityFunctionCheck:U,stabilityCheck:C}={stabilityCheck:M,identityFunctionCheck:T,...D};if(C==="always"||C==="once"&&v.current){const A=l(N);if(!f(w,A)){let L;try{throw new Error}catch(F){({stack:L}=F)}console.warn("Selector "+(l.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
284
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:N,selected:w,selected2:A,stack:L})}}if((U==="always"||U==="once"&&v.current)&&w===N){let A;try{throw new Error}catch(L){({stack:A}=L)}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:A})}v.current&&(v.current=!1)}return w}}[l.name],[l]),
|
|
285
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:A})}v.current&&(v.current=!1)}return w}}[l.name],[l]),y=bC.useSyncExternalStoreWithSelector(p.addNestedSub,m.getState,g||m.getState,E,f);return I.useDebugValue(y),y};return Object.assign(o,{withTypes:()=>o}),o}var hD=dD(),Wp={exports:{}};/*!
|
|
286
286
|
Copyright (c) 2018 Jed Watson.
|
|
287
287
|
Licensed under the MIT License (MIT), see
|
|
288
288
|
http://jedwatson.github.io/classnames
|
|
289
|
-
*/var Hw;function cD(){return Hw||(Hw=1,function(n){(function(){var a={}.hasOwnProperty;function o(){for(var f="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(f=u(f,l(m)))}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 m in f)a.call(f,m)&&f[m]&&(d=u(d,m));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})()}(Xp)),Xp.exports}var uD=cD();const ee=Xf(uD);var Wb=function(n,a){return Wb=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])},Wb(n,a)};function Jn(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");Wb(n,a);function o(){this.constructor=n}n.prototype=a===null?Object.create(a):(o.prototype=a.prototype,new o)}var pe=function(){return pe=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},pe.apply(this,arguments)};function Qf(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 Lr(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 Ur(n,a){var o=a&&a.cache?a.cache:gD,l=a&&a.serializer?a.serializer:pD,u=a&&a.strategy?a.strategy:hD;return u(n,{cache:o,serializer:l})}function fD(n){return n==null||typeof n=="number"||typeof n=="boolean"}function dD(n,a,o,l){var u=fD(l)?l:o(l),f=a.get(u);return typeof f>"u"&&(f=n.call(this,l),a.set(u,f)),f}function Rk(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 Ak(n,a,o,l,u){return o.bind(a,n,l,u)}function hD(n,a){var o=n.length===1?dD:Rk;return Ak(n,this,o,a.cache.create(),a.serializer)}function mD(n,a){return Ak(n,this,Rk,a.cache.create(),a.serializer)}var pD=function(){return JSON.stringify(arguments)},bD=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}(),gD={create:function(){return new bD}},Br={variadic:mD},qe;(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"})(qe||(qe={}));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 ls;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(ls||(ls={}));function zw(n){return n.type===ut.literal}function yD(n){return n.type===ut.argument}function Ok(n){return n.type===ut.number}function Ck(n){return n.type===ut.date}function Dk(n){return n.type===ut.time}function Mk(n){return n.type===ut.select}function Uk(n){return n.type===ut.plural}function vD(n){return n.type===ut.pound}function Bk(n){return n.type===ut.tag}function Lk(n){return!!(n&&typeof n=="object"&&n.type===ls.number)}function Kb(n){return!!(n&&typeof n=="object"&&n.type===ls.dateTime)}var jk=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,_D=/(?:[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 ED(n){var a={};return n.replace(_D,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 wD=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function SD(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var a=n.split(wD).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 m=d[0],p=d.slice(1),y=0,v=p;y<v.length;y++){var E=v[y];if(E.length===0)throw new Error("Invalid number skeleton")}o.push({stem:m,options:p})}return o}function xD(n){return n.replace(/^(.*?)-/,"")}var Vw=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Hk=/^(@+)?(\+|#+)?[rs]?$/g,kD=/(\*)(0+)|(#+)(0+)|(0+)/g,zk=/^(0+)$/;function Iw(n){var a={};return n[n.length-1]==="r"?a.roundingPriority="morePrecision":n[n.length-1]==="s"&&(a.roundingPriority="lessPrecision"),n.replace(Hk,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 Vk(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 TD(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)),!zk.test(n))throw new Error("Malformed concise eng/scientific notation");a.minimumIntegerDigits=n.length}return a}function Gw(n){var a={},o=Vk(n);return o||a}function ND(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=xD(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=pe(pe(pe({},a),{notation:"scientific"}),u.options.reduce(function(p,y){return pe(pe({},p),Gw(y))},{}));continue;case"engineering":a=pe(pe(pe({},a),{notation:"engineering"}),u.options.reduce(function(p,y){return pe(pe({},p),Gw(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(kD,function(p,y,v,E,g,N){if(y)a.minimumIntegerDigits=v.length;else{if(E&&g)throw new Error("We currently do not support maximum integer digits");if(N)throw new Error("We currently do not support exact integer digits")}return""});continue}if(zk.test(u.stem)){a.minimumIntegerDigits=u.stem.length;continue}if(Vw.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(Vw,function(p,y,v,E,g,N){return v==="*"?a.minimumFractionDigits=y.length:E&&E[0]==="#"?a.maximumFractionDigits=E.length:g&&N?(a.minimumFractionDigits=g.length,a.maximumFractionDigits=g.length+N.length):(a.minimumFractionDigits=y.length,a.maximumFractionDigits=y.length),""});var f=u.options[0];f==="w"?a=pe(pe({},a),{trailingZeroDisplay:"stripIfInteger"}):f&&(a=pe(pe({},a),Iw(f)));continue}if(Hk.test(u.stem)){a=pe(pe({},a),Iw(u.stem));continue}var d=Vk(u.stem);d&&(a=pe(pe({},a),d));var m=TD(u.stem);m&&(a=pe(pe({},a),m))}return a}var sf={"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 RD(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),m=f<2?1:3+(f>>1),p="a",y=AD(a);for((y=="H"||y=="k")&&(m=0);m-- >0;)o+=p;for(;d-- >0;)o=y+o}else u==="J"?o+="H":o+=u}return o}function AD(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=sf[l||""]||sf[o||""]||sf["".concat(o,"-001")]||sf["001"];return u[0]}var Zp,OD=new RegExp("^".concat(jk.source,"*")),CD=new RegExp("".concat(jk.source,"*$"));function Ye(n,a){return{start:n,end:a}}var DD=!!String.prototype.startsWith&&"_a".startsWith("a",1),MD=!!String.fromCodePoint,UD=!!Object.fromEntries,BD=!!String.prototype.codePointAt,LD=!!String.prototype.trimStart,jD=!!String.prototype.trimEnd,HD=!!Number.isSafeInteger,zD=HD?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},Jb=!0;try{var VD=Gk("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Jb=((Zp=VD.exec("a"))===null||Zp===void 0?void 0:Zp[0])==="a"}catch{Jb=!1}var qw=DD?function(a,o,l){return a.startsWith(o,l)}:function(a,o,l){return a.slice(l,l+o.length)===o},eg=MD?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},Fw=UD?Object.fromEntries:function(a){for(var o={},l=0,u=a;l<u.length;l++){var f=u[l],d=f[0],m=f[1];o[d]=m}return o},Ik=BD?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}},ID=LD?function(a){return a.trimStart()}:function(a){return a.replace(OD,"")},GD=jD?function(a){return a.trimEnd()}:function(a){return a.replace(CD,"")};function Gk(n,a){return new RegExp(n,a)}var tg;if(Jb){var Pw=Gk("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");tg=function(a,o){var l;Pw.lastIndex=o;var u=Pw.exec(a);return(l=u[1])!==null&&l!==void 0?l:""}}else tg=function(a,o){for(var l=[];;){var u=Ik(a,o);if(u===void 0||qk(u)||$D(u))break;l.push(u),o+=u>=65536?2:1}return eg.apply(void 0,l)};var qD=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 m=this.clonePosition();this.bump(),u.push({type:ut.pound,location:Ye(m,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(qe.UNMATCHED_CLOSING_TAG,Ye(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&ng(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:Ye(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,m=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ng(this.char()))return this.error(qe.INVALID_TAG,Ye(m,this.clonePosition()));var p=this.clonePosition(),y=this.parseTagName();return u!==y?this.error(qe.UNMATCHED_CLOSING_TAG,Ye(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ut.tag,value:u,children:d,location:Ye(l,this.clonePosition())},err:null}:this.error(qe.INVALID_TAG,Ye(m,this.clonePosition())))}else return this.error(qe.UNCLOSED_TAG,Ye(l,this.clonePosition()))}else return this.error(qe.INVALID_TAG,Ye(l,this.clonePosition()))},n.prototype.parseTagName=function(){var a=this.offset();for(this.bump();!this.isEOF()&&PD(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 m=this.tryParseLeftAngleBracket();if(m){u+=m;continue}break}var p=Ye(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||!FD(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 eg.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(),eg(l))},n.prototype.parseArgument=function(a,o){var l=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(qe.EMPTY_ARGUMENT,Ye(l,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(qe.MALFORMED_ARGUMENT,Ye(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ut.argument,value:u,location:Ye(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(l,this.clonePosition())):this.parseArgumentOptions(a,o,u,l);default:return this.error(qe.MALFORMED_ARGUMENT,Ye(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var a=this.clonePosition(),o=this.offset(),l=tg(this.message,o),u=o+l.length;this.bumpTo(u);var f=this.clonePosition(),d=Ye(a,f);return{value:l,location:d}},n.prototype.parseArgumentOptions=function(a,o,l,u){var f,d=this.clonePosition(),m=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(m){case"":return this.error(qe.EXPECT_ARGUMENT_TYPE,Ye(d,p));case"number":case"date":case"time":{this.bumpSpace();var y=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var g=GD(E.val);if(g.length===0)return this.error(qe.EXPECT_ARGUMENT_STYLE,Ye(this.clonePosition(),this.clonePosition()));var N=Ye(v,this.clonePosition());y={style:g,styleLocation:N}}var w=this.tryParseArgumentClose(u);if(w.err)return w;var D=Ye(u,this.clonePosition());if(y&&qw(y==null?void 0:y.style,"::",0)){var T=ID(y.style.slice(2));if(m==="number"){var E=this.parseNumberSkeletonFromString(T,y.styleLocation);return E.err?E:{val:{type:ut.number,value:l,location:D,style:E.val},err:null}}else{if(T.length===0)return this.error(qe.EXPECT_DATE_TIME_SKELETON,D);var M=T;this.locale&&(M=RD(T,this.locale));var g={type:ls.dateTime,pattern:M,location:y.styleLocation,parsedOptions:this.shouldParseSkeletons?ED(M):{}},U=m==="date"?ut.date:ut.time;return{val:{type:U,value:l,location:D,style:g},err:null}}}return{val:{type:m==="number"?ut.number:m==="date"?ut.date:ut.time,value:l,location:D,style:(f=y==null?void 0:y.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(qe.EXPECT_SELECT_ARGUMENT_OPTIONS,Ye(C,pe({},C)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),L=0;if(m!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(qe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ye(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(qe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,qe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),A=this.parseIdentifierIfPossible(),L=E.val}var F=this.tryParsePluralOrSelectOptions(a,m,o,A);if(F.err)return F;var w=this.tryParseArgumentClose(u);if(w.err)return w;var Z=Ye(u,this.clonePosition());return m==="select"?{val:{type:ut.select,value:l,options:Fw(F.val),location:Z},err:null}:{val:{type:ut.plural,value:l,options:Fw(F.val),offset:L,pluralType:m==="plural"?"cardinal":"ordinal",location:Z},err:null}}default:return this.error(qe.INVALID_ARGUMENT_TYPE,Ye(d,p))}},n.prototype.tryParseArgumentClose=function(a){return this.isEOF()||this.char()!==125?this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(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(qe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ye(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=SD(a)}catch{return this.error(qe.INVALID_NUMBER_SKELETON,o)}return{val:{type:ls.number,tokens:l,location:o,parsedOptions:this.shouldParseSkeletons?ND(l):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(a,o,l,u){for(var f,d=!1,m=[],p=new Set,y=u.value,v=u.location;;){if(y.length===0){var E=this.clonePosition();if(o!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(qe.EXPECT_PLURAL_ARGUMENT_SELECTOR,qe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;v=Ye(E,this.clonePosition()),y=this.message.slice(E.offset,this.offset())}else break}if(p.has(y))return this.error(o==="select"?qe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:qe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);y==="other"&&(d=!0),this.bumpSpace();var N=this.clonePosition();if(!this.bumpIf("{"))return this.error(o==="select"?qe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:qe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ye(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(a+1,o,l);if(w.err)return w;var D=this.tryParseArgumentClose(N);if(D.err)return D;m.push([y,{value:w.val,location:Ye(N,this.clonePosition())}]),p.add(y),this.bumpSpace(),f=this.parseIdentifierIfPossible(),y=f.value,v=f.location}return m.length===0?this.error(o==="select"?qe.EXPECT_SELECT_ARGUMENT_SELECTOR:qe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ye(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(qe.MISSING_OTHER_CLAUSE,Ye(this.clonePosition(),this.clonePosition())):{val:m,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 m=this.char();if(m>=48&&m<=57)f=!0,d=d*10+(m-48),this.bump();else break}var p=Ye(u,this.clonePosition());return f?(d*=l,zD(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=Ik(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(qw(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()&&qk(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 ng(n){return n>=97&&n<=122||n>=65&&n<=90}function FD(n){return ng(n)||n===47}function PD(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 qk(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function $D(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 rg(n){n.forEach(function(a){if(delete a.location,Mk(a)||Uk(a))for(var o in a.options)delete a.options[o].location,rg(a.options[o].value);else Ok(a)&&Lk(a.style)||(Ck(a)||Dk(a))&&Kb(a.style)?delete a.style.location:Bk(a)&&rg(a.children)})}function YD(n,a){a===void 0&&(a={}),a=pe({shouldParseSkeletons:!0,requiresOtherClause:!0},a);var o=new qD(n,a).parse();if(o.err){var l=SyntaxError(qe[o.err.kind]);throw l.location=o.err.location,l.originalMessage=o.err.message,l}return a!=null&&a.captureLocation||rg(o.val),o.val}var zr;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(zr||(zr={}));var ai=function(n){Jn(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),$w=function(n){Jn(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('", "'),'"'),zr.INVALID_VALUE,f)||this}return a}(ai),XD=function(n){Jn(a,n);function a(o,l,u){return n.call(this,'Value for "'.concat(o,'" must be of type ').concat(l),zr.INVALID_VALUE,u)||this}return a}(ai),ZD=function(n){Jn(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,'"'),zr.MISSING_VALUE,l)||this}return a}(ai),on;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(on||(on={}));function QD(n){return n.length<2?n:n.reduce(function(a,o){var l=a[a.length-1];return!l||l.type!==on.literal||o.type!==on.literal?a.push(o):l.value+=o.value,a},[])}function Fk(n){return typeof n=="function"}function Bf(n,a,o,l,u,f,d){if(n.length===1&&zw(n[0]))return[{type:on.literal,value:n[0].value}];for(var m=[],p=0,y=n;p<y.length;p++){var v=y[p];if(zw(v)){m.push({type:on.literal,value:v.value});continue}if(vD(v)){typeof f=="number"&&m.push({type:on.literal,value:o.getNumberFormat(a).format(f)});continue}var E=v.value;if(!(u&&E in u))throw new ZD(E,d);var g=u[E];if(yD(v)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),m.push({type:typeof g=="string"?on.literal:on.object,value:g});continue}if(Ck(v)){var N=typeof v.style=="string"?l.date[v.style]:Kb(v.style)?v.style.parsedOptions:void 0;m.push({type:on.literal,value:o.getDateTimeFormat(a,N).format(g)});continue}if(Dk(v)){var N=typeof v.style=="string"?l.time[v.style]:Kb(v.style)?v.style.parsedOptions:l.time.medium;m.push({type:on.literal,value:o.getDateTimeFormat(a,N).format(g)});continue}if(Ok(v)){var N=typeof v.style=="string"?l.number[v.style]:Lk(v.style)?v.style.parsedOptions:void 0;N&&N.scale&&(g=g*(N.scale||1)),m.push({type:on.literal,value:o.getNumberFormat(a,N).format(g)});continue}if(Bk(v)){var w=v.children,D=v.value,T=u[D];if(!Fk(T))throw new XD(D,"function",d);var M=Bf(w,a,o,l,u,f),U=T(M.map(function(L){return L.value}));Array.isArray(U)||(U=[U]),m.push.apply(m,U.map(function(L){return{type:typeof L=="string"?on.literal:on.object,value:L}}))}if(Mk(v)){var C=v.options[g]||v.options.other;if(!C)throw new $w(v.value,g,Object.keys(v.options),d);m.push.apply(m,Bf(C.value,a,o,l,u));continue}if(Uk(v)){var C=v.options["=".concat(g)];if(!C){if(!Intl.PluralRules)throw new ai(`Intl.PluralRules is not available in this environment.
|
|
289
|
+
*/var Fw;function mD(){return Fw||(Fw=1,function(n){(function(){var a={}.hasOwnProperty;function o(){for(var f="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(f=u(f,l(m)))}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 m in f)a.call(f,m)&&f[m]&&(d=u(d,m));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})()}(Wp)),Wp.exports}var pD=mD();const ee=Qf(pD);var eg=function(n,a){return eg=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])},eg(n,a)};function Jn(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");eg(n,a);function o(){this.constructor=n}n.prototype=a===null?Object.create(a):(o.prototype=a.prototype,new o)}var pe=function(){return pe=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},pe.apply(this,arguments)};function Kf(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 Lr(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 Ur(n,a){var o=a&&a.cache?a.cache:wD,l=a&&a.serializer?a.serializer:_D,u=a&&a.strategy?a.strategy:yD;return u(n,{cache:o,serializer:l})}function bD(n){return n==null||typeof n=="number"||typeof n=="boolean"}function gD(n,a,o,l){var u=bD(l)?l:o(l),f=a.get(u);return typeof f>"u"&&(f=n.call(this,l),a.set(u,f)),f}function Uk(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 Bk(n,a,o,l,u){return o.bind(a,n,l,u)}function yD(n,a){var o=n.length===1?gD:Uk;return Bk(n,this,o,a.cache.create(),a.serializer)}function vD(n,a){return Bk(n,this,Uk,a.cache.create(),a.serializer)}var _D=function(){return JSON.stringify(arguments)},ED=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}(),wD={create:function(){return new ED}},Br={variadic:vD},qe;(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"})(qe||(qe={}));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 ls;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(ls||(ls={}));function Pw(n){return n.type===ut.literal}function SD(n){return n.type===ut.argument}function Lk(n){return n.type===ut.number}function jk(n){return n.type===ut.date}function Hk(n){return n.type===ut.time}function zk(n){return n.type===ut.select}function Ik(n){return n.type===ut.plural}function xD(n){return n.type===ut.pound}function Vk(n){return n.type===ut.tag}function Gk(n){return!!(n&&typeof n=="object"&&n.type===ls.number)}function tg(n){return!!(n&&typeof n=="object"&&n.type===ls.dateTime)}var qk=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,kD=/(?:[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(kD,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 ND=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function RD(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var a=n.split(ND).filter(function(y){return y.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 m=d[0],p=d.slice(1),g=0,v=p;g<v.length;g++){var E=v[g];if(E.length===0)throw new Error("Invalid number skeleton")}o.push({stem:m,options:p})}return o}function AD(n){return n.replace(/^(.*?)-/,"")}var $w=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Fk=/^(@+)?(\+|#+)?[rs]?$/g,OD=/(\*)(0+)|(#+)(0+)|(0+)/g,Pk=/^(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(Fk,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 $k(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 CD(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)),!Pk.test(n))throw new Error("Malformed concise eng/scientific notation");a.minimumIntegerDigits=n.length}return a}function Xw(n){var a={},o=$k(n);return o||a}function DD(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=AD(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=pe(pe(pe({},a),{notation:"scientific"}),u.options.reduce(function(p,g){return pe(pe({},p),Xw(g))},{}));continue;case"engineering":a=pe(pe(pe({},a),{notation:"engineering"}),u.options.reduce(function(p,g){return pe(pe({},p),Xw(g))},{}));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(OD,function(p,g,v,E,y,N){if(g)a.minimumIntegerDigits=v.length;else{if(E&&y)throw new Error("We currently do not support maximum integer digits");if(N)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Pk.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,g,v,E,y,N){return v==="*"?a.minimumFractionDigits=g.length:E&&E[0]==="#"?a.maximumFractionDigits=E.length:y&&N?(a.minimumFractionDigits=y.length,a.maximumFractionDigits=y.length+N.length):(a.minimumFractionDigits=g.length,a.maximumFractionDigits=g.length),""});var f=u.options[0];f==="w"?a=pe(pe({},a),{trailingZeroDisplay:"stripIfInteger"}):f&&(a=pe(pe({},a),Yw(f)));continue}if(Fk.test(u.stem)){a=pe(pe({},a),Yw(u.stem));continue}var d=$k(u.stem);d&&(a=pe(pe({},a),d));var m=CD(u.stem);m&&(a=pe(pe({},a),m))}return a}var sf={"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 MD(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),m=f<2?1:3+(f>>1),p="a",g=UD(a);for((g=="H"||g=="k")&&(m=0);m-- >0;)o+=p;for(;d-- >0;)o=g+o}else u==="J"?o+="H":o+=u}return o}function UD(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=sf[l||""]||sf[o||""]||sf["".concat(o,"-001")]||sf["001"];return u[0]}var Kp,BD=new RegExp("^".concat(qk.source,"*")),LD=new RegExp("".concat(qk.source,"*$"));function Ye(n,a){return{start:n,end:a}}var jD=!!String.prototype.startsWith&&"_a".startsWith("a",1),HD=!!String.fromCodePoint,zD=!!Object.fromEntries,ID=!!String.prototype.codePointAt,VD=!!String.prototype.trimStart,GD=!!String.prototype.trimEnd,qD=!!Number.isSafeInteger,FD=qD?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},ng=!0;try{var PD=Xk("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ng=((Kp=PD.exec("a"))===null||Kp===void 0?void 0:Kp[0])==="a"}catch{ng=!1}var Zw=jD?function(a,o,l){return a.startsWith(o,l)}:function(a,o,l){return a.slice(l,l+o.length)===o},rg=HD?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=zD?Object.fromEntries:function(a){for(var o={},l=0,u=a;l<u.length;l++){var f=u[l],d=f[0],m=f[1];o[d]=m}return o},Yk=ID?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}},$D=VD?function(a){return a.trimStart()}:function(a){return a.replace(BD,"")},YD=GD?function(a){return a.trimEnd()}:function(a){return a.replace(LD,"")};function Xk(n,a){return new RegExp(n,a)}var ag;if(ng){var Ww=Xk("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ag=function(a,o){var l;Ww.lastIndex=o;var u=Ww.exec(a);return(l=u[1])!==null&&l!==void 0?l:""}}else ag=function(a,o){for(var l=[];;){var u=Yk(a,o);if(u===void 0||Zk(u)||WD(u))break;l.push(u),o+=u>=65536?2:1}return rg.apply(void 0,l)};var XD=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 m=this.clonePosition();this.bump(),u.push({type:ut.pound,location:Ye(m,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(qe.UNMATCHED_CLOSING_TAG,Ye(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&ig(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:Ye(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,m=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ig(this.char()))return this.error(qe.INVALID_TAG,Ye(m,this.clonePosition()));var p=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(qe.UNMATCHED_CLOSING_TAG,Ye(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ut.tag,value:u,children:d,location:Ye(l,this.clonePosition())},err:null}:this.error(qe.INVALID_TAG,Ye(m,this.clonePosition())))}else return this.error(qe.UNCLOSED_TAG,Ye(l,this.clonePosition()))}else return this.error(qe.INVALID_TAG,Ye(l,this.clonePosition()))},n.prototype.parseTagName=function(){var a=this.offset();for(this.bump();!this.isEOF()&&QD(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 m=this.tryParseLeftAngleBracket();if(m){u+=m;continue}break}var p=Ye(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||!ZD(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 rg.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(),rg(l))},n.prototype.parseArgument=function(a,o){var l=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(qe.EMPTY_ARGUMENT,Ye(l,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(qe.MALFORMED_ARGUMENT,Ye(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ut.argument,value:u,location:Ye(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(l,this.clonePosition())):this.parseArgumentOptions(a,o,u,l);default:return this.error(qe.MALFORMED_ARGUMENT,Ye(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var a=this.clonePosition(),o=this.offset(),l=ag(this.message,o),u=o+l.length;this.bumpTo(u);var f=this.clonePosition(),d=Ye(a,f);return{value:l,location:d}},n.prototype.parseArgumentOptions=function(a,o,l,u){var f,d=this.clonePosition(),m=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(m){case"":return this.error(qe.EXPECT_ARGUMENT_TYPE,Ye(d,p));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var y=YD(E.val);if(y.length===0)return this.error(qe.EXPECT_ARGUMENT_STYLE,Ye(this.clonePosition(),this.clonePosition()));var N=Ye(v,this.clonePosition());g={style:y,styleLocation:N}}var w=this.tryParseArgumentClose(u);if(w.err)return w;var D=Ye(u,this.clonePosition());if(g&&Zw(g==null?void 0:g.style,"::",0)){var T=$D(g.style.slice(2));if(m==="number"){var E=this.parseNumberSkeletonFromString(T,g.styleLocation);return E.err?E:{val:{type:ut.number,value:l,location:D,style:E.val},err:null}}else{if(T.length===0)return this.error(qe.EXPECT_DATE_TIME_SKELETON,D);var M=T;this.locale&&(M=MD(T,this.locale));var y={type:ls.dateTime,pattern:M,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?TD(M):{}},U=m==="date"?ut.date:ut.time;return{val:{type:U,value:l,location:D,style:y},err:null}}}return{val:{type:m==="number"?ut.number:m==="date"?ut.date:ut.time,value:l,location:D,style:(f=g==null?void 0:g.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(qe.EXPECT_SELECT_ARGUMENT_OPTIONS,Ye(C,pe({},C)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),L=0;if(m!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(qe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ye(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(qe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,qe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),A=this.parseIdentifierIfPossible(),L=E.val}var F=this.tryParsePluralOrSelectOptions(a,m,o,A);if(F.err)return F;var w=this.tryParseArgumentClose(u);if(w.err)return w;var Z=Ye(u,this.clonePosition());return m==="select"?{val:{type:ut.select,value:l,options:Qw(F.val),location:Z},err:null}:{val:{type:ut.plural,value:l,options:Qw(F.val),offset:L,pluralType:m==="plural"?"cardinal":"ordinal",location:Z},err:null}}default:return this.error(qe.INVALID_ARGUMENT_TYPE,Ye(d,p))}},n.prototype.tryParseArgumentClose=function(a){return this.isEOF()||this.char()!==125?this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(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(qe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ye(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=RD(a)}catch{return this.error(qe.INVALID_NUMBER_SKELETON,o)}return{val:{type:ls.number,tokens:l,location:o,parsedOptions:this.shouldParseSkeletons?DD(l):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(a,o,l,u){for(var f,d=!1,m=[],p=new Set,g=u.value,v=u.location;;){if(g.length===0){var E=this.clonePosition();if(o!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(qe.EXPECT_PLURAL_ARGUMENT_SELECTOR,qe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;v=Ye(E,this.clonePosition()),g=this.message.slice(E.offset,this.offset())}else break}if(p.has(g))return this.error(o==="select"?qe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:qe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);g==="other"&&(d=!0),this.bumpSpace();var N=this.clonePosition();if(!this.bumpIf("{"))return this.error(o==="select"?qe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:qe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ye(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(a+1,o,l);if(w.err)return w;var D=this.tryParseArgumentClose(N);if(D.err)return D;m.push([g,{value:w.val,location:Ye(N,this.clonePosition())}]),p.add(g),this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=f.value,v=f.location}return m.length===0?this.error(o==="select"?qe.EXPECT_SELECT_ARGUMENT_SELECTOR:qe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ye(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(qe.MISSING_OTHER_CLAUSE,Ye(this.clonePosition(),this.clonePosition())):{val:m,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 m=this.char();if(m>=48&&m<=57)f=!0,d=d*10+(m-48),this.bump();else break}var p=Ye(u,this.clonePosition());return f?(d*=l,FD(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=Yk(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()&&Zk(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 ig(n){return n>=97&&n<=122||n>=65&&n<=90}function ZD(n){return ig(n)||n===47}function QD(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 Zk(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function WD(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 og(n){n.forEach(function(a){if(delete a.location,zk(a)||Ik(a))for(var o in a.options)delete a.options[o].location,og(a.options[o].value);else Lk(a)&&Gk(a.style)||(jk(a)||Hk(a))&&tg(a.style)?delete a.style.location:Vk(a)&&og(a.children)})}function KD(n,a){a===void 0&&(a={}),a=pe({shouldParseSkeletons:!0,requiresOtherClause:!0},a);var o=new XD(n,a).parse();if(o.err){var l=SyntaxError(qe[o.err.kind]);throw l.location=o.err.location,l.originalMessage=o.err.message,l}return a!=null&&a.captureLocation||og(o.val),o.val}var zr;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(zr||(zr={}));var ai=function(n){Jn(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){Jn(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('", "'),'"'),zr.INVALID_VALUE,f)||this}return a}(ai),JD=function(n){Jn(a,n);function a(o,l,u){return n.call(this,'Value for "'.concat(o,'" must be of type ').concat(l),zr.INVALID_VALUE,u)||this}return a}(ai),eM=function(n){Jn(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,'"'),zr.MISSING_VALUE,l)||this}return a}(ai),on;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(on||(on={}));function tM(n){return n.length<2?n:n.reduce(function(a,o){var l=a[a.length-1];return!l||l.type!==on.literal||o.type!==on.literal?a.push(o):l.value+=o.value,a},[])}function Qk(n){return typeof n=="function"}function jf(n,a,o,l,u,f,d){if(n.length===1&&Pw(n[0]))return[{type:on.literal,value:n[0].value}];for(var m=[],p=0,g=n;p<g.length;p++){var v=g[p];if(Pw(v)){m.push({type:on.literal,value:v.value});continue}if(xD(v)){typeof f=="number"&&m.push({type:on.literal,value:o.getNumberFormat(a).format(f)});continue}var E=v.value;if(!(u&&E in u))throw new eM(E,d);var y=u[E];if(SD(v)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),m.push({type:typeof y=="string"?on.literal:on.object,value:y});continue}if(jk(v)){var N=typeof v.style=="string"?l.date[v.style]:tg(v.style)?v.style.parsedOptions:void 0;m.push({type:on.literal,value:o.getDateTimeFormat(a,N).format(y)});continue}if(Hk(v)){var N=typeof v.style=="string"?l.time[v.style]:tg(v.style)?v.style.parsedOptions:l.time.medium;m.push({type:on.literal,value:o.getDateTimeFormat(a,N).format(y)});continue}if(Lk(v)){var N=typeof v.style=="string"?l.number[v.style]:Gk(v.style)?v.style.parsedOptions:void 0;N&&N.scale&&(y=y*(N.scale||1)),m.push({type:on.literal,value:o.getNumberFormat(a,N).format(y)});continue}if(Vk(v)){var w=v.children,D=v.value,T=u[D];if(!Qk(T))throw new JD(D,"function",d);var M=jf(w,a,o,l,u,f),U=T(M.map(function(L){return L.value}));Array.isArray(U)||(U=[U]),m.push.apply(m,U.map(function(L){return{type:typeof L=="string"?on.literal:on.object,value:L}}))}if(zk(v)){var C=v.options[y]||v.options.other;if(!C)throw new Kw(v.value,y,Object.keys(v.options),d);m.push.apply(m,jf(C.value,a,o,l,u));continue}if(Ik(v)){var C=v.options["=".concat(y)];if(!C){if(!Intl.PluralRules)throw new ai(`Intl.PluralRules is not available in this environment.
|
|
290
290
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
291
|
-
`,zr.MISSING_INTL_API,d);var A=o.getPluralRules(a,{type:v.pluralType}).select(
|
|
291
|
+
`,zr.MISSING_INTL_API,d);var A=o.getPluralRules(a,{type:v.pluralType}).select(y-(v.offset||0));C=v.options[A]||v.options.other}if(!C)throw new Kw(v.value,y,Object.keys(v.options),d);m.push.apply(m,jf(C.value,a,o,l,u,y-(v.offset||0)));continue}}return tM(m)}function nM(n,a){return a?pe(pe(pe({},n||{}),a||{}),Object.keys(n).reduce(function(o,l){return o[l]=pe(pe({},n[l]),a[l]||{}),o},{})):n}function rM(n,a){return a?Object.keys(n).reduce(function(o,l){return o[l]=nM(n[l],a[l]),o},pe({},n)):n}function Jp(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,o){n[a]=o}}}}}function aM(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ur(function(){for(var a,o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new((a=Intl.NumberFormat).bind.apply(a,Lr([void 0],o,!1)))},{cache:Jp(n.number),strategy:Br.variadic}),getDateTimeFormat:Ur(function(){for(var a,o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new((a=Intl.DateTimeFormat).bind.apply(a,Lr([void 0],o,!1)))},{cache:Jp(n.dateTime),strategy:Br.variadic}),getPluralRules:Ur(function(){for(var a,o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new((a=Intl.PluralRules).bind.apply(a,Lr([void 0],o,!1)))},{cache:Jp(n.pluralRules),strategy:Br.variadic})}}var Wk=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 g=f.formatToParts(p);if(g.length===1)return g[0].value;var v=g.reduce(function(E,y){return!E.length||y.type!==on.literal||typeof E[E.length-1]!="string"?E.push(y.value):E[E.length-1]+=y.value,E},[]);return v.length<=1?v[0]||"":v},this.formatToParts=function(p){return jf(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 m=Kf(d,["formatters"]);this.ast=n.__parse(a,pe(pe({},m),{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=rM(n.formats,l),this.formatters=u&&u.formatters||aM(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=KD,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}(),Ji;(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"})(Ji||(Ji={}));var ic=function(n){Jn(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
292
|
`).concat(d?`
|
|
293
293
|
`.concat(d.message,`
|
|
294
|
-
`).concat(d.stack):""))||this,f.code=o,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(f,a),f}return a}(Error),
|
|
294
|
+
`).concat(d.stack):""))||this,f.code=o,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(f,a),f}return a}(Error),iM=function(n){Jn(a,n);function a(o,l){return n.call(this,Ji.UNSUPPORTED_FORMATTER,o,l)||this}return a}(ic),oM=function(n){Jn(a,n);function a(o,l){return n.call(this,Ji.INVALID_CONFIG,o,l)||this}return a}(ic),Jw=function(n){Jn(a,n);function a(o,l){return n.call(this,Ji.MISSING_DATA,o,l)||this}return a}(ic),er=function(n){Jn(a,n);function a(o,l,u){var f=n.call(this,Ji.FORMAT_ERROR,"".concat(o,`
|
|
295
295
|
Locale: `).concat(l,`
|
|
296
|
-
`),u)||this;return f.locale=l,f}return a}(ic),
|
|
296
|
+
`),u)||this;return f.locale=l,f}return a}(ic),eb=function(n){Jn(a,n);function a(o,l,u,f){var d=n.call(this,"".concat(o,`
|
|
297
297
|
MessageID: `).concat(u==null?void 0:u.id,`
|
|
298
298
|
Default Message: `).concat(u==null?void 0:u.defaultMessage,`
|
|
299
299
|
Description: `).concat(u==null?void 0:u.description,`
|
|
300
|
-
`),l,f)||this;return d.descriptor=u,d.locale=l,d}return a}(er),
|
|
300
|
+
`),l,f)||this;return d.descriptor=u,d.locale=l,d}return a}(er),sM=function(n){Jn(a,n);function a(o,l){var u=n.call(this,Ji.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}(ic);function lM(n,a,o){if(o===void 0&&(o=Error),!n)throw new o(a)}function fs(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 cM=function(n){console.error(n)},uM=function(n){console.warn(n)},Kk={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:cM,onWarn:uM};function Jk(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function qi(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,o){n[a]=o}}}}}function fM(n){n===void 0&&(n=Jk());var a=Intl.RelativeTimeFormat,o=Intl.ListFormat,l=Intl.DisplayNames,u=Ur(function(){for(var m,p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];return new((m=Intl.DateTimeFormat).bind.apply(m,Lr([void 0],p,!1)))},{cache:qi(n.dateTime),strategy:Br.variadic}),f=Ur(function(){for(var m,p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];return new((m=Intl.NumberFormat).bind.apply(m,Lr([void 0],p,!1)))},{cache:qi(n.number),strategy:Br.variadic}),d=Ur(function(){for(var m,p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];return new((m=Intl.PluralRules).bind.apply(m,Lr([void 0],p,!1)))},{cache:qi(n.pluralRules),strategy:Br.variadic});return{getDateTimeFormat:u,getNumberFormat:f,getMessageFormat:Ur(function(m,p,g,v){return new Wk(m,p,g,pe({formatters:{getNumberFormat:f,getDateTimeFormat:u,getPluralRules:d}},v||{}))},{cache:qi(n.message),strategy:Br.variadic}),getRelativeTimeFormat:Ur(function(){for(var m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new(a.bind.apply(a,Lr([void 0],m,!1)))},{cache:qi(n.relativeTime),strategy:Br.variadic}),getPluralRules:d,getListFormat:Ur(function(){for(var m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new(o.bind.apply(o,Lr([void 0],m,!1)))},{cache:qi(n.list),strategy:Br.variadic}),getDisplayNames:Ur(function(){for(var m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new(l.bind.apply(l,Lr([void 0],m,!1)))},{cache:qi(n.displayNames),strategy:Br.variadic})}}function Ug(n,a,o,l){var u=n&&n[a],f;if(u&&(f=u[o]),f)return f;l(new iM("No ".concat(a," format named: ").concat(o)))}function lf(n,a){return Object.keys(n).reduce(function(o,l){return o[l]=pe({timeZone:a},n[l]),o},{})}function eS(n,a){var o=Object.keys(pe(pe({},n),a));return o.reduce(function(l,u){return l[u]=pe(pe({},n[u]||{}),a[u]||{}),l},{})}function tS(n,a){if(!a)return n;var o=Wk.formats;return pe(pe(pe({},o),n),{date:eS(lf(o.date,a),lf(n.date||{},a)),time:eS(lf(o.time,a),lf(n.time||{},a))})}var sg=function(n,a,o,l,u){var f=n.locale,d=n.formats,m=n.messages,p=n.defaultLocale,g=n.defaultFormats,v=n.fallbackOnEmptyString,E=n.onError,y=n.timeZone,N=n.defaultRichTextElements;o===void 0&&(o={id:""});var w=o.id,D=o.defaultMessage;lM(!!w,"[@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 T=String(w),M=m&&Object.prototype.hasOwnProperty.call(m,T)&&m[T];if(Array.isArray(M)&&M.length===1&&M[0].type===ut.literal)return M[0].value;if(!l&&M&&typeof M=="string"&&!N)return M.replace(/'\{(.*?)\}'/gi,"{$1}");if(l=pe(pe({},N),l||{}),d=tS(d,y),g=tS(g,y),!M){if(v===!1&&M==="")return M;if((!D||f&&f.toLowerCase()!==p.toLowerCase())&&E(new sM(o,f)),D)try{var U=a.getMessageFormat(D,p,g,u);return U.format(l)}catch(C){return E(new eb('Error formatting default message for: "'.concat(T,'", rendering default message verbatim'),f,o,C)),typeof D=="string"?D:T}return T}try{var U=a.getMessageFormat(M,f,d,pe({formatters:a},u||{}));return U.format(l)}catch(C){E(new eb('Error formatting message: "'.concat(T,'", using ').concat(D?"default message":"id"," as fallback."),f,o,C))}if(D)try{var U=a.getMessageFormat(D,p,g,u);return U.format(l)}catch(C){E(new eb('Error formatting the default message for: "'.concat(T,'", rendering message verbatim'),f,o,C))}return typeof M=="string"?M:typeof D=="string"?D:T},dM=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function oc(n,a,o,l){var u=n.locale,f=n.formats,d=n.onError,m=n.timeZone;l===void 0&&(l={});var p=l.format,g=pe(pe({},m&&{timeZone:m}),p&&Ug(f,a,p,d)),v=fs(l,dM,g);return a==="time"&&!v.hour&&!v.minute&&!v.second&&!v.timeStyle&&!v.dateStyle&&(v=pe(pe({},v),{hour:"numeric",minute:"numeric"})),o(u,v)}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,m=typeof u=="string"?new Date(u||0):u;try{return oc(n,"date",a,d).format(m)}catch(p){n.onError(new er("Error formatting date.",n.locale,p))}return String(m)}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=f===void 0?{}:f,m=typeof u=="string"?new Date(u||0):u;try{return oc(n,"time",a,d).format(m)}catch(p){n.onError(new er("Error formatting time.",n.locale,p))}return String(m)}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=o[2],m=d===void 0?{}:d,p=typeof u=="string"?new Date(u||0):u,g=typeof f=="string"?new Date(f||0):f;try{return oc(n,"dateTimeRange",a,m).formatRange(p,g)}catch(v){n.onError(new er("Error formatting date time range.",n.locale,v))}return String(p)}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,m=typeof u=="string"?new Date(u||0):u;try{return oc(n,"date",a,d).formatToParts(m)}catch(p){n.onError(new er("Error formatting date.",n.locale,p))}return[]}function gM(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,m=typeof u=="string"?new Date(u||0):u;try{return oc(n,"time",a,d).formatToParts(m)}catch(p){n.onError(new er("Error formatting time.",n.locale,p))}return[]}var yM=["style","type","fallback","languageDisplay"];function vM(n,a,o,l){var u=n.locale,f=n.onError,d=Intl.DisplayNames;d||f(new ai(`Intl.DisplayNames is not available in this environment.
|
|
301
301
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
302
|
-
`,zr.MISSING_INTL_API));var m=fs(l,
|
|
302
|
+
`,zr.MISSING_INTL_API));var m=fs(l,yM);try{return a(u,m).of(o)}catch(p){f(new er("Error formatting display name.",u,p))}}var _M=["type","style"],nS=Date.now();function EM(n){return"".concat(nS,"_").concat(n,"_").concat(nS)}function wM(n,a,o,l){l===void 0&&(l={});var u=eT(n,a,o,l).reduce(function(f,d){var m=d.value;return typeof m!="string"?f.push(m):typeof f[f.length-1]=="string"?f[f.length-1]+=m:f.push(m),f},[]);return u.length===1?u[0]:u.length===0?"":u}function eT(n,a,o,l){var u=n.locale,f=n.onError;l===void 0&&(l={});var d=Intl.ListFormat;d||f(new ai(`Intl.ListFormat is not available in this environment.
|
|
303
303
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
304
|
-
`,zr.MISSING_INTL_API));var m=fs(l,
|
|
304
|
+
`,zr.MISSING_INTL_API));var m=fs(l,_M);try{var p={},g=o.map(function(v,E){if(typeof v=="object"){var y=EM(E);return p[y]=v,y}return String(v)});return a(u,m).formatToParts(g).map(function(v){return v.type==="literal"?v:pe(pe({},v),{value:p[v.value]||v.value})})}catch(v){f(new er("Error formatting list.",u,v))}return o}var SM=["type"];function xM(n,a,o,l){var u=n.locale,f=n.onError;l===void 0&&(l={}),Intl.PluralRules||f(new ai(`Intl.PluralRules is not available in this environment.
|
|
305
305
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
306
|
-
`,zr.MISSING_INTL_API));var d=fs(l,
|
|
306
|
+
`,zr.MISSING_INTL_API));var d=fs(l,SM);try{return a(u,d).select(o)}catch(m){f(new er("Error formatting plural.",u,m))}return"other"}var kM=["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,m=!!d&&Ug(u,"relative",d,f)||{},p=fs(o,kM,m);return a(l,p)}function NM(n,a,o,l,u){u===void 0&&(u={}),l||(l="second");var f=Intl.RelativeTimeFormat;f||n.onError(new ai(`Intl.RelativeTimeFormat is not available in this environment.
|
|
307
307
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
308
|
-
`,zr.MISSING_INTL_API));try{return
|
|
308
|
+
`,zr.MISSING_INTL_API));try{return TM(n,a,u).format(o,l)}catch(d){n.onError(new er("Error formatting relative time.",n.locale,d))}return String(o)}var RM=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function tT(n,a,o){var l=n.locale,u=n.formats,f=n.onError;o===void 0&&(o={});var d=o.format,m=d&&Ug(u,"number",d,f)||{},p=fs(o,RM,m);return a(l,p)}function AM(n,a,o,l){l===void 0&&(l={});try{return tT(n,a,l).format(o)}catch(u){n.onError(new er("Error formatting number.",n.locale,u))}return String(o)}function OM(n,a,o,l){l===void 0&&(l={});try{return tT(n,a,l).formatToParts(o)}catch(u){n.onError(new er("Error formatting number.",n.locale,u))}return[]}function CM(n){var a=n?n[Object.keys(n)[0]]:void 0;return typeof a=="string"}function DM(n){n.onWarn&&n.defaultRichTextElements&&CM(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
309
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
|
|
310
|
+
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function MM(n,a){var o=fM(a),l=pe(pe({},Kk),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 oM('"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"),DM(l),pe(pe({},l),{formatters:o,formatNumber:AM.bind(null,l,o.getNumberFormat),formatNumberToParts:OM.bind(null,l,o.getNumberFormat),formatRelativeTime:NM.bind(null,l,o.getRelativeTimeFormat),formatDate:hM.bind(null,l,o.getDateTimeFormat),formatDateToParts:bM.bind(null,l,o.getDateTimeFormat),formatTime:mM.bind(null,l,o.getDateTimeFormat),formatDateTimeRange:pM.bind(null,l,o.getDateTimeFormat),formatTimeToParts:gM.bind(null,l,o.getDateTimeFormat),formatPlural:xM.bind(null,l,o.getPluralRules),formatMessage:sg.bind(null,l,o),$t:sg.bind(null,l,o),formatList:wM.bind(null,l,o.getListFormat),formatListToParts:eT.bind(null,l,o.getListFormat),formatDisplayName:vM.bind(null,l,o.getDisplayNames)})}function UM(n,a,o){if(o===void 0&&(o=Error),!n)throw new o(a)}function nT(n){UM(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var rT=pe(pe({},Kk),{textComponent:I.Fragment}),BM={key:42},LM=function(n){return I.isValidElement(n)?I.createElement(I.Fragment,BM,n):n},jM=function(n){var a;return(a=I.Children.map(n,LM))!==null&&a!==void 0?a:[]};function HM(n){return function(a){return n(I.Children.toArray(a))}}function zM(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 tb={exports:{}},Ke={},rS;function IM(){if(rS)return Ke;rS=1;/** @license React v16.13.1
|
|
311
311
|
* react-is.development.js
|
|
312
312
|
*
|
|
313
313
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
314
314
|
*
|
|
315
315
|
* This source code is licensed under the MIT license found in the
|
|
316
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,m=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,E=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,N=n?Symbol.for("react.memo"):60115,w=n?Symbol.for("react.lazy"):60116,D=n?Symbol.for("react.block"):60121,T=n?Symbol.for("react.fundamental"):60117,M=n?Symbol.for("react.responder"):60118,U=n?Symbol.for("react.scope"):60119;function C(ie){return typeof ie=="string"||typeof ie=="function"||ie===l||ie===y||ie===f||ie===u||ie===E||ie===g||typeof ie=="object"&&ie!==null&&(ie.$$typeof===w||ie.$$typeof===N||ie.$$typeof===d||ie.$$typeof===m||ie.$$typeof===v||ie.$$typeof===T||ie.$$typeof===M||ie.$$typeof===U||ie.$$typeof===D)}function A(ie){if(typeof ie=="object"&&ie!==null){var At=ie.$$typeof;switch(At){case a:var Ir=ie.type;switch(Ir){case p:case y:case l:case f:case u:case E:return Ir;default:var va=Ir&&Ir.$$typeof;switch(va){case m:case v:case w:case N:case d:return va;default:return At}}case o:return At}}}var L=p,F=y,Z=m,J=d,X=a,te=v,ne=l,se=w,he=N,Le=o,Ae=f,W=u,ge=E,fe=!1;function we(ie){return fe||(fe=!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.")),$(ie)||A(ie)===p}function $(ie){return A(ie)===y}function de(ie){return A(ie)===m}function le(ie){return A(ie)===d}function Ge(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===a}function Je(ie){return A(ie)===v}function pt(ie){return A(ie)===l}function Ce(ie){return A(ie)===w}function Mn(ie){return A(ie)===N}function it(ie){return A(ie)===o}function ft(ie){return A(ie)===f}function Mt(ie){return A(ie)===u}function br(ie){return A(ie)===E}Ke.AsyncMode=L,Ke.ConcurrentMode=F,Ke.ContextConsumer=Z,Ke.ContextProvider=J,Ke.Element=X,Ke.ForwardRef=te,Ke.Fragment=ne,Ke.Lazy=se,Ke.Memo=he,Ke.Portal=Le,Ke.Profiler=Ae,Ke.StrictMode=W,Ke.Suspense=ge,Ke.isAsyncMode=we,Ke.isConcurrentMode=$,Ke.isContextConsumer=de,Ke.isContextProvider=le,Ke.isElement=Ge,Ke.isForwardRef=Je,Ke.isFragment=pt,Ke.isLazy=Ce,Ke.isMemo=Mn,Ke.isPortal=it,Ke.isProfiler=ft,Ke.isStrictMode=Mt,Ke.isSuspense=br,Ke.isValidElementType=C,Ke.typeOf=A}(),Ke}var Kw;function LM(){return Kw||(Kw=1,Kp.exports=BM()),Kp.exports}var Jp,Jw;function jM(){if(Jw)return Jp;Jw=1;var n=LM(),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(w){return n.isMemo(w)?u:f[w.$$typeof]||a}var m=Object.defineProperty,p=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,g=Object.prototype;function N(w,D,T){if(typeof D!="string"){if(g){var M=E(D);M&&M!==g&&N(w,M,T)}var U=p(D);y&&(U=U.concat(y(D)));for(var C=d(w),A=d(D),L=0;L<U.length;++L){var F=U[L];if(!o[F]&&!(T&&T[F])&&!(A&&A[F])&&!(C&&C[F])){var Z=v(D,F);try{m(w,F,Z)}catch{}}}}return w}return Jp=N,Jp}jM();var Og=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=V.createContext(null)):V.createContext(null);Og.Consumer;var HM=Og.Provider,zM=HM,VM=Og;function Wf(){var n=V.useContext(VM);return Qk(n),n}var ig;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(ig||(ig={}));var og;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(og||(og={}));function Kk(n){var a=function(o){var l=Wf(),u=o.value,f=o.children,d=Qf(o,["value","children"]),m=typeof u=="string"?new Date(u||0):u,p=n==="formatDate"?l.formatDateToParts(m,d):l.formatTimeToParts(m,d);return f(p)};return a.displayName=og[n],a}function sc(n){var a=function(o){var l=Wf(),u=o.value,f=o.children,d=Qf(o,["value","children"]),m=l[n](u,d);if(typeof f=="function")return f(m);var p=l.textComponent||V.Fragment;return V.createElement(p,null,m)};return a.displayName=ig[n],a}function Jk(n){return n&&Object.keys(n).reduce(function(a,o){var l=n[o];return a[o]=Fk(l)?MM(l):l,a},{})}var eS=function(n,a,o,l){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var d=Jk(l),m=ag.apply(void 0,Lr([n,a,o,d],u,!1));return Array.isArray(m)?DM(m):m},tS=function(n,a){var o=n.defaultRichTextElements,l=Qf(n,["defaultRichTextElements"]),u=Jk(o),f=RM(pe(pe(pe({},Wk),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 pe(pe({},f),{formatMessage:eS.bind(null,d,f.formatters),$t:eS.bind(null,d,f.formatters)})};function eb(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 IM=function(n){Jn(a,n);function a(){var o=n!==null&&n.apply(this,arguments)||this;return o.cache=Yk(),o.state={cache:o.cache,intl:tS(eb(o.props),o.cache),prevConfig:eb(o.props)},o}return a.getDerivedStateFromProps=function(o,l){var u=l.prevConfig,f=l.cache,d=eb(o);return UM(u,d)?null:{intl:tS(d,f),prevConfig:d}},a.prototype.render=function(){return Qk(this.state.intl),V.createElement(zM,{value:this.state.intl},this.props.children)},a.displayName="IntlProvider",a.defaultProps=Wk,a}(V.PureComponent);sc("formatDate");sc("formatTime");sc("formatNumber");sc("formatList");sc("formatDisplayName");Kk("formatDate");Kk("formatTime");const GM="_app_1rj0t_1",qM={app:GM},ds=iD,Kn=lD,eT="%[a-f0-9]{2}",nS=new RegExp("("+eT+")|([^%]+?)","gi"),rS=new RegExp("("+eT+")+","gi");function sg(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([],sg(o),sg(l))}function FM(n){try{return decodeURIComponent(n)}catch{let a=n.match(nS)||[];for(let o=1;o<a.length;o++)n=sg(a,o).join(""),a=n.match(nS)||[];return n}}function PM(n){const a={"%FE%FF":"��","%FF%FE":"��"};let o=rS.exec(n);for(;o;){try{a[o[0]]=decodeURIComponent(o[0])}catch{const u=FM(o[0]);u!==o[0]&&(a[o[0]]=u)}o=rS.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 $M(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return PM(n)}}function YM(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 tT(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 XM=n=>n==null,ZM=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`),lg=Symbol("encodeFragmentIdentifier");function QM(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,[Nt(a,n),"[",u,"]"].join("")]:[...o,[Nt(a,n),"[",Nt(u,n),"]=",Nt(l,n)].join("")]};case"bracket":return a=>(o,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?o:l===null?[...o,[Nt(a,n),"[]"].join("")]:[...o,[Nt(a,n),"[]=",Nt(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,[Nt(a,n),":list="].join("")]:[...o,[Nt(a,n),":list=",Nt(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?[[Nt(o,n),a,Nt(u,n)].join("")]:[[l,Nt(u,n)].join(n.arrayFormatSeparator)])}default:return a=>(o,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?o:l===null?[...o,Nt(a,n)]:[...o,[Nt(a,n),"=",Nt(l,n)].join("")]}}function WM(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&&pa(l,n).includes(n.arrayFormatSeparator);l=d?pa(l,n):l;const m=f||d?l.split(n.arrayFormatSeparator).map(p=>pa(p,n)):l===null?l:pa(l,n);u[o]=m};case"bracket-separator":return(o,l,u)=>{const f=/(\[])$/.test(o);if(o=o.replace(/\[]$/,""),!f){u[o]=l&&pa(l,n);return}const d=l===null?[]:pa(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 nT(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Nt(n,a){return a.encode?a.strict?ZM(n):encodeURIComponent(n):n}function pa(n,a){return a.decode?$M(n):n}function rT(n){return Array.isArray(n)?n.sort():typeof n=="object"?rT(Object.keys(n)).sort((a,o)=>Number(a)-Number(o)).map(a=>n[a]):n}function aT(n){const a=n.indexOf("#");return a!==-1&&(n=n.slice(0,a)),n}function KM(n){let a="";const o=n.indexOf("#");return o!==-1&&(a=n.slice(o)),a}function aS(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 Cg(n){n=aT(n);const a=n.indexOf("?");return a===-1?"":n.slice(a+1)}function Dg(n,a){a={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...a},nT(a.arrayFormatSeparator);const o=WM(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,m]=tT(f,"=");d===void 0&&(d=f),m=m===void 0?null:["comma","separator","bracket-separator"].includes(a.arrayFormat)?m:pa(m,a),o(pa(d,a),m,l)}for(const[u,f]of Object.entries(l))if(typeof f=="object"&&f!==null&&a.types[u]!=="string")for(const[d,m]of Object.entries(f)){const p=a.types[u]?a.types[u].replace("[]",""):void 0;f[d]=aS(m,a,p)}else typeof f=="object"&&f!==null&&a.types[u]==="string"?l[u]=Object.values(f).join(a.arrayFormatSeparator):l[u]=aS(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)?rT(d):d,u},Object.create(null))}function iT(n,a){if(!n)return"";a={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...a},nT(a.arrayFormatSeparator);const o=d=>a.skipNull&&XM(n[d])||a.skipEmptyString&&n[d]==="",l=QM(a),u={};for(const[d,m]of Object.entries(n))o(d)||(u[d]=m);const f=Object.keys(u);return a.sort!==!1&&f.sort(a.sort),f.map(d=>{const m=n[d];return m===void 0?"":m===null?Nt(d,a):Array.isArray(m)?m.length===0&&a.arrayFormat==="bracket-separator"?Nt(d,a)+"[]":m.reduce(l(d),[]).join("&"):Nt(d,a)+"="+Nt(m,a)}).filter(d=>d.length>0).join("&")}function oT(n,a){var u;a={decode:!0,...a};let[o,l]=tT(n,"#");return o===void 0&&(o=n),{url:((u=o==null?void 0:o.split("?"))==null?void 0:u[0])??"",query:Dg(Cg(n),a),...a&&a.parseFragmentIdentifier&&l?{fragmentIdentifier:pa(l,a)}:{}}}function sT(n,a){a={encode:!0,strict:!0,[lg]:!0,...a};const o=aT(n.url).split("?")[0]||"",l=Cg(n.url),u={...Dg(l,{sort:!1,...a}),...n.query};let f=iT(u,a);f&&(f=`?${f}`);let d=KM(n.url);if(typeof n.fragmentIdentifier=="string"){const m=new URL(o);m.hash=n.fragmentIdentifier,d=a[lg]?m.hash:`#${n.fragmentIdentifier}`}return`${o}${f}${d}`}function lT(n,a,o){o={parseFragmentIdentifier:!0,[lg]:!1,...o};const{url:l,query:u,fragmentIdentifier:f}=oT(n,o);return sT({url:l,query:YM(u,a),fragmentIdentifier:f},o)}function JM(n,a,o){const l=Array.isArray(a)?u=>!a.includes(u):(u,f)=>!a(u,f);return lT(n,l,o)}const Kf=Object.freeze(Object.defineProperty({__proto__:null,exclude:JM,extract:Cg,parse:Dg,parseUrl:oT,pick:lT,stringify:iT,stringifyUrl:sT},Symbol.toStringTag,{value:"Module"}));var fr={},dr={},tt={},cf={},_e={},iS;function Dn(){return iS||(iS=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.GUEST_LOCALE_CHANGED=_e.DRAWER_CLOSE=_e.DRAWER_OPEN=_e.CONVERSATION_RATING_FROM_GUEST=_e.TRANSCRIPT_ITEM_GUEST_REACTION=_e.TRANSCRIPT_MAIL_REQUEST=_e.INBOX_CONNECT_REQUEST=_e.RESTART_CHAT_REQUEST=_e.EVENT_TO_GUEST=_e.NLU_REQUEST_EVENT=_e.EXPERTS_DISCONNECTED=_e.EXPERTS_DISCONNECT_REQUEST=_e.EXPERTS_CONNECTED=_e.EXPERTS_CONNECT_REQUEST=_e.MESSAGE_TO_GUEST=_e.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=_e.MESSAGE_FROM_GUEST=_e.GUEST_FEEDBACK_RESPONSE=_e.GUEST_DISCONNECTED=_e.GUEST_CONNECTED=_e.TYPING_OFF=_e.TYPING_ON=void 0,_e.TYPING_ON="core.typing.on",_e.TYPING_OFF="core.typing.off",_e.GUEST_CONNECTED="core.guest.connected",_e.GUEST_DISCONNECTED="core.guest.disconnected",_e.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",_e.MESSAGE_FROM_GUEST="core.message.from.guest",_e.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",_e.MESSAGE_TO_GUEST="core.message.to.guest",_e.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",_e.EXPERTS_CONNECTED="core.experts.connected",_e.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",_e.EXPERTS_DISCONNECTED="core.experts.disconnected",_e.NLU_REQUEST_EVENT="core.nlu.request.event",_e.EVENT_TO_GUEST="core.event.to.guest",_e.RESTART_CHAT_REQUEST="core.chat.restart.request",_e.INBOX_CONNECT_REQUEST="core.inbox.connect.request",_e.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",_e.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",_e.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",_e.DRAWER_OPEN="core.drawer.open",_e.DRAWER_CLOSE="core.drawer.close",_e.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),_e}var oS;function e3(){if(oS)return cf;oS=1,Object.defineProperty(cf,"__esModule",{value:!0});const n=Dn(),a=()=>({type:n.DRAWER_CLOSE});return cf.default=a,cf}var uf={},sS;function t3(){if(sS)return uf;sS=1,Object.defineProperty(uf,"__esModule",{value:!0});const n=Dn(),a=(o,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:o,intent:l}});return uf.default=a,uf}var ff={},lS;function n3(){if(lS)return ff;lS=1,Object.defineProperty(ff,"__esModule",{value:!0});const n=Dn(),a=o=>({type:n.GUEST_CONNECTED,payload:{sessionId:o}});return ff.default=a,ff}var df={},cS;function r3(){if(cS)return df;cS=1,Object.defineProperty(df,"__esModule",{value:!0});const n=Dn(),a=o=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:o}});return df.default=a,df}var hf={},uS;function a3(){if(uS)return hf;uS=1,Object.defineProperty(hf,"__esModule",{value:!0});const n=Dn(),a=(o,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:o,newLocale:l}});return hf.default=a,hf}var mf={},fS;function i3(){if(fS)return mf;fS=1,Object.defineProperty(mf,"__esModule",{value:!0});const n=Dn(),a=o=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:o}}});return mf.default=a,mf}var pf={},mt={},dS;function Mg(){if(dS)return mt;dS=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(E,g,N=[],w=[]){Xe(this,"type");Xe(this,"sender");Xe(this,"sources");Xe(this,"quickReplies");this.type=E,this.sender=g,this.sources=N,this.quickReplies=w}addQuickReply(E,g){this.quickReplies.push({label:E,payload:g})}}mt.Message=n;class a extends n{constructor(g,N,w=[],D=[]){super(p.TEXT,N,w,D);Xe(this,"text");this.text=g}}mt.TextMessage=a;class o extends n{constructor(g,N){super(p.DETAIL,N);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,N,w=[],D=[]){super(p.MARKDOWN,N,w,D);Xe(this,"markdown");this.markdown=g}}mt.MarkdownMessage=l;class u extends n{constructor(g,N){super(p.VIDEO,N);Xe(this,"url");this.url=g}}mt.VideoMessage=u;class f extends n{constructor(g,N){super(p.IMAGE,N);Xe(this,"url");this.url=g}}mt.ImageMessage=f;class d extends n{constructor(g,N){super(p.FILE,N);Xe(this,"url");this.url=g}}mt.FileMessage=d;class m extends n{constructor(g,N){super(p.AUDIO,N);Xe(this,"url");this.url=g}}mt.AudioMessage=m;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 E=v;return`${E.title} // ${E.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={},hS;function Ug(){if(hS)return Rn;hS=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.UserType=Rn.PersonUser=Rn.GuestUser=Rn.BotUser=Rn.User=void 0;class n{constructor(d,m,p,y){Xe(this,"type");Xe(this,"id");Xe(this,"name");Xe(this,"avatar");this.type=d,this.id=m,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,m,p){super(u.PERSON,d,m,p)}}Rn.PersonUser=l;var u;return function(f){f.GUEST="GUEST",f.BOT="BOT",f.PERSON="PERSON"}(u||(Rn.UserType=u={})),Rn}var mS;function o3(){if(mS)return pf;mS=1,Object.defineProperty(pf,"__esModule",{value:!0});const n=Mg(),a=Ug(),o=Dn(),l=u=>{const f=new n.TextMessage(u,new a.GuestUser);return{type:o.MESSAGE_FROM_GUEST,message:f}};return pf.default=l,pf}var bf={},pS;function s3(){if(pS)return bf;pS=1,Object.defineProperty(bf,"__esModule",{value:!0});const n=Mg(),a=Ug(),o=Dn(),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 bf.default=l,bf}var gf={},bS;function l3(){if(bS)return gf;bS=1,Object.defineProperty(gf,"__esModule",{value:!0});const n=Dn(),a=o=>({type:n.NLU_REQUEST_EVENT,event:o});return gf.default=a,gf}var yf={},gS;function c3(){if(gS)return yf;gS=1,Object.defineProperty(yf,"__esModule",{value:!0});const n=Dn(),a=()=>({type:n.RESTART_CHAT_REQUEST});return yf.default=a,yf}var vf={},yS;function u3(){if(yS)return vf;yS=1,Object.defineProperty(vf,"__esModule",{value:!0});const n=Dn(),a=o=>({type:n.MESSAGE_TO_GUEST,message:o});return vf.default=a,vf}var _f={},vS;function f3(){if(vS)return _f;vS=1,Object.defineProperty(_f,"__esModule",{value:!0});const n=Dn(),a=(o,l)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:o,reaction:l}});return _f.default=a,_f}var _S;function d3(){if(_S)return tt;_S=1;var n=tt&&tt.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(tt,"__esModule",{value:!0}),tt.transcriptItemGuestReaction=tt.sendMessageToGuest=tt.restartChatRequest=tt.requestNLUEvent=tt.receiveTextMessageWithoutAnalysisFromGuest=tt.receiveTextMessageFromGuest=tt.openDrawer=tt.guestLocaleChanged=tt.guestDisconnected=tt.guestConnected=tt.feedbackFromGuestResponse=tt.closeDrawer=void 0;const a=n(e3());tt.closeDrawer=a.default;const o=n(t3());tt.feedbackFromGuestResponse=o.default;const l=n(n3());tt.guestConnected=l.default;const u=n(r3());tt.guestDisconnected=u.default;const f=n(a3());tt.guestLocaleChanged=f.default;const d=n(i3());tt.openDrawer=d.default;const m=n(o3());tt.receiveTextMessageFromGuest=m.default;const p=n(s3());tt.receiveTextMessageWithoutAnalysisFromGuest=p.default;const y=n(l3());tt.requestNLUEvent=y.default;const v=n(c3());tt.restartChatRequest=v.default;const E=n(u3());tt.sendMessageToGuest=E.default;const g=n(f3());return tt.transcriptItemGuestReaction=g.default,tt}var tb={},ES;function h3(){return ES||(ES=1,Object.defineProperty(tb,"__esModule",{value:!0})),tb}var wS;function m3(){return wS||(wS=1,function(n){var a=dr&&dr.__createBinding||(Object.create?function(f,d,m,p){p===void 0&&(p=m);var y=Object.getOwnPropertyDescriptor(d,m);(!y||("get"in y?!d.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return d[m]}}),Object.defineProperty(f,p,y)}:function(f,d,m,p){p===void 0&&(p=m),f[p]=d[m]}),o=dr&&dr.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),l=dr&&dr.__importStar||function(){var f=function(d){return f=Object.getOwnPropertyNames||function(m){var p=[];for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(p[p.length]=y);return p},f(d)};return function(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var p=f(d),y=0;y<p.length;y++)p[y]!=="default"&&a(m,d,p[y]);return o(m,d),m}}(),u=dr&&dr.__exportStar||function(f,d){for(var m in f)m!=="default"&&!Object.prototype.hasOwnProperty.call(d,m)&&a(d,f,m)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=l(d3()),n.ActionTypes=l(Dn()),u(h3(),n)}(dr)),dr}var An={},nb={},SS;function p3(){return SS||(SS=1,Object.defineProperty(nb,"__esModule",{value:!0})),nb}var Gl={},xS;function b3(){if(xS)return Gl;xS=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.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 Gl.NullableKnowledgeBaseAdapter=n,Gl}var kS;function g3(){if(kS)return An;kS=1;var n=An&&An.__createBinding||(Object.create?function(u,f,d,m){m===void 0&&(m=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,m,p)}:function(u,f,d,m){m===void 0&&(m=d),u[m]=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 m=[];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(m[m.length]=p);return m},u(f)};return function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var m=u(f),p=0;p<m.length;p++)m[p]!=="default"&&n(d,f,m[p]);return a(d,f),d}}();Object.defineProperty(An,"__esModule",{value:!0}),An.NullableCmsAdapter=An.KnowledgeBase=void 0,An.KnowledgeBase=o(p3());const l=b3();return An.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},An}var Fi={},rb={},TS;function y3(){return TS||(TS=1,Object.defineProperty(rb,"__esModule",{value:!0})),rb}var ab={},NS;function v3(){return NS||(NS=1,Object.defineProperty(ab,"__esModule",{value:!0})),ab}var ib={},RS;function _3(){return RS||(RS=1,Object.defineProperty(ib,"__esModule",{value:!0})),ib}var ob={},AS;function E3(){return AS||(AS=1,Object.defineProperty(ob,"__esModule",{value:!0})),ob}var ql={},OS;function w3(){if(OS)return ql;OS=1,Object.defineProperty(ql,"__esModule",{value:!0}),ql.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 ql.checkMiddlewareCondition=n,ql}var sb={},CS;function S3(){return CS||(CS=1,Object.defineProperty(sb,"__esModule",{value:!0})),sb}var lb={},DS;function x3(){return DS||(DS=1,Object.defineProperty(lb,"__esModule",{value:!0})),lb}var cb={},MS;function k3(){return MS||(MS=1,Object.defineProperty(cb,"__esModule",{value:!0})),cb}var US;function T3(){return US||(US=1,function(n){var a=Fi&&Fi.__createBinding||(Object.create?function(l,u,f,d){d===void 0&&(d=f);var m=Object.getOwnPropertyDescriptor(u,f);(!m||("get"in m?!u.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,d,m)}: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(y3(),n),o(v3(),n),o(_3(),n),o(E3(),n),o(w3(),n),o(S3(),n),o(x3(),n),o(k3(),n)}(Fi)),Fi}var Pi={},hr={},BS;function N3(){if(BS)return hr;BS=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.ButtonTypeEnum=hr.PostbackButton=hr.UrlButton=hr.Button=void 0;class n{constructor(f,d){Xe(this,"title");Xe(this,"type");this.title=f,this.type=d}}hr.Button=n;class a extends n{constructor(d,m){super(d,l.WEB_URL);Xe(this,"url");this.url=m}}hr.UrlButton=a;class o extends n{constructor(d,m){super(d,l.POSTBACK);Xe(this,"payload");this.payload=m}}hr.PostbackButton=o;var l;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(l||(hr.ButtonTypeEnum=l={})),hr}var ub={},LS;function R3(){return LS||(LS=1,Object.defineProperty(ub,"__esModule",{value:!0})),ub}var Fl={},jS;function A3(){if(jS)return Fl;jS=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.SatisfactionEnum=void 0;var n;return function(a){a.GOOD="GOOD",a.BAD="BAD"}(n||(Fl.SatisfactionEnum=n={})),Fl}var HS;function zS(){return HS||(HS=1,function(n){var a=Pi&&Pi.__createBinding||(Object.create?function(l,u,f,d){d===void 0&&(d=f);var m=Object.getOwnPropertyDescriptor(u,f);(!m||("get"in m?!u.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,d,m)}:function(l,u,f,d){d===void 0&&(d=f),l[d]=u[f]}),o=Pi&&Pi.__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(N3(),n),o(R3(),n),o(A3(),n),o(Mg(),n),o(Ug(),n)}(Pi)),Pi}var VS;function O3(){return VS||(VS=1,function(n){var a=fr&&fr.__createBinding||(Object.create?function(f,d,m,p){p===void 0&&(p=m);var y=Object.getOwnPropertyDescriptor(d,m);(!y||("get"in y?!d.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return d[m]}}),Object.defineProperty(f,p,y)}:function(f,d,m,p){p===void 0&&(p=m),f[p]=d[m]}),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.__exportStar||function(f,d){for(var m in f)m!=="default"&&!Object.prototype.hasOwnProperty.call(d,m)&&a(d,f,m)},u=fr&&fr.__importStar||function(){var f=function(d){return f=Object.getOwnPropertyNames||function(m){var p=[];for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(p[p.length]=y);return p},f(d)};return function(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var p=f(d),y=0;y<p.length;y++)p[y]!=="default"&&a(m,d,p[y]);return o(m,d),m}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,l(m3(),n),n.CMS=u(g3()),l(T3(),n),l(zS(),n),n.Model=u(zS())}(fr)),fr}var Ie=O3();const cT=n=>a=>(n.payload.type!==Ie.ActionTypes.MESSAGE_FROM_GUEST&&a(Ie.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),a(n.payload)),uT=n=>(a,o)=>{const{quickReplies:l}=o().chat,u=l.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return a(u?cT({...u,label:n}):Ie.Actions.receiveTextMessageFromGuest(n))},Bg="MESSAGE_TO_PARENT_PAGE",Lg="RESTORE_PREVIOUS_CHAT_MESSAGES",jg="AUDIO_MESSAGE_FROM_USER",C3="EXPORT_TRANSCRIPT",Hg="RECEIVE_SPEECH_TRANSCRIPTION",zg="ENABLE_CONVERSATION_RATING",fT="LOAD_SOURCE_INFOS_RESPONSE",Vg="LOAD_SOURCE_INFOS_ERROR",Ig="LOAD_SOURCE_INFOS_REQUEST",Gg="CLOSE_SOURCE_INFOS",D3="webclient.get.started",dT="webclient.window.expand",hT="webclient.window.close",mT="webclient.transcript.pdf.download",M3=[Bg,Lg,jg,C3,Hg,zg,Ig,Gg],U3=n=>({type:jg,buffer:n}),B3=n=>({type:Hg,transcription:n}),L3=n=>({type:Ie.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),j3=n=>({type:mT,payload:{clientName:n}}),H3=({rating:n})=>({type:zg,payload:{rating:n}}),z3=(n,a)=>({type:Ie.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:a}}),pT=n=>Ie.Actions.requestNLUEvent(n),V3=n=>({type:Lg,messages:n}),I3=n=>{switch(n.type){case Ie.ButtonTypeEnum.WEB_URL:return bT(n.url);case Ie.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},G3=n=>bT(n),bT=n=>({type:Bg,message:{type:"webclient.change.url",url:n}});var q3=typeof Symbol=="function"&&Symbol.observable||"@@observable",IS=q3,fb=()=>Math.random().toString(36).substring(7).split("").join("."),F3={INIT:`@@redux/INIT${fb()}`,REPLACE:`@@redux/REPLACE${fb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fb()}`},Ki=F3;function lc(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 P3(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(X3(n))return"date";if(Y3(n))return"error";const o=$3(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 $3(n){return typeof n.constructor=="function"?n.constructor.name:null}function Y3(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function X3(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function ni(n){let a=typeof n;return a=P3(n),a}function gT(n,a,o){if(typeof n!="function")throw new Error(`Expected the root reducer to be a function. Instead, received: '${ni(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: '${ni(o)}'`);return o(gT)(n,a)}let l=n,u=a,f=new Map,d=f,m=0,p=!1;function y(){d===f&&(d=new Map,f.forEach((T,M)=>{d.set(M,T)}))}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 E(T){if(typeof T!="function")throw new Error(`Expected the listener to be a function. Instead, received: '${ni(T)}'`);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 M=!0;y();const U=m++;return d.set(U,T),function(){if(M){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.");M=!1,y(),d.delete(U),f=null}}}function g(T){if(!lc(T))throw new Error(`Actions must be plain objects. Instead, the actual type was: '${ni(T)}'. 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 T.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof T.type!="string")throw new Error(`Action "type" property must be a string. Instead, the actual type was: '${ni(T.type)}'. Value was: '${T.type}' (stringified)`);if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,u=l(u,T)}finally{p=!1}return(f=d).forEach(U=>{U()}),T}function N(T){if(typeof T!="function")throw new Error(`Expected the nextReducer to be a function. Instead, received: '${ni(T)}`);l=T,g({type:Ki.REPLACE})}function w(){const T=E;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(`Expected the observer to be an object. Instead, received: '${ni(M)}'`);function U(){const A=M;A.next&&A.next(v())}return U(),{unsubscribe:T(U)}},[IS](){return this}}}return g({type:Ki.INIT}),{dispatch:g,subscribe:E,getState:v,replaceReducer:N,[IS]:w}}function GS(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function Z3(n,a,o,l){const u=Object.keys(a),f=o&&o.type===Ki.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(!lc(n))return`The ${f} has unexpected type of "${ni(n)}". Expected argument to be an object with the following keys: "${u.join('", "')}"`;const d=Object.keys(n).filter(m=>!a.hasOwnProperty(m)&&!l[m]);if(d.forEach(m=>{l[m]=!0}),!(o&&o.type===Ki.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 Q3(n){Object.keys(n).forEach(a=>{const o=n[a];if(typeof o(void 0,{type:Ki.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:Ki.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 '${Ki.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 yT(n){const a=Object.keys(n),o={};for(let d=0;d<a.length;d++){const m=a[d];typeof n[m]>"u"&&GS(`No reducer provided for key "${m}"`),typeof n[m]=="function"&&(o[m]=n[m])}const l=Object.keys(o);let u;u={};let f;try{Q3(o)}catch(d){f=d}return function(m={},p){if(f)throw f;{const E=Z3(m,o,p,u);E&&GS(E)}let y=!1;const v={};for(let E=0;E<l.length;E++){const g=l[E],N=o[g],w=m[g],D=N(w,p);if(typeof D>"u"){const T=p&&p.type;throw new Error(`When called with an action of type ${T?`"${String(T)}"`:"(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]=D,y=y||D!==w}return y=y||l.length!==Object.keys(m).length,y?v:m}}function Gf(...n){return n.length===0?a=>a:n.length===1?n[0]:n.reduce((a,o)=>(...l)=>a(o(...l)))}function W3(...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)},m=n.map(p=>p(d));return f=Gf(...m)(u.dispatch),{...u,dispatch:f}}}function vT(n){return lc(n)&&"type"in n&&typeof n.type=="string"}var _T=Symbol.for("immer-nothing"),qS=Symbol.for("immer-draftable"),On=Symbol.for("immer-state"),K3=[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=K3[n],l=typeof o=="function"?o.apply(null,a):o;throw new Error(`[Immer] ${l}`)}}var cs=Object.getPrototypeOf;function eo(n){return!!n&&!!n[On]}function ya(n){var a;return n?ET(n)||Array.isArray(n)||!!n[qS]||!!((a=n.constructor)!=null&&a[qS])||ed(n)||td(n):!1}var J3=Object.prototype.constructor.toString();function ET(n){if(!n||typeof n!="object")return!1;const a=cs(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)===J3}function qf(n,a){Jf(n)===0?Reflect.ownKeys(n).forEach(o=>{a(o,n[o],n)}):n.forEach((o,l)=>a(l,o,n))}function Jf(n){const a=n[On];return a?a.type_:Array.isArray(n)?1:ed(n)?2:td(n)?3:0}function cg(n,a){return Jf(n)===2?n.has(a):Object.prototype.hasOwnProperty.call(n,a)}function wT(n,a,o){const l=Jf(n);l===2?n.set(a,o):l===3?n.add(o):n[a]=o}function eU(n,a){return n===a?n!==0||1/n===1/a:n!==n&&a!==a}function ed(n){return n instanceof Map}function td(n){return n instanceof Set}function Zi(n){return n.copy_||n.base_}function ug(n,a){if(ed(n))return new Map(n);if(td(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const o=ET(n);if(a===!0||a==="class_only"&&!o){const l=Object.getOwnPropertyDescriptors(n);delete l[On];let u=Reflect.ownKeys(l);for(let f=0;f<u.length;f++){const d=u[f],m=l[d];m.writable===!1&&(m.writable=!0,m.configurable=!0),(m.get||m.set)&&(l[d]={configurable:!0,writable:!0,enumerable:m.enumerable,value:n[d]})}return Object.create(cs(n),l)}else{const l=cs(n);if(l!==null&&o)return{...n};const u=Object.create(l);return Object.assign(u,n)}}function qg(n,a=!1){return nd(n)||eo(n)||!ya(n)||(Jf(n)>1&&(n.set=n.add=n.clear=n.delete=tU),Object.freeze(n),a&&Object.entries(n).forEach(([o,l])=>qg(l,!0))),n}function tU(){gn(2)}function nd(n){return Object.isFrozen(n)}var nU={};function to(n){const a=nU[n];return a||gn(0,n),a}var tc;function ST(){return tc}function rU(n,a){return{drafts_:[],parent_:n,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function FS(n,a){a&&(to("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=a)}function fg(n){dg(n),n.drafts_.forEach(aU),n.drafts_=null}function dg(n){n===tc&&(tc=n.parent_)}function PS(n){return tc=rU(tc,n)}function aU(n){const a=n[On];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function $S(n,a){a.unfinalizedDrafts_=a.drafts_.length;const o=a.drafts_[0];return n!==void 0&&n!==o?(o[On].modified_&&(fg(a),gn(4)),ya(n)&&(n=Ff(a,n),a.parent_||Pf(a,n)),a.patches_&&to("Patches").generateReplacementPatches_(o[On].base_,n,a.patches_,a.inversePatches_)):n=Ff(a,o,[]),fg(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),n!==_T?n:void 0}function Ff(n,a,o){if(nd(a))return a;const l=a[On];if(!l)return qf(a,(u,f)=>YS(n,l,a,u,f,o)),a;if(l.scope_!==n)return a;if(!l.modified_)return Pf(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),qf(f,(m,p)=>YS(n,l,u,m,p,o,d)),Pf(n,u,!1),o&&n.patches_&&to("Patches").generatePatches_(l,o,n.patches_,n.inversePatches_)}return l.copy_}function YS(n,a,o,l,u,f,d){if(u===o&&gn(5),eo(u)){const m=f&&a&&a.type_!==3&&!cg(a.assigned_,l)?f.concat(l):void 0,p=Ff(n,u,m);if(wT(o,l,p),eo(p))n.canAutoFreeze_=!1;else return}else d&&o.add(u);if(ya(u)&&!nd(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;Ff(n,u),(!a||!a.scope_.parent_)&&typeof l!="symbol"&&Object.prototype.propertyIsEnumerable.call(o,l)&&Pf(n,u)}}function Pf(n,a,o=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&qg(a,o)}function iU(n,a){const o=Array.isArray(n),l={type_:o?1:0,scope_:a?a.scope_:ST(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,f=Fg;o&&(u=[l],f=nc);const{revoke:d,proxy:m}=Proxy.revocable(u,f);return l.draft_=m,l.revoke_=d,m}var Fg={get(n,a){if(a===On)return n;const o=Zi(n);if(!cg(o,a))return oU(n,o,a);const l=o[a];return n.finalized_||!ya(l)?l:l===db(n.base_,a)?(hb(n),n.copy_[a]=mg(l,n)):l},has(n,a){return a in Zi(n)},ownKeys(n){return Reflect.ownKeys(Zi(n))},set(n,a,o){const l=xT(Zi(n),a);if(l!=null&&l.set)return l.set.call(n.draft_,o),!0;if(!n.modified_){const u=db(Zi(n),a),f=u==null?void 0:u[On];if(f&&f.base_===o)return n.copy_[a]=o,n.assigned_[a]=!1,!0;if(eU(o,u)&&(o!==void 0||cg(n.base_,a)))return!0;hb(n),hg(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 db(n.base_,a)!==void 0||a in n.base_?(n.assigned_[a]=!1,hb(n),hg(n)):delete n.assigned_[a],n.copy_&&delete n.copy_[a],!0},getOwnPropertyDescriptor(n,a){const o=Zi(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 cs(n.base_)},setPrototypeOf(){gn(12)}},nc={};qf(Fg,(n,a)=>{nc[n]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});nc.deleteProperty=function(n,a){return isNaN(parseInt(a))&&gn(13),nc.set.call(this,n,a,void 0)};nc.set=function(n,a,o){return a!=="length"&&isNaN(parseInt(a))&&gn(14),Fg.set.call(this,n[0],a,o,n[0])};function db(n,a){const o=n[On];return(o?Zi(o):n)[a]}function oU(n,a,o){var u;const l=xT(a,o);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(n.draft_):void 0}function xT(n,a){if(!(a in n))return;let o=cs(n);for(;o;){const l=Object.getOwnPropertyDescriptor(o,a);if(l)return l;o=cs(o)}}function hg(n){n.modified_||(n.modified_=!0,n.parent_&&hg(n.parent_))}function hb(n){n.copy_||(n.copy_=ug(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var sU=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(ya(a)){const f=PS(this),d=mg(a,void 0);let m=!0;try{u=o(d),m=!1}finally{m?fg(f):dg(f)}return FS(f,l),$S(u,f)}else if(!a||typeof a!="object"){if(u=o(a),u===void 0&&(u=a),u===_T&&(u=void 0),this.autoFreeze_&&qg(u,!0),l){const f=[],d=[];to("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,...m)=>this.produceWithPatches(d,p=>a(p,...m));let l,u;return[this.produce(a,o,(d,m)=>{l=d,u=m}),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){ya(n)||gn(8),eo(n)&&(n=lU(n));const a=PS(this),o=mg(n,void 0);return o[On].isManual_=!0,dg(a),o}finishDraft(n,a){const o=n&&n[On];(!o||!o.isManual_)&&gn(9);const{scope_:l}=o;return FS(l,a),$S(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=to("Patches").applyPatches_;return eo(n)?l(n,a):this.produce(n,u=>l(u,a))}};function mg(n,a){const o=ed(n)?to("MapSet").proxyMap_(n,a):td(n)?to("MapSet").proxySet_(n,a):iU(n,a);return(a?a.scope_:ST()).drafts_.push(o),o}function lU(n){return eo(n)||gn(10,n),kT(n)}function kT(n){if(!ya(n)||nd(n))return n;const a=n[On];let o;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,o=ug(n,a.scope_.immer_.useStrictShallowCopy_)}else o=ug(n,!0);return qf(o,(l,u)=>{wT(o,l,kT(u))}),a&&(a.finalized_=!1),o}var Cn=new sU,TT=Cn.produce;Cn.produceWithPatches.bind(Cn);Cn.setAutoFreeze.bind(Cn);Cn.setUseStrictShallowCopy.bind(Cn);Cn.applyPatches.bind(Cn);Cn.createDraft.bind(Cn);Cn.finishDraft.bind(Cn);function NT(n){return({dispatch:o,getState:l})=>u=>f=>typeof f=="function"?f(o,l,n):u(f)}var cU=NT(),uU=NT,fU=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gf:Gf.apply(null,arguments)},dU=n=>n&&typeof n.match=="function";function XS(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=>vT(l)&&l.type===n,o}function hU(n){return typeof n=="function"&&"type"in n&&dU(n)}function mU(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
|
|
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,m=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,v=n?Symbol.for("react.forward_ref"):60112,E=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,N=n?Symbol.for("react.memo"):60115,w=n?Symbol.for("react.lazy"):60116,D=n?Symbol.for("react.block"):60121,T=n?Symbol.for("react.fundamental"):60117,M=n?Symbol.for("react.responder"):60118,U=n?Symbol.for("react.scope"):60119;function C(ie){return typeof ie=="string"||typeof ie=="function"||ie===l||ie===g||ie===f||ie===u||ie===E||ie===y||typeof ie=="object"&&ie!==null&&(ie.$$typeof===w||ie.$$typeof===N||ie.$$typeof===d||ie.$$typeof===m||ie.$$typeof===v||ie.$$typeof===T||ie.$$typeof===M||ie.$$typeof===U||ie.$$typeof===D)}function A(ie){if(typeof ie=="object"&&ie!==null){var At=ie.$$typeof;switch(At){case a:var Vr=ie.type;switch(Vr){case p:case g:case l:case f:case u:case E:return Vr;default:var va=Vr&&Vr.$$typeof;switch(va){case m:case v:case w:case N:case d:return va;default:return At}}case o:return At}}}var L=p,F=g,Z=m,J=d,X=a,te=v,ne=l,se=w,he=N,Le=o,Ae=f,W=u,ge=E,fe=!1;function we(ie){return fe||(fe=!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.")),$(ie)||A(ie)===p}function $(ie){return A(ie)===g}function de(ie){return A(ie)===m}function le(ie){return A(ie)===d}function Ge(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===a}function Je(ie){return A(ie)===v}function pt(ie){return A(ie)===l}function Ce(ie){return A(ie)===w}function Un(ie){return A(ie)===N}function it(ie){return A(ie)===o}function ft(ie){return A(ie)===f}function Mt(ie){return A(ie)===u}function br(ie){return A(ie)===E}Ke.AsyncMode=L,Ke.ConcurrentMode=F,Ke.ContextConsumer=Z,Ke.ContextProvider=J,Ke.Element=X,Ke.ForwardRef=te,Ke.Fragment=ne,Ke.Lazy=se,Ke.Memo=he,Ke.Portal=Le,Ke.Profiler=Ae,Ke.StrictMode=W,Ke.Suspense=ge,Ke.isAsyncMode=we,Ke.isConcurrentMode=$,Ke.isContextConsumer=de,Ke.isContextProvider=le,Ke.isElement=Ge,Ke.isForwardRef=Je,Ke.isFragment=pt,Ke.isLazy=Ce,Ke.isMemo=Un,Ke.isPortal=it,Ke.isProfiler=ft,Ke.isStrictMode=Mt,Ke.isSuspense=br,Ke.isValidElementType=C,Ke.typeOf=A}(),Ke}var aS;function VM(){return aS||(aS=1,tb.exports=IM()),tb.exports}var nb,iS;function GM(){if(iS)return nb;iS=1;var n=VM(),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(w){return n.isMemo(w)?u:f[w.$$typeof]||a}var m=Object.defineProperty,p=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,y=Object.prototype;function N(w,D,T){if(typeof D!="string"){if(y){var M=E(D);M&&M!==y&&N(w,M,T)}var U=p(D);g&&(U=U.concat(g(D)));for(var C=d(w),A=d(D),L=0;L<U.length;++L){var F=U[L];if(!o[F]&&!(T&&T[F])&&!(A&&A[F])&&!(C&&C[F])){var Z=v(D,F);try{m(w,F,Z)}catch{}}}}return w}return nb=N,nb}GM();var Bg=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=I.createContext(null)):I.createContext(null);Bg.Consumer;var qM=Bg.Provider,FM=qM,PM=Bg;function Jf(){var n=I.useContext(PM);return nT(n),n}var lg;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(lg||(lg={}));var cg;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(cg||(cg={}));function aT(n){var a=function(o){var l=Jf(),u=o.value,f=o.children,d=Kf(o,["value","children"]),m=typeof u=="string"?new Date(u||0):u,p=n==="formatDate"?l.formatDateToParts(m,d):l.formatTimeToParts(m,d);return f(p)};return a.displayName=cg[n],a}function sc(n){var a=function(o){var l=Jf(),u=o.value,f=o.children,d=Kf(o,["value","children"]),m=l[n](u,d);if(typeof f=="function")return f(m);var p=l.textComponent||I.Fragment;return I.createElement(p,null,m)};return a.displayName=lg[n],a}function iT(n){return n&&Object.keys(n).reduce(function(a,o){var l=n[o];return a[o]=Qk(l)?HM(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=iT(l),m=sg.apply(void 0,Lr([n,a,o,d],u,!1));return Array.isArray(m)?jM(m):m},sS=function(n,a){var o=n.defaultRichTextElements,l=Kf(n,["defaultRichTextElements"]),u=iT(o),f=MM(pe(pe(pe({},rT),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 pe(pe({},f),{formatMessage:oS.bind(null,d,f.formatters),$t:oS.bind(null,d,f.formatters)})};function rb(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 $M=function(n){Jn(a,n);function a(){var o=n!==null&&n.apply(this,arguments)||this;return o.cache=Jk(),o.state={cache:o.cache,intl:sS(rb(o.props),o.cache),prevConfig:rb(o.props)},o}return a.getDerivedStateFromProps=function(o,l){var u=l.prevConfig,f=l.cache,d=rb(o);return zM(u,d)?null:{intl:sS(d,f),prevConfig:d}},a.prototype.render=function(){return nT(this.state.intl),I.createElement(FM,{value:this.state.intl},this.props.children)},a.displayName="IntlProvider",a.defaultProps=rT,a}(I.PureComponent);sc("formatDate");sc("formatTime");sc("formatNumber");sc("formatList");sc("formatDisplayName");aT("formatDate");aT("formatTime");const YM="_app_1rj0t_1",XM={app:YM},ds=uD,On=hD,oT="%[a-f0-9]{2}",lS=new RegExp("("+oT+")|([^%]+?)","gi"),cS=new RegExp("("+oT+")+","gi");function ug(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([],ug(o),ug(l))}function ZM(n){try{return decodeURIComponent(n)}catch{let a=n.match(lS)||[];for(let o=1;o<a.length;o++)n=ug(a,o).join(""),a=n.match(lS)||[];return n}}function QM(n){const a={"%FE%FF":"��","%FF%FE":"��"};let o=cS.exec(n);for(;o;){try{a[o[0]]=decodeURIComponent(o[0])}catch{const u=ZM(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 WM(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return QM(n)}}function KM(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 sT(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 JM=n=>n==null,e3=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`),fg=Symbol("encodeFragmentIdentifier");function t3(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,[Nt(a,n),"[",u,"]"].join("")]:[...o,[Nt(a,n),"[",Nt(u,n),"]=",Nt(l,n)].join("")]};case"bracket":return a=>(o,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?o:l===null?[...o,[Nt(a,n),"[]"].join("")]:[...o,[Nt(a,n),"[]=",Nt(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,[Nt(a,n),":list="].join("")]:[...o,[Nt(a,n),":list=",Nt(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?[[Nt(o,n),a,Nt(u,n)].join("")]:[[l,Nt(u,n)].join(n.arrayFormatSeparator)])}default:return a=>(o,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?o:l===null?[...o,Nt(a,n)]:[...o,[Nt(a,n),"=",Nt(l,n)].join("")]}}function n3(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&&pa(l,n).includes(n.arrayFormatSeparator);l=d?pa(l,n):l;const m=f||d?l.split(n.arrayFormatSeparator).map(p=>pa(p,n)):l===null?l:pa(l,n);u[o]=m};case"bracket-separator":return(o,l,u)=>{const f=/(\[])$/.test(o);if(o=o.replace(/\[]$/,""),!f){u[o]=l&&pa(l,n);return}const d=l===null?[]:pa(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 lT(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Nt(n,a){return a.encode?a.strict?e3(n):encodeURIComponent(n):n}function pa(n,a){return a.decode?WM(n):n}function cT(n){return Array.isArray(n)?n.sort():typeof n=="object"?cT(Object.keys(n)).sort((a,o)=>Number(a)-Number(o)).map(a=>n[a]):n}function uT(n){const a=n.indexOf("#");return a!==-1&&(n=n.slice(0,a)),n}function r3(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=uT(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},lT(a.arrayFormatSeparator);const o=n3(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,m]=sT(f,"=");d===void 0&&(d=f),m=m===void 0?null:["comma","separator","bracket-separator"].includes(a.arrayFormat)?m:pa(m,a),o(pa(d,a),m,l)}for(const[u,f]of Object.entries(l))if(typeof f=="object"&&f!==null&&a.types[u]!=="string")for(const[d,m]of Object.entries(f)){const p=a.types[u]?a.types[u].replace("[]",""):void 0;f[d]=uS(m,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)?cT(d):d,u},Object.create(null))}function fT(n,a){if(!n)return"";a={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...a},lT(a.arrayFormatSeparator);const o=d=>a.skipNull&&JM(n[d])||a.skipEmptyString&&n[d]==="",l=t3(a),u={};for(const[d,m]of Object.entries(n))o(d)||(u[d]=m);const f=Object.keys(u);return a.sort!==!1&&f.sort(a.sort),f.map(d=>{const m=n[d];return m===void 0?"":m===null?Nt(d,a):Array.isArray(m)?m.length===0&&a.arrayFormat==="bracket-separator"?Nt(d,a)+"[]":m.reduce(l(d),[]).join("&"):Nt(d,a)+"="+Nt(m,a)}).filter(d=>d.length>0).join("&")}function dT(n,a){var u;a={decode:!0,...a};let[o,l]=sT(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:pa(l,a)}:{}}}function hT(n,a){a={encode:!0,strict:!0,[fg]:!0,...a};const o=uT(n.url).split("?")[0]||"",l=Lg(n.url),u={...jg(l,{sort:!1,...a}),...n.query};let f=fT(u,a);f&&(f=`?${f}`);let d=r3(n.url);if(typeof n.fragmentIdentifier=="string"){const m=new URL(o);m.hash=n.fragmentIdentifier,d=a[fg]?m.hash:`#${n.fragmentIdentifier}`}return`${o}${f}${d}`}function mT(n,a,o){o={parseFragmentIdentifier:!0,[fg]:!1,...o};const{url:l,query:u,fragmentIdentifier:f}=dT(n,o);return hT({url:l,query:KM(u,a),fragmentIdentifier:f},o)}function a3(n,a,o){const l=Array.isArray(a)?u=>!a.includes(u):(u,f)=>!a(u,f);return mT(n,l,o)}const ed=Object.freeze(Object.defineProperty({__proto__:null,exclude:a3,extract:Lg,parse:jg,parseUrl:dT,pick:mT,stringify:fT,stringifyUrl:hT},Symbol.toStringTag,{value:"Module"}));var fr={},dr={},tt={},cf={},_e={},fS;function Mn(){return fS||(fS=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.GUEST_LOCALE_CHANGED=_e.DRAWER_CLOSE=_e.DRAWER_OPEN=_e.CONVERSATION_RATING_FROM_GUEST=_e.TRANSCRIPT_ITEM_GUEST_REACTION=_e.TRANSCRIPT_MAIL_REQUEST=_e.INBOX_CONNECT_REQUEST=_e.RESTART_CHAT_REQUEST=_e.EVENT_TO_GUEST=_e.NLU_REQUEST_EVENT=_e.EXPERTS_DISCONNECTED=_e.EXPERTS_DISCONNECT_REQUEST=_e.EXPERTS_CONNECTED=_e.EXPERTS_CONNECT_REQUEST=_e.MESSAGE_TO_GUEST=_e.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=_e.MESSAGE_FROM_GUEST=_e.GUEST_FEEDBACK_RESPONSE=_e.GUEST_DISCONNECTED=_e.GUEST_CONNECTED=_e.TYPING_OFF=_e.TYPING_ON=void 0,_e.TYPING_ON="core.typing.on",_e.TYPING_OFF="core.typing.off",_e.GUEST_CONNECTED="core.guest.connected",_e.GUEST_DISCONNECTED="core.guest.disconnected",_e.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",_e.MESSAGE_FROM_GUEST="core.message.from.guest",_e.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",_e.MESSAGE_TO_GUEST="core.message.to.guest",_e.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",_e.EXPERTS_CONNECTED="core.experts.connected",_e.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",_e.EXPERTS_DISCONNECTED="core.experts.disconnected",_e.NLU_REQUEST_EVENT="core.nlu.request.event",_e.EVENT_TO_GUEST="core.event.to.guest",_e.RESTART_CHAT_REQUEST="core.chat.restart.request",_e.INBOX_CONNECT_REQUEST="core.inbox.connect.request",_e.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",_e.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",_e.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",_e.DRAWER_OPEN="core.drawer.open",_e.DRAWER_CLOSE="core.drawer.close",_e.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),_e}var dS;function i3(){if(dS)return cf;dS=1,Object.defineProperty(cf,"__esModule",{value:!0});const n=Mn(),a=()=>({type:n.DRAWER_CLOSE});return cf.default=a,cf}var uf={},hS;function o3(){if(hS)return uf;hS=1,Object.defineProperty(uf,"__esModule",{value:!0});const n=Mn(),a=(o,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:o,intent:l}});return uf.default=a,uf}var ff={},mS;function s3(){if(mS)return ff;mS=1,Object.defineProperty(ff,"__esModule",{value:!0});const n=Mn(),a=o=>({type:n.GUEST_CONNECTED,payload:{sessionId:o}});return ff.default=a,ff}var df={},pS;function l3(){if(pS)return df;pS=1,Object.defineProperty(df,"__esModule",{value:!0});const n=Mn(),a=o=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:o}});return df.default=a,df}var hf={},bS;function c3(){if(bS)return hf;bS=1,Object.defineProperty(hf,"__esModule",{value:!0});const n=Mn(),a=(o,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:o,newLocale:l}});return hf.default=a,hf}var mf={},gS;function u3(){if(gS)return mf;gS=1,Object.defineProperty(mf,"__esModule",{value:!0});const n=Mn(),a=o=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:o}}});return mf.default=a,mf}var pf={},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(E,y,N=[],w=[]){Xe(this,"type");Xe(this,"sender");Xe(this,"sources");Xe(this,"quickReplies");this.type=E,this.sender=y,this.sources=N,this.quickReplies=w}addQuickReply(E,y){this.quickReplies.push({label:E,payload:y})}}mt.Message=n;class a extends n{constructor(y,N,w=[],D=[]){super(p.TEXT,N,w,D);Xe(this,"text");this.text=y}}mt.TextMessage=a;class o extends n{constructor(y,N){super(p.DETAIL,N);Xe(this,"title");Xe(this,"subtitle");Xe(this,"text");Xe(this,"imageUrl");Xe(this,"itemUrl");Xe(this,"buttons");this.title=y,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(y){this.imageUrl=y}setItemUrl(y){this.itemUrl=y}setSubtitle(y){this.subtitle=y}setText(y){this.text=y}addButton(y){this.buttons.push(y)}}mt.DetailMessage=o;class l extends n{constructor(y,N,w=[],D=[]){super(p.MARKDOWN,N,w,D);Xe(this,"markdown");this.markdown=y}}mt.MarkdownMessage=l;class u extends n{constructor(y,N){super(p.VIDEO,N);Xe(this,"url");this.url=y}}mt.VideoMessage=u;class f extends n{constructor(y,N){super(p.IMAGE,N);Xe(this,"url");this.url=y}}mt.ImageMessage=f;class d extends n{constructor(y,N){super(p.FILE,N);Xe(this,"url");this.url=y}}mt.FileMessage=d;class m extends n{constructor(y,N){super(p.AUDIO,N);Xe(this,"url");this.url=y}}mt.AudioMessage=m;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 g=v=>{switch(v.type){case p.TEXT:return v.text;case p.DETAIL:{const E=v;return`${E.title} // ${E.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=g,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,m,p,g){Xe(this,"type");Xe(this,"id");Xe(this,"name");Xe(this,"avatar");this.type=d,this.id=m,this.name=p,this.avatar=g}}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,m,p){super(u.PERSON,d,m,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 f3(){if(_S)return pf;_S=1,Object.defineProperty(pf,"__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 pf.default=l,pf}var bf={},ES;function d3(){if(ES)return bf;ES=1,Object.defineProperty(bf,"__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 bf.default=l,bf}var gf={},wS;function h3(){if(wS)return gf;wS=1,Object.defineProperty(gf,"__esModule",{value:!0});const n=Mn(),a=o=>({type:n.NLU_REQUEST_EVENT,event:o});return gf.default=a,gf}var yf={},SS;function m3(){if(SS)return yf;SS=1,Object.defineProperty(yf,"__esModule",{value:!0});const n=Mn(),a=()=>({type:n.RESTART_CHAT_REQUEST});return yf.default=a,yf}var vf={},xS;function p3(){if(xS)return vf;xS=1,Object.defineProperty(vf,"__esModule",{value:!0});const n=Mn(),a=o=>({type:n.MESSAGE_TO_GUEST,message:o});return vf.default=a,vf}var _f={},kS;function b3(){if(kS)return _f;kS=1,Object.defineProperty(_f,"__esModule",{value:!0});const n=Mn(),a=(o,l)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:o,reaction:l}});return _f.default=a,_f}var TS;function g3(){if(TS)return tt;TS=1;var n=tt&&tt.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(tt,"__esModule",{value:!0}),tt.transcriptItemGuestReaction=tt.sendMessageToGuest=tt.restartChatRequest=tt.requestNLUEvent=tt.receiveTextMessageWithoutAnalysisFromGuest=tt.receiveTextMessageFromGuest=tt.openDrawer=tt.guestLocaleChanged=tt.guestDisconnected=tt.guestConnected=tt.feedbackFromGuestResponse=tt.closeDrawer=void 0;const a=n(i3());tt.closeDrawer=a.default;const o=n(o3());tt.feedbackFromGuestResponse=o.default;const l=n(s3());tt.guestConnected=l.default;const u=n(l3());tt.guestDisconnected=u.default;const f=n(c3());tt.guestLocaleChanged=f.default;const d=n(u3());tt.openDrawer=d.default;const m=n(f3());tt.receiveTextMessageFromGuest=m.default;const p=n(d3());tt.receiveTextMessageWithoutAnalysisFromGuest=p.default;const g=n(h3());tt.requestNLUEvent=g.default;const v=n(m3());tt.restartChatRequest=v.default;const E=n(p3());tt.sendMessageToGuest=E.default;const y=n(b3());return tt.transcriptItemGuestReaction=y.default,tt}var ab={},NS;function y3(){return NS||(NS=1,Object.defineProperty(ab,"__esModule",{value:!0})),ab}var RS;function v3(){return RS||(RS=1,function(n){var a=dr&&dr.__createBinding||(Object.create?function(f,d,m,p){p===void 0&&(p=m);var g=Object.getOwnPropertyDescriptor(d,m);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[m]}}),Object.defineProperty(f,p,g)}:function(f,d,m,p){p===void 0&&(p=m),f[p]=d[m]}),o=dr&&dr.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),l=dr&&dr.__importStar||function(){var f=function(d){return f=Object.getOwnPropertyNames||function(m){var p=[];for(var g in m)Object.prototype.hasOwnProperty.call(m,g)&&(p[p.length]=g);return p},f(d)};return function(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var p=f(d),g=0;g<p.length;g++)p[g]!=="default"&&a(m,d,p[g]);return o(m,d),m}}(),u=dr&&dr.__exportStar||function(f,d){for(var m in f)m!=="default"&&!Object.prototype.hasOwnProperty.call(d,m)&&a(d,f,m)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=l(g3()),n.ActionTypes=l(Mn()),u(y3(),n)}(dr)),dr}var An={},ib={},AS;function _3(){return AS||(AS=1,Object.defineProperty(ib,"__esModule",{value:!0})),ib}var Gl={},OS;function E3(){if(OS)return Gl;OS=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.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 Gl.NullableKnowledgeBaseAdapter=n,Gl}var CS;function w3(){if(CS)return An;CS=1;var n=An&&An.__createBinding||(Object.create?function(u,f,d,m){m===void 0&&(m=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,m,p)}:function(u,f,d,m){m===void 0&&(m=d),u[m]=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 m=[];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(m[m.length]=p);return m},u(f)};return function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var m=u(f),p=0;p<m.length;p++)m[p]!=="default"&&n(d,f,m[p]);return a(d,f),d}}();Object.defineProperty(An,"__esModule",{value:!0}),An.NullableCmsAdapter=An.KnowledgeBase=void 0,An.KnowledgeBase=o(_3());const l=E3();return An.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},An}var Fi={},ob={},DS;function S3(){return DS||(DS=1,Object.defineProperty(ob,"__esModule",{value:!0})),ob}var sb={},MS;function x3(){return MS||(MS=1,Object.defineProperty(sb,"__esModule",{value:!0})),sb}var lb={},US;function k3(){return US||(US=1,Object.defineProperty(lb,"__esModule",{value:!0})),lb}var cb={},BS;function T3(){return BS||(BS=1,Object.defineProperty(cb,"__esModule",{value:!0})),cb}var ql={},LS;function N3(){if(LS)return ql;LS=1,Object.defineProperty(ql,"__esModule",{value:!0}),ql.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 ql.checkMiddlewareCondition=n,ql}var ub={},jS;function R3(){return jS||(jS=1,Object.defineProperty(ub,"__esModule",{value:!0})),ub}var fb={},HS;function A3(){return HS||(HS=1,Object.defineProperty(fb,"__esModule",{value:!0})),fb}var db={},zS;function O3(){return zS||(zS=1,Object.defineProperty(db,"__esModule",{value:!0})),db}var IS;function C3(){return IS||(IS=1,function(n){var a=Fi&&Fi.__createBinding||(Object.create?function(l,u,f,d){d===void 0&&(d=f);var m=Object.getOwnPropertyDescriptor(u,f);(!m||("get"in m?!u.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,d,m)}: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(S3(),n),o(x3(),n),o(k3(),n),o(T3(),n),o(N3(),n),o(R3(),n),o(A3(),n),o(O3(),n)}(Fi)),Fi}var Pi={},hr={},VS;function D3(){if(VS)return hr;VS=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.ButtonTypeEnum=hr.PostbackButton=hr.UrlButton=hr.Button=void 0;class n{constructor(f,d){Xe(this,"title");Xe(this,"type");this.title=f,this.type=d}}hr.Button=n;class a extends n{constructor(d,m){super(d,l.WEB_URL);Xe(this,"url");this.url=m}}hr.UrlButton=a;class o extends n{constructor(d,m){super(d,l.POSTBACK);Xe(this,"payload");this.payload=m}}hr.PostbackButton=o;var l;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(l||(hr.ButtonTypeEnum=l={})),hr}var hb={},GS;function M3(){return GS||(GS=1,Object.defineProperty(hb,"__esModule",{value:!0})),hb}var Fl={},qS;function U3(){if(qS)return Fl;qS=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.SatisfactionEnum=void 0;var n;return function(a){a.GOOD="GOOD",a.BAD="BAD"}(n||(Fl.SatisfactionEnum=n={})),Fl}var FS;function PS(){return FS||(FS=1,function(n){var a=Pi&&Pi.__createBinding||(Object.create?function(l,u,f,d){d===void 0&&(d=f);var m=Object.getOwnPropertyDescriptor(u,f);(!m||("get"in m?!u.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,d,m)}:function(l,u,f,d){d===void 0&&(d=f),l[d]=u[f]}),o=Pi&&Pi.__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(D3(),n),o(M3(),n),o(U3(),n),o(Hg(),n),o(zg(),n)}(Pi)),Pi}var $S;function B3(){return $S||($S=1,function(n){var a=fr&&fr.__createBinding||(Object.create?function(f,d,m,p){p===void 0&&(p=m);var g=Object.getOwnPropertyDescriptor(d,m);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[m]}}),Object.defineProperty(f,p,g)}:function(f,d,m,p){p===void 0&&(p=m),f[p]=d[m]}),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.__exportStar||function(f,d){for(var m in f)m!=="default"&&!Object.prototype.hasOwnProperty.call(d,m)&&a(d,f,m)},u=fr&&fr.__importStar||function(){var f=function(d){return f=Object.getOwnPropertyNames||function(m){var p=[];for(var g in m)Object.prototype.hasOwnProperty.call(m,g)&&(p[p.length]=g);return p},f(d)};return function(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var p=f(d),g=0;g<p.length;g++)p[g]!=="default"&&a(m,d,p[g]);return o(m,d),m}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,l(v3(),n),n.CMS=u(w3()),l(C3(),n),l(PS(),n),n.Model=u(PS())}(fr)),fr}var Ve=B3();const pT=n=>a=>(n.payload.type!==Ve.ActionTypes.MESSAGE_FROM_GUEST&&a(Ve.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),a(n.payload)),bT=n=>(a,o)=>{const{quickReplies:l}=o().chat,u=l.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return a(u?pT({...u,label:n}):JSON.parse(JSON.stringify(Ve.Actions.receiveTextMessageFromGuest(n))))},Ig="MESSAGE_TO_PARENT_PAGE",Vg="RESTORE_PREVIOUS_CHAT_MESSAGES",Gg="AUDIO_MESSAGE_FROM_USER",L3="EXPORT_TRANSCRIPT",qg="RECEIVE_SPEECH_TRANSCRIPTION",Fg="ENABLE_CONVERSATION_RATING",gT="LOAD_SOURCE_INFOS_RESPONSE",Pg="LOAD_SOURCE_INFOS_ERROR",$g="LOAD_SOURCE_INFOS_REQUEST",Yg="CLOSE_SOURCE_INFOS",j3="webclient.get.started",yT="webclient.window.expand",vT="webclient.window.close",_T="webclient.transcript.pdf.download",H3=[Ig,Vg,Gg,L3,qg,Fg,$g,Yg],z3=n=>({type:Gg,buffer:n}),I3=n=>({type:qg,transcription:n}),V3=n=>({type:Ve.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),G3=()=>({type:_T}),q3=({rating:n})=>({type:Fg,payload:{rating:n}}),F3=(n,a)=>({type:Ve.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:a}}),ET=n=>Ve.Actions.requestNLUEvent(n),P3=n=>({type:Vg,messages:n}),$3=n=>{switch(n.type){case Ve.ButtonTypeEnum.WEB_URL:return wT(n.url);case Ve.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},Y3=n=>wT(n),wT=n=>({type:Ig,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function Ef(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 X3={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 dg(n,a){function o(u,f,d){if(!(typeof document>"u")){d=Ef({},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 m="";for(var p in d)d[p]&&(m+="; "+p,d[p]!==!0&&(m+="="+d[p].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+m}}function l(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],d={},m=0;m<f.length;m++){var p=f[m].split("="),g=p.slice(1).join("=");try{var v=decodeURIComponent(p[0]);if(d[v]=n.read(g,v),u===v)break}catch{}}return u?d[u]:d}}return Object.create({set:o,get:l,remove:function(u,f){o(u,"",Ef({},f,{expires:-1}))},withAttributes:function(u){return dg(this.converter,Ef({},this.attributes,u))},withConverter:function(u){return dg(Ef({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(n)}})}var wf=dg(X3,{path:"/"});const $t=[];for(let n=0;n<256;++n)$t.push((n+256).toString(16).slice(1));function Z3(n,a=0){return($t[n[a+0]]+$t[n[a+1]]+$t[n[a+2]]+$t[n[a+3]]+"-"+$t[n[a+4]]+$t[n[a+5]]+"-"+$t[n[a+6]]+$t[n[a+7]]+"-"+$t[n[a+8]]+$t[n[a+9]]+"-"+$t[n[a+10]]+$t[n[a+11]]+$t[n[a+12]]+$t[n[a+13]]+$t[n[a+14]]+$t[n[a+15]]).toLowerCase()}let mb;const Q3=new Uint8Array(16);function W3(){if(!mb){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");mb=crypto.getRandomValues.bind(crypto)}return mb(Q3)}const K3=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),YS={randomUUID:K3};function hg(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))??W3();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,Z3(l)}var J3=typeof Symbol=="function"&&Symbol.observable||"@@observable",XS=J3,pb=()=>Math.random().toString(36).substring(7).split("").join("."),eU={INIT:`@@redux/INIT${pb()}`,REPLACE:`@@redux/REPLACE${pb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${pb()}`},Ki=eU;function lc(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 tU(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(aU(n))return"date";if(rU(n))return"error";const o=nU(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 nU(n){return typeof n.constructor=="function"?n.constructor.name:null}function rU(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function aU(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function ni(n){let a=typeof n;return a=tU(n),a}function ST(n,a,o){if(typeof n!="function")throw new Error(`Expected the root reducer to be a function. Instead, received: '${ni(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: '${ni(o)}'`);return o(ST)(n,a)}let l=n,u=a,f=new Map,d=f,m=0,p=!1;function g(){d===f&&(d=new Map,f.forEach((T,M)=>{d.set(M,T)}))}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 E(T){if(typeof T!="function")throw new Error(`Expected the listener to be a function. Instead, received: '${ni(T)}'`);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 M=!0;g();const U=m++;return d.set(U,T),function(){if(M){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.");M=!1,g(),d.delete(U),f=null}}}function y(T){if(!lc(T))throw new Error(`Actions must be plain objects. Instead, the actual type was: '${ni(T)}'. 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 T.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof T.type!="string")throw new Error(`Action "type" property must be a string. Instead, the actual type was: '${ni(T.type)}'. Value was: '${T.type}' (stringified)`);if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,u=l(u,T)}finally{p=!1}return(f=d).forEach(U=>{U()}),T}function N(T){if(typeof T!="function")throw new Error(`Expected the nextReducer to be a function. Instead, received: '${ni(T)}`);l=T,y({type:Ki.REPLACE})}function w(){const T=E;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(`Expected the observer to be an object. Instead, received: '${ni(M)}'`);function U(){const A=M;A.next&&A.next(v())}return U(),{unsubscribe:T(U)}},[XS](){return this}}}return y({type:Ki.INIT}),{dispatch:y,subscribe:E,getState:v,replaceReducer:N,[XS]:w}}function ZS(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function iU(n,a,o,l){const u=Object.keys(a),f=o&&o.type===Ki.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(!lc(n))return`The ${f} has unexpected type of "${ni(n)}". Expected argument to be an object with the following keys: "${u.join('", "')}"`;const d=Object.keys(n).filter(m=>!a.hasOwnProperty(m)&&!l[m]);if(d.forEach(m=>{l[m]=!0}),!(o&&o.type===Ki.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 oU(n){Object.keys(n).forEach(a=>{const o=n[a];if(typeof o(void 0,{type:Ki.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:Ki.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 '${Ki.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 xT(n){const a=Object.keys(n),o={};for(let d=0;d<a.length;d++){const m=a[d];typeof n[m]>"u"&&ZS(`No reducer provided for key "${m}"`),typeof n[m]=="function"&&(o[m]=n[m])}const l=Object.keys(o);let u;u={};let f;try{oU(o)}catch(d){f=d}return function(m={},p){if(f)throw f;{const E=iU(m,o,p,u);E&&ZS(E)}let g=!1;const v={};for(let E=0;E<l.length;E++){const y=l[E],N=o[y],w=m[y],D=N(w,p);if(typeof D>"u"){const T=p&&p.type;throw new Error(`When called with an action of type ${T?`"${String(T)}"`:"(unknown type)"}, the slice reducer for key "${y}" 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[y]=D,g=g||D!==w}return g=g||l.length!==Object.keys(m).length,g?v:m}}function Ff(...n){return n.length===0?a=>a:n.length===1?n[0]:n.reduce((a,o)=>(...l)=>a(o(...l)))}function sU(...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,...g)=>f(p,...g)},m=n.map(p=>p(d));return f=Ff(...m)(u.dispatch),{...u,dispatch:f}}}function kT(n){return lc(n)&&"type"in n&&typeof n.type=="string"}var TT=Symbol.for("immer-nothing"),QS=Symbol.for("immer-draftable"),Cn=Symbol.for("immer-state"),lU=[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=lU[n],l=typeof o=="function"?o.apply(null,a):o;throw new Error(`[Immer] ${l}`)}}var cs=Object.getPrototypeOf;function eo(n){return!!n&&!!n[Cn]}function ya(n){var a;return n?NT(n)||Array.isArray(n)||!!n[QS]||!!((a=n.constructor)!=null&&a[QS])||nd(n)||rd(n):!1}var cU=Object.prototype.constructor.toString();function NT(n){if(!n||typeof n!="object")return!1;const a=cs(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)===cU}function Pf(n,a){td(n)===0?Reflect.ownKeys(n).forEach(o=>{a(o,n[o],n)}):n.forEach((o,l)=>a(l,o,n))}function td(n){const a=n[Cn];return a?a.type_:Array.isArray(n)?1:nd(n)?2:rd(n)?3:0}function mg(n,a){return td(n)===2?n.has(a):Object.prototype.hasOwnProperty.call(n,a)}function RT(n,a,o){const l=td(n);l===2?n.set(a,o):l===3?n.add(o):n[a]=o}function uU(n,a){return n===a?n!==0||1/n===1/a:n!==n&&a!==a}function nd(n){return n instanceof Map}function rd(n){return n instanceof Set}function Zi(n){return n.copy_||n.base_}function pg(n,a){if(nd(n))return new Map(n);if(rd(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const o=NT(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],m=l[d];m.writable===!1&&(m.writable=!0,m.configurable=!0),(m.get||m.set)&&(l[d]={configurable:!0,writable:!0,enumerable:m.enumerable,value:n[d]})}return Object.create(cs(n),l)}else{const l=cs(n);if(l!==null&&o)return{...n};const u=Object.create(l);return Object.assign(u,n)}}function Xg(n,a=!1){return ad(n)||eo(n)||!ya(n)||(td(n)>1&&(n.set=n.add=n.clear=n.delete=fU),Object.freeze(n),a&&Object.entries(n).forEach(([o,l])=>Xg(l,!0))),n}function fU(){gn(2)}function ad(n){return Object.isFrozen(n)}var dU={};function to(n){const a=dU[n];return a||gn(0,n),a}var tc;function AT(){return tc}function hU(n,a){return{drafts_:[],parent_:n,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function WS(n,a){a&&(to("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=a)}function bg(n){gg(n),n.drafts_.forEach(mU),n.drafts_=null}function gg(n){n===tc&&(tc=n.parent_)}function KS(n){return tc=hU(tc,n)}function mU(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_&&(bg(a),gn(4)),ya(n)&&(n=$f(a,n),a.parent_||Yf(a,n)),a.patches_&&to("Patches").generateReplacementPatches_(o[Cn].base_,n,a.patches_,a.inversePatches_)):n=$f(a,o,[]),bg(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),n!==TT?n:void 0}function $f(n,a,o){if(ad(a))return a;const l=a[Cn];if(!l)return Pf(a,(u,f)=>ex(n,l,a,u,f,o)),a;if(l.scope_!==n)return a;if(!l.modified_)return Yf(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),Pf(f,(m,p)=>ex(n,l,u,m,p,o,d)),Yf(n,u,!1),o&&n.patches_&&to("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),eo(u)){const m=f&&a&&a.type_!==3&&!mg(a.assigned_,l)?f.concat(l):void 0,p=$f(n,u,m);if(RT(o,l,p),eo(p))n.canAutoFreeze_=!1;else return}else d&&o.add(u);if(ya(u)&&!ad(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;$f(n,u),(!a||!a.scope_.parent_)&&typeof l!="symbol"&&Object.prototype.propertyIsEnumerable.call(o,l)&&Yf(n,u)}}function Yf(n,a,o=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Xg(a,o)}function pU(n,a){const o=Array.isArray(n),l={type_:o?1:0,scope_:a?a.scope_:AT(),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=nc);const{revoke:d,proxy:m}=Proxy.revocable(u,f);return l.draft_=m,l.revoke_=d,m}var Zg={get(n,a){if(a===Cn)return n;const o=Zi(n);if(!mg(o,a))return bU(n,o,a);const l=o[a];return n.finalized_||!ya(l)?l:l===bb(n.base_,a)?(gb(n),n.copy_[a]=vg(l,n)):l},has(n,a){return a in Zi(n)},ownKeys(n){return Reflect.ownKeys(Zi(n))},set(n,a,o){const l=OT(Zi(n),a);if(l!=null&&l.set)return l.set.call(n.draft_,o),!0;if(!n.modified_){const u=bb(Zi(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(uU(o,u)&&(o!==void 0||mg(n.base_,a)))return!0;gb(n),yg(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 bb(n.base_,a)!==void 0||a in n.base_?(n.assigned_[a]=!1,gb(n),yg(n)):delete n.assigned_[a],n.copy_&&delete n.copy_[a],!0},getOwnPropertyDescriptor(n,a){const o=Zi(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 cs(n.base_)},setPrototypeOf(){gn(12)}},nc={};Pf(Zg,(n,a)=>{nc[n]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});nc.deleteProperty=function(n,a){return isNaN(parseInt(a))&&gn(13),nc.set.call(this,n,a,void 0)};nc.set=function(n,a,o){return a!=="length"&&isNaN(parseInt(a))&&gn(14),Zg.set.call(this,n[0],a,o,n[0])};function bb(n,a){const o=n[Cn];return(o?Zi(o):n)[a]}function bU(n,a,o){var u;const l=OT(a,o);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(n.draft_):void 0}function OT(n,a){if(!(a in n))return;let o=cs(n);for(;o;){const l=Object.getOwnPropertyDescriptor(o,a);if(l)return l;o=cs(o)}}function yg(n){n.modified_||(n.modified_=!0,n.parent_&&yg(n.parent_))}function gb(n){n.copy_||(n.copy_=pg(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var gU=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,...g){return d.produce(p,v=>o.call(this,v,...g))}}typeof o!="function"&&gn(6),l!==void 0&&typeof l!="function"&&gn(7);let u;if(ya(a)){const f=KS(this),d=vg(a,void 0);let m=!0;try{u=o(d),m=!1}finally{m?bg(f):gg(f)}return WS(f,l),JS(u,f)}else if(!a||typeof a!="object"){if(u=o(a),u===void 0&&(u=a),u===TT&&(u=void 0),this.autoFreeze_&&Xg(u,!0),l){const f=[],d=[];to("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,...m)=>this.produceWithPatches(d,p=>a(p,...m));let l,u;return[this.produce(a,o,(d,m)=>{l=d,u=m}),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){ya(n)||gn(8),eo(n)&&(n=yU(n));const a=KS(this),o=vg(n,void 0);return o[Cn].isManual_=!0,gg(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=to("Patches").applyPatches_;return eo(n)?l(n,a):this.produce(n,u=>l(u,a))}};function vg(n,a){const o=nd(n)?to("MapSet").proxyMap_(n,a):rd(n)?to("MapSet").proxySet_(n,a):pU(n,a);return(a?a.scope_:AT()).drafts_.push(o),o}function yU(n){return eo(n)||gn(10,n),CT(n)}function CT(n){if(!ya(n)||ad(n))return n;const a=n[Cn];let o;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,o=pg(n,a.scope_.immer_.useStrictShallowCopy_)}else o=pg(n,!0);return Pf(o,(l,u)=>{RT(o,l,CT(u))}),a&&(a.finalized_=!1),o}var Dn=new gU,DT=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 MT(n){return({dispatch:o,getState:l})=>u=>f=>typeof f=="function"?f(o,l,n):u(f)}var vU=MT(),_U=MT,EU=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ff:Ff.apply(null,arguments)},wU=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=>kT(l)&&l.type===n,o}function SU(n){return typeof n=="function"&&"type"in n&&wU(n)}function xU(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 kU(n={}){const{isActionCreator:a=SU}=n;return()=>o=>l=>(a(l)&&console.warn(xU(l.type)),o(l))}function UT(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
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
|
|
320
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var BT=class Wl extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,Wl.prototype)}static get[Symbol.species](){return Wl}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new Wl(...a[0].concat(this)):new Wl(...a.concat(this))}};function nx(n){return ya(n)?DT(n,()=>{}):n}function Sf(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 NU(n,a,o){const l=LT(n,a,o);return{detectMutations(){return jT(n,a,l,o)}}}function LT(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 m=l?l+"."+d:d;a.length&&a.indexOf(m)!==-1||(f.children[d]=LT(n,a,o[d],m))}}return f}function jT(n,a=[],o,l,u=!1,f=""){const d=o?o.value:void 0,m=d===l;if(u&&!m&&!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 g=a.length>0;for(let v in p){const E=f?f+"."+v:v;if(g&&a.some(w=>w instanceof RegExp?w.test(E):E===w))continue;const y=jT(n,a,o.children[v],l[v],m,E);if(y.wasMutated)return y}return{wasMutated:!1}}function RU(n={}){{let a=function(m,p,g,v){return JSON.stringify(m,o(p,v),g)},o=function(m,p){let g=[],v=[];return p||(p=function(E,y){return g[0]===y?"[Circular ~]":"[Circular ~."+v.slice(0,g.indexOf(y)).join(".")+"]"}),function(E,y){if(g.length>0){var N=g.indexOf(this);~N?g.splice(N+1):g.push(this),~N?v.splice(N,1/0,E):v.push(E),~g.indexOf(y)&&(y=p.call(this,E,y))}else g.push(y);return m==null?y:m.call(this,E,y)}},{isImmutable:l=TU,ignoredPaths:u,warnAfter:f=32}=n;const d=NU.bind(null,l,u);return({getState:m})=>{let p=m(),g=d(p),v;return E=>y=>{const N=UT(f,"ImmutableStateInvariantMiddleware");N.measureTime(()=>{if(p=m(),v=g.detectMutations(),g=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 w=E(y);return N.measureTime(()=>{if(p=m(),v=g.detectMutations(),g=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(y)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),N.warnIfExceeded(),w}}}}function HT(n){const a=typeof n;return n==null||a==="string"||a==="boolean"||a==="number"||Array.isArray(n)||lc(n)}function _g(n,a="",o=HT,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 m=l!=null?l(n):Object.entries(n),p=u.length>0;for(const[g,v]of m){const E=a?a+"."+g:g;if(!(p&&u.some(N=>N instanceof RegExp?N.test(E):E===N))){if(!o(v))return{keyPath:E,value:v};if(typeof v=="object"&&(d=_g(v,E,o,l,u,f),d))return d}}return f&&zT(n)&&f.add(n),!1}function zT(n){if(!Object.isFrozen(n))return!1;for(const a of Object.values(n))if(!(typeof a!="object"||a===null)&&!zT(a))return!1;return!0}function AU(n={}){{const{isSerializable:a=HT,getEntries:o,ignoredActions:l=[],ignoredActionPaths:u=["meta.arg","meta.baseQueryMeta"],ignoredPaths:f=[],warnAfter:d=32,ignoreState:m=!1,ignoreActions:p=!1,disableCache:g=!1}=n,v=!g&&WeakSet?new WeakSet:void 0;return E=>y=>N=>{if(!kT(N))return y(N);const w=y(N),D=UT(d,"SerializableStateInvariantMiddleware");return!p&&!(l.length&&l.indexOf(N.type)!==-1)&&D.measureTime(()=>{const T=_g(N,"",a,o,u,v);if(T){const{keyPath:M,value:U}=T;console.error(`A non-serializable value was detected in an action, in the path: \`${M}\`. Value:`,U,`
|
|
321
321
|
Take a look at the logic that dispatched this action: `,N,`
|
|
322
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)`)}}),m||(D.measureTime(()=>{const T=E.getState(),M=
|
|
323
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),m||(D.measureTime(()=>{const T=E.getState(),M=_g(T,"",a,o,f,v);if(M){const{keyPath:U,value:C}=M;console.error(`A non-serializable value was detected in the state, in the path: \`${U}\`. Value:`,C,`
|
|
324
324
|
Take a look at the reducer(s) handling this action type: ${N.type}.
|
|
325
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),D.warnIfExceeded()),w}}}function wf(n){return typeof n=="boolean"}var _U=()=>function(a){const{thunk:o=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=a??{};let d=new AT;o&&(wf(o)?d.push(cU):d.push(uU(o.extraArgument)));{if(l){let m={};wf(l)||(m=l),d.unshift(yU(m))}if(u){let m={};wf(u)||(m=u),d.push(vU(m))}if(f){let m={};wf(f)||(m=f),d.unshift(pU(m))}}return d},EU="RTK_autoBatch",QS=n=>a=>{setTimeout(a,n)},wU=(n={type:"raf"})=>a=>(...o)=>{const l=a(...o);let u=!0,f=!1,d=!1;const m=new Set,p=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:QS(10):n.type==="callback"?n.queueNotification:QS(n.timeout),y=()=>{d=!1,f&&(f=!1,m.forEach(v=>v()))};return Object.assign({},l,{subscribe(v){const E=()=>u&&v(),g=l.subscribe(E);return m.add(v),()=>{g(),m.delete(v)}},dispatch(v){var E;try{return u=!((E=v==null?void 0:v.meta)!=null&&E[EU]),f=!u,f&&(d||(d=!0,p(y))),l.dispatch(v)}finally{u=!0}}})},SU=n=>function(o){const{autoBatch:l=!0}=o??{};let u=new AT(n);return l&&u.push(wU(typeof l=="object"?l:void 0)),u};function xU(n){const a=_U(),{reducer:o=void 0,middleware:l,devTools:u=!0,duplicateMiddlewareCheck:f=!0,preloadedState:d=void 0,enhancers:m=void 0}=n||{};let p;if(typeof o=="function")p=o;else if(lc(o))p=yT(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(D=>typeof D!="function"))throw new Error("each middleware provided to configureStore must be a function");if(f){let D=new Set;y.forEach(T=>{if(D.has(T))throw new Error("Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");D.add(T)})}let v=Gf;u&&(v=fU({trace:!0,...typeof u=="object"&&u}));const E=W3(...y),g=SU(E);if(m&&typeof m!="function")throw new Error("`enhancers` field must be a callback");let N=typeof m=="function"?m(g):g();if(!Array.isArray(N))throw new Error("`enhancers` callback must return an array");if(N.some(D=>typeof D!="function"))throw new Error("each enhancer provided to configureStore must be a function");y.length&&!N.includes(E)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const w=v(...N);return gT(p,d,w)}function UT(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 m=typeof f=="string"?f:f.type;if(!m)throw new Error("`builder.addCase` cannot be called with an empty action type");if(m in a)throw new Error(`\`builder.addCase\` cannot be called with two reducers for the same action type '${m}'`);return a[m]=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 kU(n){return typeof n=="function"}function TU(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]=UT(a),f;if(kU(n))f=()=>ZS(n());else{const m=ZS(n);f=()=>m}function d(m=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,E)=>{if(E)if(eo(v)){const N=E(v,p);return N===void 0?v:N}else{if(ya(v))return TT(v,g=>E(g,p));{const g=E(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},m)}return d.getInitialState=f,d}var NU=Symbol.for("rtk-slice-createasyncthunk");function RU(n,a){return`${n}/${a}`}function AU({creators:n}={}){var o;const a=(o=n==null?void 0:n.asyncThunk)==null?void 0:o[NU];return function(u){const{name:f,reducerPath:d=f}=u;if(!f)throw new Error("`name` is a required option for createSlice");const m=(typeof u.reducers=="function"?u.reducers(CU()):u.reducers)||{},p=Object.keys(m),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},v={addCase(A,L){const F=typeof A=="string"?A:A.type;if(!F)throw new Error("`context.addCase` cannot be called with an empty action type");if(F in y.sliceCaseReducersByType)throw new Error("`context.addCase` cannot be called with two reducers for the same action type: "+F);return y.sliceCaseReducersByType[F]=L,v},addMatcher(A,L){return y.sliceMatchers.push({matcher:A,reducer:L}),v},exposeAction(A,L){return y.actionCreators[A]=L,v},exposeCaseReducer(A,L){return y.sliceCaseReducersByName[A]=L,v}};p.forEach(A=>{const L=m[A],F={reducerName:A,type:RU(f,A),createNotation:typeof u.reducers=="function"};MU(L)?BU(F,L,v,a):DU(F,L,v)});function E(){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[A={},L=[],F=void 0]=typeof u.extraReducers=="function"?UT(u.extraReducers):[u.extraReducers],Z={...A,...y.sliceCaseReducersByType};return TU(u.initialState,J=>{for(let X in Z)J.addCase(X,Z[X]);for(let X of y.sliceMatchers)J.addMatcher(X.matcher,X.reducer);for(let X of L)J.addMatcher(X.matcher,X.reducer);F&&J.addDefaultCase(F)})}const g=A=>A,N=new Map,w=new WeakMap;let D;function T(A,L){return D||(D=E()),D(A,L)}function M(){return D||(D=E()),D.getInitialState()}function U(A,L=!1){function F(J){let X=J[A];if(typeof X>"u")if(L)X=Ef(w,F,M);else throw new Error("selectSlice returned undefined for an uninjected slice reducer");return X}function Z(J=g){const X=Ef(N,L,()=>new WeakMap);return Ef(X,J,()=>{const te={};for(const[ne,se]of Object.entries(u.selectors??{}))te[ne]=OU(se,J,()=>Ef(w,J,M),L);return te})}return{reducerPath:A,getSelectors:Z,get selectors(){return Z(F)},selectSlice:F}}const C={name:f,reducer:T,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:M,...U(d),injectInto(A,{reducerPath:L,...F}={}){const Z=L??d;return A.inject({reducerPath:Z,reducer:T},F),{...C,...U(Z,!0)}}};return C}}function OU(n,a,o,l){function u(f,...d){let m=a(f);if(typeof m>"u")if(l)m=o();else throw new Error("selectState returned undefined for an uninjected slice reducer");return n(m,...d)}return u.unwrapped=n,u}var Pg=AU();function CU(){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 DU({type:n,reducerName:a,createNotation:o},l,u){let f,d;if("reducer"in l){if(o&&!UU(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?XS(n,d):XS(n))}function MU(n){return n._reducerDefinitionType==="asyncThunk"}function UU(n){return n._reducerDefinitionType==="reducerWithPrepare"}function BU({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:m,rejected:p,settled:y,options:v}=o,E=u(n,f,v);l.exposeAction(a,E),d&&l.addCase(E.fulfilled,d),m&&l.addCase(E.pending,m),p&&l.addCase(E.rejected,p),y&&l.addMatcher(E.settled,y),l.exposeCaseReducer(a,{fulfilled:d||Sf,pending:m||Sf,rejected:p||Sf,settled:y||Sf})}function Sf(){}const LU={formValues:{}},BT=Pg({name:"start-screen",initialState:LU,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,a){n.startScreenStatus="HIDDEN",n.formValues=a.payload}}}),{startChat:jU,showStartScreen:HU}=BT.actions,zU=BT.reducer,LT="RESET_CHAT_STATE",VU=()=>({type:hT}),IU=()=>({type:LT}),WS=(n,a,o)=>l=>{try{l({type:Ig,payload:{chunkId:o}}),KS(n,a,o,!1,l),KS(n,a,o,!0,l)}catch(u){console.error("Error loading source infos:",u),l({type:Vg})}},KS=(n,a,o,l,u)=>{const f=`/${n}/me/chat-widget/transcript/${a}/chunks/${o}?highlight=${l}`;fetch(f).then(d=>{if(!d.ok)throw new Error(`HTTP error! Status: ${d.status}`);return d.json()}).then(d=>{const m={...d,chunkId:o,highlighted:l};u({type:fT,payload:m})}).catch(d=>{console.error("Error fetching source infos:",d),u({type:Vg,payload:{highlighted:l}})})},GU=()=>({type:Gg}),$g="CONNECT",Yg="CONNECTING",Xg="CONNECTED",Zg="DISCONNECTED",Qg="RECONNECTED",Wg="START",jT="CLEAR_SESSION_ID",qU=[$g,Yg,Xg,Zg,Qg],FU=(n,a)=>({type:$g,clientName:n,querystrings:a}),PU=()=>({type:Yg}),$U=()=>({type:Xg}),YU=()=>({type:Zg}),XU=()=>({type:Qg}),HT=(n,a)=>async(o,l)=>{const u=l().startScreen.formValues,f=await fetch(`/${n}/me/session`,{method:"GET",credentials:"include"});if(!f.ok)throw new Error(`Failed to start chat session: ${f.status} ${f.statusText}`);const{sessionIdToken:d,userIdToken:m}=await f.json();o({type:Wg,payload:{sessionIdToken:d,userIdToken:m,clientName:n,querystrings:{...a,...u}}})},rd=(n,a)=>async(o,l)=>{if(await ZU(n),o(IU()),l().settings.enableStartScreen)o(HU());else return o(HT(n,a))},ZU=async n=>{const a=await fetch(`/${n}/me/session`,{method:"DELETE",credentials:"include"});if(!a.ok)throw new Error(`Failed to terminate session: ${a.status} ${a.statusText}`)},yt=()=>{const n=Wf();return o=>{const l=n.formatMessage({id:o});return l===o?void 0:l}};var Wi=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Wi||{}),$f=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))($f||{});const QU="_container_q2uun_1",WU="_chatcontent_q2uun_6",KU="_accessabilityHidden_q2uun_12",mb={container:QU,chatcontent:WU,accessabilityHidden:KU},JU="_messageContainer_ofi0g_1",e6="_messages_ofi0g_12",JS={messageContainer:JU,messages:e6};function Qi(){return Qi=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},Qi.apply(this,arguments)}const t6=["children","options"],ye={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var ex;(function(n){n[n.MAX=0]="MAX",n[n.HIGH=1]="HIGH",n[n.MED=2]="MED",n[n.LOW=3]="LOW",n[n.MIN=4]="MIN"})(ex||(ex={}));const tx=["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"}),nx={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},n6=["style","script"],r6=["src","href","data","formAction","srcDoc","action"],a6=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i6=/mailto:/i,o6=/\n{2,}$/,rx=/^(\s*>[\s\S]*?)(?=\n\n|$)/,s6=/^ *> ?/gm,l6=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,c6=/^ {2,}\n/,u6=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ax=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,ix=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,f6=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,d6=/^(?:\n *)*\n/,h6=/\r\n?/g,m6=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,p6=/^\[\^([^\]]+)]/,b6=/\f/g,g6=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,y6=/^\s*?\[(x|\s)\]/,ox=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,sx=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,lx=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,pb=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,v6=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,cx=/^<!--[\s\S]*?(?:-->)/,_6=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,bb=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,E6=/^\{.*\}$/,w6=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,S6=/^<([^ >]+@[^ >]+)>/,x6=/^<([^ >]+:\/[^ >]+)>/,k6=/-([a-z])?/gi,ux=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,T6=/^[^\n]+(?: \n|\n{2,})/,N6=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,R6=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,A6=/^\[([^\]]*)\] ?\[([^\]]*)\]/,O6=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,C6=/\t/g,D6=/(^ *\||\| *$)/g,M6=/^ *:-+: *$/,U6=/^ *:-+ *$/,B6=/^ *-+: *$/,ad="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",L6=new RegExp(`^([*_])\\1${ad}\\1\\1(?!\\1)`),j6=new RegExp(`^([*_])${ad}\\1(?!\\1)`),H6=new RegExp(`^(==)${ad}\\1`),z6=new RegExp(`^(~~)${ad}\\1`),V6=/^\\([^0-9A-Za-z\s])/,fx=/\\([^0-9A-Za-z\s])/g,I6=/^(?: |[\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[! ])*)/,G6=/^\n+/,q6=/^([ \t]*)/,F6=/\\([^\\])/g,P6=/(?:^|\n)( *)$/,Kg="(?:\\d+\\.)",Jg="(?:[*+-])";function zT(n){return"( *)("+(n===1?Kg:Jg)+") +"}const VT=zT(1),IT=zT(2);function GT(n){return new RegExp("^"+(n===1?VT:IT))}const $6=GT(1),Y6=GT(2);function qT(n){return new RegExp("^"+(n===1?VT:IT)+"[^\\n]*(?:\\n(?!\\1"+(n===1?Kg:Jg)+" )[^\\n]*)*(\\n|$)","gm")}const X6=qT(1),Z6=qT(2);function FT(n){const a=n===1?Kg:Jg;return new RegExp("^( *)("+a+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+a+" (?!"+a+" ))\\n*|\\s*\\n*$)")}const PT=FT(1),$T=FT(2);function dx(n,a){const o=a===1,l=o?PT:$T,u=o?X6:Z6,f=o?$6:Y6;return{match:us(function(d,m){const p=P6.exec(m.prevCapture);return p&&(m.list||!m.inline&&!m.simple)?l.exec(d=p[1]+d):null}),order:1,parse(d,m,p){const y=o?+d[2]:void 0,v=d[0].replace(o6,`
|
|
326
|
-
`).match(u);let E=!1;return{items:v.map(function(
|
|
325
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),D.warnIfExceeded()),w}}}function xf(n){return typeof n=="boolean"}var OU=()=>function(a){const{thunk:o=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=a??{};let d=new BT;o&&(xf(o)?d.push(vU):d.push(_U(o.extraArgument)));{if(l){let m={};xf(l)||(m=l),d.unshift(RU(m))}if(u){let m={};xf(u)||(m=u),d.push(AU(m))}if(f){let m={};xf(f)||(m=f),d.unshift(kU(m))}}return d},CU="RTK_autoBatch",rx=n=>a=>{setTimeout(a,n)},DU=(n={type:"raf"})=>a=>(...o)=>{const l=a(...o);let u=!0,f=!1,d=!1;const m=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),g=()=>{d=!1,f&&(f=!1,m.forEach(v=>v()))};return Object.assign({},l,{subscribe(v){const E=()=>u&&v(),y=l.subscribe(E);return m.add(v),()=>{y(),m.delete(v)}},dispatch(v){var E;try{return u=!((E=v==null?void 0:v.meta)!=null&&E[CU]),f=!u,f&&(d||(d=!0,p(g))),l.dispatch(v)}finally{u=!0}}})},MU=n=>function(o){const{autoBatch:l=!0}=o??{};let u=new BT(n);return l&&u.push(DU(typeof l=="object"?l:void 0)),u};function UU(n){const a=OU(),{reducer:o=void 0,middleware:l,devTools:u=!0,duplicateMiddlewareCheck:f=!0,preloadedState:d=void 0,enhancers:m=void 0}=n||{};let p;if(typeof o=="function")p=o;else if(lc(o))p=xT(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 g;if(typeof l=="function"){if(g=l(a),!Array.isArray(g))throw new Error("when using a middleware builder function, an array of middleware must be returned")}else g=a();if(g.some(D=>typeof D!="function"))throw new Error("each middleware provided to configureStore must be a function");if(f){let D=new Set;g.forEach(T=>{if(D.has(T))throw new Error("Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");D.add(T)})}let v=Ff;u&&(v=EU({trace:!0,...typeof u=="object"&&u}));const E=sU(...g),y=MU(E);if(m&&typeof m!="function")throw new Error("`enhancers` field must be a callback");let N=typeof m=="function"?m(y):y();if(!Array.isArray(N))throw new Error("`enhancers` callback must return an array");if(N.some(D=>typeof D!="function"))throw new Error("each enhancer provided to configureStore must be a function");g.length&&!N.includes(E)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const w=v(...N);return ST(p,d,w)}function IT(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 m=typeof f=="string"?f:f.type;if(!m)throw new Error("`builder.addCase` cannot be called with an empty action type");if(m in a)throw new Error(`\`builder.addCase\` cannot be called with two reducers for the same action type '${m}'`);return a[m]=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 BU(n){return typeof n=="function"}function LU(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]=IT(a),f;if(BU(n))f=()=>nx(n());else{const m=nx(n);f=()=>m}function d(m=f(),p){let g=[o[p.type],...l.filter(({matcher:v})=>v(p)).map(({reducer:v})=>v)];return g.filter(v=>!!v).length===0&&(g=[u]),g.reduce((v,E)=>{if(E)if(eo(v)){const N=E(v,p);return N===void 0?v:N}else{if(ya(v))return DT(v,y=>E(y,p));{const y=E(v,p);if(y===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return v},m)}return d.getInitialState=f,d}var jU=Symbol.for("rtk-slice-createasyncthunk");function HU(n,a){return`${n}/${a}`}function zU({creators:n}={}){var o;const a=(o=n==null?void 0:n.asyncThunk)==null?void 0:o[jU];return function(u){const{name:f,reducerPath:d=f}=u;if(!f)throw new Error("`name` is a required option for createSlice");const m=(typeof u.reducers=="function"?u.reducers(VU()):u.reducers)||{},p=Object.keys(m),g={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},v={addCase(A,L){const F=typeof A=="string"?A:A.type;if(!F)throw new Error("`context.addCase` cannot be called with an empty action type");if(F in g.sliceCaseReducersByType)throw new Error("`context.addCase` cannot be called with two reducers for the same action type: "+F);return g.sliceCaseReducersByType[F]=L,v},addMatcher(A,L){return g.sliceMatchers.push({matcher:A,reducer:L}),v},exposeAction(A,L){return g.actionCreators[A]=L,v},exposeCaseReducer(A,L){return g.sliceCaseReducersByName[A]=L,v}};p.forEach(A=>{const L=m[A],F={reducerName:A,type:HU(f,A),createNotation:typeof u.reducers=="function"};qU(L)?PU(F,L,v,a):GU(F,L,v)});function E(){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[A={},L=[],F=void 0]=typeof u.extraReducers=="function"?IT(u.extraReducers):[u.extraReducers],Z={...A,...g.sliceCaseReducersByType};return LU(u.initialState,J=>{for(let X in Z)J.addCase(X,Z[X]);for(let X of g.sliceMatchers)J.addMatcher(X.matcher,X.reducer);for(let X of L)J.addMatcher(X.matcher,X.reducer);F&&J.addDefaultCase(F)})}const y=A=>A,N=new Map,w=new WeakMap;let D;function T(A,L){return D||(D=E()),D(A,L)}function M(){return D||(D=E()),D.getInitialState()}function U(A,L=!1){function F(J){let X=J[A];if(typeof X>"u")if(L)X=Sf(w,F,M);else throw new Error("selectSlice returned undefined for an uninjected slice reducer");return X}function Z(J=y){const X=Sf(N,L,()=>new WeakMap);return Sf(X,J,()=>{const te={};for(const[ne,se]of Object.entries(u.selectors??{}))te[ne]=IU(se,J,()=>Sf(w,J,M),L);return te})}return{reducerPath:A,getSelectors:Z,get selectors(){return Z(F)},selectSlice:F}}const C={name:f,reducer:T,actions:g.actionCreators,caseReducers:g.sliceCaseReducersByName,getInitialState:M,...U(d),injectInto(A,{reducerPath:L,...F}={}){const Z=L??d;return A.inject({reducerPath:Z,reducer:T},F),{...C,...U(Z,!0)}}};return C}}function IU(n,a,o,l){function u(f,...d){let m=a(f);if(typeof m>"u")if(l)m=o();else throw new Error("selectState returned undefined for an uninjected slice reducer");return n(m,...d)}return u.unwrapped=n,u}var Qg=zU();function VU(){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 GU({type:n,reducerName:a,createNotation:o},l,u){let f,d;if("reducer"in l){if(o&&!FU(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 qU(n){return n._reducerDefinitionType==="asyncThunk"}function FU(n){return n._reducerDefinitionType==="reducerWithPrepare"}function PU({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:m,rejected:p,settled:g,options:v}=o,E=u(n,f,v);l.exposeAction(a,E),d&&l.addCase(E.fulfilled,d),m&&l.addCase(E.pending,m),p&&l.addCase(E.rejected,p),g&&l.addMatcher(E.settled,g),l.exposeCaseReducer(a,{fulfilled:d||kf,pending:m||kf,rejected:p||kf,settled:g||kf})}function kf(){}const $U={formValues:{}},VT=Qg({name:"start-screen",initialState:$U,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,a){n.startScreenStatus="HIDDEN",n.formValues=a.payload}}}),{startChat:YU,showStartScreen:XU}=VT.actions,ZU=VT.reducer,GT="RESET_CHAT_STATE",QU=()=>({type:vT}),WU=()=>({type:GT}),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(m=>{if(!m.ok)throw new Error(`HTTP error! Status: ${m.status}`);return m.json()}).then(m=>{const p={...m,chunkId:l,highlighted:u};f({type:gT,payload:p})}).catch(m=>{console.error("Error fetching source infos:",m),f({type:Pg,payload:{highlighted:u}})})},KU=()=>({type:Yg}),Wg="CONNECT",Kg="CONNECTING",Jg="CONNECTED",ey="DISCONNECTED",ty="RECONNECTED",ny="RESTORE_SESSION_ID",id="START",od="CLEAR_SESSION_ID",JU=[Wg,Kg,Jg,ey,ty,ny],e6=(n,a)=>({type:Wg,clientName:n,querystrings:a}),t6=n=>({type:ny,sessionId:n}),n6=()=>({type:Kg}),r6=()=>({type:Jg}),a6=()=>({type:ey}),i6=()=>({type:ty}),qT=(n,a)=>(o,l)=>{const u=l().connection,f=l().startScreen.formValues;let d=u.sessionId;d===void 0&&(d=hg());let m=u.userId;if(m===void 0){const p=wf.get("bubble-chat-user-id")||wf.get("bubble-chat-userId")||wf.get("bf-webclient-userId");m=p||hg(),wf.set("bubble-chat-user-id",m)}o({type:id,payload:{sessionId:d,userId:m,clientName:n,querystrings:{...a,...f}}})},sd=(n,a)=>(o,l)=>{const u=l().connection.sessionId||"";if(o(o6(u)),o(WU()),l().settings.enableStartScreen)o(XU());else return o(qT(n,a))},o6=n=>({type:od,payload:{sessionId:n}}),yt=()=>{const n=Jf();return o=>{const l=n.formatMessage({id:o});return l===o?void 0:l}};var Wi=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Wi||{}),Xf=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(Xf||{});const s6="_container_q2uun_1",l6="_chatcontent_q2uun_6",c6="_accessabilityHidden_q2uun_12",yb={container:s6,chatcontent:l6,accessabilityHidden:c6},u6="_messageContainer_ofi0g_1",f6="_messages_ofi0g_12",ox={messageContainer:u6,messages:f6};function Qi(){return Qi=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},Qi.apply(this,arguments)}const d6=["children","options"],ye={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var sx;(function(n){n[n.MAX=0]="MAX",n[n.HIGH=1]="HIGH",n[n.MED=2]="MED",n[n.LOW=3]="LOW",n[n.MIN=4]="MIN"})(sx||(sx={}));const lx=["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"}),cx={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,}$/,ux=/^(\s*>[\s\S]*?)(?=\n\n|$)/,y6=/^ *> ?/gm,v6=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,_6=/^ {2,}\n/,E6=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,fx=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,dx=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,w6=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,S6=/^(?:\n *)*\n/,x6=/\r\n?/g,k6=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,T6=/^\[\^([^\]]+)]/,N6=/\f/g,R6=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,A6=/^\s*?\[(x|\s)\]/,hx=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,mx=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,px=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,vb=/^ *(?!<[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,bx=/^<!--[\s\S]*?(?:-->)/,C6=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,_b=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,D6=/^\{.*\}$/,M6=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U6=/^<([^ >]+@[^ >]+)>/,B6=/^<([^ >]+:\/[^ >]+)>/,L6=/-([a-z])?/gi,gx=/^(\|.*)\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=/^ *-+: *$/,ld="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Y6=new RegExp(`^([*_])\\1${ld}\\1\\1(?!\\1)`),X6=new RegExp(`^([*_])${ld}\\1(?!\\1)`),Z6=new RegExp(`^(==)${ld}\\1`),Q6=new RegExp(`^(~~)${ld}\\1`),W6=/^\\([^0-9A-Za-z\s])/,yx=/\\([^0-9A-Za-z\s])/g,K6=/^(?: |[\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[! ])*)/,J6=/^\n+/,e4=/^([ \t]*)/,t4=/\\([^\\])/g,n4=/(?:^|\n)( *)$/,ry="(?:\\d+\\.)",ay="(?:[*+-])";function FT(n){return"( *)("+(n===1?ry:ay)+") +"}const PT=FT(1),$T=FT(2);function YT(n){return new RegExp("^"+(n===1?PT:$T))}const r4=YT(1),a4=YT(2);function XT(n){return new RegExp("^"+(n===1?PT:$T)+"[^\\n]*(?:\\n(?!\\1"+(n===1?ry:ay)+" )[^\\n]*)*(\\n|$)","gm")}const i4=XT(1),o4=XT(2);function ZT(n){const a=n===1?ry:ay;return new RegExp("^( *)("+a+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+a+" (?!"+a+" ))\\n*|\\s*\\n*$)")}const QT=ZT(1),WT=ZT(2);function vx(n,a){const o=a===1,l=o?QT:WT,u=o?i4:o4,f=o?r4:a4;return{match:us(function(d,m){const p=n4.exec(m.prevCapture);return p&&(m.list||!m.inline&&!m.simple)?l.exec(d=p[1]+d):null}),order:1,parse(d,m,p){const g=o?+d[2]:void 0,v=d[0].replace(g6,`
|
|
326
|
+
`).match(u);let E=!1;return{items:v.map(function(y,N){const w=f.exec(y)[0].length,D=new RegExp("^ {1,"+w+"}","gm"),T=y.replace(D,"").replace(f,""),M=N===v.length-1,U=T.indexOf(`
|
|
327
327
|
|
|
328
328
|
`)!==-1||M&&E;E=U;const C=p.inline,A=p.list;let L;p.list=!0,U?(p.inline=!1,L=ec(T)+`
|
|
329
329
|
|
|
330
|
-
`):(p.inline=!0,L=ec(T));const F=m(L,p);return p.inline=C,p.list=A,F}),ordered:o,start:
|
|
331
|
-
`).map(function(
|
|
330
|
+
`):(p.inline=!0,L=ec(T));const F=m(L,p);return p.inline=C,p.list=A,F}),ordered:o,start:g}},render:(d,m,p)=>n(d.ordered?"ol":"ul",{key:p.key,start:d.type===ye.orderedList?d.start:void 0},d.items.map(function(g,v){return n("li",{key:v},m(g,p))}))}}const s4=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),l4=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function ec(n){let a=n.length;for(;a>0&&n[a-1]<=" ";)a--;return n.slice(0,a)}function Pl(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 c4(n){return $6.test(n)?"right":F6.test(n)?"center":P6.test(n)?"left":null}function _x(n,a,o,l){const u=o.inTable;o.inTable=!0;let f=[[]],d="";function m(){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,g,v)=>{p.trim()==="|"&&(m(),l)?g!==0&&g!==v.length-1&&f.push([]):d+=p}),m(),o.inTable=u,f}function u4(n,a,o){o.inline=!0;const l=n[2]?n[2].replace(q6,"").split("|").map(c4):[],u=n[3]?function(d,m,p){return d.trim().split(`
|
|
331
|
+
`).map(function(g){return _x(g,m,p,!0)})}(n[3],a,o):[],f=_x(n[1],a,o,!!u.length);return o.inline=!1,u.length?{align:l,cells:u,header:f,type:ye.table}:{children:f,type:ye.paragraph}}function Ex(n,a){return n.align[a]==null?{}:{textAlign:n.align[a]}}function us(n){return n.inline=1,n}function Ja(n){return us(function(a,o){return o.inline?n.exec(a):null})}function ei(n){return us(function(a,o){return o.inline||o.simple?n.exec(a):null})}function ha(n){return function(a,o){return o.inline||o.simple?null:n.exec(a)}}function $l(n){return us(function(a){return n.exec(a)})}const f4=/(javascript|vbscript|data(?!:image)):/i;function d4(n){try{const a=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(f4.test(a))return null}catch{return null}return n}function wx(n){return n.replace(t4,"$1")}function Hf(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 h4(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 m4(n,a,o){const l=o.inline||!1;o.inline=!1;const u=n(a,o);return o.inline=l,u}const Eb=(n,a,o)=>({children:Hf(a,n[2],o)});function wb(){return{}}function Sb(){return null}function p4(...n){return n.filter(Boolean).join(" ")}function xb(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 b4(n="",a={}){a.overrides=a.overrides||{},a.sanitizer=a.sanitizer||d4,a.slugify=a.slugify||Pl,a.namedCodesToUnicode=a.namedCodesToUnicode?Qi({},cx,a.namedCodesToUnicode):cx,a.createElement=a.createElement||I.createElement;const o=[ux,fx,dx,a.enforceAtxHeadings?mx:hx,px,gx,QT,WT],l=[...o,j6,vb,bx,_b];function u(w,D,...T){const M=xb(a.overrides,`${w}.props`,{});return a.createElement(function(U,C){const A=xb(C,U);return A?typeof A=="function"||typeof A=="object"&&"render"in A?A:xb(C,`${U}.component`,U):U}(w,a.overrides),Qi({},D,M,{className:p4(D==null?void 0:D.className,M.className)||void 0}),...T)}function f(w){w=w.replace(R6,"");let D=!1;a.forceInline?D=!0:a.forceBlock||(D=V6.test(w)===!1);const T=E(v(D?w:`${ec(w).replace(J6,"")}
|
|
332
332
|
|
|
333
|
-
`,{inline:D}));for(;typeof T[T.length-1]=="string"&&!T[T.length-1].trim();)T.pop();if(a.wrapper===null)return T;const M=a.wrapper||(D?"span":"div");let U;if(T.length>1||a.forceWrapper)U=T;else{if(T.length===1)return U=T[0],typeof U=="string"?u("span",{key:"outer"},U):U;U=null}return a.createElement(M,{key:"outer"},U)}function d(w,D){const T=D.match(
|
|
333
|
+
`,{inline:D}));for(;typeof T[T.length-1]=="string"&&!T[T.length-1].trim();)T.pop();if(a.wrapper===null)return T;const M=a.wrapper||(D?"span":"div");let U;if(T.length>1||a.forceWrapper)U=T;else{if(T.length===1)return U=T[0],typeof U=="string"?u("span",{key:"outer"},U):U;U=null}return a.createElement(M,{key:"outer"},U)}function d(w,D){const T=D.match(p6);return T?T.reduce(function(M,U){const C=U.indexOf("=");if(C!==-1){const A=function(J){return J.indexOf("-")!==-1&&J.match(C6)===null&&(J=J.replace(L6,function(X,te){return te.toUpperCase()})),J}(U.slice(0,C)).trim(),L=function(J){const X=J[0];return(X==='"'||X==="'")&&J.length>=2&&J[J.length-1]===X?J.slice(1,-1):J}(U.slice(C+1).trim()),F=lx[A]||A;if(F==="ref")return M;const Z=M[F]=function(J,X,te,ne){return X==="style"?function(se){const he=[];let Le="",Ae=!1,W=!1,ge="";if(!se)return he;for(let we=0;we<se.length;we++){const $=se[we];if($!=='"'&&$!=="'"||Ae||(W?$===ge&&(W=!1,ge=""):(W=!0,ge=$)),$==="("&&Le.endsWith("url")?Ae=!0:$===")"&&Ae&&(Ae=!1),$!==";"||W||Ae)Le+=$;else{const de=Le.trim();if(de){const le=de.indexOf(":");if(le>0){const Ge=de.slice(0,le).trim(),Je=de.slice(le+1).trim();he.push([Ge,Je])}}Le=""}}const fe=Le.trim();if(fe){const we=fe.indexOf(":");if(we>0){const $=fe.slice(0,we).trim(),de=fe.slice(we+1).trim();he.push([$,de])}}return he}(te).reduce(function(se,[he,Le]){return se[he.replace(/(-[a-z])/g,Ae=>Ae[1].toUpperCase())]=ne(Le,J,he),se},{}):m6.indexOf(X)!==-1?ne(te,J,X):(te.match(D6)&&(te=te.slice(1,te.length-1)),te==="true"||te!=="false"&&te)}(w,A,L,a.sanitizer);typeof Z=="string"&&(vb.test(Z)||_b.test(Z))&&(M[F]=f(Z.trim()))}else U!=="style"&&(M[lx[U]||U]=!0);return M},{}):null}const m=[],p={},g={[ye.blockQuote]:{match:ha(ux),order:1,parse(w,D,T){const[,M,U]=w[0].replace(y6,"").match(v6);return{alert:M,children:D(U,T)}},render(w,D,T){const M={key:T.key};return w.alert&&(M.className="markdown-alert-"+a.slugify(w.alert.toLowerCase(),Pl),w.children.unshift({attrs:{},children:[{type:ye.text,text:w.alert}],noInnerParse:!0,type:ye.htmlBlock,tag:"header"})),u("blockquote",M,D(w.children,T))}},[ye.breakLine]:{match:$l(_6),order:1,parse:wb,render:(w,D,T)=>u("br",{key:T.key})},[ye.breakThematic]:{match:ha(E6),order:1,parse:wb,render:(w,D,T)=>u("hr",{key:T.key})},[ye.codeBlock]:{match:ha(dx),order:0,parse:w=>({lang:void 0,text:ec(w[0].replace(/^ {4}/gm,"")).replace(yx,"$1")}),render:(w,D,T)=>u("pre",{key:T.key},u("code",Qi({},w.attrs,{className:w.lang?`lang-${w.lang}`:""}),w.text))},[ye.codeFenced]:{match:ha(fx),order:0,parse:w=>({attrs:d("code",w[3]||""),lang:w[2]||void 0,text:w[4],type:ye.codeBlock})},[ye.codeInline]:{match:ei(w6),order:3,parse:w=>({text:w[2].replace(yx,"$1")}),render:(w,D,T)=>u("code",{key:T.key},w.text)},[ye.footnote]:{match:ha(k6),order:0,parse:w=>(m.push({footnote:w[2],identifier:w[1]}),{}),render:Sb},[ye.footnoteReference]:{match:Ja(T6),order:1,parse:w=>({target:`#${a.slugify(w[1],Pl)}`,text:w[1]}),render:(w,D,T)=>u("a",{key:T.key,href:a.sanitizer(w.target,"a","href")},u("sup",{key:T.key},w.text))},[ye.gfmTask]:{match:Ja(A6),order:1,parse:w=>({completed:w[1].toLowerCase()==="x"}),render:(w,D,T)=>u("input",{checked:w.completed,key:T.key,readOnly:!0,type:"checkbox"})},[ye.heading]:{match:ha(a.enforceAtxHeadings?mx:hx),order:1,parse:(w,D,T)=>({children:Hf(D,w[2],T),id:a.slugify(w[2],Pl),level:w[1].length}),render:(w,D,T)=>u(`h${w.level}`,{id:w.id,key:T.key},D(w.children,T))},[ye.headingSetext]:{match:ha(px),order:0,parse:(w,D,T)=>({children:Hf(D,w[1],T),level:w[2]==="="?1:2,type:ye.heading})},[ye.htmlBlock]:{match:$l(vb),order:1,parse(w,D,T){const[,M]=w[3].match(e4),U=new RegExp(`^${M}`,"gm"),C=w[3].replace(U,""),A=(L=C,l.some(te=>te.test(L))?m4:Hf);var L;const F=w[1].toLowerCase(),Z=h6.indexOf(F)!==-1,J=(Z?F:w[1]).trim(),X={attrs:d(J,w[2]),noInnerParse:Z,tag:J};return T.inAnchor=T.inAnchor||F==="a",Z?X.text=w[3]:X.children=A(D,C,T),T.inAnchor=!1,X},render:(w,D,T)=>u(w.tag,Qi({key:T.key},w.attrs),w.text||(w.children?D(w.children,T):""))},[ye.htmlSelfClosing]:{match:$l(_b),order:1,parse(w){const D=w[1].trim();return{attrs:d(D,w[2]||""),tag:D}},render:(w,D,T)=>u(w.tag,Qi({},w.attrs,{key:T.key}))},[ye.htmlComment]:{match:$l(bx),order:1,parse:()=>({}),render:Sb},[ye.image]:{match:ei(l4),order:1,parse:w=>({alt:w[1],target:wx(w[2]),title:w[3]}),render:(w,D,T)=>u("img",{key:T.key,alt:w.alt||void 0,title:w.title||void 0,src:a.sanitizer(w.target,"img","src")})},[ye.link]:{match:Ja(s4),order:3,parse:(w,D,T)=>({children:h4(D,w[1],T),target:wx(w[2]),title:w[3]}),render:(w,D,T)=>u("a",{key:T.key,href:a.sanitizer(w.target,"a","href"),title:w.title},D(w.children,T))},[ye.linkAngleBraceStyleDetector]:{match:Ja(B6),order:0,parse:w=>({children:[{text:w[1],type:ye.text}],target:w[1],type:ye.link})},[ye.linkBareUrlDetector]:{match:us((w,D)=>D.inAnchor||a.disableAutoLink?null:Ja(M6)(w,D)),order:0,parse:w=>({children:[{text:w[1],type:ye.text}],target:w[1],title:void 0,type:ye.link})},[ye.linkMailtoDetector]:{match:Ja(U6),order:0,parse(w){let D=w[1],T=w[1];return b6.test(T)||(T="mailto:"+T),{children:[{text:D.replace("mailto:",""),type:ye.text}],target:T,type:ye.link}}},[ye.orderedList]:vx(u,1),[ye.unorderedList]:vx(u,2),[ye.newlineCoalescer]:{match:ha(S6),order:3,parse:wb,render:()=>`
|
|
334
334
|
`},[ye.paragraph]:{match:us(function(w,D){if(D.inline||D.simple)return null;let T="";w.split(`
|
|
335
335
|
`).every(U=>(U+=`
|
|
336
|
-
`,!o.some(C=>C.test(U))&&(T+=U,!!U.trim())));const M=ec(T);return M==""?null:[T,,M]}),order:3,parse:
|
|
337
|
-
`).replace(b6,"").replace(C6," ")}(M),U)}}(y),E=(g=function(w,D){return function(T,M,U){const C=w[T.type].render;return D?D(()=>C(T,M,U),T,M,U):C(T,M,U)}}(y,a.renderRule),function w(D,T={}){if(Array.isArray(D)){const M=T.key,U=[];let C=!1;for(let A=0;A<D.length;A++){T.key=A;const L=w(D[A],T),F=typeof L=="string";F&&C?U[U.length-1]+=L:L!==null&&U.push(L),C=F}return T.key=M,U}return g(D,w,T)});var g;const N=f(n);return m.length?u("div",null,N,u("footer",{key:"footer"},m.map(function(w){return u("div",{id:a.slugify(w.identifier,Pl),key:w.identifier},w.identifier,E(v(w.footnote,{inline:!0})))}))):N}const jr=n=>{let{children:a="",options:o}=n,l=function(u,f){if(u==null)return{};var d,m,p={},y=Object.keys(u);for(m=0;m<y.length;m++)f.indexOf(d=y[m])>=0||(p[d]=u[d]);return p}(n,t6);return V.cloneElement(i4(a,o),l)},o4="_generalConditionsContainer_55hjg_1",s4="_generalConditions_55hjg_1",l4="_generalConditionsHeader_55hjg_15",c4="_generalConditionsBody_55hjg_26",u4="_generalConditionsAccept_55hjg_35",Yl={generalConditionsContainer:o4,generalConditions:s4,generalConditionsHeader:l4,generalConditionsBody:c4,generalConditionsAccept:u4},f4=()=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:_.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),d4=()=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:_.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),h4="general-conditions.header",m4="general-conditions.body",bx="general-conditions.accept-conditions-note",p4=()=>{const n=yt(),[a,o]=V.useState(!1),l=()=>o(!a),u=m=>{m.key==="ArrowDown"||m.key==="ArrowRight"?o(!0):m.key==="ArrowUp"||m.key==="ArrowLeft"||m.key==="Escape"?o(!1):(m.key==="Enter"||m.key==="Space"||m.key===" ")&&l()},f=n(h4),d=n(bx);return _.jsxDEV("div",{className:ee(Yl.generalConditionsContainer,"chat__generalConditions"),children:[!!(f!=null&&f.length)&&_.jsxDEV("div",{className:Yl.generalConditions,children:[_.jsxDEV("div",{role:"button",onClick:l,onKeyDown:u,tabIndex:0,className:ee(Yl.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":a?"true":"false","aria-pressed":a?"true":"false",children:[_.jsxDEV(jr,{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?_.jsxDEV(d4,{},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):_.jsxDEV(f4,{},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),_.jsxDEV("div",{className:ee(Yl.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:a&&_.jsxDEV(jr,{children:n(m4)||""},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)&&_.jsxDEV("div",{className:ee(Yl.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:_.jsxDEV(jr,{children:n(bx)||""},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)},b4="_message_6i1zm_1",g4="_messageBot_6i1zm_9",y4="_messageBotLast_6i1zm_19",v4="_avatar_6i1zm_19",_4="_messageBotFirst_6i1zm_24",E4="_messageBotAnimated_6i1zm_37",w4="_messageGuest_6i1zm_48",S4="_messageGuestFirst_6i1zm_54",x4="_messageGuestLast_6i1zm_60",k4="_botAvatar_6i1zm_74",T4="_agentAvatar_6i1zm_78",N4="_bubble_6i1zm_82",R4="_bubbleContent_6i1zm_88",A4="_bubbleLeft_6i1zm_102",O4="_leftText_6i1zm_113",C4="_bubbleRight_6i1zm_120",D4="_rightText_6i1zm_130",M4="_sourceInfoReference_6i1zm_162",U4="_sourceInfoReferenceActive_6i1zm_174",Re={message:b4,messageBot:g4,messageBotLast:y4,avatar:v4,messageBotFirst:_4,messageBotAnimated:E4,messageGuest:w4,messageGuestFirst:S4,messageGuestLast:x4,botAvatar:k4,agentAvatar:T4,bubble:N4,bubbleContent:R4,bubbleLeft:A4,leftText:O4,bubbleRight:C4,rightText:D4,sourceInfoReference:M4,sourceInfoReferenceActive:U4},B4="_botMessageActions_1dl7x_1",L4="_alwaysVisible_1dl7x_22",j4="_reported_1dl7x_29",H4="_action_1dl7x_33",ti={botMessageActions:B4,alwaysVisible:L4,reported:j4,action:H4},z4=({alwaysVisible:n,senderType:a,reaction:o,botMessageRef:l,onReaction:u})=>{const f=yt(),[d,m]=V.useState(!1),p=v=>()=>u(v),y=V.useCallback(async()=>{if(l.current)try{m(!0);const v=l.current.innerHTML,E=l.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([E],{type:"text/plain"})})]),await new Promise(g=>setTimeout(g,1500))}finally{m(!1)}},[l]);return _.jsxDEV("div",{className:ee(ti.botMessageActions,n&&ti.alwaysVisible,o&&ti.reported),children:[a===$f.BOT&&_.jsxDEV("button",{className:ee(ti.action,o==="GOOD"&&ti.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:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:o==="GOOD"?_.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):_.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===$f.BOT&&_.jsxDEV("button",{className:ee(ti.action,o==="BAD"&&ti.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:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:o==="BAD"?_.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):_.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),_.jsxDEV("button",{className:ee(ti.action,"tooltip--top-right"),tabIndex:0,"aria-label":f("bot-bubble.copy"),"data-title":f("bot-bubble.copy"),onClick:y,children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:d?_.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):_.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)},YT=V.forwardRef(({message:n,isAnimated:a,isLastMessage:o,isFirstMessageBySender:l,isLastMessageBySender:u,children:f,onReaction:d},m)=>{const p=yt(),y=V.useRef(null),v=n.sender.type===Ie.UserType.BOT;return _.jsxDEV("li",{ref:m,className:ee(Re.message,Re.messageBot,o&&Re.lastMessage,l&&Re.messageBotFirst,u&&Re.messageBotLast,"chat__bubbleContainer",a&&Re.messageBotAnimated,a&&"chat__bubbleContainer--animated",v?"chat__botBubbleContainer":"chat__agentBubbleContainer",l&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[_.jsxDEV("img",{className:ee(Re.avatar,v?Re.botAvatar:Re.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),_.jsxDEV("div",{ref:y,className:ee(Re.bubble,Re.bubbleLeft,"chat__bubble",v?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(v?"bot-bubble.label":"agent-bubble.label"),children:_.jsxDEV("div",{className:ee(Re.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&&_.jsxDEV(z4,{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)}),V4="_sourceList_1n31h_1",I4="_source_1n31h_1",G4="_label_1n31h_37",Eb={sourceList:V4,source:I4,label:G4},XT=n=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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),ZT=n=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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),QT=n=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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),WT=n=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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),q4=({type:n,...a})=>{switch(n){case"WEBSITE":return _.jsxDEV(WT,{...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 _.jsxDEV(QT,{...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 _.jsxDEV(XT,{...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 _.jsxDEV(ZT,{...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)}},ey=({sources:n,onLinkClick:a})=>{const o=yt(),l=f=>()=>{a(f.url)},u=f=>d=>{(d.key==="Enter"||d.key===" ")&&a(f.url)};return n.length?_.jsxDEV("ul",{className:Eb.sourceList,"aria-label":o("bot-bubble.sources"),children:n.map(f=>_.jsxDEV("li",{className:Eb.source,children:_.jsxDEV("a",{role:"button",tabIndex:0,"aria-label":`${o("bot-bubble.source.open")}: ${f.label}`,onClick:l(f),onKeyDown:u(f),children:[_.jsxDEV(q4,{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),_.jsxDEV("div",{className:Eb.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},F4="_button_3ui4g_1",P4="_buttonDefault_3ui4g_13",$4="_buttonPrimary_3ui4g_28",rc={button:F4,buttonDefault:P4,buttonPrimary:$4},id=({className:n,children:a,...o})=>_.jsxDEV("button",{className:ee(rc.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),Y4="_title_b904h_1",X4="_subtitle_b904h_6",Z4="_buttons_b904h_11",Q4="_button_b904h_11",W4="_imageContainer_b904h_34",K4="_image_b904h_34",J4="_video_container_b904h_49",e5="_video_b904h_49",t5="_only_b904h_63",bn={title:Y4,subtitle:X4,buttons:Z4,button:Q4,imageContainer:W4,image:K4,video_container:J4,video:e5,only:t5},n5=({buttons:n,onButtonClick:a})=>_.jsxDEV("div",{className:ee(bn.buttons,"chat__bubbleButtons"),children:n.map((o,l)=>_.jsxDEV(id,{className:ee(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 xf={},kf={},Tf={},gx;function r5(){if(gx)return Tf;gx=1,Object.defineProperty(Tf,"__esModule",{value:!0});var n=no(),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 Tf.default=function(l,u,f){return a.createElement("a",{href:l,key:f},u)},Tf}var Nf={},yx;function a5(){return yx||(yx=1,Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.default=function(n){return n}),Nf}var Rf={},wb,vx;function i5(){return vx||(vx=1,wb=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),wb}var Sb,_x;function o5(){return _x||(_x=1,Sb=/[\0-\x1F\x7F-\x9F]/),Sb}var xb,Ex;function s5(){return Ex||(Ex=1,xb=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),xb}var kb,wx;function l5(){return wx||(wx=1,kb=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),kb}var Tb,Sx;function c5(){return Sx||(Sx=1,Tb=function(n){var a={};a.src_Any=i5().source,a.src_Cc=o5().source,a.src_Z=s5().source,a.src_P=l5().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}),Tb}var Nb,xx;function u5(){if(xx)return Nb;xx=1;function n(C){var A=Array.prototype.slice.call(arguments,1);return A.forEach(function(L){L&&Object.keys(L).forEach(function(F){C[F]=L[F]})}),C}function a(C){return Object.prototype.toString.call(C)}function o(C){return a(C)==="[object String]"}function l(C){return a(C)==="[object Object]"}function u(C){return a(C)==="[object RegExp]"}function f(C){return a(C)==="[object Function]"}function d(C){return C.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var m={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(C){return Object.keys(C||{}).reduce(function(A,L){return A||m.hasOwnProperty(L)},!1)}var y={"http:":{validate:function(C,A,L){var F=C.slice(A);return L.re.http||(L.re.http=new RegExp("^\\/\\/"+L.re.src_auth+L.re.src_host_port_strict+L.re.src_path,"i")),L.re.http.test(F)?F.match(L.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(C,A,L){var F=C.slice(A);return L.re.no_http||(L.re.no_http=new RegExp("^"+L.re.src_auth+"(?:localhost|(?:(?:"+L.re.src_domain+")\\.)+"+L.re.src_domain_root+")"+L.re.src_port+L.re.src_host_terminator+L.re.src_path,"i")),L.re.no_http.test(F)?A>=3&&C[A-3]===":"||A>=3&&C[A-3]==="/"?0:F.match(L.re.no_http)[0].length:0}},"mailto:":{validate:function(C,A,L){var F=C.slice(A);return L.re.mailto||(L.re.mailto=new RegExp("^"+L.re.src_email_name+"@"+L.re.src_host_strict,"i")),L.re.mailto.test(F)?F.match(L.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]",E="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function g(C){C.__index__=-1,C.__text_cache__=""}function N(C){return function(A,L){var F=A.slice(L);return C.test(F)?F.match(C)[0].length:0}}function w(){return function(C,A){A.normalize(C)}}function D(C){var A=C.re=c5()(C.__opts__),L=C.__tlds__.slice();C.onCompile(),C.__tlds_replaced__||L.push(v),L.push(A.src_xn),A.src_tlds=L.join("|");function F(te){return te.replace("%TLDS%",A.src_tlds)}A.email_fuzzy=RegExp(F(A.tpl_email_fuzzy),"i"),A.link_fuzzy=RegExp(F(A.tpl_link_fuzzy),"i"),A.link_no_ip_fuzzy=RegExp(F(A.tpl_link_no_ip_fuzzy),"i"),A.host_fuzzy_test=RegExp(F(A.tpl_host_fuzzy_test),"i");var Z=[];C.__compiled__={};function J(te,ne){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+ne)}Object.keys(C.__schemas__).forEach(function(te){var ne=C.__schemas__[te];if(ne!==null){var se={validate:null,link:null};if(C.__compiled__[te]=se,l(ne)){u(ne.validate)?se.validate=N(ne.validate):f(ne.validate)?se.validate=ne.validate:J(te,ne),f(ne.normalize)?se.normalize=ne.normalize:ne.normalize?J(te,ne):se.normalize=w();return}if(o(ne)){Z.push(te);return}J(te,ne)}}),Z.forEach(function(te){C.__compiled__[C.__schemas__[te]]&&(C.__compiled__[te].validate=C.__compiled__[C.__schemas__[te]].validate,C.__compiled__[te].normalize=C.__compiled__[C.__schemas__[te]].normalize)}),C.__compiled__[""]={validate:null,normalize:w()};var X=Object.keys(C.__compiled__).filter(function(te){return te.length>0&&C.__compiled__[te]}).map(d).join("|");C.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+A.src_ZPCc+"))("+X+")","i"),C.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+A.src_ZPCc+"))("+X+")","ig"),C.re.pretest=RegExp("("+C.re.schema_test.source+")|("+C.re.host_fuzzy_test.source+")|@","i"),g(C)}function T(C,A){var L=C.__index__,F=C.__last_index__,Z=C.__text_cache__.slice(L,F);this.schema=C.__schema__.toLowerCase(),this.index=L+A,this.lastIndex=F+A,this.raw=Z,this.text=Z,this.url=Z}function M(C,A){var L=new T(C,A);return C.__compiled__[L.schema].normalize(L,C),L}function U(C,A){if(!(this instanceof U))return new U(C,A);A||p(C)&&(A=C,C={}),this.__opts__=n({},m,A),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},y,C),this.__compiled__={},this.__tlds__=E,this.__tlds_replaced__=!1,this.re={},D(this)}return U.prototype.add=function(A,L){return this.__schemas__[A]=L,D(this),this},U.prototype.set=function(A){return this.__opts__=n(this.__opts__,A),this},U.prototype.test=function(A){if(this.__text_cache__=A,this.__index__=-1,!A.length)return!1;var L,F,Z,J,X,te,ne,se,he;if(this.re.schema_test.test(A)){for(ne=this.re.schema_search,ne.lastIndex=0;(L=ne.exec(A))!==null;)if(J=this.testSchemaAt(A,L[2],ne.lastIndex),J){this.__schema__=L[2],this.__index__=L.index+L[1].length,this.__last_index__=L.index+L[0].length+J;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(se=A.search(this.re.host_fuzzy_test),se>=0&&(this.__index__<0||se<this.__index__)&&(F=A.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(X=F.index+F[1].length,(this.__index__<0||X<this.__index__)&&(this.__schema__="",this.__index__=X,this.__last_index__=F.index+F[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(he=A.indexOf("@"),he>=0&&(Z=A.match(this.re.email_fuzzy))!==null&&(X=Z.index+Z[1].length,te=Z.index+Z[0].length,(this.__index__<0||X<this.__index__||X===this.__index__&&te>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=X,this.__last_index__=te))),this.__index__>=0},U.prototype.pretest=function(A){return this.re.pretest.test(A)},U.prototype.testSchemaAt=function(A,L,F){return this.__compiled__[L.toLowerCase()]?this.__compiled__[L.toLowerCase()].validate(A,F,this):0},U.prototype.match=function(A){var L=0,F=[];this.__index__>=0&&this.__text_cache__===A&&(F.push(M(this,L)),L=this.__last_index__);for(var Z=L?A.slice(L):A;this.test(Z);)F.push(M(this,L)),Z=Z.slice(this.__last_index__),L+=this.__last_index__;return F.length?F:null},U.prototype.tlds=function(A,L){return A=Array.isArray(A)?A:[A],L?(this.__tlds__=this.__tlds__.concat(A).sort().filter(function(F,Z,J){return F!==J[Z-1]}).reverse(),D(this),this):(this.__tlds__=A.slice(),this.__tlds_replaced__=!0,D(this),this)},U.prototype.normalize=function(A){A.schema||(A.url="http://"+A.url),A.schema==="mailto:"&&!/^mailto:/i.test(A.url)&&(A.url="mailto:"+A.url)},U.prototype.onCompile=function(){},Nb=U,Nb}const f5=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 kx;function d5(){if(kx)return Rf;kx=1,Object.defineProperty(Rf,"__esModule",{value:!0});var n=u5(),a=u(n),o=f5,l=u(o);function u(d){return d&&d.__esModule?d:{default:d}}var f=new a.default;return f.tlds(l.default),Rf.default=function(d){return f.match(d)},Rf}var Af={},Tx;function h5(){return Tx||(Tx=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.default=function(n){return n}),Af}var Nx;function m5(){if(Nx)return kf;Nx=1,Object.defineProperty(kf,"__esModule",{value:!0});var n=function(){function M(U,C){for(var A=0;A<C.length;A++){var L=C[A];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(U,L.key,L)}}return function(U,C,A){return C&&M(U.prototype,C),A&&M(U,A),U}}(),a=no(),o=g(a),l=r5(),u=E(l),f=a5(),d=E(f),m=d5(),p=E(m),y=h5(),v=E(y);function E(M){return M&&M.__esModule?M:{default:M}}function g(M){if(M&&M.__esModule)return M;var U={};if(M!=null)for(var C in M)Object.prototype.hasOwnProperty.call(M,C)&&(U[C]=M[C]);return U.default=M,U}function N(M,U){if(!(M instanceof U))throw new TypeError("Cannot call a class as a function")}function w(M,U){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:M}function D(M,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);M.prototype=Object.create(U&&U.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(M,U):M.__proto__=U)}var T=function(M){D(U,M);function U(){return N(this,U),w(this,(U.__proto__||Object.getPrototypeOf(U)).apply(this,arguments))}return n(U,[{key:"parseString",value:function(A){var L=this;if(A==="")return A;var F=this.props.matchDecorator(A);if(!F)return A;var Z=[],J=0;return F.forEach(function(X,te){X.index>J&&Z.push(A.substring(J,X.index));var ne=L.props.hrefDecorator(X.url),se=L.props.textDecorator(X.text),he=L.props.componentDecorator(ne,se,te);Z.push(he),J=X.lastIndex}),A.length>J&&Z.push(A.substring(J)),Z.length===1?Z[0]:Z}},{key:"parse",value:function(A){var L=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof A=="string"?this.parseString(A):o.isValidElement(A)&&A.type!=="a"&&A.type!=="button"?o.cloneElement(A,{key:F},this.parse(A.props.children)):Array.isArray(A)?A.map(function(Z,J){return L.parse(Z,J)}):A}},{key:"render",value:function(){return o.createElement(o.Fragment,null,this.parse(this.props.children))}}]),U}(o.Component);return T.defaultProps={componentDecorator:u.default,hrefDecorator:d.default,matchDecorator:p.default,textDecorator:v.default},kf.default=T,kf}var Rx;function p5(){if(Rx)return xf;Rx=1,Object.defineProperty(xf,"__esModule",{value:!0});var n=m5(),a=o(n);function o(l){return l&&l.__esModule?l:{default:l}}return xf.default=a.default,xf}var b5=p5();const g5=Xf(b5),y5="_text_gp0s0_1",v5="_command_gp0s0_5",Ax={text:y5,command:v5},KT=({text:n,commands:a=[],onLinkClick:o})=>{const l=m=>p=>(p.preventDefault(),m&&o(m),!1),u=(m,p,y)=>_.jsxDEV("a",{onClick:l(m),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(m=>n.startsWith(`/${m}`)),d=f?n.slice(f.length+1):n;return _.jsxDEV("div",{children:[f&&_.jsxDEV("code",{className:Ax.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((m,p)=>_.jsxDEV("span",{className:Ax.text,children:[_.jsxDEV(g5,{componentDecorator:u,children:m},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),_.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)},_5=({subtitle:n,onLinkClick:a})=>n?_.jsxDEV("div",{className:bn.subtitle,children:_.jsxDEV(KT,{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,Ox="newtab#",JT=({markdown:n,markdownOptions:a={},onLinkClick:o})=>{const l=f=>d=>(d.preventDefault(),f&&o(f),!1),u=({title:f,href:d,children:m})=>d.indexOf(Ox)===0?_.jsxDEV("a",{href:d.slice(Ox.length),title:f,target:"_blank",rel:"noopener noreferrer",children:m},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):_.jsxDEV("a",{onClick:l(d),title:f,href:d,children:m},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 _.jsxDEV(jr,{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)},E5=({text:n,onLinkClick:a})=>n?_.jsxDEV("div",{children:_.jsxDEV(JT,{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,w5=({title:n})=>n?_.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,S5=({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)?_.jsxDEV("div",{className:ee(Re.bubbleContent),children:[_.jsxDEV(w5,{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),_.jsxDEV(E5,{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),_.jsxDEV(_5,{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),_.jsxDEV(n5,{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,x5=({alt:n,imageUrl:a,itemUrl:o,hasBody:l})=>a?o?o.indexOf("youtube.com")>-1?_.jsxDEV("div",{className:bn.video_container,children:_.jsxDEV("iframe",{className:ee(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):_.jsxDEV("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:_.jsxDEV("div",{className:bn.imageContainer,children:_.jsxDEV("img",{className:ee(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):_.jsxDEV("div",{className:bn.imageContainer,children:_.jsxDEV("img",{className:ee(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,k5=({title:n,text:a,subtitle:o,imageUrl:l,itemUrl:u,buttons:f,sources:d,onButtonClick:m,onLinkClick:p})=>{const y=!!(n!=null&&n.length)||!!(a!=null&&a.length)||!!(o!=null&&o.length)||!!(f!=null&&f.length);return _.jsxDEV("div",{className:ee(bn.detailMessage),children:[_.jsxDEV(x5,{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&&_.jsxDEV(S5,{title:n,text:a,subtitle:o,buttons:f,onLinkClick:p,onButtonClick:m},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),_.jsxDEV(ey,{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)},T5=V.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:a,children:o},l)=>{const u=yt();return _.jsxDEV("li",{ref:l,className:ee(Re.message,Re.messageGuest,n&&Re.messageGuestFirst,a&&Re.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:_.jsxDEV("div",{className:ee(Re.bubble,Re.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:_.jsxDEV("div",{className:ee(Re.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)}),N5="_markdown_nw7vg_1",eN={markdown:N5},tN=()=>R5(window.location.pathname),R5=n=>{const a=n.split("/"),o=n.endsWith("/");return a[a.length-(o?2:1)]},od=()=>V.useMemo(()=>tN(),[]),Of="source-info-reference",A5=({actionId:n,markdown:a,sources:o,onLinkClick:l})=>{const u=od(),f=ds(),d=O5(),m=Kn(v=>{const E=v.chat.sourceInfos;if((E==null?void 0:E.type)==="loaded"||(E==null?void 0:E.type)==="loading")return E.chunkId}),p=v=>E=>{const g=E.key;(g==="ArrowDown"||g==="ArrowRight"||g==="Enter"||g===" "||g==="Space")&&(E.stopPropagation(),f(WS(u,n,v)))},y=v=>()=>{f(WS(u,n,v))};return V.useLayoutEffect(()=>{document.querySelectorAll(`.${Of}`).forEach(v=>{var N,w,D,T;const E=v.previousSibling;E&&E.nodeType===Node.TEXT_NODE&&((N=E.textContent)!=null&&N.endsWith(" "))&&((w=E.textContent)!=null&&w.trim().length)&&v.classList.add(`${Of}--before-space`);const g=v.nextSibling;g&&g.nodeType===Node.TEXT_NODE&&((D=g.textContent)!=null&&D.startsWith(" "))&&((T=g.textContent)!=null&&T.trim().length)&&v.classList.add(`${Of}--after-space`)})},[a]),_.jsxDEV("div",{className:Re.bubbleContent,children:[_.jsxDEV("div",{className:eN.markdown,children:_.jsxDEV(JT,{markdown:a,onLinkClick:l,markdownOptions:{renderRule(v,E,g,N){if(E.type===ye.footnoteReference){const w=E.text===m;return _.jsxDEV("span",{className:ee(Re.sourceInfoReference,w&&Re.sourceInfoReferenceActive,Of),children:_.jsxDEV("a",{type:"button",tabIndex:0,onClick:y(E.text),onKeyDown:p(E.text),children:d(E.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)},N.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),_.jsxDEV(ey,{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)},O5=()=>{const n=[];return o=>{const l=n.indexOf(o);return l>-1?l+1:(n.push(o),n.length)}},C5=({text:n,commands:a,sources:o,onLinkClick:l})=>_.jsxDEV("div",{className:Re.bubbleContent,children:[_.jsxDEV(KT,{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),_.jsxDEV(ey,{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),D5=V.forwardRef(({message:n,commands:a,isLastMessage:o,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:f,onButtonClick:d,onLinkClick:m},p)=>{const y=M5(n._id,n,a,d,m);switch(n.sender.type){case Ie.UserType.GUEST:return _.jsxDEV(T5,{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=E=>f(n._id,E);return _.jsxDEV(YT,{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)}}}),M5=(n,a,o,l,u)=>{switch(a.type){case Ie.MessageTypeEnum.TEXT:{const f=a;return _.jsxDEV(C5,{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 _.jsxDEV(k5,{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 _.jsxDEV(A5,{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)}}},U5=(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,B5=mk.memo(D5,U5),L5="_ticontainer_xg0dn_1",j5="_tiblock_xg0dn_5",H5="_tidot_xg0dn_12",Xl={ticontainer:L5,tiblock:j5,tidot:H5},z5=({isTyping:n=!1})=>_.jsxDEV("div",{className:Xl.ticontainer,children:_.jsxDEV("div",{className:Xl.tiblock,children:n?_.jsxDEV(_.Fragment,{children:[_.jsxDEV("div",{className:ee(Xl.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),_.jsxDEV("div",{className:ee(Xl.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),_.jsxDEV("div",{className:ee(Xl.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),V5=Object.assign({_id:"typing-indicator"},new Ie.TextMessage("",new Ie.BotUser)),I5=({messages:n,isBotTyping:a,commands:o,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:f})=>{const d=V.useRef(0),m=V.useRef(!0),p=V.useRef(null),y=V.useRef(null),v=V.useRef(null),E=Kn(w=>w.settings.enableGeneralConditions);V.useLayoutEffect(()=>{if(n.length&&p.current&&(d.current<n.length||a)){if(y.current){const w=y.current.offsetTop;p.current.scrollTop=w}else if(v.current){const w=v.current.offsetTop;p.current.scrollTop=w}m.current&&(m.current=!1),d.current=n.length}},[n,m,a]);let g;const N=n.length;return _.jsxDEV("div",{ref:p,className:ee(JS.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&m.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&_.jsxDEV(p4,{},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),_.jsxDEV("ul",{className:JS.messages,children:[n.map((w,D)=>{const T=G5(w,g),M=q5(w,D,n,a);g=w.sender.type;const U=D+1===N;return _.jsxDEV(B5,{ref:U?v:null,message:w,commands:o,isLastMessage:U,isFirstMessageBySender:T,isLastMessageBySender:M,onButtonClick:u,onLinkClick:f,onReaction:l},U&&!a?"last":w._id,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/index.tsx",lineNumber:105,columnNumber:13},void 0)}),a&&_.jsxDEV(YT,{ref:y,message:V5,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:g!==Ie.UserType.BOT,isLastMessageBySender:!0,children:_.jsxDEV(z5,{isTyping:!0},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/conversation/index.tsx",lineNumber:129,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:120,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)},G5=(n,a)=>!a||a!==n.sender.type,q5=(n,a,o,l)=>{var m;const u=n.sender.type,f=o.length;return a+1===f?!(u===Ie.UserType.BOT&&l):u!==((m=o.at(a+1))==null?void 0:m.sender.type)},F5="_bottomSheet_jp8dl_1",P5="_bottomSheetOpen_jp8dl_15",$5="_bottomSheetClose_jp8dl_20",ba={bottomSheet:F5,bottomSheetOpen:P5,bottomSheetClose:$5},Y5="_container_xc2nx_1",Cx={container:Y5},X5=({contentUrl:n})=>{const a=od(),[o,l]=V.useState(!1);V.useEffect(()=>{l(f=>f||!!n)},[n]);const u=V.useMemo(()=>{if(n&&n.startsWith("/"))return new URL(`/${a}${n}`,document.baseURI).toString()},[n,a]);return _.jsxDEV("div",{className:ee(Cx.container,ba.bottomSheet,{[ba.bottomSheetOpen]:!!n,[ba.bottomSheetClose]:o&&!n}),children:u&&_.jsxDEV("iframe",{title:"Drawer",src:u,className:Cx.iframe},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/chat/drawer/index.tsx",lineNumber:35,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:29,columnNumber:5},void 0)},Z5="_container_z787n_1",Q5={container:Z5},W5=({title:n,href:a,children:o})=>_.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),K5=()=>{const a=yt()("powered-by");return a&&a.length?_.jsxDEV("div",{className:ee(Q5.container,"chat__poweredBy"),children:_.jsxDEV(jr,{options:{overrides:{a:W5}},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},Dx=({className:n,children:a,...o})=>_.jsxDEV(id,{className:ee(rc.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),ac=({className:n,children:a,...o})=>_.jsxDEV(id,{className:ee(rc.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),J5="_container_h23mk_1",eB="_formContainer_h23mk_17",tB="_emailInput_h23mk_22",nB="_description_h23mk_52",rB="_actions_h23mk_57",aB="_validationError_h23mk_67",iB="_submitted_h23mk_74",ma={container:J5,formContainer:eB,emailInput:tB,description:nB,actions:rB,validationError:aB,submitted:iB},oB=({visible:n,enableTranscriptExportPdf:a,enableTranscriptExportEmail:o,onEmailExport:l,onPdfExport:u,onClose:f})=>{const d=yt(),[m,p]=V.useState(void 0),[y,v]=V.useState(!1),[E,g]=V.useState(!1),[N,w]=V.useState(void 0),D=V.useRef(null);V.useEffect(()=>{var C;n?((C=D.current)==null||C.focus(),v(!1),g(!1),p(n)):m===!0&&p(!1)},[n,m]);const T=C=>{C.preventDefault(),N&&N.length>0&&(l(N),v(!0),setTimeout(f,3*1e3))},M=C=>{const A=C.target.value.trim(),L=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(A);w(L?A:"")},U=()=>{g(!0),u(),setTimeout(f,3*1e3)};return _.jsxDEV("div",{className:ee(ma.container,ba.bottomSheet,{[ba.bottomSheetOpen]:m===!0,[ba.bottomSheetClose]:m===!1}),children:[a&&_.jsxDEV(_.Fragment,{children:[_.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),_.jsxDEV(jr,{className:ma.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),_.jsxDEV("div",{className:ma.actions,children:[_.jsxDEV(Dx,{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),_.jsxDEV(ac,{onClick:U,disabled:E,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&&_.jsxDEV(_.Fragment,{children:[_.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),_.jsxDEV(jr,{className:ma.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),_.jsxDEV("form",{onSubmit:T,className:ma.formContainer,children:[_.jsxDEV("div",{children:[_.jsxDEV("input",{disabled:y,ref:D,type:"email",placeholder:d("export-transcript.email.placeholder"),className:ma.emailInput,onChange:M},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),(N==null?void 0:N.length)===0?_.jsxDEV("div",{className:ma.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),_.jsxDEV("div",{className:ma.actions,children:[_.jsxDEV(Dx,{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),_.jsxDEV(ac,{type:"submit",disabled:y||N===void 0||N.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&&_.jsxDEV("div",{className:ma.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)},sB="_inputContainer_fi5ao_1",lB={inputContainer:sB},cB="_blockUserInput_pot9c_1",uB={blockUserInput:cB},fB=({visible:n})=>{const a=yt();return n?_.jsxDEV("div",{className:ee(uB.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},dB="_commandsDropdown_5ytuv_1",hB="_commands_5ytuv_1",mB="_command_5ytuv_1",pB="_commandActive_5ytuv_46",bB="_commandsSelections_5ytuv_55",Kl={commandsDropdown:dB,commands:hB,command:mB,commandActive:pB,commandsSelections:bB},gB=(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])},yB=(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(m=>m>0?m-1:n.length-1);break;case"ArrowDown":l(m=>m<n.length-1?m+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,a,o,l,u])},vB=({text:n,commands:a,onSelectCommand:o,onVisibilityChange:l})=>{const u=V.useRef(null),f=yt(),[d,m]=V.useState([]),[p,y]=V.useState(Mx(a)),[v,E]=V.useState(0),g=N=>o(`/${N}`);return gB(u,()=>m([])),yB(d,v,g,E,m),V.useEffect(()=>{y(Mx(a))},[a]),V.useEffect(()=>{const N=n.length||0;N===0||N>p||!n.startsWith("/")?m([]):m(a.filter(_B(n))),E(0)},[a,n,p]),V.useEffect(()=>{l(!!d.length)},[d,l]),d.length?_.jsxDEV("div",{ref:u,className:Kl.commandsDropdown,children:_.jsxDEV("ul",{id:"command-list",className:Kl.commands,role:"listbox",children:d.map((N,w)=>_.jsxDEV("li",{className:ee([Kl.command,v===w&&Kl.commandActive]),role:"option",onClick:()=>g(N),onMouseOver:()=>E(w),children:[_.jsxDEV("h1",{children:["/",N]},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),_.jsxDEV("p",{children:f(`commands.${N}`)},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)]},N,!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},Mx=n=>Math.max(...n.map(a=>a.length+1)),_B=n=>a=>{const o=`/${a}`;return o.startsWith(n)&&o.length>=n.length},Ux=3,EB=({commands:n,onSelectCommand:a})=>{const o=yt(),[l,u]=V.useState(!1),f=y=>()=>{a(`/${y}`),u(!1)},d=()=>{u(!0)},m=()=>{u(!1)},p=l?n:n.slice(0,Ux);return _.jsxDEV("div",{className:Kl.commandsSelections,children:[p.map(y=>_.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?_.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>Ux?_.jsxDEV("button",{"aria-label":o("commands.show-less.tooltip"),"data-title":o("commands.show-less.tooltip"),tabIndex:0,onClick:m,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)},wB="_callToActionContainer_bkfcm_1",SB="_callToActionTitle_bkfcm_23",xB="_rateOverlay_bkfcm_30",kB="_body_bkfcm_52",TB="_footer_bkfcm_60",NB="_actions_bkfcm_73",RB="_bubbles_bkfcm_101",AB="_stars_bkfcm_203",OB="_starsSmall_bkfcm_215",CB="_starsLarge_bkfcm_219",DB="_star_bkfcm_203",MB="_starReadonly_bkfcm_236",UB="_starIcon_bkfcm_246",BB="_starsDescriptionContainer_bkfcm_264",LB="_starsDescription_bkfcm_264",sn={callToActionContainer:wB,callToActionTitle:SB,rateOverlay:xB,body:kB,footer:TB,actions:NB,bubbles:RB,stars:AB,starsSmall:OB,starsLarge:CB,star:DB,starReadonly:MB,starIcon:UB,starsDescriptionContainer:BB,starsDescription:LB},jB=({value:n,index:a,count:o,readonly:l,onHover:u,onClick:f})=>{const d=m=>{f&&m.key==="Enter"&&f()};return _.jsxDEV("li",{className:ee(sn.star,{[sn.starReadonly]:l},"chat__conversationRating__star"),children:_.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:_.jsxDEV("span",{role:"img","aria-label":"Star",className:ee(sn.starIcon),children:_.jsxDEV("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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)},Bx=5,nN=({value:n,size:a,readonly:o=!1,onChange:l})=>{const[u,f]=V.useState(void 0),d=()=>{f(void 0)},m=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 _.jsxDEV("ul",{tabIndex:0,role:"radiogroup",className:ee(sn.stars,{[sn.starsSmall]:a==="small",[sn.starsLarge]:a==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:a==="small",chat__conversationRating__stars__large:a==="large"}),onMouseOut:d,children:Array(Bx).fill(0).map((y,v)=>_.jsxDEV(jB,{value:u===void 0?n:u,index:v,count:Bx,readonly:o,onHover:m(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)},HB=({visible:n,onRate:a})=>{const o=yt();return n?_.jsxDEV("div",{className:ee(sn.callToActionContainer,"chat__conversationRating__callToAction"),children:[_.jsxDEV("div",{className:ee(sn.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),_.jsxDEV(nN,{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},Rb=({isFirstMessageBySender:n,isLastMessageBySender:a,children:o})=>_.jsxDEV("div",{className:ee(Re.message,Re.messageBot,n&&Re.messageBotFirst,a&&Re.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:[_.jsxDEV("img",{className:ee(Re.avatar,Re.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),_.jsxDEV("div",{className:ee(Re.bubble,Re.bubbleLeft,"chat__bubble","chat__botBubble"),children:_.jsxDEV("div",{className:ee(Re.leftText,Re.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),zB=({children:n})=>_.jsxDEV("div",{className:ee(Re.message,Re.messageGuest,Re.messageGuestFirst,Re.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:_.jsxDEV("div",{className:ee(Re.bubble,Re.bubbleRight,"chat__bubble","chat__guestBubble"),children:_.jsxDEV("div",{className:ee(Re.rightText,Re.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),VB=({visible:n,rating:a,onRate:o,onClose:l})=>{const u=yt(),[f,d]=V.useState(a),[m,p]=V.useState(void 0),[y,v]=V.useState(void 0),[E,g]=V.useState({submitted:!1,feedback:""}),[N,w]=V.useState(!1),D=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 M=u(`conversation-rating.overlay.bot-message.rate-feedback.value-${f}`);p(M!=null&&M.length?M:void 0)},[f,u]),V.useEffect(()=>{E.submitted?setTimeout(()=>w(!0),E.feedback.length?500:0):w(!1)},[E]);const T=M=>{var C,A;M.preventDefault();const U=((A=(C=D.current)==null?void 0:C.value)==null?void 0:A.trim())||"";o(f,U),g({submitted:!0,feedback:U})};return _.jsxDEV("div",{className:ee(sn.rateOverlay,ba.bottomSheet,"chat__conversationRating__overlay",{[ba.bottomSheetOpen]:y===!0,[ba.bottomSheetClose]:y===!1}),children:_.jsxDEV("form",{onSubmit:T,children:[_.jsxDEV("div",{className:ee(sn.body,"chat__conversationRating__overlay__body"),children:[_.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:90,columnNumber:11},void 0),_.jsxDEV("div",{className:ee(sn.bubbles),children:n&&m&&_.jsxDEV(_.Fragment,{children:[_.jsxDEV(Rb,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[_.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:98,columnNumber:19},void 0),_.jsxDEV("div",{className:ee(sn.starsDescriptionContainer),children:[_.jsxDEV(nN,{value:f,size:"large",readonly:E.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:100,columnNumber:21},void 0),_.jsxDEV("div",{className:ee(sn.starsDescription),children:[_.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:107,columnNumber:23},void 0),_.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:110,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:106,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:99,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:94,columnNumber:17},void 0),_.jsxDEV(Rb,{isFirstMessageBySender:!1,isLastMessageBySender:!N||!!E.feedback.length,children:_.jsxDEV("div",{children:m},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:125,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:119,columnNumber:17},void 0),!!E.feedback.length&&_.jsxDEV(zB,{children:E.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:129,columnNumber:19},void 0),N&&_.jsxDEV(Rb,{isFirstMessageBySender:!!E.feedback.length,isLastMessageBySender:!0,children:_.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:137,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:133,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:93,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:91,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:84,columnNumber:9},void 0),_.jsxDEV("div",{className:ee(sn.footer,"chat__conversationRating__overlay__footer"),children:[!E.submitted&&_.jsxDEV("input",{ref:D,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:156,columnNumber:13},void 0),_.jsxDEV("div",{className:ee(sn.actions,"chat__conversationRating__overlay__footer__actions"),children:E.submitted?_.jsxDEV(ac,{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:170,columnNumber:15},void 0):_.jsxDEV(ac,{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:174,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:163,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:149,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:83,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:72,columnNumber:5},void 0)},IB=({conversationRating:{enabled:n,rating:a},numberOfMessagesFromGuest:o,showRatingOverlay:l,setShowRatingOverlay:u,onRate:f})=>{const[d,m]=V.useState(0),p=E=>{m(E),u(!0)},y=()=>u(!1),v=!a&&o>=1;return n?_.jsxDEV(_.Fragment,{children:[_.jsxDEV(HB,{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),_.jsxDEV(VB,{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},GB=V.memo(IB),qB="_inputWrapper_e3h44_1",FB="_withOpenCommands_e3h44_14",PB="_messageInputWrapper_e3h44_20",$B="_messageInput_e3h44_20",YB="_buttons_e3h44_44",XB="_button_e3h44_44",$i={inputWrapper:qB,withOpenCommands:FB,messageInputWrapper:PB,messageInput:$B,buttons:YB,button:XB},ZB="_audioRecorder_g845f_1",QB="_audioButton_g845f_6",WB="_recorderIcon_g845f_37",KB="_spinning_g845f_60",Yi={audioRecorder:ZB,audioButton:QB,recorderIcon:WB,spinning:KB},Lx=2048,Yf=16e3;class JB extends mk.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(Lx,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+=Lx}}handleClickSubmitAudio(){const o=t8(this.leftchannel,this.recordingLength),l=n8(o,this.sampleRate||0),u=e8(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 _.jsxDEV("div",{className:Yi.audioRecorder,children:[this.state.recordingState==="none"&&_.jsxDEV("button",{className:ee(Yi.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:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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),_.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"&&_.jsxDEV("svg",{className:Yi.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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),_.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"&&_.jsxDEV("div",{className:Yi.audioRecorder,children:[_.jsxDEV("button",{className:ee(Yi.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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),_.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),_.jsxDEV("div",{className:Yi.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),_.jsxDEV("button",{className:ee(Yi.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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),_.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 e8=n=>{const a=new ArrayBuffer(44+n.length*2),o=new DataView(a);Cf(o,0,"RIFF"),o.setUint32(4,44+n.length*2,!0),Cf(o,8,"WAVE"),Cf(o,12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,1,!0),o.setUint32(24,Yf,!0),o.setUint32(28,Yf*4,!0),o.setUint16(32,4,!0),o.setUint16(34,16,!0),Cf(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"})},Cf=(n,a,o)=>{for(let l=0;l<o.length;l++)n.setUint8(a+l,o.charCodeAt(l))},t8=(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},n8=(n,a)=>{if(Yf===a)return n;const o=a/Yf,l=Math.round(n.length/o),u=new Float32Array(l);let f=0,d=0;for(;f<u.length;){const m=Math.round((f+1)*o);let p=0,y=0;for(let v=d;v<m&&v<n.length;v++)p+=n[v],y++;u[f]=p/y,f++,d=m}return u},r8=({disabled:n,textInput:a,commandsVisible:o,hasCommands:l,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:d,onOpenTranscriptExportModal:m})=>{const p=yt(),y=V.useRef(null),{enableTranscriptExportPdf:v,enableTranscriptExportEmail:E,enableSpeechSupport:g}=Kn(M=>M.settings);V.useEffect(()=>{var M;(M=y.current)==null||M.focus()},[a]);const N=()=>{const M=y.current;M&&a.trim().length>=1&&f(a.trim())&&(M.value="",M.style.height="",M.focus())},w=M=>{M.preventDefault(),N()},D=M=>{const U=M.target.value;u(U),M.target.style.height="";const{scrollHeight:C}=M.target;M.target.style.height=`${C>150?150:C}px`},T=M=>{M.code==="Enter"&&!M.shiftKey?(M.repeat||N(),M.preventDefault()):o&&(M.code==="ArrowUp"||M.code==="ArrowDown")&&M.preventDefault()};return _.jsxDEV("form",{className:ee($i.inputWrapper,o&&$i.withOpenCommands,"chat__textInput"),onSubmit:w,children:[_.jsxDEV("div",{className:$i.messageInputWrapper,children:_.jsxDEV("textarea",{id:"user_input",ref:y,className:$i.messageInput,tabIndex:0,placeholder:p("message-input-placeholder"),value:a,onChange:D,onKeyDown:T,"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),_.jsxDEV("div",{className:ee($i.buttons,"chat__buttons"),children:[!a.length&&(v||E)&&_.jsxDEV("button",{type:"button",className:ee($i.button,"chat__button"),"aria-label":p("message-input.actions.export-transcript.label"),"data-title":p("message-input.actions.export-transcript.label"),tabIndex:0,onClick:m,children:_.jsxDEV("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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?_.jsxDEV("button",{className:ee($i.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:_.jsxDEV("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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&&_.jsxDEV(JB,{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)},a8="_quickReplies_83npe_1",i8="_quickReply_83npe_9",jx={quickReplies:a8,quickReply:i8},o8=({quickReplies:n,onQuickReplyClick:a})=>n.length?_.jsxDEV("div",{className:ee(jx.quickReplies,"chat__quickReplies"),children:n.map(o=>_.jsxDEV(id,{tabIndex:0,className:ee(jx.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,Hx=5e3,s8=1e3,l8=({isBotTyping:n,quickReplies:a,conversationRating:o,numberOfMessagesFromGuest:l,showRatingOverlay:u,commands:f,setShowRatingOverlay:d,onTextInput:m,onRate:p,onQuickReplyClick:y,onAudioRecorded:v,onOpenTranscriptExportModal:E})=>{const[g,N]=V.useState(""),[w,D]=V.useState(!1),[T,M]=V.useState(!1),U=V.useRef(0),C=V.useRef(0);V.useEffect(()=>{if(w&&!n){const F=U.current?Date.now()-U.current:0;F>Hx?D(!1):setTimeout(()=>{D(!1)},Hx-F)}},[w,n]),V.useEffect(()=>{w&&(U.current=Date.now())},[w]);const A=F=>{const Z=Date.now()-C.current<s8;return T?!1:n||Z?(D(!0),!1):(m(F),N(""),C.current=Date.now(),!0)},L=F=>{N(F+" ")};return _.jsxDEV("div",{className:ee(lB.inputContainer),children:[_.jsxDEV(o8,{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),_.jsxDEV(fB,{visible:w},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),!w&&_.jsxDEV(GB,{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)&&_.jsxDEV(vB,{text:g,commands:f,onSelectCommand:L,onVisibilityChange:M},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),_.jsxDEV(r8,{textInput:g,disabled:w,commandsVisible:T,hasCommands:!!(f!=null&&f.length),onTextInput:N,onTextInputSubmit:A,onOpenTranscriptExportModal:E,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)&&_.jsxDEV(EB,{commands:f,onSelectCommand:N},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)},c8=({clientName:n,messages:a,quickReplies:o,isBotTyping:l,drawerContentUrl:u,conversationRating:f,onMessageFromUser:d,onRate:m,onQuickReplyClick:p,onButtonClick:y,onLinkClick:v,onAudioRecorded:E,onTranscriptExport:g,onPdfExport:N,onTranscriptItemReaction:w})=>{const D=ds(),T=Kn(te=>te.connection.connectionState),{enableTranscriptExportPdf:M,enableTranscriptExportEmail:U,commands:C}=Kn(te=>te.settings),[A,L]=V.useState(!1),[F,Z]=V.useState(!1),J=M||U,X=a.filter(te=>te.sender.type===$f.GUEST).length;return V.useEffect(()=>{if(T===Wi.CONNECTED){const te=Kf.parse(window.location.search);D(HT(n,te))}},[n,T,D]),_.jsxDEV("div",{className:mb.container,children:[_.jsxDEV("div",{className:ee([mb.chatcontent,(A||F)&&mb.accessabilityHidden]),children:[_.jsxDEV(I5,{messages:a,isBotTyping:l,commands:C,onButtonClick:y,onLinkClick:v,onTranscriptItemReaction:w},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),_.jsxDEV(l8,{isBotTyping:l,quickReplies:l?[]:o,numberOfMessagesFromGuest:X,conversationRating:A?{enabled:!1}:f,showRatingOverlay:F,setShowRatingOverlay:Z,commands:C,onRate:m,onQuickReplyClick:p,onTextInput:d,onAudioRecorded:E,onOpenTranscriptExportModal:()=>L(!A)},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),_.jsxDEV(K5,{},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),J&&_.jsxDEV(oB,{enableTranscriptExportPdf:M,enableTranscriptExportEmail:U,visible:A,onEmailExport:g,onPdfExport:()=>N(n),onClose:()=>L(!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),_.jsxDEV(X5,{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)},u8=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}},f8=n=>({onRestartChat:(a,o)=>n(rd(a,o)),onMessageFromUser:a=>n(uT(a)),onRate:(a,o)=>n(z3(a,o)),onAudioRecorded:a=>n(U3(a)),onActionFromUser:a=>n(a),onQuickReplyClick:a=>n(cT(a)),onNluEvent:a=>n(pT(a)),onButtonClick:a=>n(I3(a)),onLinkClick:a=>n(G3(a)),onTranscriptExport:a=>n(L3(a)),onPdfExport:a=>n(j3(a)),onTranscriptItemReaction:(a,o)=>n(Ie.Actions.transcriptItemGuestReaction(a,o||null))}),d8=eD(u8,f8)(c8),rN=()=>{const[n,a]=V.useState(!1);return V.useEffect(()=>{a((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},ty=n=>a=>{const o=a.key;(o==="ArrowDown"||o==="ArrowRight"||o==="Enter"||o===" "||o==="Space")&&(a.stopPropagation(),n())},h8=({onClick:n})=>{const a=yt();return rN()?_.jsxDEV("button",{className:"tooltip--bottom-left","aria-label":a("header.close-chat"),"data-title":a("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:ty(n),children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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},m8=()=>{const n=yt(),a=rN(),o=Kn(u=>u.settings.enableStandaloneView),l=()=>{window.open(window.location.href,"_blank")};return a&&o?_.jsxDEV("button",{className:"tooltip--bottom-left","aria-label":n("header.expand-chat"),"data-title":n("header.expand-chat"),tabIndex:0,onClick:l,onKeyDown:ty(l),children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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},p8="_header_1hky6_1",b8="_logoContainer_1hky6_13",g8="_logo_1hky6_13",y8="_actions_1hky6_27",Df={header:p8,logoContainer:b8,logo:g8,actions:y8},v8=({onClick:n})=>{const a=yt();return _.jsxDEV("button",{className:"tooltip--bottom-left","aria-label":a("header.restart-chat"),"data-title":a("header.restart-chat"),tabIndex:0,onClick:n,onKeyDown:ty(n),children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[_.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),_.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)},zx=({className:n,withActions:a=!0,...o})=>{const l=ds(),u=od(),f=()=>{const m=Kf.parse(window.location.search);l(rd(u,m))},d=()=>{l(VU())};return _.jsxDEV("div",{className:ee([Df.header,n]),...o,children:[_.jsxDEV("div",{className:Df.logoContainer,children:_.jsxDEV("div",{className:Df.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),_.jsxDEV("div",{className:Df.actions,children:[a&&_.jsxDEV(v8,{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),_.jsxDEV(m8,{},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),_.jsxDEV(h8,{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)},_8="_chatwindow_rkbir_1",E8="_chatwindowWithAside_rkbir_21",Vx={chatwindow:_8,chatwindowWithAside:E8},aN=()=>{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},w8="_sourceInfos_vei0l_1",S8="_waitForLoading_vei0l_24",x8="_loadingContent_vei0l_28",k8="_sourceHeader_vei0l_37",T8="_sourceHeaderIcon_vei0l_57",N8="_sourceContent_vei0l_61",R8="_openSourceButton_vei0l_69",A8="_sourceButtonLabel_vei0l_79",O8="_closeSourceInfosButton_vei0l_101",C8="_loadingSourceInfos_vei0l_125",D8="_loading_vei0l_28",M8="_loadingError_vei0l_139",U8="_highlightLoadingInfo_vei0l_155",B8="_highlightLoadingInfoInnerContainer_vei0l_169",L8="_highlightLoadingInfoContent_vei0l_178",j8="_highlightLoadingInfoCloseIcon_vei0l_198",H8="_highlightLoader_vei0l_203",z8="_highlightLoaderLoading_vei0l_210",Ht={sourceInfos:w8,waitForLoading:S8,loadingContent:x8,sourceHeader:k8,sourceHeaderIcon:T8,sourceContent:N8,openSourceButton:R8,sourceButtonLabel:A8,closeSourceInfosButton:O8,loadingSourceInfos:C8,loading:D8,loadingError:M8,highlightLoadingInfo:U8,highlightLoadingInfoInnerContainer:B8,highlightLoadingInfoContent:L8,highlightLoadingInfoCloseIcon:j8,highlightLoader:H8,highlightLoaderLoading:z8},V8=({onClick:n})=>{const a=yt();return _.jsxDEV("button",{className:ee(Ht.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":a("source-infos.close"),"data-title":a("source-infos.close"),tabIndex:0,onClick:n,children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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)},I8=V.forwardRef(({sourceInfos:n,onClose:a,...o},l)=>_.jsxDEV("div",{className:Ht.sourceHeader,...o,ref:l,children:[_.jsxDEV("div",{children:n?_.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):_.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),_.jsxDEV(V8,{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)),G8=({loading:n})=>_.jsxDEV("div",{className:Ht.highlightLoader,children:n&&_.jsxDEV("div",{className:Ht.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),q8=({onClose:n})=>{const a=yt();return _.jsxDEV("div",{className:Ht.highlightLoadingInfo,onClick:n,children:[_.jsxDEV("div",{className:Ht.highlightLoadingInfoCloseIcon,children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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),_.jsxDEV("div",{className:Ht.highlightLoadingInfoInnerContainer,children:[_.jsxDEV("div",{className:Ht.highlightLoadingInfoContent,children:[_.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),_.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),_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:_.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)},F8=({title:n,href:a,children:o})=>_.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),P8=({className:n,children:a,...o})=>_.jsxDEV("a",{className:ee(rc.button,rc.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),$8=n=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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),Y8=({type:n,...a})=>{switch(n){case"WEBSITE":return _.jsxDEV(WT,{...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 _.jsxDEV(QT,{...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 _.jsxDEV(XT,{...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 _.jsxDEV($8,{...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 _.jsxDEV(ZT,{...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)}},X8=({url:n,knowledgeBaseType:a})=>{const o=yt();return _.jsxDEV(P8,{className:Ht.openSourceButton,href:n,target:"_blank",children:_.jsxDEV("div",{className:Ht.sourceButtonLabel,children:[_.jsxDEV("div",{className:Ht.sourceHeaderIcon,children:_.jsxDEV(Y8,{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),_.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)},Z8=({sourceInfos:{content:n,url:a,knowledgeBaseType:o,highlighted:l}})=>{const[u,f]=V.useState(!l);return V.useEffect(()=>{l&&f(!1)},[l]),_.jsxDEV(_.Fragment,{children:[_.jsxDEV("div",{className:ee(Ht.sourceContent,eN.markdown),children:[_.jsxDEV(jr,{options:{overrides:{a:F8}},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&&_.jsxDEV(q8,{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),_.jsxDEV(X8,{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)},Q8=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,W8=()=>{const n=yt();return _.jsxDEV("div",{className:Ht.loadingError,children:[_.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),_.jsxDEV("img",{src:Q8,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),_.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)},K8=()=>_.jsxDEV("div",{className:Ht.loadingSourceInfos,children:_.jsxDEV("svg",{className:Ht.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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 J8({sourceInfos:n,onClose:a,threshold:o=100}){const l=V.useRef(null),[u,f]=V.useState(0),[d,m]=V.useState(!1),p=V.useRef(null),y=V.useRef(null),v=V.useCallback(w=>{p.current=w,m(!0)},[]),E=V.useCallback(w=>{if(p.current!==null&&d){const D=w-p.current;D>0&&f(D)}},[d]),g=V.useCallback(()=>{m(!1),u>o&&a(),f(0),p.current=null},[u,o,a]),N=V.useCallback(w=>{const D=L=>v(L.touches[0].clientY),T=L=>E(L.touches[0].clientY),M=()=>g(),U=L=>{L.preventDefault(),v(L.clientY),window.addEventListener("mousemove",C),window.addEventListener("mouseup",A)},C=L=>E(L.clientY),A=()=>{g(),window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",A)};w.addEventListener("touchstart",D),w.addEventListener("touchmove",T),w.addEventListener("touchend",M),w.addEventListener("mousedown",U),y.current=()=>{w.removeEventListener("touchstart",D),w.removeEventListener("touchmove",T),w.removeEventListener("touchend",M),w.removeEventListener("mousedown",U),window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",A)}},[v,E,g]);return V.useEffect(()=>{let w;return(()=>{var T;l.current?((T=y.current)==null||T.call(y),N(l.current)):(w=new MutationObserver(()=>{var M;l.current&&((M=y.current)==null||M.call(y),N(l.current),w==null||w.disconnect())}),w.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{var T;w==null||w.disconnect(),(T=y.current)==null||T.call(y)}},[N,n]),{ref:l,dragOffsetY:u,isDragging:d}}const eL=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},tL=()=>{const n=ds(),a=Kn(p=>p.chat.sourceInfos),o=aN(),l=V.useRef(null),u=eL(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(GU()))},[n,o]),{ref:d,dragOffsetY:m}=J8({onClose:f,sourceInfos:a});return a?_.jsxDEV("dialog",{ref:l,className:ee(Ht.sourceInfos,u?Ht.waitForLoading:a.type==="loading"?Ht.loadingContent:""),style:o&&m?{transform:`translateY(${m}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:_.jsxDEV(_.Fragment,{children:[_.jsxDEV(I8,{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"?_.jsxDEV(K8,{},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"?_.jsxDEV(W8,{},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):_.jsxDEV(_.Fragment,{children:[_.jsxDEV(G8,{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),_.jsxDEV(Z8,{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},nL="_container_114wy_1",rL="_body_114wy_7",aL="_intro_114wy_14",iL="_footer_114wy_39",oL="_footnote_114wy_43",sL="_containerWithFootnote_114wy_58",lL="_startChatButton_114wy_73",cL="_formFields_114wy_77",uL="_formField_114wy_77",fL="_radio_114wy_89",dL="_checkbox_114wy_96",hL="_input_114wy_104",mL="_inputLabel_114wy_138",pL="_selectWrapper_114wy_142",bL="_select_114wy_142",gL="_selectLabel_114wy_188",Yt={container:nL,body:rL,intro:aL,footer:iL,footnote:oL,containerWithFootnote:sL,startChatButton:lL,formFields:cL,formField:uL,radio:fL,checkbox:dL,input:hL,inputLabel:mL,selectWrapper:pL,select:bL,selectLabel:gL},yL=({name:n,label:a,defaultValue:o,required:l,onChange:u})=>{const f=d=>{u(d.currentTarget.checked?"true":"false")};return _.jsxDEV("label",{className:ee(Yt.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[_.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),_.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)},vL=({type:n,name:a,label:o,defaultValue:l,placeholder:u,required:f,multiple:d,min:m,max:p,pattern:y,onChange:v})=>{const E=g=>{v(g.target.value)};return _.jsxDEV("label",{className:ee(Yt.input,"chat__startScreen__input"),htmlFor:a,children:[_.jsxDEV("div",{className:ee(Yt.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),_.jsxDEV("input",{type:n,id:a,name:a,defaultValue:l,placeholder:u,required:f,multiple:d,min:m,max:p,pattern:y,onChange:E},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)},_L=({name:n,value:a,label:o,defaultChecked:l,required:u,onChange:f})=>{const d=`${n}-${a}`,m=p=>{f(p.target.value)};return _.jsxDEV("label",{className:ee(Yt.radio,"chat__startScreen__radio"),htmlFor:d,children:[_.jsxDEV("input",{id:d,type:"radio",name:n,value:a,defaultChecked:l,required:u,onChange:m},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),_.jsxDEV("span",{className:ee(Yt.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)},EL=({name:n,label:a,defaultValue:o,required:l,multiple:u,options:f,onChange:d})=>{const m=p=>{d(p.target.value)};return _.jsxDEV("label",{className:ee(Yt.select,"chat__startScreen__select"),htmlFor:n,children:[_.jsxDEV("div",{className:ee(Yt.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),_.jsxDEV("div",{className:ee(Yt.selectWrapper),children:_.jsxDEV("select",{id:n,name:n,defaultValue:o,required:l,multiple:u,onChange:m,children:Object.entries(f||{}).map(([p,y])=>_.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)},wL="start-screen.intro",SL="start-screen.start-chat",xL="start-screen.footnote",mr="start-screen.form",Ix=`${mr}.fields`,kL=()=>{const n=yt(),a=ds(),[o,l]=V.useState({}),u=()=>{const E=Object.entries(o).reduce((g,[N,w])=>({...g,[N]:w.value}),{});a(jU(E))},f=n(wL),d=n(SL),m=n(xL),p=V.useMemo(()=>{var E;return((E=n(Ix))==null?void 0:E.split(";").map(g=>g.trim()))??[]},[n(Ix)]);V.useEffect(()=>{p.length&&Object.keys(o).length===0&&l(p.reduce((E,g)=>({...E,[g]:TL(g,n)}),{}))},[n,p,o]);const y=E=>{E.preventDefault(),u()},v=E=>g=>{l(N=>({...N,[E]:{...N[E],value:g}}))};return _.jsxDEV("form",{onSubmit:y,className:ee(Yt.container,m&&Yt.containerWithFootnote,"chat__startScreen"),children:[_.jsxDEV("div",{className:ee(Yt.body,"chat__startScreen__body"),children:[f&&_.jsxDEV("div",{className:ee(Yt.intro,"chat__startScreen__intro"),children:_.jsxDEV(jr,{options:{overrides:{a:Gx}},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),_.jsxDEV("div",{className:ee(Yt.formFields,"chat__startScreen__fields"),children:Object.values(o).map(({type:E,name:g,label:N,placeholder:w,defaultValue:D,options:T,required:M,multiple:U,min:C,max:A,pattern:L})=>_.jsxDEV("div",{className:ee(Yt.formField,"chat__startScreen__field"),children:(()=>{switch(E){case"radio":return _.jsxDEV(_.Fragment,{children:[_.jsxDEV("div",{children:N},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(T||{}).map(([F,Z])=>_.jsxDEV(_L,{name:g,value:F,label:Z,defaultChecked:F===D,required:M,onChange:v(g)},void 0,!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 _.jsxDEV(yL,{name:g,label:N,defaultValue:D,required:M,onChange:v(g)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:169,columnNumber:25},void 0);case"select":return _.jsxDEV(EL,{name:g,label:N,defaultValue:D,required:M,multiple:U,options:T,onChange:v(g)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:179,columnNumber:25},void 0);default:return _.jsxDEV(vL,{type:E,name:g,label:N,placeholder:w,defaultValue:D,required:M,multiple:U,min:C,max:A,pattern:L,onChange:v(g)},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:191,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),_.jsxDEV("div",{className:ee(Yt.footer,"chat__startScreen__footer"),children:[_.jsxDEV(ac,{type:"submit",className:Yt.startChatButton,children:d},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:213,columnNumber:9},void 0),m&&_.jsxDEV("div",{className:Yt.footnote,children:_.jsxDEV(jr,{options:{overrides:{a:Gx}},children:m},void 0,!1,{fileName:"/Users/linus/workspace/botfabrik/botfabrik-bot-engine/packages/engine-webclient/client/src/scenes/start/index.tsx",lineNumber:218,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:217,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:212,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)},Gx=({title:n,href:a,children:o})=>_.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:240,columnNumber:5},void 0),TL=(n,a)=>{const o=a(`${mr}.${n}.type`)||"text",l=a(`${mr}.${n}.required`)==="true",u=a(`${mr}.${n}.multiple`)==="true",f=a(`${mr}.${n}.placeholder`),d=a(`${mr}.${n}.label`)||"",m=a(`${mr}.${n}.defaultValue`),p=a(`${mr}.${n}.min`),y=a(`${mr}.${n}.max`),v=a(`${mr}.${n}.pattern`),E=RL(a(`${mr}.${n}.options`));return{name:n,label:d,placeholder:f,value:NL(o,m,E)||"",defaultValue:m,options:E,type:o,required:l,multiple:u,min:p,max:y,pattern:v}},NL=(n,a,o)=>a||n==="select"&&Object.keys(o)[0]||"",RL=(n="")=>n.split(";").map(a=>a.trim()).reduce((a,o)=>{const[l,u]=o.split(":").map(f=>f.trim());return{...a,[l]:u}},{}),AL=()=>{const n=Wf();V.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},ss={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"},OL=({clientName:n})=>{AL();const a=ds(),o=Kn(v=>v.intl.messages),l=yt(),u=Kn(v=>v.settings.enableStartScreen),f=Kn(v=>v.startScreen.startScreenStatus),[d,m]=V.useState(void 0);V.useEffect(()=>{const v=Kf.parse(window.location.search);v.cssClassName&&m(v.cssClassName);const E=g=>{switch(g.data.type){case ss.TRIGGER_ACTION:a(g.data.action);break;case ss.TRIGGER_STORY:a(pT(g.data.story));break;case ss.ON_CHAT_WINDOW_OPEN:a({type:"webclient.chatwindow.opened"});break;case ss.ON_CHAT_WINDOW_CLOSE:a({type:"webclient.chatwindow.closed"});break;case ss.CHAT_MESSAGE_FROM_GUEST:a(uT(g.data.text));break;case ss.RESTART_CHAT:a(rd(n,v));break}};return a(FU(n,v)),window.addEventListener("message",g=>E(g),!1),()=>window.removeEventListener("message",E)},[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 _.jsxDEV("div",{className:ee(Vx.chatwindow,y&&Vx.chatwindowWithAside,"chat__chatwindow",d),children:p?null:y?_.jsxDEV(_.Fragment,{children:[_.jsxDEV("header",{children:_.jsxDEV(zx,{},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),_.jsxDEV("main",{children:_.jsxDEV(d8,{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),_.jsxDEV("aside",{children:_.jsxDEV(tL,{},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):_.jsxDEV(_.Fragment,{children:[_.jsxDEV("header",{children:_.jsxDEV(zx,{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),_.jsxDEV("main",{children:_.jsxDEV(kL,{},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)},CL=()=>{const n=od(),a=aN(),o=Kn(u=>u.intl.locale),l=Kn(u=>u.intl.messages);return _.jsxDEV(IM,{locale:o,messages:l,children:_.jsxDEV("div",{className:ee([qM.app,a?"chat__small":"chat__large"]),children:_.jsxDEV(OL,{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 Ab,qx;function ny(){if(qx)return Ab;qx=1;function n(a){var o=typeof a;return a!=null&&(o=="object"||o=="function")}return Ab=n,Ab}var Ob,Fx;function DL(){if(Fx)return Ob;Fx=1;var n=typeof af=="object"&&af&&af.Object===Object&⁡return Ob=n,Ob}var Cb,Px;function iN(){if(Px)return Cb;Px=1;var n=DL(),a=typeof self=="object"&&self&&self.Object===Object&&self,o=n||a||Function("return this")();return Cb=o,Cb}var Db,$x;function ML(){if($x)return Db;$x=1;var n=iN(),a=function(){return n.Date.now()};return Db=a,Db}var Mb,Yx;function UL(){if(Yx)return Mb;Yx=1;var n=/\s/;function a(o){for(var l=o.length;l--&&n.test(o.charAt(l)););return l}return Mb=a,Mb}var Ub,Xx;function BL(){if(Xx)return Ub;Xx=1;var n=UL(),a=/^\s+/;function o(l){return l&&l.slice(0,n(l)+1).replace(a,"")}return Ub=o,Ub}var Bb,Zx;function oN(){if(Zx)return Bb;Zx=1;var n=iN(),a=n.Symbol;return Bb=a,Bb}var Lb,Qx;function LL(){if(Qx)return Lb;Qx=1;var n=oN(),a=Object.prototype,o=a.hasOwnProperty,l=a.toString,u=n?n.toStringTag:void 0;function f(d){var m=o.call(d,u),p=d[u];try{d[u]=void 0;var y=!0}catch{}var v=l.call(d);return y&&(m?d[u]=p:delete d[u]),v}return Lb=f,Lb}var jb,Wx;function jL(){if(Wx)return jb;Wx=1;var n=Object.prototype,a=n.toString;function o(l){return a.call(l)}return jb=o,jb}var Hb,Kx;function HL(){if(Kx)return Hb;Kx=1;var n=oN(),a=LL(),o=jL(),l="[object Null]",u="[object Undefined]",f=n?n.toStringTag:void 0;function d(m){return m==null?m===void 0?u:l:f&&f in Object(m)?a(m):o(m)}return Hb=d,Hb}var zb,Jx;function zL(){if(Jx)return zb;Jx=1;function n(a){return a!=null&&typeof a=="object"}return zb=n,zb}var Vb,ek;function VL(){if(ek)return Vb;ek=1;var n=HL(),a=zL(),o="[object Symbol]";function l(u){return typeof u=="symbol"||a(u)&&n(u)==o}return Vb=l,Vb}var Ib,tk;function IL(){if(tk)return Ib;tk=1;var n=BL(),a=ny(),o=VL(),l=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,m=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 E=f.test(y);return E||d.test(y)?m(y.slice(2),E?2:8):u.test(y)?l:+y}return Ib=p,Ib}var Gb,nk;function GL(){if(nk)return Gb;nk=1;var n=ny(),a=ML(),o=IL(),l="Expected a function",u=Math.max,f=Math.min;function d(m,p,y){var v,E,g,N,w,D,T=0,M=!1,U=!1,C=!0;if(typeof m!="function")throw new TypeError(l);p=o(p)||0,n(y)&&(M=!!y.leading,U="maxWait"in y,g=U?u(o(y.maxWait)||0,p):g,C="trailing"in y?!!y.trailing:C);function A(he){var Le=v,Ae=E;return v=E=void 0,T=he,N=m.apply(Ae,Le),N}function L(he){return T=he,w=setTimeout(J,p),M?A(he):N}function F(he){var Le=he-D,Ae=he-T,W=p-Le;return U?f(W,g-Ae):W}function Z(he){var Le=he-D,Ae=he-T;return D===void 0||Le>=p||Le<0||U&&Ae>=g}function J(){var he=a();if(Z(he))return X(he);w=setTimeout(J,F(he))}function X(he){return w=void 0,C&&v?A(he):(v=E=void 0,N)}function te(){w!==void 0&&clearTimeout(w),T=0,v=D=E=w=void 0}function ne(){return w===void 0?N:X(a())}function se(){var he=a(),Le=Z(he);if(v=arguments,E=this,D=he,Le){if(w===void 0)return L(D);if(U)return clearTimeout(w),w=setTimeout(J,p),A(D)}return w===void 0&&(w=setTimeout(J,p)),N}return se.cancel=te,se.flush=ne,se}return Gb=d,Gb}var qb,rk;function qL(){if(rk)return qb;rk=1;var n=GL(),a=ny(),o="Expected a function";function l(u,f,d){var m=!0,p=!0;if(typeof u!="function")throw new TypeError(o);return a(d)&&(m="leading"in d?!!d.leading:m,p="trailing"in d?!!d.trailing:p),n(u,f,{leading:m,maxWait:f,trailing:p})}return qb=l,qb}var FL=qL();const PL=Xf(FL);function $L(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function YL(n){return n}function XL(n,a){a=a||{};const o=a.delimiter||".",l=a.maxDepth,u=a.transformKey||YL,f={};function d(m,p,y){y=y||1,Object.keys(m).forEach(function(v){const E=m[v],g=a.safe&&Array.isArray(E),N=Object.prototype.toString.call(E),w=$L(E),D=N==="[object Object]"||N==="[object Array]",T=p?p+o+u(v):u(v);if(!g&&!w&&D&&Object.keys(E).length&&(!a.maxDepth||y<l))return d(E,T,y+1);f[T]=E})}return d(n),f}const sN={"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:
|
|
336
|
+
`,!o.some(C=>C.test(U))&&(T+=U,!!U.trim())));const M=ec(T);return M==""?null:[T,,M]}),order:3,parse:Eb,render:(w,D,T)=>u("p",{key:T.key},D(w.children,T))},[ye.ref]:{match:Ja(H6),order:0,parse:w=>(p[w[1]]={target:w[2],title:w[4]},{}),render:Sb},[ye.refImage]:{match:ei(z6),order:0,parse:w=>({alt:w[1]||void 0,ref:w[2]}),render:(w,D,T)=>p[w.ref]?u("img",{key:T.key,alt:w.alt,src:a.sanitizer(p[w.ref].target,"img","src"),title:p[w.ref].title}):null},[ye.refLink]:{match:Ja(I6),order:0,parse:(w,D,T)=>({children:D(w[1],T),fallbackChildren:w[0],ref:w[2]}),render:(w,D,T)=>p[w.ref]?u("a",{key:T.key,href:a.sanitizer(p[w.ref].target,"a","href"),title:p[w.ref].title},D(w.children,T)):u("span",{key:T.key},w.fallbackChildren)},[ye.table]:{match:ha(gx),order:1,parse:u4,render(w,D,T){const M=w;return u("table",{key:T.key},u("thead",null,u("tr",null,M.header.map(function(U,C){return u("th",{key:C,style:Ex(M,C)},D(U,T))}))),u("tbody",null,M.cells.map(function(U,C){return u("tr",{key:C},U.map(function(A,L){return u("td",{key:L,style:Ex(M,L)},D(A,T))}))})))}},[ye.text]:{match:$l(K6),order:4,parse:w=>({text:w[0].replace(O6,(D,T)=>a.namedCodesToUnicode[T]?a.namedCodesToUnicode[T]:D)}),render:w=>w.text},[ye.textBolded]:{match:ei(Y6),order:2,parse:(w,D,T)=>({children:D(w[2],T)}),render:(w,D,T)=>u("strong",{key:T.key},D(w.children,T))},[ye.textEmphasized]:{match:ei(X6),order:3,parse:(w,D,T)=>({children:D(w[2],T)}),render:(w,D,T)=>u("em",{key:T.key},D(w.children,T))},[ye.textEscaped]:{match:ei(W6),order:1,parse:w=>({text:w[1],type:ye.text})},[ye.textMarked]:{match:ei(Z6),order:3,parse:Eb,render:(w,D,T)=>u("mark",{key:T.key},D(w.children,T))},[ye.textStrikethroughed]:{match:ei(Q6),order:3,parse:Eb,render:(w,D,T)=>u("del",{key:T.key},D(w.children,T))}};a.disableParsingRawHTML===!0&&(delete g[ye.htmlBlock],delete g[ye.htmlSelfClosing]);const v=function(w){let D=Object.keys(w);function T(M,U){let C,A,L=[],F="",Z="";for(U.prevCapture=U.prevCapture||"";M;){let J=0;for(;J<D.length;){if(F=D[J],C=w[F],U.inline&&!C.match.inline){J++;continue}const X=C.match(M,U);if(X){Z=X[0],U.prevCapture+=Z,M=M.substring(Z.length),A=C.parse(X,T,U),A.type==null&&(A.type=F),L.push(A);break}J++}}return U.prevCapture="",L}return D.sort(function(M,U){let C=w[M].order,A=w[U].order;return C!==A?C-A:M<U?-1:1}),function(M,U){return T(function(C){return C.replace(x6,`
|
|
337
|
+
`).replace(N6,"").replace(G6," ")}(M),U)}}(g),E=(y=function(w,D){return function(T,M,U){const C=w[T.type].render;return D?D(()=>C(T,M,U),T,M,U):C(T,M,U)}}(g,a.renderRule),function w(D,T={}){if(Array.isArray(D)){const M=T.key,U=[];let C=!1;for(let A=0;A<D.length;A++){T.key=A;const L=w(D[A],T),F=typeof L=="string";F&&C?U[U.length-1]+=L:L!==null&&U.push(L),C=F}return T.key=M,U}return y(D,w,T)});var y;const N=f(n);return m.length?u("div",null,N,u("footer",{key:"footer"},m.map(function(w){return u("div",{id:a.slugify(w.identifier,Pl),key:w.identifier},w.identifier,E(v(w.footnote,{inline:!0})))}))):N}const jr=n=>{let{children:a="",options:o}=n,l=function(u,f){if(u==null)return{};var d,m,p={},g=Object.keys(u);for(m=0;m<g.length;m++)f.indexOf(d=g[m])>=0||(p[d]=u[d]);return p}(n,d6);return I.cloneElement(b4(a,o),l)},g4="_generalConditionsContainer_55hjg_1",y4="_generalConditions_55hjg_1",v4="_generalConditionsHeader_55hjg_15",_4="_generalConditionsBody_55hjg_26",E4="_generalConditionsAccept_55hjg_35",Yl={generalConditionsContainer:g4,generalConditions:y4,generalConditionsHeader:v4,generalConditionsBody:_4,generalConditionsAccept:E4},w4=()=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:_.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),S4=()=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:_.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),x4="general-conditions.header",k4="general-conditions.body",Sx="general-conditions.accept-conditions-note",T4=()=>{const n=yt(),[a,o]=I.useState(!1),l=()=>o(!a),u=m=>{m.key==="ArrowDown"||m.key==="ArrowRight"?o(!0):m.key==="ArrowUp"||m.key==="ArrowLeft"||m.key==="Escape"?o(!1):(m.key==="Enter"||m.key==="Space"||m.key===" ")&&l()},f=n(x4),d=n(Sx);return _.jsxDEV("div",{className:ee(Yl.generalConditionsContainer,"chat__generalConditions"),children:[!!(f!=null&&f.length)&&_.jsxDEV("div",{className:Yl.generalConditions,children:[_.jsxDEV("div",{role:"button",onClick:l,onKeyDown:u,tabIndex:0,className:ee(Yl.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":a?"true":"false","aria-pressed":a?"true":"false",children:[_.jsxDEV(jr,{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?_.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:28},void 0):_.jsxDEV(w4,{},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),_.jsxDEV("div",{className:ee(Yl.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:a&&_.jsxDEV(jr,{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)&&_.jsxDEV("div",{className:ee(Yl.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:_.jsxDEV(jr,{children:n(Sx)||""},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)},N4="_message_6i1zm_1",R4="_messageBot_6i1zm_9",A4="_messageBotLast_6i1zm_19",O4="_avatar_6i1zm_19",C4="_messageBotFirst_6i1zm_24",D4="_messageBotAnimated_6i1zm_37",M4="_messageGuest_6i1zm_48",U4="_messageGuestFirst_6i1zm_54",B4="_messageGuestLast_6i1zm_60",L4="_botAvatar_6i1zm_74",j4="_agentAvatar_6i1zm_78",H4="_bubble_6i1zm_82",z4="_bubbleContent_6i1zm_88",I4="_bubbleLeft_6i1zm_102",V4="_leftText_6i1zm_113",G4="_bubbleRight_6i1zm_120",q4="_rightText_6i1zm_130",F4="_sourceInfoReference_6i1zm_162",P4="_sourceInfoReferenceActive_6i1zm_174",Re={message:N4,messageBot:R4,messageBotLast:A4,avatar:O4,messageBotFirst:C4,messageBotAnimated:D4,messageGuest:M4,messageGuestFirst:U4,messageGuestLast:B4,botAvatar:L4,agentAvatar:j4,bubble:H4,bubbleContent:z4,bubbleLeft:I4,leftText:V4,bubbleRight:G4,rightText:q4,sourceInfoReference:F4,sourceInfoReferenceActive:P4},$4="_botMessageActions_1dl7x_1",Y4="_alwaysVisible_1dl7x_22",X4="_reported_1dl7x_29",Z4="_action_1dl7x_33",ti={botMessageActions:$4,alwaysVisible:Y4,reported:X4,action:Z4},Q4=({alwaysVisible:n,senderType:a,reaction:o,botMessageRef:l,onReaction:u})=>{const f=yt(),[d,m]=I.useState(!1),p=v=>()=>u(v),g=I.useCallback(async()=>{if(l.current)try{m(!0);const v=l.current.innerHTML,E=l.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([E],{type:"text/plain"})})]),await new Promise(y=>setTimeout(y,1500))}finally{m(!1)}},[l]);return _.jsxDEV("div",{className:ee(ti.botMessageActions,n&&ti.alwaysVisible,o&&ti.reported),children:[a===Xf.BOT&&_.jsxDEV("button",{className:ee(ti.action,o==="GOOD"&&ti.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:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:o==="GOOD"?_.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):_.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===Xf.BOT&&_.jsxDEV("button",{className:ee(ti.action,o==="BAD"&&ti.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:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:o==="BAD"?_.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):_.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),_.jsxDEV("button",{className:ee(ti.action,"tooltip--top-right"),tabIndex:0,"aria-label":f("bot-bubble.copy"),"data-title":f("bot-bubble.copy"),onClick:g,children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:d?_.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):_.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)},KT=I.forwardRef(({message:n,isAnimated:a,isLastMessage:o,isFirstMessageBySender:l,isLastMessageBySender:u,children:f,onReaction:d},m)=>{const p=yt(),g=I.useRef(null),v=n.sender.type===Ve.UserType.BOT;return _.jsxDEV("li",{ref:m,className:ee(Re.message,Re.messageBot,o&&Re.lastMessage,l&&Re.messageBotFirst,u&&Re.messageBotLast,"chat__bubbleContainer",a&&Re.messageBotAnimated,a&&"chat__bubbleContainer--animated",v?"chat__botBubbleContainer":"chat__agentBubbleContainer",l&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[_.jsxDEV("img",{className:ee(Re.avatar,v?Re.botAvatar:Re.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),_.jsxDEV("div",{ref:g,className:ee(Re.bubble,Re.bubbleLeft,"chat__bubble",v?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(v?"bot-bubble.label":"agent-bubble.label"),children:_.jsxDEV("div",{className:ee(Re.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&&_.jsxDEV(Q4,{alwaysVisible:o&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:g,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)}),W4="_sourceList_1n31h_1",K4="_source_1n31h_1",J4="_label_1n31h_37",kb={sourceList:W4,source:K4,label:J4},JT=n=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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),eN=n=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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),tN=n=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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),nN=n=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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),e5=({type:n,...a})=>{switch(n){case"WEBSITE":return _.jsxDEV(nN,{...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 _.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:16,columnNumber:14},void 0);case"DOCX":return _.jsxDEV(JT,{...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 _.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:20,columnNumber:14},void 0)}},iy=({sources:n,onLinkClick:a})=>{const o=yt(),l=f=>()=>{a(f.url)},u=f=>d=>{(d.key==="Enter"||d.key===" ")&&a(f.url)};return n.length?_.jsxDEV("ul",{className:kb.sourceList,"aria-label":o("bot-bubble.sources"),children:n.map(f=>_.jsxDEV("li",{className:kb.source,children:_.jsxDEV("a",{role:"button",tabIndex:0,"aria-label":`${o("bot-bubble.source.open")}: ${f.label}`,onClick:l(f),onKeyDown:u(f),children:[_.jsxDEV(e5,{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),_.jsxDEV("div",{className:kb.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},t5="_button_3ui4g_1",n5="_buttonDefault_3ui4g_13",r5="_buttonPrimary_3ui4g_28",rc={button:t5,buttonDefault:n5,buttonPrimary:r5},cd=({className:n,children:a,...o})=>_.jsxDEV("button",{className:ee(rc.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),a5="_title_b904h_1",i5="_subtitle_b904h_6",o5="_buttons_b904h_11",s5="_button_b904h_11",l5="_imageContainer_b904h_34",c5="_image_b904h_34",u5="_video_container_b904h_49",f5="_video_b904h_49",d5="_only_b904h_63",bn={title:a5,subtitle:i5,buttons:o5,button:s5,imageContainer:l5,image:c5,video_container:u5,video:f5,only:d5},h5=({buttons:n,onButtonClick:a})=>_.jsxDEV("div",{className:ee(bn.buttons,"chat__bubbleButtons"),children:n.map((o,l)=>_.jsxDEV(cd,{className:ee(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={},Nf={},Rf={},xx;function m5(){if(xx)return Rf;xx=1,Object.defineProperty(Rf,"__esModule",{value:!0});var n=no(),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 Rf.default=function(l,u,f){return a.createElement("a",{href:l,key:f},u)},Rf}var Af={},kx;function p5(){return kx||(kx=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.default=function(n){return n}),Af}var Of={},Tb,Tx;function b5(){return Tx||(Tx=1,Tb=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Tb}var Nb,Nx;function g5(){return Nx||(Nx=1,Nb=/[\0-\x1F\x7F-\x9F]/),Nb}var Rb,Rx;function y5(){return Rx||(Rx=1,Rb=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Rb}var Ab,Ax;function v5(){return Ax||(Ax=1,Ab=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),Ab}var Ob,Ox;function _5(){return Ox||(Ox=1,Ob=function(n){var a={};a.src_Any=b5().source,a.src_Cc=g5().source,a.src_Z=y5().source,a.src_P=v5().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}),Ob}var Cb,Cx;function E5(){if(Cx)return Cb;Cx=1;function n(C){var A=Array.prototype.slice.call(arguments,1);return A.forEach(function(L){L&&Object.keys(L).forEach(function(F){C[F]=L[F]})}),C}function a(C){return Object.prototype.toString.call(C)}function o(C){return a(C)==="[object String]"}function l(C){return a(C)==="[object Object]"}function u(C){return a(C)==="[object RegExp]"}function f(C){return a(C)==="[object Function]"}function d(C){return C.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var m={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(C){return Object.keys(C||{}).reduce(function(A,L){return A||m.hasOwnProperty(L)},!1)}var g={"http:":{validate:function(C,A,L){var F=C.slice(A);return L.re.http||(L.re.http=new RegExp("^\\/\\/"+L.re.src_auth+L.re.src_host_port_strict+L.re.src_path,"i")),L.re.http.test(F)?F.match(L.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(C,A,L){var F=C.slice(A);return L.re.no_http||(L.re.no_http=new RegExp("^"+L.re.src_auth+"(?:localhost|(?:(?:"+L.re.src_domain+")\\.)+"+L.re.src_domain_root+")"+L.re.src_port+L.re.src_host_terminator+L.re.src_path,"i")),L.re.no_http.test(F)?A>=3&&C[A-3]===":"||A>=3&&C[A-3]==="/"?0:F.match(L.re.no_http)[0].length:0}},"mailto:":{validate:function(C,A,L){var F=C.slice(A);return L.re.mailto||(L.re.mailto=new RegExp("^"+L.re.src_email_name+"@"+L.re.src_host_strict,"i")),L.re.mailto.test(F)?F.match(L.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]",E="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function y(C){C.__index__=-1,C.__text_cache__=""}function N(C){return function(A,L){var F=A.slice(L);return C.test(F)?F.match(C)[0].length:0}}function w(){return function(C,A){A.normalize(C)}}function D(C){var A=C.re=_5()(C.__opts__),L=C.__tlds__.slice();C.onCompile(),C.__tlds_replaced__||L.push(v),L.push(A.src_xn),A.src_tlds=L.join("|");function F(te){return te.replace("%TLDS%",A.src_tlds)}A.email_fuzzy=RegExp(F(A.tpl_email_fuzzy),"i"),A.link_fuzzy=RegExp(F(A.tpl_link_fuzzy),"i"),A.link_no_ip_fuzzy=RegExp(F(A.tpl_link_no_ip_fuzzy),"i"),A.host_fuzzy_test=RegExp(F(A.tpl_host_fuzzy_test),"i");var Z=[];C.__compiled__={};function J(te,ne){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+ne)}Object.keys(C.__schemas__).forEach(function(te){var ne=C.__schemas__[te];if(ne!==null){var se={validate:null,link:null};if(C.__compiled__[te]=se,l(ne)){u(ne.validate)?se.validate=N(ne.validate):f(ne.validate)?se.validate=ne.validate:J(te,ne),f(ne.normalize)?se.normalize=ne.normalize:ne.normalize?J(te,ne):se.normalize=w();return}if(o(ne)){Z.push(te);return}J(te,ne)}}),Z.forEach(function(te){C.__compiled__[C.__schemas__[te]]&&(C.__compiled__[te].validate=C.__compiled__[C.__schemas__[te]].validate,C.__compiled__[te].normalize=C.__compiled__[C.__schemas__[te]].normalize)}),C.__compiled__[""]={validate:null,normalize:w()};var X=Object.keys(C.__compiled__).filter(function(te){return te.length>0&&C.__compiled__[te]}).map(d).join("|");C.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+A.src_ZPCc+"))("+X+")","i"),C.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+A.src_ZPCc+"))("+X+")","ig"),C.re.pretest=RegExp("("+C.re.schema_test.source+")|("+C.re.host_fuzzy_test.source+")|@","i"),y(C)}function T(C,A){var L=C.__index__,F=C.__last_index__,Z=C.__text_cache__.slice(L,F);this.schema=C.__schema__.toLowerCase(),this.index=L+A,this.lastIndex=F+A,this.raw=Z,this.text=Z,this.url=Z}function M(C,A){var L=new T(C,A);return C.__compiled__[L.schema].normalize(L,C),L}function U(C,A){if(!(this instanceof U))return new U(C,A);A||p(C)&&(A=C,C={}),this.__opts__=n({},m,A),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},g,C),this.__compiled__={},this.__tlds__=E,this.__tlds_replaced__=!1,this.re={},D(this)}return U.prototype.add=function(A,L){return this.__schemas__[A]=L,D(this),this},U.prototype.set=function(A){return this.__opts__=n(this.__opts__,A),this},U.prototype.test=function(A){if(this.__text_cache__=A,this.__index__=-1,!A.length)return!1;var L,F,Z,J,X,te,ne,se,he;if(this.re.schema_test.test(A)){for(ne=this.re.schema_search,ne.lastIndex=0;(L=ne.exec(A))!==null;)if(J=this.testSchemaAt(A,L[2],ne.lastIndex),J){this.__schema__=L[2],this.__index__=L.index+L[1].length,this.__last_index__=L.index+L[0].length+J;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(se=A.search(this.re.host_fuzzy_test),se>=0&&(this.__index__<0||se<this.__index__)&&(F=A.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(X=F.index+F[1].length,(this.__index__<0||X<this.__index__)&&(this.__schema__="",this.__index__=X,this.__last_index__=F.index+F[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(he=A.indexOf("@"),he>=0&&(Z=A.match(this.re.email_fuzzy))!==null&&(X=Z.index+Z[1].length,te=Z.index+Z[0].length,(this.__index__<0||X<this.__index__||X===this.__index__&&te>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=X,this.__last_index__=te))),this.__index__>=0},U.prototype.pretest=function(A){return this.re.pretest.test(A)},U.prototype.testSchemaAt=function(A,L,F){return this.__compiled__[L.toLowerCase()]?this.__compiled__[L.toLowerCase()].validate(A,F,this):0},U.prototype.match=function(A){var L=0,F=[];this.__index__>=0&&this.__text_cache__===A&&(F.push(M(this,L)),L=this.__last_index__);for(var Z=L?A.slice(L):A;this.test(Z);)F.push(M(this,L)),Z=Z.slice(this.__last_index__),L+=this.__last_index__;return F.length?F:null},U.prototype.tlds=function(A,L){return A=Array.isArray(A)?A:[A],L?(this.__tlds__=this.__tlds__.concat(A).sort().filter(function(F,Z,J){return F!==J[Z-1]}).reverse(),D(this),this):(this.__tlds__=A.slice(),this.__tlds_replaced__=!0,D(this),this)},U.prototype.normalize=function(A){A.schema||(A.url="http://"+A.url),A.schema==="mailto:"&&!/^mailto:/i.test(A.url)&&(A.url="mailto:"+A.url)},U.prototype.onCompile=function(){},Cb=U,Cb}const w5=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 Dx;function S5(){if(Dx)return Of;Dx=1,Object.defineProperty(Of,"__esModule",{value:!0});var n=E5(),a=u(n),o=w5,l=u(o);function u(d){return d&&d.__esModule?d:{default:d}}var f=new a.default;return f.tlds(l.default),Of.default=function(d){return f.match(d)},Of}var Cf={},Mx;function x5(){return Mx||(Mx=1,Object.defineProperty(Cf,"__esModule",{value:!0}),Cf.default=function(n){return n}),Cf}var Ux;function k5(){if(Ux)return Nf;Ux=1,Object.defineProperty(Nf,"__esModule",{value:!0});var n=function(){function M(U,C){for(var A=0;A<C.length;A++){var L=C[A];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(U,L.key,L)}}return function(U,C,A){return C&&M(U.prototype,C),A&&M(U,A),U}}(),a=no(),o=y(a),l=m5(),u=E(l),f=p5(),d=E(f),m=S5(),p=E(m),g=x5(),v=E(g);function E(M){return M&&M.__esModule?M:{default:M}}function y(M){if(M&&M.__esModule)return M;var U={};if(M!=null)for(var C in M)Object.prototype.hasOwnProperty.call(M,C)&&(U[C]=M[C]);return U.default=M,U}function N(M,U){if(!(M instanceof U))throw new TypeError("Cannot call a class as a function")}function w(M,U){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:M}function D(M,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);M.prototype=Object.create(U&&U.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(M,U):M.__proto__=U)}var T=function(M){D(U,M);function U(){return N(this,U),w(this,(U.__proto__||Object.getPrototypeOf(U)).apply(this,arguments))}return n(U,[{key:"parseString",value:function(A){var L=this;if(A==="")return A;var F=this.props.matchDecorator(A);if(!F)return A;var Z=[],J=0;return F.forEach(function(X,te){X.index>J&&Z.push(A.substring(J,X.index));var ne=L.props.hrefDecorator(X.url),se=L.props.textDecorator(X.text),he=L.props.componentDecorator(ne,se,te);Z.push(he),J=X.lastIndex}),A.length>J&&Z.push(A.substring(J)),Z.length===1?Z[0]:Z}},{key:"parse",value:function(A){var L=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof A=="string"?this.parseString(A):o.isValidElement(A)&&A.type!=="a"&&A.type!=="button"?o.cloneElement(A,{key:F},this.parse(A.props.children)):Array.isArray(A)?A.map(function(Z,J){return L.parse(Z,J)}):A}},{key:"render",value:function(){return o.createElement(o.Fragment,null,this.parse(this.props.children))}}]),U}(o.Component);return T.defaultProps={componentDecorator:u.default,hrefDecorator:d.default,matchDecorator:p.default,textDecorator:v.default},Nf.default=T,Nf}var Bx;function T5(){if(Bx)return Tf;Bx=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 N5=T5();const R5=Qf(N5),A5="_text_gp0s0_1",O5="_command_gp0s0_5",Lx={text:A5,command:O5},rN=({text:n,commands:a=[],onLinkClick:o})=>{const l=m=>p=>(p.preventDefault(),m&&o(m),!1),u=(m,p,g)=>_.jsxDEV("a",{onClick:l(m),role:"button",children:p},g,!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(m=>n.startsWith(`/${m}`)),d=f?n.slice(f.length+1):n;return _.jsxDEV("div",{children:[f&&_.jsxDEV("code",{className:Lx.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((m,p)=>_.jsxDEV("span",{className:Lx.text,children:[_.jsxDEV(R5,{componentDecorator:u,children:m},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),_.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)},C5=({subtitle:n,onLinkClick:a})=>n?_.jsxDEV("div",{className:bn.subtitle,children:_.jsxDEV(rN,{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,jx="newtab#",aN=({markdown:n,markdownOptions:a={},onLinkClick:o})=>{const l=f=>d=>(d.preventDefault(),f&&o(f),!1),u=({title:f,href:d,children:m})=>d.indexOf(jx)===0?_.jsxDEV("a",{href:d.slice(jx.length),title:f,target:"_blank",rel:"noopener noreferrer",children:m},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):_.jsxDEV("a",{onClick:l(d),title:f,href:d,children:m},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 _.jsxDEV(jr,{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)},D5=({text:n,onLinkClick:a})=>n?_.jsxDEV("div",{children:_.jsxDEV(aN,{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,M5=({title:n})=>n?_.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,U5=({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)?_.jsxDEV("div",{className:ee(Re.bubbleContent),children:[_.jsxDEV(M5,{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),_.jsxDEV(D5,{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),_.jsxDEV(C5,{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),_.jsxDEV(h5,{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,B5=({alt:n,imageUrl:a,itemUrl:o,hasBody:l})=>a?o?o.indexOf("youtube.com")>-1?_.jsxDEV("div",{className:bn.video_container,children:_.jsxDEV("iframe",{className:ee(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):_.jsxDEV("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:_.jsxDEV("div",{className:bn.imageContainer,children:_.jsxDEV("img",{className:ee(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):_.jsxDEV("div",{className:bn.imageContainer,children:_.jsxDEV("img",{className:ee(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,L5=({title:n,text:a,subtitle:o,imageUrl:l,itemUrl:u,buttons:f,sources:d,onButtonClick:m,onLinkClick:p})=>{const g=!!(n!=null&&n.length)||!!(a!=null&&a.length)||!!(o!=null&&o.length)||!!(f!=null&&f.length);return _.jsxDEV("div",{className:ee(bn.detailMessage),children:[_.jsxDEV(B5,{hasBody:g,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),g&&_.jsxDEV(U5,{title:n,text:a,subtitle:o,buttons:f,onLinkClick:p,onButtonClick:m},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),_.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)},j5=I.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:a,children:o},l)=>{const u=yt();return _.jsxDEV("li",{ref:l,className:ee(Re.message,Re.messageGuest,n&&Re.messageGuestFirst,a&&Re.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:_.jsxDEV("div",{className:ee(Re.bubble,Re.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:_.jsxDEV("div",{className:ee(Re.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)}),H5="_markdown_nw7vg_1",iN={markdown:H5},oN=()=>z5(window.location.pathname),z5=n=>{const a=n.split("/"),o=n.endsWith("/");return a[a.length-(o?2:1)]},oy=()=>I.useMemo(()=>oN(),[]),Df="source-info-reference",I5=({actionId:n,markdown:a,sources:o,onLinkClick:l})=>{const u=oy(),f=ds(),d=V5(),m=On(v=>{const E=v.chat.sourceInfos;if((E==null?void 0:E.type)==="loaded"||(E==null?void 0:E.type)==="loading")return E.chunkId}),p=v=>E=>{const y=E.key;(y==="ArrowDown"||y==="ArrowRight"||y==="Enter"||y===" "||y==="Space")&&(E.stopPropagation(),f(ax(u,n,v)))},g=v=>()=>{f(ax(u,n,v))};return I.useLayoutEffect(()=>{document.querySelectorAll(`.${Df}`).forEach(v=>{var N,w,D,T;const E=v.previousSibling;E&&E.nodeType===Node.TEXT_NODE&&((N=E.textContent)!=null&&N.endsWith(" "))&&((w=E.textContent)!=null&&w.trim().length)&&v.classList.add(`${Df}--before-space`);const y=v.nextSibling;y&&y.nodeType===Node.TEXT_NODE&&((D=y.textContent)!=null&&D.startsWith(" "))&&((T=y.textContent)!=null&&T.trim().length)&&v.classList.add(`${Df}--after-space`)})},[a]),_.jsxDEV("div",{className:Re.bubbleContent,children:[_.jsxDEV("div",{className:iN.markdown,children:_.jsxDEV(aN,{markdown:a,onLinkClick:l,markdownOptions:{renderRule(v,E,y,N){if(E.type===ye.footnoteReference){const w=E.text===m;return _.jsxDEV("span",{className:ee(Re.sourceInfoReference,w&&Re.sourceInfoReferenceActive,Df),children:_.jsxDEV("a",{type:"button",tabIndex:0,onClick:g(E.text),onKeyDown:p(E.text),children:d(E.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)},N.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),_.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)},V5=()=>{const n=[];return o=>{const l=n.indexOf(o);return l>-1?l+1:(n.push(o),n.length)}},G5=({text:n,commands:a,sources:o,onLinkClick:l})=>_.jsxDEV("div",{className:Re.bubbleContent,children:[_.jsxDEV(rN,{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),_.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),q5=I.forwardRef(({message:n,commands:a,isLastMessage:o,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:f,onButtonClick:d,onLinkClick:m},p)=>{const g=F5(n._id,n,a,d,m);switch(n.sender.type){case Ve.UserType.GUEST:return _.jsxDEV(j5,{ref:p,isFirstMessageBySender:l,isLastMessageBySender:u,children:g},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=E=>f(n._id,E);return _.jsxDEV(KT,{ref:p,message:n,isAnimated:!1,isLastMessage:o,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:v,children:g},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)}}}),F5=(n,a,o,l,u)=>{switch(a.type){case Ve.MessageTypeEnum.TEXT:{const f=a;return _.jsxDEV(G5,{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 Ve.MessageTypeEnum.DETAIL:{const f=a;return _.jsxDEV(L5,{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 Ve.MessageTypeEnum.MARKDOWN:{const f=a;return _.jsxDEV(I5,{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)}}},P5=(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,$5=_k.memo(q5,P5),Y5="_ticontainer_xg0dn_1",X5="_tiblock_xg0dn_5",Z5="_tidot_xg0dn_12",Xl={ticontainer:Y5,tiblock:X5,tidot:Z5},Q5=({isTyping:n=!1})=>_.jsxDEV("div",{className:Xl.ticontainer,children:_.jsxDEV("div",{className:Xl.tiblock,children:n?_.jsxDEV(_.Fragment,{children:[_.jsxDEV("div",{className:ee(Xl.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),_.jsxDEV("div",{className:ee(Xl.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),_.jsxDEV("div",{className:ee(Xl.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),W5=Object.assign({_id:"typing-indicator"},new Ve.TextMessage("",new Ve.BotUser)),K5=({messages:n,isBotTyping:a,commands:o,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:f})=>{const d=I.useRef(0),m=I.useRef(!0),p=I.useRef(null),g=I.useRef(null),v=I.useRef(null),E=On(w=>w.settings.enableGeneralConditions);I.useLayoutEffect(()=>{if(n.length&&p.current&&(d.current<n.length||a)){if(g.current){const w=g.current.offsetTop;p.current.scrollTop=w}else if(v.current){const w=v.current.offsetTop;p.current.scrollTop=w}m.current&&(m.current=!1),d.current=n.length}},[n,m,a]);let y;const N=n.length;return _.jsxDEV("div",{ref:p,className:ee(ox.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&m.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&_.jsxDEV(T4,{},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),_.jsxDEV("ul",{className:ox.messages,children:[n.map((w,D)=>{const T=J5(w,y),M=eB(w,D,n,a);y=w.sender.type;const U=D+1===N,C=w._id||`added-${D}`;return _.jsxDEV($5,{ref:U?v:null,message:w,commands:o,isLastMessage:U,isFirstMessageBySender:T,isLastMessageBySender:M,onButtonClick:u,onLinkClick:f,onReaction:l},U&&!a?"last":C,!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&&_.jsxDEV(KT,{ref:g,message:W5,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:y!==Ve.UserType.BOT,isLastMessageBySender:!0,children:_.jsxDEV(Q5,{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)},J5=(n,a)=>!a||a!==n.sender.type,eB=(n,a,o,l)=>{var m;const u=n.sender.type,f=o.length;return a+1===f?!(u===Ve.UserType.BOT&&l):u!==((m=o.at(a+1))==null?void 0:m.sender.type)},tB="_bottomSheet_jp8dl_1",nB="_bottomSheetOpen_jp8dl_15",rB="_bottomSheetClose_jp8dl_20",ba={bottomSheet:tB,bottomSheetOpen:nB,bottomSheetClose:rB},aB="_container_xc2nx_1",Hx={container:aB},iB=({contentUrl:n})=>{const a=On(f=>f.connection.sessionId),[o,l]=I.useState(!1);I.useEffect(()=>{l(f=>f||!!n)},[n]);const u=I.useMemo(()=>{if(n&&a){const f=new URL(n,document.baseURI);return f.searchParams.set("sessionId",a),f.toString()}else return},[n,a]);return _.jsxDEV("div",{className:ee(Hx.container,ba.bottomSheet,{[ba.bottomSheetOpen]:!!n,[ba.bottomSheetClose]:o&&!n}),children:u&&_.jsxDEV("iframe",{title:"Drawer",src:u,className:Hx.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)},oB="_container_z787n_1",sB={container:oB},lB=({title:n,href:a,children:o})=>_.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),cB=()=>{const a=yt()("powered-by");return a&&a.length?_.jsxDEV("div",{className:ee(sB.container,"chat__poweredBy"),children:_.jsxDEV(jr,{options:{overrides:{a:lB}},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},zx=({className:n,children:a,...o})=>_.jsxDEV(cd,{className:ee(rc.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),ac=({className:n,children:a,...o})=>_.jsxDEV(cd,{className:ee(rc.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),uB="_container_h23mk_1",fB="_formContainer_h23mk_17",dB="_emailInput_h23mk_22",hB="_description_h23mk_52",mB="_actions_h23mk_57",pB="_validationError_h23mk_67",bB="_submitted_h23mk_74",ma={container:uB,formContainer:fB,emailInput:dB,description:hB,actions:mB,validationError:pB,submitted:bB},gB=({visible:n,enableTranscriptExportPdf:a,enableTranscriptExportEmail:o,onEmailExport:l,onPdfExport:u,onClose:f})=>{const d=yt(),[m,p]=I.useState(void 0),[g,v]=I.useState(!1),[E,y]=I.useState(!1),[N,w]=I.useState(void 0),D=I.useRef(null);I.useEffect(()=>{var C;n?((C=D.current)==null||C.focus(),v(!1),y(!1),p(n)):m===!0&&p(!1)},[n,m]);const T=C=>{C.preventDefault(),N&&N.length>0&&(l(N),v(!0),setTimeout(f,3*1e3))},M=C=>{const A=C.target.value.trim(),L=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(A);w(L?A:"")},U=()=>{y(!0),u(),setTimeout(f,3*1e3)};return _.jsxDEV("div",{className:ee(ma.container,ba.bottomSheet,{[ba.bottomSheetOpen]:m===!0,[ba.bottomSheetClose]:m===!1}),children:[a&&_.jsxDEV(_.Fragment,{children:[_.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),_.jsxDEV(jr,{className:ma.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),_.jsxDEV("div",{className:ma.actions,children:[_.jsxDEV(zx,{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),_.jsxDEV(ac,{onClick:U,disabled:E,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&&_.jsxDEV(_.Fragment,{children:[_.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),_.jsxDEV(jr,{className:ma.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),_.jsxDEV("form",{onSubmit:T,className:ma.formContainer,children:[_.jsxDEV("div",{children:[_.jsxDEV("input",{disabled:g,ref:D,type:"email",placeholder:d("export-transcript.email.placeholder"),className:ma.emailInput,onChange:M},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),(N==null?void 0:N.length)===0?_.jsxDEV("div",{className:ma.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),_.jsxDEV("div",{className:ma.actions,children:[_.jsxDEV(zx,{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),_.jsxDEV(ac,{type:"submit",disabled:g||N===void 0||N.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),g&&_.jsxDEV("div",{className:ma.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)},yB="_inputContainer_fi5ao_1",vB={inputContainer:yB},_B="_blockUserInput_pot9c_1",EB={blockUserInput:_B},wB=({visible:n})=>{const a=yt();return n?_.jsxDEV("div",{className:ee(EB.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},SB="_commandsDropdown_5ytuv_1",xB="_commands_5ytuv_1",kB="_command_5ytuv_1",TB="_commandActive_5ytuv_46",NB="_commandsSelections_5ytuv_55",Kl={commandsDropdown:SB,commands:xB,command:kB,commandActive:TB,commandsSelections:NB},RB=(n,a)=>{I.useEffect(()=>{const o=l=>{n.current&&!n.current.contains(l.target)&&a()};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[n,a])},AB=(n,a,o,l,u)=>{I.useEffect(()=>{const f=d=>{if(n.length)switch(d.key){case"Enter":o(n[a]);break;case"ArrowUp":l(m=>m>0?m-1:n.length-1);break;case"ArrowDown":l(m=>m<n.length-1?m+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,a,o,l,u])},OB=({text:n,commands:a,onSelectCommand:o,onVisibilityChange:l})=>{const u=I.useRef(null),f=yt(),[d,m]=I.useState([]),[p,g]=I.useState(Ix(a)),[v,E]=I.useState(0),y=N=>o(`/${N}`);return RB(u,()=>m([])),AB(d,v,y,E,m),I.useEffect(()=>{g(Ix(a))},[a]),I.useEffect(()=>{const N=n.length||0;N===0||N>p||!n.startsWith("/")?m([]):m(a.filter(CB(n))),E(0)},[a,n,p]),I.useEffect(()=>{l(!!d.length)},[d,l]),d.length?_.jsxDEV("div",{ref:u,className:Kl.commandsDropdown,children:_.jsxDEV("ul",{id:"command-list",className:Kl.commands,role:"listbox",children:d.map((N,w)=>_.jsxDEV("li",{className:ee([Kl.command,v===w&&Kl.commandActive]),role:"option",onClick:()=>y(N),onMouseOver:()=>E(w),children:[_.jsxDEV("h1",{children:["/",N]},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),_.jsxDEV("p",{children:f(`commands.${N}`)},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)]},N,!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},Ix=n=>Math.max(...n.map(a=>a.length+1)),CB=n=>a=>{const o=`/${a}`;return o.startsWith(n)&&o.length>=n.length},Vx=3,DB=({commands:n,onSelectCommand:a})=>{const o=yt(),[l,u]=I.useState(!1),f=g=>()=>{a(`/${g}`),u(!1)},d=()=>{u(!0)},m=()=>{u(!1)},p=l?n:n.slice(0,Vx);return _.jsxDEV("div",{className:Kl.commandsSelections,children:[p.map(g=>_.jsxDEV("button",{className:"tooltip--top-center","aria-label":o(`commands.${g}`),"data-title":o(`commands.${g}`),tabIndex:0,onClick:f(g),children:["/",g]},g,!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?_.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>Vx?_.jsxDEV("button",{"aria-label":o("commands.show-less.tooltip"),"data-title":o("commands.show-less.tooltip"),tabIndex:0,onClick:m,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)},MB="_callToActionContainer_bkfcm_1",UB="_callToActionTitle_bkfcm_23",BB="_rateOverlay_bkfcm_30",LB="_body_bkfcm_52",jB="_footer_bkfcm_60",HB="_actions_bkfcm_73",zB="_bubbles_bkfcm_101",IB="_stars_bkfcm_203",VB="_starsSmall_bkfcm_215",GB="_starsLarge_bkfcm_219",qB="_star_bkfcm_203",FB="_starReadonly_bkfcm_236",PB="_starIcon_bkfcm_246",$B="_starsDescriptionContainer_bkfcm_264",YB="_starsDescription_bkfcm_264",sn={callToActionContainer:MB,callToActionTitle:UB,rateOverlay:BB,body:LB,footer:jB,actions:HB,bubbles:zB,stars:IB,starsSmall:VB,starsLarge:GB,star:qB,starReadonly:FB,starIcon:PB,starsDescriptionContainer:$B,starsDescription:YB},XB=({value:n,index:a,count:o,readonly:l,onHover:u,onClick:f})=>{const d=m=>{f&&m.key==="Enter"&&f()};return _.jsxDEV("li",{className:ee(sn.star,{[sn.starReadonly]:l},"chat__conversationRating__star"),children:_.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:_.jsxDEV("span",{role:"img","aria-label":"Star",className:ee(sn.starIcon),children:_.jsxDEV("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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)},Gx=5,sN=({value:n,size:a,readonly:o=!1,onChange:l})=>{const[u,f]=I.useState(void 0),d=()=>{f(void 0)},m=g=>()=>{if(!o){const v=g+1;f(v)}},p=g=>()=>{l&&!o&&(l(g===0&&n===1?0:g+1),f(void 0))};return _.jsxDEV("ul",{tabIndex:0,role:"radiogroup",className:ee(sn.stars,{[sn.starsSmall]:a==="small",[sn.starsLarge]:a==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:a==="small",chat__conversationRating__stars__large:a==="large"}),onMouseOut:d,children:Array(Gx).fill(0).map((g,v)=>_.jsxDEV(XB,{value:u===void 0?n:u,index:v,count:Gx,readonly:o,onHover:m(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)},ZB=({visible:n,onRate:a})=>{const o=yt();return n?_.jsxDEV("div",{className:ee(sn.callToActionContainer,"chat__conversationRating__callToAction"),children:[_.jsxDEV("div",{className:ee(sn.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),_.jsxDEV(sN,{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},Db=({isFirstMessageBySender:n,isLastMessageBySender:a,children:o})=>_.jsxDEV("div",{className:ee(Re.message,Re.messageBot,n&&Re.messageBotFirst,a&&Re.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:[_.jsxDEV("img",{className:ee(Re.avatar,Re.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),_.jsxDEV("div",{className:ee(Re.bubble,Re.bubbleLeft,"chat__bubble","chat__botBubble"),children:_.jsxDEV("div",{className:ee(Re.leftText,Re.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),QB=({children:n})=>_.jsxDEV("div",{className:ee(Re.message,Re.messageGuest,Re.messageGuestFirst,Re.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:_.jsxDEV("div",{className:ee(Re.bubble,Re.bubbleRight,"chat__bubble","chat__guestBubble"),children:_.jsxDEV("div",{className:ee(Re.rightText,Re.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),WB=({visible:n,rating:a,onRate:o,onClose:l})=>{const u=yt(),[f,d]=I.useState(a),[m,p]=I.useState(void 0),[g,v]=I.useState(void 0),[E,y]=I.useState({submitted:!1,feedback:""}),[N,w]=I.useState(!1),D=I.useRef(null);I.useEffect(()=>{n?(y({submitted:!1,feedback:""}),v(n)):g===!0&&v(!1)},[n,g]),I.useEffect(()=>{d(a)},[a]),I.useEffect(()=>{const M=f>0?u(`conversation-rating.overlay.bot-message.rate-feedback.value-${f}`):void 0;p(M!=null&&M.length?M:void 0)},[f,u]),I.useEffect(()=>{E.submitted?setTimeout(()=>w(!0),E.feedback.length?500:0):w(!1)},[E]);const T=M=>{var C,A;M.preventDefault();const U=((A=(C=D.current)==null?void 0:C.value)==null?void 0:A.trim())||"";o(f,U),y({submitted:!0,feedback:U})};return _.jsxDEV("div",{className:ee(sn.rateOverlay,ba.bottomSheet,"chat__conversationRating__overlay",{[ba.bottomSheetOpen]:g===!0,[ba.bottomSheetClose]:g===!1}),children:_.jsxDEV("form",{onSubmit:T,children:[_.jsxDEV("div",{className:ee(sn.body,"chat__conversationRating__overlay__body"),children:[_.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),_.jsxDEV("div",{className:ee(sn.bubbles),children:n&&m&&_.jsxDEV(_.Fragment,{children:[_.jsxDEV(Db,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[_.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),_.jsxDEV("div",{className:ee(sn.starsDescriptionContainer),children:[_.jsxDEV(sN,{value:f,size:"large",readonly:E.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),_.jsxDEV("div",{className:ee(sn.starsDescription),children:[_.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),_.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),_.jsxDEV(Db,{isFirstMessageBySender:!1,isLastMessageBySender:!N||!!E.feedback.length,children:_.jsxDEV("div",{children:m},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),!!E.feedback.length&&_.jsxDEV(QB,{children:E.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),N&&_.jsxDEV(Db,{isFirstMessageBySender:!!E.feedback.length,isLastMessageBySender:!0,children:_.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),_.jsxDEV("div",{className:ee(sn.footer,"chat__conversationRating__overlay__footer"),children:[!E.submitted&&_.jsxDEV("input",{ref:D,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),_.jsxDEV("div",{className:ee(sn.actions,"chat__conversationRating__overlay__footer__actions"),children:E.submitted?_.jsxDEV(ac,{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):_.jsxDEV(ac,{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)},KB=({conversationRating:{enabled:n,rating:a},numberOfMessagesFromGuest:o,showRatingOverlay:l,setShowRatingOverlay:u,onRate:f})=>{const[d,m]=I.useState(0),p=E=>{m(E),u(!0)},g=()=>u(!1),v=!a&&o>=1;return n?_.jsxDEV(_.Fragment,{children:[_.jsxDEV(ZB,{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),_.jsxDEV(WB,{visible:l,rating:d,onRate:f,onClose:g},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},JB=I.memo(KB),e8="_inputWrapper_e3h44_1",t8="_withOpenCommands_e3h44_14",n8="_messageInputWrapper_e3h44_20",r8="_messageInput_e3h44_20",a8="_buttons_e3h44_44",i8="_button_e3h44_44",$i={inputWrapper:e8,withOpenCommands:t8,messageInputWrapper:n8,messageInput:r8,buttons:a8,button:i8},o8="_audioRecorder_g845f_1",s8="_audioButton_g845f_6",l8="_recorderIcon_g845f_37",c8="_spinning_g845f_60",Yi={audioRecorder:o8,audioButton:s8,recorderIcon:l8,spinning:c8},qx=2048,Zf=16e3;class u8 extends _k.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(qx,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+=qx}}handleClickSubmitAudio(){const o=d8(this.leftchannel,this.recordingLength),l=h8(o,this.sampleRate||0),u=f8(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 _.jsxDEV("div",{className:Yi.audioRecorder,children:[this.state.recordingState==="none"&&_.jsxDEV("button",{className:ee(Yi.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:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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),_.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"&&_.jsxDEV("svg",{className:Yi.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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),_.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"&&_.jsxDEV("div",{className:Yi.audioRecorder,children:[_.jsxDEV("button",{className:ee(Yi.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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),_.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),_.jsxDEV("div",{className:Yi.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),_.jsxDEV("button",{className:ee(Yi.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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),_.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 f8=n=>{const a=new ArrayBuffer(44+n.length*2),o=new DataView(a);Mf(o,0,"RIFF"),o.setUint32(4,44+n.length*2,!0),Mf(o,8,"WAVE"),Mf(o,12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,1,!0),o.setUint32(24,Zf,!0),o.setUint32(28,Zf*4,!0),o.setUint16(32,4,!0),o.setUint16(34,16,!0),Mf(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"})},Mf=(n,a,o)=>{for(let l=0;l<o.length;l++)n.setUint8(a+l,o.charCodeAt(l))},d8=(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},h8=(n,a)=>{if(Zf===a)return n;const o=a/Zf,l=Math.round(n.length/o),u=new Float32Array(l);let f=0,d=0;for(;f<u.length;){const m=Math.round((f+1)*o);let p=0,g=0;for(let v=d;v<m&&v<n.length;v++)p+=n[v],g++;u[f]=p/g,f++,d=m}return u},m8=({disabled:n,textInput:a,commandsVisible:o,hasCommands:l,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:d,onOpenTranscriptExportModal:m})=>{const p=yt(),g=I.useRef(null),{enableTranscriptExportPdf:v,enableTranscriptExportEmail:E,enableSpeechSupport:y}=On(M=>M.settings);I.useEffect(()=>{var M;(M=g.current)==null||M.focus()},[a]);const N=()=>{const M=g.current;M&&a.trim().length>=1&&f(a.trim())&&(M.value="",M.style.height="",M.focus())},w=M=>{M.preventDefault(),N()},D=M=>{const U=M.target.value;u(U),M.target.style.height="";const{scrollHeight:C}=M.target;M.target.style.height=`${C>150?150:C}px`},T=M=>{M.code==="Enter"&&!M.shiftKey?(M.repeat||N(),M.preventDefault()):o&&(M.code==="ArrowUp"||M.code==="ArrowDown")&&M.preventDefault()};return _.jsxDEV("form",{className:ee($i.inputWrapper,o&&$i.withOpenCommands,"chat__textInput"),onSubmit:w,children:[_.jsxDEV("div",{className:$i.messageInputWrapper,children:_.jsxDEV("textarea",{id:"user_input",ref:g,className:$i.messageInput,tabIndex:0,placeholder:p("message-input-placeholder"),value:a,onChange:D,onKeyDown:T,"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),_.jsxDEV("div",{className:ee($i.buttons,"chat__buttons"),children:[!a.length&&(v||E)&&_.jsxDEV("button",{type:"button",className:ee($i.button,"chat__button"),"aria-label":p("message-input.actions.export-transcript.label"),"data-title":p("message-input.actions.export-transcript.label"),tabIndex:0,onClick:m,children:_.jsxDEV("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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||!y||navigator.mediaDevices===void 0?_.jsxDEV("button",{className:ee($i.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:_.jsxDEV("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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):y&&navigator.mediaDevices!==void 0&&_.jsxDEV(u8,{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)},p8="_quickReplies_83npe_1",b8="_quickReply_83npe_9",Fx={quickReplies:p8,quickReply:b8},g8=({quickReplies:n,onQuickReplyClick:a})=>n.length?_.jsxDEV("div",{className:ee(Fx.quickReplies,"chat__quickReplies"),children:n.map(o=>_.jsxDEV(cd,{tabIndex:0,className:ee(Fx.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,Px=5e3,y8=1e3,v8=({isBotTyping:n,quickReplies:a,conversationRating:o,numberOfMessagesFromGuest:l,showRatingOverlay:u,commands:f,setShowRatingOverlay:d,onTextInput:m,onRate:p,onQuickReplyClick:g,onAudioRecorded:v,onOpenTranscriptExportModal:E})=>{const[y,N]=I.useState(""),[w,D]=I.useState(!1),[T,M]=I.useState(!1),U=I.useRef(0),C=I.useRef(0);I.useEffect(()=>{if(w&&!n){const F=U.current?Date.now()-U.current:0;F>Px?D(!1):setTimeout(()=>{D(!1)},Px-F)}},[w,n]),I.useEffect(()=>{w&&(U.current=Date.now())},[w]);const A=F=>{const Z=Date.now()-C.current<y8;return T?!1:n||Z?(D(!0),!1):(m(F),N(""),C.current=Date.now(),!0)},L=F=>{N(F+" ")};return _.jsxDEV("div",{className:ee(vB.inputContainer),children:[_.jsxDEV(g8,{quickReplies:a,onQuickReplyClick:g},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),_.jsxDEV(wB,{visible:w},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),!w&&_.jsxDEV(JB,{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)&&_.jsxDEV(OB,{text:y,commands:f,onSelectCommand:L,onVisibilityChange:M},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),_.jsxDEV(m8,{textInput:y,disabled:w,commandsVisible:T,hasCommands:!!(f!=null&&f.length),onTextInput:N,onTextInputSubmit:A,onOpenTranscriptExportModal:E,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)&&_.jsxDEV(DB,{commands:f,onSelectCommand:N},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)},_8=({clientName:n,messages:a,quickReplies:o,isBotTyping:l,drawerContentUrl:u,conversationRating:f,onMessageFromUser:d,onRate:m,onQuickReplyClick:p,onButtonClick:g,onLinkClick:v,onAudioRecorded:E,onTranscriptExport:y,onPdfExport:N,onTranscriptItemReaction:w})=>{const D=ds(),T=On(te=>te.connection.connectionState),{enableTranscriptExportPdf:M,enableTranscriptExportEmail:U,commands:C}=On(te=>te.settings),[A,L]=I.useState(!1),[F,Z]=I.useState(!1),J=M||U,X=a.filter(te=>te.sender.type===Xf.GUEST).length;return I.useEffect(()=>{if(T===Wi.CONNECTED){const te=ed.parse(window.location.search);D(qT(n,te))}},[n,T,D]),_.jsxDEV("div",{className:yb.container,children:[_.jsxDEV("div",{className:ee([yb.chatcontent,(A||F)&&yb.accessabilityHidden]),children:[_.jsxDEV(K5,{messages:a,isBotTyping:l,commands:C,onButtonClick:g,onLinkClick:v,onTranscriptItemReaction:w},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),_.jsxDEV(v8,{isBotTyping:l,quickReplies:l?[]:o,numberOfMessagesFromGuest:X,conversationRating:A?{enabled:!1}:f,showRatingOverlay:F,setShowRatingOverlay:Z,commands:C,onRate:m,onQuickReplyClick:p,onTextInput:d,onAudioRecorded:E,onOpenTranscriptExportModal:()=>L(!A)},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),_.jsxDEV(cB,{},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),J&&_.jsxDEV(gB,{enableTranscriptExportPdf:M,enableTranscriptExportEmail:U,visible:A,onEmailExport:y,onPdfExport:N,onClose:()=>L(!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),_.jsxDEV(iB,{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)},E8=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}},w8=n=>({onRestartChat:(a,o)=>n(sd(a,o)),onMessageFromUser:a=>n(bT(a)),onRate:(a,o)=>n(F3(a,o)),onAudioRecorded:a=>n(z3(a)),onActionFromUser:a=>n(a),onQuickReplyClick:a=>n(pT(a)),onNluEvent:a=>n(ET(a)),onButtonClick:a=>n($3(a)),onLinkClick:a=>n(Y3(a)),onTranscriptExport:a=>n(V3(a)),onPdfExport:()=>n(G3()),onTranscriptItemReaction:(a,o)=>n(Ve.Actions.transcriptItemGuestReaction(a,o||null))}),S8=iD(E8,w8)(_8),lN=()=>{const[n,a]=I.useState(!1);return I.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())},x8=({onClick:n})=>{const a=yt();return lN()?_.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:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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},k8=()=>{const n=yt(),a=lN(),o=On(u=>u.settings.enableStandaloneView),l=()=>{window.open(window.location.href,"_blank")};return a&&o?_.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:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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},T8="_header_1hky6_1",N8="_logoContainer_1hky6_13",R8="_logo_1hky6_13",A8="_actions_1hky6_27",Uf={header:T8,logoContainer:N8,logo:R8,actions:A8},O8=({onClick:n})=>{const a=yt();return _.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:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[_.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),_.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)},$x=({className:n,withActions:a=!0,...o})=>{const l=ds(),u=oy(),f=()=>{const m=ed.parse(window.location.search);l(sd(u,m))},d=()=>{l(QU())};return _.jsxDEV("div",{className:ee([Uf.header,n]),...o,children:[_.jsxDEV("div",{className:Uf.logoContainer,children:_.jsxDEV("div",{className:Uf.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),_.jsxDEV("div",{className:Uf.actions,children:[a&&_.jsxDEV(O8,{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),_.jsxDEV(k8,{},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),_.jsxDEV(x8,{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)},C8="_chatwindow_rkbir_1",D8="_chatwindowWithAside_rkbir_21",Yx={chatwindow:C8,chatwindowWithAside:D8},cN=()=>{const[n,a]=I.useState(!1);return I.useEffect(()=>{const o=window.matchMedia("(max-width: 1023px)"),l=()=>a(o.matches);return l(),o.addEventListener("change",l),()=>o.removeEventListener("change",l)},[]),n},M8="_sourceInfos_vei0l_1",U8="_waitForLoading_vei0l_24",B8="_loadingContent_vei0l_28",L8="_sourceHeader_vei0l_37",j8="_sourceHeaderIcon_vei0l_57",H8="_sourceContent_vei0l_61",z8="_openSourceButton_vei0l_69",I8="_sourceButtonLabel_vei0l_79",V8="_closeSourceInfosButton_vei0l_101",G8="_loadingSourceInfos_vei0l_125",q8="_loading_vei0l_28",F8="_loadingError_vei0l_139",P8="_highlightLoadingInfo_vei0l_155",$8="_highlightLoadingInfoInnerContainer_vei0l_169",Y8="_highlightLoadingInfoContent_vei0l_178",X8="_highlightLoadingInfoCloseIcon_vei0l_198",Z8="_highlightLoader_vei0l_203",Q8="_highlightLoaderLoading_vei0l_210",Ht={sourceInfos:M8,waitForLoading:U8,loadingContent:B8,sourceHeader:L8,sourceHeaderIcon:j8,sourceContent:H8,openSourceButton:z8,sourceButtonLabel:I8,closeSourceInfosButton:V8,loadingSourceInfos:G8,loading:q8,loadingError:F8,highlightLoadingInfo:P8,highlightLoadingInfoInnerContainer:$8,highlightLoadingInfoContent:Y8,highlightLoadingInfoCloseIcon:X8,highlightLoader:Z8,highlightLoaderLoading:Q8},W8=({onClick:n})=>{const a=yt();return _.jsxDEV("button",{className:ee(Ht.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":a("source-infos.close"),"data-title":a("source-infos.close"),tabIndex:0,onClick:n,children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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)},K8=I.forwardRef(({sourceInfos:n,onClose:a,...o},l)=>_.jsxDEV("div",{className:Ht.sourceHeader,...o,ref:l,children:[_.jsxDEV("div",{children:n?_.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):_.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),_.jsxDEV(W8,{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)),J8=({loading:n})=>_.jsxDEV("div",{className:Ht.highlightLoader,children:n&&_.jsxDEV("div",{className:Ht.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),eL=({onClose:n})=>{const a=yt();return _.jsxDEV("div",{className:Ht.highlightLoadingInfo,onClick:n,children:[_.jsxDEV("div",{className:Ht.highlightLoadingInfoCloseIcon,children:_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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),_.jsxDEV("div",{className:Ht.highlightLoadingInfoInnerContainer,children:[_.jsxDEV("div",{className:Ht.highlightLoadingInfoContent,children:[_.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),_.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),_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:_.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)},tL=({title:n,href:a,children:o})=>_.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),nL=({className:n,children:a,...o})=>_.jsxDEV("a",{className:ee(rc.button,rc.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),rL=n=>_.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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),aL=({type:n,...a})=>{switch(n){case"WEBSITE":return _.jsxDEV(nN,{...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 _.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:17,columnNumber:14},void 0);case"DOCX":return _.jsxDEV(JT,{...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 _.jsxDEV(rL,{...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 _.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:23,columnNumber:14},void 0)}},iL=({url:n,knowledgeBaseType:a})=>{const o=yt();return _.jsxDEV(nL,{className:Ht.openSourceButton,href:n,target:"_blank",children:_.jsxDEV("div",{className:Ht.sourceButtonLabel,children:[_.jsxDEV("div",{className:Ht.sourceHeaderIcon,children:_.jsxDEV(aL,{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),_.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)},oL=({sourceInfos:{content:n,url:a,knowledgeBaseType:o,highlighted:l}})=>{const[u,f]=I.useState(!l);return I.useEffect(()=>{l&&f(!1)},[l]),_.jsxDEV(_.Fragment,{children:[_.jsxDEV("div",{className:ee(Ht.sourceContent,iN.markdown),children:[_.jsxDEV(jr,{options:{overrides:{a:tL}},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&&_.jsxDEV(eL,{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),_.jsxDEV(iL,{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)},sL=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,lL=()=>{const n=yt();return _.jsxDEV("div",{className:Ht.loadingError,children:[_.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),_.jsxDEV("img",{src:sL,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),_.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)},cL=()=>_.jsxDEV("div",{className:Ht.loadingSourceInfos,children:_.jsxDEV("svg",{className:Ht.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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 uL({sourceInfos:n,onClose:a,threshold:o=100}){const l=I.useRef(null),[u,f]=I.useState(0),[d,m]=I.useState(!1),p=I.useRef(null),g=I.useRef(null),v=I.useCallback(w=>{p.current=w,m(!0)},[]),E=I.useCallback(w=>{if(p.current!==null&&d){const D=w-p.current;D>0&&f(D)}},[d]),y=I.useCallback(()=>{m(!1),u>o&&a(),f(0),p.current=null},[u,o,a]),N=I.useCallback(w=>{const D=L=>v(L.touches[0].clientY),T=L=>E(L.touches[0].clientY),M=()=>y(),U=L=>{L.preventDefault(),v(L.clientY),window.addEventListener("mousemove",C),window.addEventListener("mouseup",A)},C=L=>E(L.clientY),A=()=>{y(),window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",A)};w.addEventListener("touchstart",D),w.addEventListener("touchmove",T),w.addEventListener("touchend",M),w.addEventListener("mousedown",U),g.current=()=>{w.removeEventListener("touchstart",D),w.removeEventListener("touchmove",T),w.removeEventListener("touchend",M),w.removeEventListener("mousedown",U),window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",A)}},[v,E,y]);return I.useEffect(()=>{let w;return(()=>{var T;l.current?((T=g.current)==null||T.call(g),N(l.current)):(w=new MutationObserver(()=>{var M;l.current&&((M=g.current)==null||M.call(g),N(l.current),w==null||w.disconnect())}),w.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{var T;w==null||w.disconnect(),(T=g.current)==null||T.call(g)}},[N,n]),{ref:l,dragOffsetY:u,isDragging:d}}const fL=n=>{const[a,o]=I.useState(!0);return I.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},dL=()=>{const n=ds(),a=On(p=>p.chat.sourceInfos),o=cN(),l=I.useRef(null),u=fL(a);I.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=I.useCallback(()=>{l.current&&(o?l.current.close():l.current.removeAttribute("open"),n(KU()))},[n,o]),{ref:d,dragOffsetY:m}=uL({onClose:f,sourceInfos:a});return a?_.jsxDEV("dialog",{ref:l,className:ee(Ht.sourceInfos,u?Ht.waitForLoading:a.type==="loading"?Ht.loadingContent:""),style:o&&m?{transform:`translateY(${m}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:_.jsxDEV(_.Fragment,{children:[_.jsxDEV(K8,{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"?_.jsxDEV(cL,{},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"?_.jsxDEV(lL,{},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):_.jsxDEV(_.Fragment,{children:[_.jsxDEV(J8,{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),_.jsxDEV(oL,{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},hL="_container_114wy_1",mL="_body_114wy_7",pL="_intro_114wy_14",bL="_footer_114wy_39",gL="_footnote_114wy_43",yL="_containerWithFootnote_114wy_58",vL="_startChatButton_114wy_73",_L="_formFields_114wy_77",EL="_formField_114wy_77",wL="_radio_114wy_89",SL="_checkbox_114wy_96",xL="_input_114wy_104",kL="_inputLabel_114wy_138",TL="_selectWrapper_114wy_142",NL="_select_114wy_142",RL="_selectLabel_114wy_188",Yt={container:hL,body:mL,intro:pL,footer:bL,footnote:gL,containerWithFootnote:yL,startChatButton:vL,formFields:_L,formField:EL,radio:wL,checkbox:SL,input:xL,inputLabel:kL,selectWrapper:TL,select:NL,selectLabel:RL},AL=({name:n,label:a,defaultValue:o,required:l,onChange:u})=>{const f=d=>{u(d.currentTarget.checked?"true":"false")};return _.jsxDEV("label",{className:ee(Yt.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[_.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),_.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)},OL=({type:n,name:a,label:o,defaultValue:l,placeholder:u,required:f,multiple:d,min:m,max:p,pattern:g,onChange:v})=>{const E=y=>{v(y.target.value)};return _.jsxDEV("label",{className:ee(Yt.input,"chat__startScreen__input"),htmlFor:a,children:[_.jsxDEV("div",{className:ee(Yt.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),_.jsxDEV("input",{type:n,id:a,name:a,defaultValue:l,placeholder:u,required:f,multiple:d,min:m,max:p,pattern:g,onChange:E},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)},CL=({name:n,value:a,label:o,defaultChecked:l,required:u,onChange:f})=>{const d=`${n}-${a}`,m=p=>{f(p.target.value)};return _.jsxDEV("label",{className:ee(Yt.radio,"chat__startScreen__radio"),htmlFor:d,children:[_.jsxDEV("input",{id:d,type:"radio",name:n,value:a,defaultChecked:l,required:u,onChange:m},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),_.jsxDEV("span",{className:ee(Yt.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)},DL=({name:n,label:a,defaultValue:o,required:l,multiple:u,options:f,onChange:d})=>{const m=p=>{d(p.target.value)};return _.jsxDEV("label",{className:ee(Yt.select,"chat__startScreen__select"),htmlFor:n,children:[_.jsxDEV("div",{className:ee(Yt.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),_.jsxDEV("div",{className:ee(Yt.selectWrapper),children:_.jsxDEV("select",{id:n,name:n,defaultValue:o,required:l,multiple:u,onChange:m,children:Object.entries(f||{}).map(([p,g])=>_.jsxDEV("option",{value:p,selected:g===o,children:g},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)},ML="start-screen.intro",UL="start-screen.start-chat",BL="start-screen.footnote",mr="start-screen.form",Xx=`${mr}.fields`,LL=()=>{const n=yt(),a=ds(),[o,l]=I.useState({}),u=()=>{const E=Object.entries(o).reduce((y,[N,w])=>({...y,[N]:w.value}),{});a(YU(E))},f=n(ML),d=n(UL),m=n(BL),p=I.useMemo(()=>{var E;return((E=n(Xx))==null?void 0:E.split(";").map(y=>y.trim()))??[]},[n(Xx)]);I.useEffect(()=>{p.length&&Object.keys(o).length===0&&l(p.reduce((E,y)=>({...E,[y]:jL(y,n)}),{}))},[n,p,o]);const g=E=>{E.preventDefault(),u()},v=E=>y=>{l(N=>({...N,[E]:{...N[E],value:y}}))};return _.jsxDEV("form",{onSubmit:g,className:ee(Yt.container,m&&Yt.containerWithFootnote,"chat__startScreen"),children:[_.jsxDEV("div",{className:ee(Yt.body,"chat__startScreen__body"),children:[f&&_.jsxDEV("div",{className:ee(Yt.intro,"chat__startScreen__intro"),children:_.jsxDEV(jr,{options:{overrides:{a:Zx}},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),_.jsxDEV("div",{className:ee(Yt.formFields,"chat__startScreen__fields"),children:Object.values(o).map(({type:E,name:y,label:N,placeholder:w,defaultValue:D,options:T,required:M,multiple:U,min:C,max:A,pattern:L})=>_.jsxDEV("div",{className:ee(Yt.formField,"chat__startScreen__field"),children:(()=>{switch(E){case"radio":return _.jsxDEV(_.Fragment,{children:[_.jsxDEV("div",{children:N},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(T||{}).map(([F,Z])=>_.jsxDEV(CL,{name:y,value:F,label:Z,defaultChecked:F===D,required:M,onChange:v(y)},F,!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 _.jsxDEV(AL,{name:y,label:N,defaultValue:D,required:M,onChange:v(y)},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 _.jsxDEV(DL,{name:y,label:N,defaultValue:D,required:M,multiple:U,options:T,onChange:v(y)},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 _.jsxDEV(OL,{type:E,name:y,label:N,placeholder:w,defaultValue:D,required:M,multiple:U,min:C,max:A,pattern:L,onChange:v(y)},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)}})()},y,!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),_.jsxDEV("div",{className:ee(Yt.footer,"chat__startScreen__footer"),children:[_.jsxDEV(ac,{type:"submit",className:Yt.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),m&&_.jsxDEV("div",{className:Yt.footnote,children:_.jsxDEV(jr,{options:{overrides:{a:Zx}},children:m},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)},Zx=({title:n,href:a,children:o})=>_.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),jL=(n,a)=>{const o=a(`${mr}.${n}.type`)||"text",l=a(`${mr}.${n}.required`)==="true",u=a(`${mr}.${n}.multiple`)==="true",f=a(`${mr}.${n}.placeholder`),d=a(`${mr}.${n}.label`)||"",m=a(`${mr}.${n}.defaultValue`),p=a(`${mr}.${n}.min`),g=a(`${mr}.${n}.max`),v=a(`${mr}.${n}.pattern`),E=zL(a(`${mr}.${n}.options`));return{name:n,label:d,placeholder:f,value:HL(o,m,E)||"",defaultValue:m,options:E,type:o,required:l,multiple:u,min:p,max:g,pattern:v}},HL=(n,a,o)=>a||n==="select"&&Object.keys(o)[0]||"",zL=(n="")=>n.split(";").map(a=>a.trim()).reduce((a,o)=>{const[l,u]=o.split(":").map(f=>f.trim());return{...a,[l]:u}},{}),IL=()=>{const n=Jf();I.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},ss={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"},VL=({clientName:n})=>{IL();const a=ds(),o=On(v=>v.intl.messages),l=yt(),u=On(v=>v.settings.enableStartScreen),f=On(v=>v.startScreen.startScreenStatus),[d,m]=I.useState(void 0);I.useEffect(()=>{const v=ed.parse(window.location.search);v.cssClassName&&m(v.cssClassName);const E=y=>{switch(y.data.type){case ss.TRIGGER_ACTION:a(y.data.action);break;case ss.TRIGGER_STORY:a(ET(y.data.story));break;case ss.ON_CHAT_WINDOW_OPEN:a({type:"webclient.chatwindow.opened"});break;case ss.ON_CHAT_WINDOW_CLOSE:a({type:"webclient.chatwindow.closed"});break;case ss.CHAT_MESSAGE_FROM_GUEST:a(bT(y.data.text));break;case ss.RESTART_CHAT:a(sd(n,v));break}};return a(e6(n,v)),window.addEventListener("message",y=>E(y),!1),()=>window.removeEventListener("message",E)},[n,a]),I.useEffect(()=>{const v=l("page.title");v&&document&&(document.title=v)},[o,l]);const p=u===void 0,g=u===!1||f==="HIDDEN";return _.jsxDEV("div",{className:ee(Yx.chatwindow,g&&Yx.chatwindowWithAside,"chat__chatwindow",d),children:p?null:g?_.jsxDEV(_.Fragment,{children:[_.jsxDEV("header",{children:_.jsxDEV($x,{},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),_.jsxDEV("main",{children:_.jsxDEV(S8,{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),_.jsxDEV("aside",{children:_.jsxDEV(dL,{},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):_.jsxDEV(_.Fragment,{children:[_.jsxDEV("header",{children:_.jsxDEV($x,{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),_.jsxDEV("main",{children:_.jsxDEV(LL,{},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)},GL=()=>{const n=oy(),a=cN(),o=On(u=>u.intl.locale),l=On(u=>u.intl.messages);return _.jsxDEV($M,{locale:o,messages:l,onError:()=>{},children:_.jsxDEV("div",{className:ee([XM.app,a?"chat__small":"chat__large"]),children:_.jsxDEV(VL,{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 Mb,Qx;function ly(){if(Qx)return Mb;Qx=1;function n(a){var o=typeof a;return a!=null&&(o=="object"||o=="function")}return Mb=n,Mb}var Ub,Wx;function qL(){if(Wx)return Ub;Wx=1;var n=typeof af=="object"&&af&&af.Object===Object&⁡return Ub=n,Ub}var Bb,Kx;function uN(){if(Kx)return Bb;Kx=1;var n=qL(),a=typeof self=="object"&&self&&self.Object===Object&&self,o=n||a||Function("return this")();return Bb=o,Bb}var Lb,Jx;function FL(){if(Jx)return Lb;Jx=1;var n=uN(),a=function(){return n.Date.now()};return Lb=a,Lb}var jb,ek;function PL(){if(ek)return jb;ek=1;var n=/\s/;function a(o){for(var l=o.length;l--&&n.test(o.charAt(l)););return l}return jb=a,jb}var Hb,tk;function $L(){if(tk)return Hb;tk=1;var n=PL(),a=/^\s+/;function o(l){return l&&l.slice(0,n(l)+1).replace(a,"")}return Hb=o,Hb}var zb,nk;function fN(){if(nk)return zb;nk=1;var n=uN(),a=n.Symbol;return zb=a,zb}var Ib,rk;function YL(){if(rk)return Ib;rk=1;var n=fN(),a=Object.prototype,o=a.hasOwnProperty,l=a.toString,u=n?n.toStringTag:void 0;function f(d){var m=o.call(d,u),p=d[u];try{d[u]=void 0;var g=!0}catch{}var v=l.call(d);return g&&(m?d[u]=p:delete d[u]),v}return Ib=f,Ib}var Vb,ak;function XL(){if(ak)return Vb;ak=1;var n=Object.prototype,a=n.toString;function o(l){return a.call(l)}return Vb=o,Vb}var Gb,ik;function ZL(){if(ik)return Gb;ik=1;var n=fN(),a=YL(),o=XL(),l="[object Null]",u="[object Undefined]",f=n?n.toStringTag:void 0;function d(m){return m==null?m===void 0?u:l:f&&f in Object(m)?a(m):o(m)}return Gb=d,Gb}var qb,ok;function QL(){if(ok)return qb;ok=1;function n(a){return a!=null&&typeof a=="object"}return qb=n,qb}var Fb,sk;function WL(){if(sk)return Fb;sk=1;var n=ZL(),a=QL(),o="[object Symbol]";function l(u){return typeof u=="symbol"||a(u)&&n(u)==o}return Fb=l,Fb}var Pb,lk;function KL(){if(lk)return Pb;lk=1;var n=$L(),a=ly(),o=WL(),l=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,m=parseInt;function p(g){if(typeof g=="number")return g;if(o(g))return l;if(a(g)){var v=typeof g.valueOf=="function"?g.valueOf():g;g=a(v)?v+"":v}if(typeof g!="string")return g===0?g:+g;g=n(g);var E=f.test(g);return E||d.test(g)?m(g.slice(2),E?2:8):u.test(g)?l:+g}return Pb=p,Pb}var $b,ck;function JL(){if(ck)return $b;ck=1;var n=ly(),a=FL(),o=KL(),l="Expected a function",u=Math.max,f=Math.min;function d(m,p,g){var v,E,y,N,w,D,T=0,M=!1,U=!1,C=!0;if(typeof m!="function")throw new TypeError(l);p=o(p)||0,n(g)&&(M=!!g.leading,U="maxWait"in g,y=U?u(o(g.maxWait)||0,p):y,C="trailing"in g?!!g.trailing:C);function A(he){var Le=v,Ae=E;return v=E=void 0,T=he,N=m.apply(Ae,Le),N}function L(he){return T=he,w=setTimeout(J,p),M?A(he):N}function F(he){var Le=he-D,Ae=he-T,W=p-Le;return U?f(W,y-Ae):W}function Z(he){var Le=he-D,Ae=he-T;return D===void 0||Le>=p||Le<0||U&&Ae>=y}function J(){var he=a();if(Z(he))return X(he);w=setTimeout(J,F(he))}function X(he){return w=void 0,C&&v?A(he):(v=E=void 0,N)}function te(){w!==void 0&&clearTimeout(w),T=0,v=D=E=w=void 0}function ne(){return w===void 0?N:X(a())}function se(){var he=a(),Le=Z(he);if(v=arguments,E=this,D=he,Le){if(w===void 0)return L(D);if(U)return clearTimeout(w),w=setTimeout(J,p),A(D)}return w===void 0&&(w=setTimeout(J,p)),N}return se.cancel=te,se.flush=ne,se}return $b=d,$b}var Yb,uk;function ej(){if(uk)return Yb;uk=1;var n=JL(),a=ly(),o="Expected a function";function l(u,f,d){var m=!0,p=!0;if(typeof u!="function")throw new TypeError(o);return a(d)&&(m="leading"in d?!!d.leading:m,p="trailing"in d?!!d.trailing:p),n(u,f,{leading:m,maxWait:f,trailing:p})}return Yb=l,Yb}var tj=ej();const nj=Qf(tj);function rj(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function aj(n){return n}function ij(n,a){a=a||{};const o=a.delimiter||".",l=a.maxDepth,u=a.transformKey||aj,f={};function d(m,p,g){g=g||1,Object.keys(m).forEach(function(v){const E=m[v],y=a.safe&&Array.isArray(E),N=Object.prototype.toString.call(E),w=rj(E),D=N==="[object Object]"||N==="[object Array]",T=p?p+o+u(v):u(v);if(!y&&!w&&D&&Object.keys(E).length&&(!a.maxDepth||g<l))return d(E,T,g+1);f[T]=E})}return d(n),f}const dN={"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
339
|
|
|
340
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"},
|
|
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"},oj={"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
342
|
|
|
343
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"},
|
|
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"},sj={"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
345
|
|
|
346
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"},
|
|
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"},lj={"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
348
|
|
|
349
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"},KL=["de","en","fr","it"],lN={locale:"de",messages:sN},JL=(n,a)=>{if(KL.includes(n)){const o=ej(n),l=XL(a);return{...o,...l}}return a},ej=n=>{switch(n.toString()){case"en":return ZL;case"fr":return QL;case"it":return WL;default:return sN}},tj=(n=nj,a)=>{switch(a.type){case Yg:return Object.assign({},n,{connectionState:Wi.CONNECTING});case Xg:return Object.assign({},n,{connectionState:Wi.CONNECTED});case Zg:return Object.assign({},n,{connectionState:Wi.DISCONNECTED});case Qg:return Object.assign({},n,{connectionState:Wi.RECONNECTED});default:return n}},nj={connectionState:Wi.DISCONNECTED},$t=[];for(let n=0;n<256;++n)$t.push((n+256).toString(16).slice(1));function rj(n,a=0){return($t[n[a+0]]+$t[n[a+1]]+$t[n[a+2]]+$t[n[a+3]]+"-"+$t[n[a+4]]+$t[n[a+5]]+"-"+$t[n[a+6]]+$t[n[a+7]]+"-"+$t[n[a+8]]+$t[n[a+9]]+"-"+$t[n[a+10]]+$t[n[a+11]]+$t[n[a+12]]+$t[n[a+13]]+$t[n[a+14]]+$t[n[a+15]]).toLowerCase()}let Fb;const aj=new Uint8Array(16);function ij(){if(!Fb){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Fb=crypto.getRandomValues.bind(crypto)}return Fb(aj)}const oj=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ak={randomUUID:oj};function sj(n,a,o){var u;if(ak.randomUUID&&!n)return ak.randomUUID();n=n||{};const l=n.random??((u=n.rng)==null?void 0:u.call(n))??ij();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,rj(l)}const lj=(n=ok,a)=>{var o,l,u,f,d;switch(a.type){case LT:return ok;case Wg:return Xi({type:"webclient.chat.started"}),n;case jT:return Xi({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 ik(n,a.message);case Ie.ActionTypes.MESSAGE_TO_GUEST:{Xi(a);const m=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([m]),quickReplies:m.quickReplies?m.quickReplies:[]})}case Lg:{const m=a.messages,p=m.length?m[m.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:m,quickReplies:(p==null?void 0:p.quickReplies)||[]})}case Bg:return Xi(a.message),n;case Ie.ActionTypes.EVENT_TO_GUEST:return Xi(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 dT:return Xi(a),n;case hT:return Xi(a),n;case Hg:{const m=new Ie.TextMessage(a.transcription,new Ie.GuestUser),p=Object.assign({},m,{_id:sj()});return ik(n,p)}case Ie.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const m=n.messages.map(p=>p._id===a.payload.actionId?Object.assign({},p,{reaction:a.payload.reaction}):p);return Object.assign({},n,{messages:m})}case zg:{const m={enabled:!0,rating:a.payload.rating};return Object.assign({},n,{conversationRating:m})}case Ie.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const m={...n.conversationRating,rating:a.payload};return Object.assign({},n,{conversationRating:m})}case Ig:return{...n,sourceInfos:{type:"loading",chunkId:a.payload.chunkId}};case Vg:{const{highlighted:m}=a.payload;return((o=n.sourceInfos)==null?void 0:o.type)==="loaded"&&m?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case fT:{const m=(l=n.sourceInfos)==null?void 0:l.type,{chunkId:p,knowledgeBaseType:y,title:v,content:E,highlighted:g,url:N}=a.payload,w=((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 w&&w!==p?n:m==="loading"||m==="loaded"&&g?{...n,sourceInfos:{type:"loaded",chunkId:p,knowledgeBaseType:y,title:v,content:E,highlighted:g,url:N}}:n}case Gg:return{...n,sourceInfos:void 0};default:return n}},ik=(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:[]})},Xi=n=>{var a;cj()?(a=window.top)==null||a.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},cj=()=>typeof window<"u"&&window.self!==window.top,ok={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},cN=Pg({name:"intl",initialState:lN,reducers:{updateIntl:(n,a)=>{n.locale=a.payload.language,n.messages=a.payload.messages}}}),{updateIntl:uj}=cN.actions,fj=cN.reducer,dj={enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},uN=Pg({name:"settings",initialState:dj,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:hj}=uN.actions,mj=uN.reducer,pj=yT({settings:mj,chat:lj,startScreen:zU,connection:tj,intl:fj}),bj="bubble-chat",fN="state-last-saved-at",dN="state",gj=n=>{try{if(!_j())return;const a=sk(n,fN);if(vj(a))return;{const o=sk(n,dN);return o===null?void 0:JSON.parse(o)}}catch(a){console.error(a);return}},yj=(n,a)=>{try{const o=JSON.stringify(a);lk(n,dN,o);const l=new Date().toISOString();lk(n,fN,l)}catch(o){console.error(o)}},vj=n=>{if(n===null)return!1;const a=new Date(n);return a.setHours(a.getHours()+12),new Date>a},_j=()=>typeof localStorage<"u",sk=(n,a)=>{const o=hN(n,a);return localStorage.getItem(o)},lk=(n,a,o)=>{const l=hN(n,a);return localStorage.setItem(l,o)},hN=(n,a)=>`${bj}-${n}-${a}`,Vr=Object.create(null);Vr.open="0";Vr.close="1";Vr.ping="2";Vr.pong="3";Vr.message="4";Vr.upgrade="5";Vr.noop="6";const jf=Object.create(null);Object.keys(Vr).forEach(n=>{jf[Vr[n]]=n});const bg={type:"error",data:"parser error"},mN=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",pN=typeof ArrayBuffer=="function",bN=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,ry=({type:n,data:a},o,l)=>mN&&a instanceof Blob?o?l(a):ck(a,l):pN&&(a instanceof ArrayBuffer||bN(a))?o?l(a):ck(new Blob([a]),l):l(Vr[n]+(a||"")),ck=(n,a)=>{const o=new FileReader;return o.onload=function(){const l=o.result.split(",")[1];a("b"+(l||""))},o.readAsDataURL(n)};function uk(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Pb;function Ej(n,a){if(mN&&n.data instanceof Blob)return n.data.arrayBuffer().then(uk).then(a);if(pN&&(n.data instanceof ArrayBuffer||bN(n.data)))return a(uk(n.data));ry(n,!1,o=>{Pb||(Pb=new TextEncoder),a(Pb.encode(o))})}const fk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<fk.length;n++)Jl[fk.charCodeAt(n)]=n;const wj=n=>{let a=n.length*.75,o=n.length,l,u=0,f,d,m,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=Jl[n.charCodeAt(l)],d=Jl[n.charCodeAt(l+1)],m=Jl[n.charCodeAt(l+2)],p=Jl[n.charCodeAt(l+3)],v[u++]=f<<2|d>>4,v[u++]=(d&15)<<4|m>>2,v[u++]=(m&3)<<6|p&63;return y},Sj=typeof ArrayBuffer=="function",ay=(n,a)=>{if(typeof n!="string")return{type:"message",data:gN(n,a)};const o=n.charAt(0);return o==="b"?{type:"message",data:xj(n.substring(1),a)}:jf[o]?n.length>1?{type:jf[o],data:n.substring(1)}:{type:jf[o]}:bg},xj=(n,a)=>{if(Sj){const o=wj(n);return gN(o,a)}else return{base64:!0,data:n}},gN=(n,a)=>{switch(a){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},yN="",kj=(n,a)=>{const o=n.length,l=new Array(o);let u=0;n.forEach((f,d)=>{ry(f,!1,m=>{l[d]=m,++u===o&&a(l.join(yN))})})},Tj=(n,a)=>{const o=n.split(yN),l=[];for(let u=0;u<o.length;u++){const f=ay(o[u],a);if(l.push(f),f.type==="error")break}return l};function Nj(){return new TransformStream({transform(n,a){Ej(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 $b;function Mf(n){return n.reduce((a,o)=>a+o.length,0)}function Uf(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 Rj(n,a){$b||($b=new TextDecoder);const o=[];let l=0,u=-1,f=!1;return new TransformStream({transform(d,m){for(o.push(d);;){if(l===0){if(Mf(o)<1)break;const p=Uf(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(Mf(o)<2)break;const p=Uf(o,2);u=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),l=3}else if(l===2){if(Mf(o)<8)break;const p=Uf(o,8),y=new DataView(p.buffer,p.byteOffset,p.length),v=y.getUint32(0);if(v>Math.pow(2,21)-1){m.enqueue(bg);break}u=v*Math.pow(2,32)+y.getUint32(4),l=3}else{if(Mf(o)<u)break;const p=Uf(o,u);m.enqueue(ay(f?p:$b.decode(p),a)),l=0}if(u===0||u>n){m.enqueue(bg);break}}}})}const vN=4;function Rt(n){if(n)return Aj(n)}function Aj(n){for(var a in Rt.prototype)n[a]=Rt.prototype[a];return n}Rt.prototype.on=Rt.prototype.addEventListener=function(n,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(a),this};Rt.prototype.once=function(n,a){function o(){this.off(n,o),a.apply(this,arguments)}return o.fn=a,this.on(n,o),this};Rt.prototype.off=Rt.prototype.removeListener=Rt.prototype.removeAllListeners=Rt.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};Rt.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};Rt.prototype.emitReserved=Rt.prototype.emit;Rt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Rt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const sd=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")(),Oj="arraybuffer";function _N(n,...a){return a.reduce((o,l)=>(n.hasOwnProperty(l)&&(o[l]=n[l]),o),{})}const Cj=Wn.setTimeout,Dj=Wn.clearTimeout;function ld(n,a){a.useNativeTimers?(n.setTimeoutFn=Cj.bind(Wn),n.clearTimeoutFn=Dj.bind(Wn)):(n.setTimeoutFn=Wn.setTimeout.bind(Wn),n.clearTimeoutFn=Wn.clearTimeout.bind(Wn))}const Mj=1.33;function Uj(n){return typeof n=="string"?Bj(n):Math.ceil((n.byteLength||n.size)*Mj)}function Bj(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 EN(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Lj(n){let a="";for(let o in n)n.hasOwnProperty(o)&&(a.length&&(a+="&"),a+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));return a}function jj(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 Hj extends Error{constructor(a,o,l){super(a),this.description=o,this.context=l,this.type="TransportError"}}class iy extends Rt{constructor(a){super(),this.writable=!1,ld(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 Hj(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=ay(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=Lj(a);return o.length?"?"+o:""}}class zj extends iy{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)};Tj(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,kj(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]=EN()),!this.supportsBinary&&!o.sid&&(o.b64=1),this.createUri(a,o)}}let wN=!1;try{wN=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Vj=wN;function Ij(){}class Gj extends zj{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 Hr extends Rt{constructor(a,o,l){super(),this.createRequest=a,ld(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=_N(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=Hr.requestsCount++,Hr.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=Ij,a)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Hr.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()}}Hr.requestsCount=0;Hr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",dk);else if(typeof addEventListener=="function"){const n="onpagehide"in Wn?"pagehide":"unload";addEventListener(n,dk,!1)}}function dk(){for(let n in Hr.requests)Hr.requests.hasOwnProperty(n)&&Hr.requests[n].abort()}const qj=function(){const n=SN({xdomain:!1});return n&&n.responseType!==null}();class Fj extends Gj{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 Hr(SN,this.uri(),a)}}function SN(n){const a=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!a||Vj))return new XMLHttpRequest}catch{}if(!a)try{return new Wn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const xN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Pj extends iy{get name(){return"websocket"}doOpen(){const a=this.uri(),o=this.opts.protocols,l=xN?{}:_N(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;ry(l,this.supportsBinary,f=>{try{this.doWrite(l,f)}catch{}u&&sd(()=>{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]=EN()),this.supportsBinary||(o.b64=1),this.createUri(a,o)}}const Yb=Wn.WebSocket||Wn.MozWebSocket;class $j extends Pj{createSocket(a,o,l){return xN?new Yb(a,o,l):o?new Yb(a,o):new Yb(a)}doWrite(a,o){this.ws.send(o)}}class Yj extends iy{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=Rj(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=a.readable.pipeThrough(o).getReader(),u=Nj();u.readable.pipeTo(a.writable),this._writer=u.writable.getWriter();const f=()=>{l.read().then(({done:m,value:p})=>{m||(this.onPacket(p),f())}).catch(m=>{})};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&&sd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var a;(a=this._transport)===null||a===void 0||a.close()}}const Xj={websocket:$j,webtransport:Yj,polling:Fj},Zj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Qj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function gg(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=Zj.exec(n||""),f={},d=14;for(;d--;)f[Qj[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=Wj(f,f.path),f.queryKey=Kj(f,f.query),f}function Wj(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 Kj(n,a){const o={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,f){u&&(o[u]=f)}),o}const yg=typeof addEventListener=="function"&&typeof removeEventListener=="function",Hf=[];yg&&addEventListener("offline",()=>{Hf.forEach(n=>n())},!1);class ri extends Rt{constructor(a,o){if(super(),this.binaryType=Oj,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=gg(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=gg(o.host).host);ld(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=jj(this.opts.query)),yg&&(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"})},Hf.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(a){const o=Object.assign({},this.opts.query);o.EIO=vN,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&&ri.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",ri.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+=Uj(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,sd(()=>{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(ri.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(),yg&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=Hf.indexOf(this._offlineEventListener);l!==-1&&Hf.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",a,o),this.writeBuffer=[],this._prevBufferLen=0}}}ri.protocol=vN;class Jj extends ri{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;ri.priorWebsocketSuccess=!1;const u=()=>{l||(o.send([{type:"ping",data:"probe"}]),o.once("packet",E=>{if(!l)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",o),!o)return;ri.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=E=>{const g=new Error("probe error: "+E);g.transport=o.name,f(),this.emitReserved("upgradeError",g)};function m(){d("transport closed")}function p(){d("socket closed")}function y(E){o&&E.name!==o.name&&f()}const v=()=>{o.removeListener("open",u),o.removeListener("error",d),o.removeListener("close",m),this.off("close",p),this.off("upgrading",y)};o.once("open",u),o.once("error",d),o.once("close",m),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 eH=class extends Jj{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=>Xj[u]).filter(u=>!!u)),super(a,l)}};function tH(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=gg(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 nH=typeof ArrayBuffer=="function",rH=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,kN=Object.prototype.toString,aH=typeof Blob=="function"||typeof Blob<"u"&&kN.call(Blob)==="[object BlobConstructor]",iH=typeof File=="function"||typeof File<"u"&&kN.call(File)==="[object FileConstructor]";function oy(n){return nH&&(n instanceof ArrayBuffer||rH(n))||aH&&n instanceof Blob||iH&&n instanceof File}function zf(n,a){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let o=0,l=n.length;o<l;o++)if(zf(n[o]))return!0;return!1}if(oy(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return zf(n.toJSON(),!0);for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&zf(n[o]))return!0;return!1}function oH(n){const a=[],o=n.data,l=n;return l.data=vg(o,a),l.attachments=a.length,{packet:l,buffers:a}}function vg(n,a){if(!n)return n;if(oy(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]=vg(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]=vg(n[l],a));return o}return n}function sH(n,a){return n.data=_g(n.data,a),delete n.attachments,n}function _g(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]=_g(n[o],a);else if(typeof n=="object")for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=_g(n[o],a));return n}const lH=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],cH=5;var Fe;(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"})(Fe||(Fe={}));class uH{constructor(a){this.replacer=a}encode(a){return(a.type===Fe.EVENT||a.type===Fe.ACK)&&zf(a)?this.encodeAsBinary({type:a.type===Fe.EVENT?Fe.BINARY_EVENT:Fe.BINARY_ACK,nsp:a.nsp,data:a.data,id:a.id}):[this.encodeAsString(a)]}encodeAsString(a){let o=""+a.type;return(a.type===Fe.BINARY_EVENT||a.type===Fe.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=oH(a),l=this.encodeAsString(o.packet),u=o.buffers;return u.unshift(l),u}}function hk(n){return Object.prototype.toString.call(n)==="[object Object]"}class sy extends Rt{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===Fe.BINARY_EVENT;l||o.type===Fe.BINARY_ACK?(o.type=l?Fe.EVENT:Fe.ACK,this.reconstructor=new fH(o),o.attachments===0&&super.emitReserved("decoded",o)):super.emitReserved("decoded",o)}else if(oy(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(Fe[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Fe.BINARY_EVENT||l.type===Fe.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(sy.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 Fe.CONNECT:return hk(o);case Fe.DISCONNECT:return o===void 0;case Fe.CONNECT_ERROR:return typeof o=="string"||hk(o);case Fe.EVENT:case Fe.BINARY_EVENT:return Array.isArray(o)&&(typeof o[0]=="number"||typeof o[0]=="string"&&lH.indexOf(o[0])===-1);case Fe.ACK:case Fe.BINARY_ACK:return Array.isArray(o)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class fH{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=sH(this.reconPack,this.buffers);return this.finishedReconstruction(),o}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const dH=Object.freeze(Object.defineProperty({__proto__:null,Decoder:sy,Encoder:uH,get PacketType(){return Fe},protocol:cH},Symbol.toStringTag,{value:"Module"}));function pr(n,a,o){return n.on(a,o),function(){n.off(a,o)}}const hH=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class TN extends Rt{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=[pr(a,"open",this.onopen.bind(this)),pr(a,"packet",this.onpacket.bind(this)),pr(a,"error",this.onerror.bind(this)),pr(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(hH.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:Fe.EVENT,data:o};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof o[o.length-1]=="function"){const v=this.ids++,E=o.pop();this._registerAckCallback(v,E),d.id=v}const m=(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&&!m||(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 m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===a&&this.sendBuffer.splice(m,1);o.call(this,new Error("operation has timed out"))},u),d=(...m)=>{this.io.clearTimeoutFn(f),o.apply(this,m)};d.withError=!0,this.acks[a]=d}emitWithAck(a,...o){return new Promise((l,u)=>{const f=(d,m)=>d?u(d):l(m);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:Fe.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 Fe.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 Fe.EVENT:case Fe.BINARY_EVENT:this.onevent(a);break;case Fe.ACK:case Fe.BINARY_ACK:this.onack(a);break;case Fe.DISCONNECT:this.ondisconnect();break;case Fe.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:Fe.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:Fe.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 hs(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}hs.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};hs.prototype.reset=function(){this.attempts=0};hs.prototype.setMin=function(n){this.ms=n};hs.prototype.setMax=function(n){this.max=n};hs.prototype.setJitter=function(n){this.jitter=n};class Eg extends Rt{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,ld(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 hs({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||dH;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 eH(this.uri,this.opts);const o=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=pr(o,"open",function(){l.onopen(),a&&a()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),a?a(m):this.maybeReconnectOnOpen()},d=pr(o,"error",f);if(this._timeout!==!1){const m=this._timeout,p=this.setTimeoutFn(()=>{u(),f(new Error("timeout")),o.close()},m);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(pr(a,"ping",this.onping.bind(this)),pr(a,"data",this.ondata.bind(this)),pr(a,"error",this.onerror.bind(this)),pr(a,"close",this.onclose.bind(this)),pr(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){sd(()=>{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 TN(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 Zl={};function Vf(n,a){typeof n=="object"&&(a=n,n=void 0),a=a||{};const o=tH(n,a.path||"/socket.io"),l=o.source,u=o.id,f=o.path,d=Zl[u]&&f in Zl[u].nsps,m=a.forceNew||a["force new connection"]||a.multiplex===!1||d;let p;return m?p=new Eg(l,a):(Zl[u]||(Zl[u]=new Eg(l,a)),p=Zl[u]),o.query&&!a.query&&(a.query=o.queryKey),p.socket(o.path,a)}Object.assign(Vf,{Manager:Eg,Socket:TN,io:Vf,connect:Vf});const mH=[Ie.ActionTypes.MESSAGE_TO_GUEST,Ie.ActionTypes.EVENT_TO_GUEST,Ie.ActionTypes.TYPING_ON,Ie.ActionTypes.TYPING_OFF,Ie.ActionTypes.RESTART_CHAT_REQUEST,...qU,...M3,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],pH=({dispatch:n})=>a=>{let o=null;return l=>{const u=a(l);if(l.type===$g){o!=null&&o.disconnect(),n(PU());const f=`/chat?${Kf.stringify(l.querystrings)}`;o=Vf(`/${l.clientName}${f}`),o.on("action",n),o.on("connect",()=>n($U())),o.on("disconnect",()=>n(YU())),o.on("reconnect",()=>n(XU())),o.on("set-translations",(d,m)=>{n(uj({language:d,messages:JL(d,m)}))}),o.on("set-settings",d=>{n(hj(d))}),o.on("enable-conversation-rating",d=>n(H3(d))),o.on("speech-transcription",d=>n(B3(d))),o.on("restore-client-state",d=>{n(V3(d.messages))}),o.on("expand-window",({devices:d,initial:m=!1})=>{n({type:dT,devices:d,initial:m})}),o.on("restart-chat",()=>{n(rd(l.clientName,l.querystrings))})}else if(l.type===Wg)o==null||o.emit("start-chat",l.payload);else if(l.type===jT)o==null||o.emit("terminate-session",l.payload);else if(l.type===D3)o==null||o.emit("get-started",JSON.stringify(l));else if(l.type===jg)o==null||o.emit("audio-message",l.buffer);else if(l.type===Ie.ActionTypes.CONVERSATION_RATING_FROM_GUEST)o==null||o.emit("conversation-rating",l.payload);else if(l.type===mT){const{clientName:f}=l.payload;window.location.href=`/${f}/transcript-pdf`}else mH.indexOf(l.type)===-1&&l.meta===void 0&&o&&o.emit("action",JSON.stringify(l));return u}},NN=tN(),bH={...gj(NN),intl:lN},wg=xU({middleware:n=>n().concat(pH),reducer:pj,preloadedState:bH});wg.subscribe(PL(()=>{const n=wg.getState();yj(NN,{connection:n.connection,startScreen:n.startScreen})},1e3));const gH=document.getElementById("root"),yH=lC.createRoot(gH);yH.render(_.jsxDEV(nD,{store:wg,children:_.jsxDEV(CL,{},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-
|
|
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"},cj=["de","en","fr","it"],hN={locale:"de",messages:dN},uj=(n,a)=>{if(cj.includes(n)){const o=fj(n),l=ij(a);return{...o,...l}}return a},fj=n=>{switch(n.toString()){case"en":return oj;case"fr":return sj;case"it":return lj;default:return dN}},dj=(n=hj,a)=>{switch(a.type){case Kg:return Object.assign({},n,{connectionState:Wi.CONNECTING});case Jg:return Object.assign({},n,{connectionState:Wi.CONNECTED});case ey:return Object.assign({},n,{connectionState:Wi.DISCONNECTED});case ty:return Object.assign({},n,{connectionState:Wi.RECONNECTED});case ny:return Object.assign({},n,{sessionId:a.sessionId});case id:return Object.assign({},n,{sessionId:a.payload.sessionId,userId:a.payload.userId});case od:return Object.assign({},n,{sessionId:void 0});default:return n}},hj={connectionState:Wi.DISCONNECTED,sessionId:void 0,userId:void 0},mj=(n=dk,a)=>{var o,l,u,f,d;switch(a.type){case GT:return dk;case id:return Xi({type:"webclient.chat.started"}),n;case od:return Xi({type:"webclient.chat.ended"}),n;case Ve.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Ve.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Ve.ActionTypes.MESSAGE_FROM_GUEST:case Ve.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return fk(n,a.message);case Ve.ActionTypes.MESSAGE_TO_GUEST:{Xi(a);const m=Object.assign({},a.message,{_id:a.meta.actionId}),p=n.messages.filter(g=>g._id===a.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:p?n.messages:n.messages.concat([m]),quickReplies:m.quickReplies?m.quickReplies:[]})}case Vg:{const m=a.messages,p=m.length?m[m.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:m,quickReplies:(p==null?void 0:p.quickReplies)||[]})}case Ig:return Xi(a.message),n;case Ve.ActionTypes.EVENT_TO_GUEST:return Xi(a.event),n;case Ve.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:a.payload.parameters.contentUrl});case Ve.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Ve.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:a.payload.locale});case yT:return Xi(a),n;case vT:return Xi(a),n;case qg:{const m=new Ve.TextMessage(a.transcription,new Ve.GuestUser),p=Object.assign({},m,{_id:hg()});return fk(n,p)}case Ve.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const m=n.messages.map(p=>p._id===a.payload.actionId?Object.assign({},p,{reaction:a.payload.reaction}):p);return Object.assign({},n,{messages:m})}case Fg:{const m={enabled:!0,rating:a.payload.rating};return Object.assign({},n,{conversationRating:m})}case Ve.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const m={...n.conversationRating,rating:a.payload};return Object.assign({},n,{conversationRating:m})}case $g:return{...n,sourceInfos:{type:"loading",chunkId:a.payload.chunkId}};case Pg:{const{highlighted:m}=a.payload;return((o=n.sourceInfos)==null?void 0:o.type)==="loaded"&&m?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case gT:{const m=(l=n.sourceInfos)==null?void 0:l.type,{chunkId:p,knowledgeBaseType:g,title:v,content:E,highlighted:y,url:N}=a.payload,w=((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 w&&w!==p?n:m==="loading"||m==="loaded"&&y?{...n,sourceInfos:{type:"loaded",chunkId:p,knowledgeBaseType:g,title:v,content:E,highlighted:y,url:N}}:n}case Yg:return{...n,sourceInfos:void 0};default:return n}},fk=(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:[]})},Xi=n=>{var a;pj()?(a=window.top)==null||a.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},pj=()=>typeof window<"u"&&window.self!==window.top,dk={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},mN=Qg({name:"intl",initialState:hN,reducers:{updateIntl:(n,a)=>{n.locale=a.payload.language,n.messages=a.payload.messages}}}),{updateIntl:bj}=mN.actions,gj=mN.reducer,yj={enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},pN=Qg({name:"settings",initialState:yj,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:vj}=pN.actions,_j=pN.reducer,Ej=xT({settings:_j,chat:mj,startScreen:ZU,connection:dj,intl:gj}),wj="bubble-chat",bN="state-last-saved-at",gN="state",Sj=n=>{try{if(!Tj())return;const a=hk(n,bN);if(kj(a))return;{const o=hk(n,gN);return o===null?void 0:JSON.parse(o)}}catch(a){console.error(a);return}},xj=(n,a)=>{try{const o=JSON.stringify(a);mk(n,gN,o);const l=new Date().toISOString();mk(n,bN,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},Tj=()=>typeof localStorage<"u",hk=(n,a)=>{const o=yN(n,a);return localStorage.getItem(o)},mk=(n,a,o)=>{const l=yN(n,a);return localStorage.setItem(l,o)},yN=(n,a)=>`${wj}-${n}-${a}`,Ir=Object.create(null);Ir.open="0";Ir.close="1";Ir.ping="2";Ir.pong="3";Ir.message="4";Ir.upgrade="5";Ir.noop="6";const zf=Object.create(null);Object.keys(Ir).forEach(n=>{zf[Ir[n]]=n});const Eg={type:"error",data:"parser error"},vN=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",_N=typeof ArrayBuffer=="function",EN=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,cy=({type:n,data:a},o,l)=>vN&&a instanceof Blob?o?l(a):pk(a,l):_N&&(a instanceof ArrayBuffer||EN(a))?o?l(a):pk(new Blob([a]),l):l(Ir[n]+(a||"")),pk=(n,a)=>{const o=new FileReader;return o.onload=function(){const l=o.result.split(",")[1];a("b"+(l||""))},o.readAsDataURL(n)};function bk(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Xb;function Nj(n,a){if(vN&&n.data instanceof Blob)return n.data.arrayBuffer().then(bk).then(a);if(_N&&(n.data instanceof ArrayBuffer||EN(n.data)))return a(bk(n.data));cy(n,!1,o=>{Xb||(Xb=new TextEncoder),a(Xb.encode(o))})}const gk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<gk.length;n++)Jl[gk.charCodeAt(n)]=n;const Rj=n=>{let a=n.length*.75,o=n.length,l,u=0,f,d,m,p;n[n.length-1]==="="&&(a--,n[n.length-2]==="="&&a--);const g=new ArrayBuffer(a),v=new Uint8Array(g);for(l=0;l<o;l+=4)f=Jl[n.charCodeAt(l)],d=Jl[n.charCodeAt(l+1)],m=Jl[n.charCodeAt(l+2)],p=Jl[n.charCodeAt(l+3)],v[u++]=f<<2|d>>4,v[u++]=(d&15)<<4|m>>2,v[u++]=(m&3)<<6|p&63;return g},Aj=typeof ArrayBuffer=="function",uy=(n,a)=>{if(typeof n!="string")return{type:"message",data:wN(n,a)};const o=n.charAt(0);return o==="b"?{type:"message",data:Oj(n.substring(1),a)}:zf[o]?n.length>1?{type:zf[o],data:n.substring(1)}:{type:zf[o]}:Eg},Oj=(n,a)=>{if(Aj){const o=Rj(n);return wN(o,a)}else return{base64:!0,data:n}},wN=(n,a)=>{switch(a){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},SN="",Cj=(n,a)=>{const o=n.length,l=new Array(o);let u=0;n.forEach((f,d)=>{cy(f,!1,m=>{l[d]=m,++u===o&&a(l.join(SN))})})},Dj=(n,a)=>{const o=n.split(SN),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 Mj(){return new TransformStream({transform(n,a){Nj(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 Zb;function Bf(n){return n.reduce((a,o)=>a+o.length,0)}function Lf(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 Uj(n,a){Zb||(Zb=new TextDecoder);const o=[];let l=0,u=-1,f=!1;return new TransformStream({transform(d,m){for(o.push(d);;){if(l===0){if(Bf(o)<1)break;const p=Lf(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(Bf(o)<2)break;const p=Lf(o,2);u=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),l=3}else if(l===2){if(Bf(o)<8)break;const p=Lf(o,8),g=new DataView(p.buffer,p.byteOffset,p.length),v=g.getUint32(0);if(v>Math.pow(2,21)-1){m.enqueue(Eg);break}u=v*Math.pow(2,32)+g.getUint32(4),l=3}else{if(Bf(o)<u)break;const p=Lf(o,u);m.enqueue(uy(f?p:Zb.decode(p),a)),l=0}if(u===0||u>n){m.enqueue(Eg);break}}}})}const xN=4;function Rt(n){if(n)return Bj(n)}function Bj(n){for(var a in Rt.prototype)n[a]=Rt.prototype[a];return n}Rt.prototype.on=Rt.prototype.addEventListener=function(n,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(a),this};Rt.prototype.once=function(n,a){function o(){this.off(n,o),a.apply(this,arguments)}return o.fn=a,this.on(n,o),this};Rt.prototype.off=Rt.prototype.removeListener=Rt.prototype.removeAllListeners=Rt.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};Rt.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};Rt.prototype.emitReserved=Rt.prototype.emit;Rt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Rt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const ud=typeof Promise=="function"&&typeof Promise.resolve=="function"?a=>Promise.resolve().then(a):(a,o)=>o(a,0),Kn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Lj="arraybuffer";function kN(n,...a){return a.reduce((o,l)=>(n.hasOwnProperty(l)&&(o[l]=n[l]),o),{})}const jj=Kn.setTimeout,Hj=Kn.clearTimeout;function fd(n,a){a.useNativeTimers?(n.setTimeoutFn=jj.bind(Kn),n.clearTimeoutFn=Hj.bind(Kn)):(n.setTimeoutFn=Kn.setTimeout.bind(Kn),n.clearTimeoutFn=Kn.clearTimeout.bind(Kn))}const zj=1.33;function Ij(n){return typeof n=="string"?Vj(n):Math.ceil((n.byteLength||n.size)*zj)}function Vj(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 Gj(n){let a="";for(let o in n)n.hasOwnProperty(o)&&(a.length&&(a+="&"),a+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));return a}function qj(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 Fj extends Error{constructor(a,o,l){super(a),this.description=o,this.context=l,this.type="TransportError"}}class fy extends Rt{constructor(a){super(),this.writable=!1,fd(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 Fj(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=Gj(a);return o.length?"?"+o:""}}class Pj 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)};Dj(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,Cj(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 NN=!1;try{NN=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const $j=NN;function Yj(){}class Xj extends Pj{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 Hr extends Rt{constructor(a,o,l){super(),this.createRequest=a,fd(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=kN(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=Hr.requestsCount++,Hr.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=Yj,a)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Hr.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()}}Hr.requestsCount=0;Hr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",yk);else if(typeof addEventListener=="function"){const n="onpagehide"in Kn?"pagehide":"unload";addEventListener(n,yk,!1)}}function yk(){for(let n in Hr.requests)Hr.requests.hasOwnProperty(n)&&Hr.requests[n].abort()}const Zj=function(){const n=RN({xdomain:!1});return n&&n.responseType!==null}();class Qj extends Xj{constructor(a){super(a);const o=a&&a.forceBase64;this.supportsBinary=Zj&&!o}request(a={}){return Object.assign(a,{xd:this.xd},this.opts),new Hr(RN,this.uri(),a)}}function RN(n){const a=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!a||$j))return new XMLHttpRequest}catch{}if(!a)try{return new Kn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const AN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Wj extends fy{get name(){return"websocket"}doOpen(){const a=this.uri(),o=this.opts.protocols,l=AN?{}:kN(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&&ud(()=>{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 Qb=Kn.WebSocket||Kn.MozWebSocket;class Kj extends Wj{createSocket(a,o,l){return AN?new Qb(a,o,l):o?new Qb(a,o):new Qb(a)}doWrite(a,o){this.ws.send(o)}}class Jj 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=Uj(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=a.readable.pipeThrough(o).getReader(),u=Mj();u.readable.pipeTo(a.writable),this._writer=u.writable.getWriter();const f=()=>{l.read().then(({done:m,value:p})=>{m||(this.onPacket(p),f())}).catch(m=>{})};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&&ud(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var a;(a=this._transport)===null||a===void 0||a.close()}}const eH={websocket:Kj,webtransport:Jj,polling:Qj},tH=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,nH=["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=tH.exec(n||""),f={},d=14;for(;d--;)f[nH[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=rH(f,f.path),f.queryKey=aH(f,f.query),f}function rH(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 aH(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",If=[];Sg&&addEventListener("offline",()=>{If.forEach(n=>n())},!1);class ri extends Rt{constructor(a,o){if(super(),this.binaryType=Lj,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);fd(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=qj(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"})},If.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(a){const o=Object.assign({},this.opts.query);o.EIO=xN,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&&ri.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",ri.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+=Ij(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,ud(()=>{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(ri.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=If.indexOf(this._offlineEventListener);l!==-1&&If.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",a,o),this.writeBuffer=[],this._prevBufferLen=0}}}ri.protocol=xN;class iH extends ri{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;ri.priorWebsocketSuccess=!1;const u=()=>{l||(o.send([{type:"ping",data:"probe"}]),o.once("packet",E=>{if(!l)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",o),!o)return;ri.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 y=new Error("probe error");y.transport=o.name,this.emitReserved("upgradeError",y)}}))};function f(){l||(l=!0,v(),o.close(),o=null)}const d=E=>{const y=new Error("probe error: "+E);y.transport=o.name,f(),this.emitReserved("upgradeError",y)};function m(){d("transport closed")}function p(){d("socket closed")}function g(E){o&&E.name!==o.name&&f()}const v=()=>{o.removeListener("open",u),o.removeListener("error",d),o.removeListener("close",m),this.off("close",p),this.off("upgrading",g)};o.once("open",u),o.once("error",d),o.once("close",m),this.once("close",p),this.once("upgrading",g),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 oH=class extends iH{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=>eH[u]).filter(u=>!!u)),super(a,l)}};function sH(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 lH=typeof ArrayBuffer=="function",cH=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,ON=Object.prototype.toString,uH=typeof Blob=="function"||typeof Blob<"u"&&ON.call(Blob)==="[object BlobConstructor]",fH=typeof File=="function"||typeof File<"u"&&ON.call(File)==="[object FileConstructor]";function dy(n){return lH&&(n instanceof ArrayBuffer||cH(n))||uH&&n instanceof Blob||fH&&n instanceof File}function Vf(n,a){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let o=0,l=n.length;o<l;o++)if(Vf(n[o]))return!0;return!1}if(dy(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Vf(n.toJSON(),!0);for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&Vf(n[o]))return!0;return!1}function dH(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 hH(n,a){return n.data=kg(n.data,a),delete n.attachments,n}function kg(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]=kg(n[o],a);else if(typeof n=="object")for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=kg(n[o],a));return n}const mH=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],pH=5;var Fe;(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"})(Fe||(Fe={}));class bH{constructor(a){this.replacer=a}encode(a){return(a.type===Fe.EVENT||a.type===Fe.ACK)&&Vf(a)?this.encodeAsBinary({type:a.type===Fe.EVENT?Fe.BINARY_EVENT:Fe.BINARY_ACK,nsp:a.nsp,data:a.data,id:a.id}):[this.encodeAsString(a)]}encodeAsString(a){let o=""+a.type;return(a.type===Fe.BINARY_EVENT||a.type===Fe.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=dH(a),l=this.encodeAsString(o.packet),u=o.buffers;return u.unshift(l),u}}function vk(n){return Object.prototype.toString.call(n)==="[object Object]"}class hy extends Rt{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===Fe.BINARY_EVENT;l||o.type===Fe.BINARY_ACK?(o.type=l?Fe.EVENT:Fe.ACK,this.reconstructor=new gH(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(Fe[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Fe.BINARY_EVENT||l.type===Fe.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 Fe.CONNECT:return vk(o);case Fe.DISCONNECT:return o===void 0;case Fe.CONNECT_ERROR:return typeof o=="string"||vk(o);case Fe.EVENT:case Fe.BINARY_EVENT:return Array.isArray(o)&&(typeof o[0]=="number"||typeof o[0]=="string"&&mH.indexOf(o[0])===-1);case Fe.ACK:case Fe.BINARY_ACK:return Array.isArray(o)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class gH{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=hH(this.reconPack,this.buffers);return this.finishedReconstruction(),o}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const yH=Object.freeze(Object.defineProperty({__proto__:null,Decoder:hy,Encoder:bH,get PacketType(){return Fe},protocol:pH},Symbol.toStringTag,{value:"Module"}));function pr(n,a,o){return n.on(a,o),function(){n.off(a,o)}}const vH=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class CN extends Rt{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=[pr(a,"open",this.onopen.bind(this)),pr(a,"packet",this.onpacket.bind(this)),pr(a,"error",this.onerror.bind(this)),pr(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(vH.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:Fe.EVENT,data:o};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof o[o.length-1]=="function"){const v=this.ids++,E=o.pop();this._registerAckCallback(v,E),d.id=v}const m=(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&&!m||(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 m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===a&&this.sendBuffer.splice(m,1);o.call(this,new Error("operation has timed out"))},u),d=(...m)=>{this.io.clearTimeoutFn(f),o.apply(this,m)};d.withError=!0,this.acks[a]=d}emitWithAck(a,...o){return new Promise((l,u)=>{const f=(d,m)=>d?u(d):l(m);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:Fe.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 Fe.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 Fe.EVENT:case Fe.BINARY_EVENT:this.onevent(a);break;case Fe.ACK:case Fe.BINARY_ACK:this.onack(a);break;case Fe.DISCONNECT:this.ondisconnect();break;case Fe.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:Fe.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:Fe.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 hs(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}hs.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};hs.prototype.reset=function(){this.attempts=0};hs.prototype.setMin=function(n){this.ms=n};hs.prototype.setMax=function(n){this.max=n};hs.prototype.setJitter=function(n){this.jitter=n};class Tg extends Rt{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,fd(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 hs({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||yH;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 oH(this.uri,this.opts);const o=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=pr(o,"open",function(){l.onopen(),a&&a()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),a?a(m):this.maybeReconnectOnOpen()},d=pr(o,"error",f);if(this._timeout!==!1){const m=this._timeout,p=this.setTimeoutFn(()=>{u(),f(new Error("timeout")),o.close()},m);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(pr(a,"ping",this.onping.bind(this)),pr(a,"data",this.ondata.bind(this)),pr(a,"error",this.onerror.bind(this)),pr(a,"close",this.onclose.bind(this)),pr(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){ud(()=>{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 CN(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 Zl={};function Gf(n,a){typeof n=="object"&&(a=n,n=void 0),a=a||{};const o=sH(n,a.path||"/socket.io"),l=o.source,u=o.id,f=o.path,d=Zl[u]&&f in Zl[u].nsps,m=a.forceNew||a["force new connection"]||a.multiplex===!1||d;let p;return m?p=new Tg(l,a):(Zl[u]||(Zl[u]=new Tg(l,a)),p=Zl[u]),o.query&&!a.query&&(a.query=o.queryKey),p.socket(o.path,a)}Object.assign(Gf,{Manager:Tg,Socket:CN,io:Gf,connect:Gf});const _H=[Ve.ActionTypes.MESSAGE_TO_GUEST,Ve.ActionTypes.EVENT_TO_GUEST,Ve.ActionTypes.TYPING_ON,Ve.ActionTypes.TYPING_OFF,Ve.ActionTypes.RESTART_CHAT_REQUEST,...JU,...H3,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],EH=({dispatch:n,getState:a})=>o=>{let l=null;return u=>{const f=o(u);if(u.type===Wg){l!=null&&l.disconnect(),n(n6());const d=`/chat?${ed.stringify(u.querystrings)}`;l=Gf(`/${u.clientName}${d}`),l.on("action",n),l.on("connect",()=>n(r6())),l.on("disconnect",()=>n(a6())),l.on("reconnect",()=>n(i6())),l.on("set-translations",(m,p)=>{n(bj({language:m,messages:uj(m,p)}))}),l.on("set-settings",m=>{n(vj(m))}),l.on("enable-conversation-rating",m=>n(q3(m))),l.on("speech-transcription",m=>n(I3(m))),l.on("restore-client-state",m=>{n(t6(m.sessionId)),n(P3(m.messages))}),l.on("expand-window",({devices:m,initial:p=!1})=>{n({type:yT,devices:m,initial:p})}),l.on("restart-chat",()=>{n(sd(u.clientName,u.querystrings))})}else if(u.type===id)l==null||l.emit("start-chat",u.payload);else if(u.type===od)l==null||l.emit("terminate-session",u.payload);else if(u.type===j3)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===Ve.ActionTypes.CONVERSATION_RATING_FROM_GUEST)l==null||l.emit("conversation-rating",u.payload);else if(u.type===_T){const{connection:{sessionId:d}}=a();window.location.href=`/transcript-pdf/${d}`}else _H.indexOf(u.type)===-1&&u.meta===void 0&&l&&l.emit("action",JSON.stringify(u));return f}},DN=oN(),wH={...Sj(DN),intl:hN},Ng=UU({middleware:n=>n().concat(EH),reducer:Ej,preloadedState:wH});Ng.subscribe(nj(()=>{const n=Ng.getState();xj(DN,{connection:n.connection,startScreen:n.startScreen})},1e3));const SH=document.getElementById("root"),xH=hC.createRoot(SH);xH.render(_.jsxDEV(sD,{store:Ng,children:_.jsxDEV(GL,{},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-Y-O4sres.js.map
|