@botfabrik/engine-webclient 4.90.1-alpha.1 → 4.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
var S2=Object.defineProperty;var T2=(n,r,i)=>r in n?S2(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i;var Ce=(n,r,i)=>T2(n,typeof r!="symbol"?r+"":r,i);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.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 h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function i(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=i(u);fetch(u.href,f)}})();var Ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Vc={exports:{}},Pi={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ig;function x2(){if(ig)return Pi;ig=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(l,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var d in u)d!=="key"&&(f[d]=u[d])}else f=u;return u=f.ref,{$$typeof:n,type:l,key:h,ref:u!==void 0?u:null,props:f}}return Pi.Fragment=r,Pi.jsx=i,Pi.jsxs=i,Pi}var sg;function A2(){return sg||(sg=1,Vc.exports=x2()),Vc.exports}var b=A2(),Pc={exports:{}},Yi={},Yc={exports:{}},Zc={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var lg;function O2(){return lg||(lg=1,function(n){function r(G,X){var J=G.length;G.push(X);e:for(;0<J;){var _e=J-1>>>1,w=G[_e];if(0<u(w,X))G[_e]=X,G[J]=w,J=_e;else break e}}function i(G){return G.length===0?null:G[0]}function l(G){if(G.length===0)return null;var X=G[0],J=G.pop();if(J!==X){G[0]=J;e:for(var _e=0,w=G.length,P=w>>>1;_e<P;){var $=2*(_e+1)-1,Q=G[$],ae=$+1,Se=G[ae];if(0>u(Q,J))ae<w&&0>u(Se,Q)?(G[_e]=Se,G[ae]=J,_e=ae):(G[_e]=Q,G[$]=J,_e=$);else if(ae<w&&0>u(Se,J))G[_e]=Se,G[ae]=J,_e=ae;else break e}}return X}function u(G,X){var J=G.sortIndex-X.sortIndex;return J!==0?J:G.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,d=h.now();n.unstable_now=function(){return h.now()-d}}var m=[],g=[],_=1,E=null,y=3,x=!1,T=!1,z=!1,N=!1,U=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function R(G){for(var X=i(g);X!==null;){if(X.callback===null)l(g);else if(X.startTime<=G)l(g),X.sortIndex=X.expirationTime,r(m,X);else break;X=i(g)}}function S(G){if(z=!1,R(G),!T)if(i(m)!==null)T=!0,k||(k=!0,ie());else{var X=i(g);X!==null&&Te(S,X.startTime-G)}}var k=!1,Y=-1,K=5,re=-1;function ee(){return N?!0:!(n.unstable_now()-re<K)}function le(){if(N=!1,k){var G=n.unstable_now();re=G;var X=!0;try{e:{T=!1,z&&(z=!1,M(Y),Y=-1),x=!0;var J=y;try{t:{for(R(G),E=i(m);E!==null&&!(E.expirationTime>G&&ee());){var _e=E.callback;if(typeof _e=="function"){E.callback=null,y=E.priorityLevel;var w=_e(E.expirationTime<=G);if(G=n.unstable_now(),typeof w=="function"){E.callback=w,R(G),X=!0;break t}E===i(m)&&l(m),R(G)}else l(m);E=i(m)}if(E!==null)X=!0;else{var P=i(g);P!==null&&Te(S,P.startTime-G),X=!1}}break e}finally{E=null,y=J,x=!1}X=void 0}}finally{X?ie():k=!1}}}var ie;if(typeof O=="function")ie=function(){O(le)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,Fe=de.port2;de.port1.onmessage=le,ie=function(){Fe.postMessage(null)}}else ie=function(){U(le,0)};function Te(G,X){Y=U(function(){G(n.unstable_now())},X)}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(G){G.callback=null},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return y},n.unstable_next=function(G){switch(y){case 1:case 2:case 3:var X=3;break;default:X=y}var J=y;y=X;try{return G()}finally{y=J}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(G,X){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var J=y;y=G;try{return X()}finally{y=J}},n.unstable_scheduleCallback=function(G,X,J){var _e=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?_e+J:_e):J=_e,G){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=J+w,G={id:_++,callback:X,priorityLevel:G,startTime:J,expirationTime:w,sortIndex:-1},J>_e?(G.sortIndex=J,r(g,G),i(m)===null&&G===i(g)&&(z?(M(Y),Y=-1):z=!0,Te(S,J-_e))):(G.sortIndex=w,r(m,G),T||x||(T=!0,k||(k=!0,ie()))),G},n.unstable_shouldYield=ee,n.unstable_wrapCallback=function(G){var X=y;return function(){var J=y;y=X;try{return G.apply(this,arguments)}finally{y=J}}}}(Zc)),Zc}var og;function w2(){return og||(og=1,Yc.exports=O2()),Yc.exports}var Xc={exports:{}},pe={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var ug;function R2(){if(ug)return pe;ug=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.iterator;function y(w){return w===null||typeof w!="object"?null:(w=E&&w[E]||w["@@iterator"],typeof w=="function"?w:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,z={};function N(w,P,$){this.props=w,this.context=P,this.refs=z,this.updater=$||x}N.prototype.isReactComponent={},N.prototype.setState=function(w,P){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,P,"setState")},N.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function U(){}U.prototype=N.prototype;function M(w,P,$){this.props=w,this.context=P,this.refs=z,this.updater=$||x}var O=M.prototype=new U;O.constructor=M,T(O,N.prototype),O.isPureReactComponent=!0;var R=Array.isArray,S={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function Y(w,P,$,Q,ae,Se){return $=Se.ref,{$$typeof:n,type:w,key:P,ref:$!==void 0?$:null,props:Se}}function K(w,P){return Y(w.type,P,void 0,void 0,void 0,w.props)}function re(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function ee(w){var P={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function($){return P[$]})}var le=/\/+/g;function ie(w,P){return typeof w=="object"&&w!==null&&w.key!=null?ee(""+w.key):P.toString(36)}function de(){}function Fe(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(de,de):(w.status="pending",w.then(function(P){w.status==="pending"&&(w.status="fulfilled",w.value=P)},function(P){w.status==="pending"&&(w.status="rejected",w.reason=P)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function Te(w,P,$,Q,ae){var Se=typeof w;(Se==="undefined"||Se==="boolean")&&(w=null);var ce=!1;if(w===null)ce=!0;else switch(Se){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(w.$$typeof){case n:case r:ce=!0;break;case _:return ce=w._init,Te(ce(w._payload),P,$,Q,ae)}}if(ce)return ae=ae(w),ce=Q===""?"."+ie(w,0):Q,R(ae)?($="",ce!=null&&($=ce.replace(le,"$&/")+"/"),Te(ae,P,$,"",function(wt){return wt})):ae!=null&&(re(ae)&&(ae=K(ae,$+(ae.key==null||w&&w.key===ae.key?"":(""+ae.key).replace(le,"$&/")+"/")+ce)),P.push(ae)),1;ce=0;var dt=Q===""?".":Q+":";if(R(w))for(var ke=0;ke<w.length;ke++)Q=w[ke],Se=dt+ie(Q,ke),ce+=Te(Q,P,$,Se,ae);else if(ke=y(w),typeof ke=="function")for(w=ke.call(w),ke=0;!(Q=w.next()).done;)Q=Q.value,Se=dt+ie(Q,ke++),ce+=Te(Q,P,$,Se,ae);else if(Se==="object"){if(typeof w.then=="function")return Te(Fe(w),P,$,Q,ae);throw P=String(w),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ce}function G(w,P,$){if(w==null)return w;var Q=[],ae=0;return Te(w,Q,"","",function(Se){return P.call($,Se,ae++)}),Q}function X(w){if(w._status===-1){var P=w._result;P=P(),P.then(function($){(w._status===0||w._status===-1)&&(w._status=1,w._result=$)},function($){(w._status===0||w._status===-1)&&(w._status=2,w._result=$)}),w._status===-1&&(w._status=0,w._result=P)}if(w._status===1)return w._result.default;throw w._result}var J=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)};function _e(){}return pe.Children={map:G,forEach:function(w,P,$){G(w,function(){P.apply(this,arguments)},$)},count:function(w){var P=0;return G(w,function(){P++}),P},toArray:function(w){return G(w,function(P){return P})||[]},only:function(w){if(!re(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},pe.Component=N,pe.Fragment=i,pe.Profiler=u,pe.PureComponent=M,pe.StrictMode=l,pe.Suspense=m,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,pe.__COMPILER_RUNTIME={__proto__:null,c:function(w){return S.H.useMemoCache(w)}},pe.cache=function(w){return function(){return w.apply(null,arguments)}},pe.cloneElement=function(w,P,$){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var Q=T({},w.props),ae=w.key,Se=void 0;if(P!=null)for(ce in P.ref!==void 0&&(Se=void 0),P.key!==void 0&&(ae=""+P.key),P)!k.call(P,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&P.ref===void 0||(Q[ce]=P[ce]);var ce=arguments.length-2;if(ce===1)Q.children=$;else if(1<ce){for(var dt=Array(ce),ke=0;ke<ce;ke++)dt[ke]=arguments[ke+2];Q.children=dt}return Y(w.type,ae,void 0,void 0,Se,Q)},pe.createContext=function(w){return w={$$typeof:h,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},pe.createElement=function(w,P,$){var Q,ae={},Se=null;if(P!=null)for(Q in P.key!==void 0&&(Se=""+P.key),P)k.call(P,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(ae[Q]=P[Q]);var ce=arguments.length-2;if(ce===1)ae.children=$;else if(1<ce){for(var dt=Array(ce),ke=0;ke<ce;ke++)dt[ke]=arguments[ke+2];ae.children=dt}if(w&&w.defaultProps)for(Q in ce=w.defaultProps,ce)ae[Q]===void 0&&(ae[Q]=ce[Q]);return Y(w,Se,void 0,void 0,null,ae)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(w){return{$$typeof:d,render:w}},pe.isValidElement=re,pe.lazy=function(w){return{$$typeof:_,_payload:{_status:-1,_result:w},_init:X}},pe.memo=function(w,P){return{$$typeof:g,type:w,compare:P===void 0?null:P}},pe.startTransition=function(w){var P=S.T,$={};S.T=$;try{var Q=w(),ae=S.S;ae!==null&&ae($,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(_e,J)}catch(Se){J(Se)}finally{S.T=P}},pe.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},pe.use=function(w){return S.H.use(w)},pe.useActionState=function(w,P,$){return S.H.useActionState(w,P,$)},pe.useCallback=function(w,P){return S.H.useCallback(w,P)},pe.useContext=function(w){return S.H.useContext(w)},pe.useDebugValue=function(){},pe.useDeferredValue=function(w,P){return S.H.useDeferredValue(w,P)},pe.useEffect=function(w,P,$){var Q=S.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(w,P)},pe.useId=function(){return S.H.useId()},pe.useImperativeHandle=function(w,P,$){return S.H.useImperativeHandle(w,P,$)},pe.useInsertionEffect=function(w,P){return S.H.useInsertionEffect(w,P)},pe.useLayoutEffect=function(w,P){return S.H.useLayoutEffect(w,P)},pe.useMemo=function(w,P){return S.H.useMemo(w,P)},pe.useOptimistic=function(w,P){return S.H.useOptimistic(w,P)},pe.useReducer=function(w,P,$){return S.H.useReducer(w,P,$)},pe.useRef=function(w){return S.H.useRef(w)},pe.useState=function(w){return S.H.useState(w)},pe.useSyncExternalStore=function(w,P,$){return S.H.useSyncExternalStore(w,P,$)},pe.useTransition=function(){return S.H.useTransition()},pe.version="19.1.0",pe}var cg;function Fa(){return cg||(cg=1,Xc.exports=R2()),Xc.exports}var Qc={exports:{}},yt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var fg;function C2(){if(fg)return yt;fg=1;var n=Fa();function r(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)g+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(m,g,_){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:m,containerInfo:g,implementation:_}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,yt.createPortal=function(m,g){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return f(m,g,null,_)},yt.flushSync=function(m){var g=h.T,_=l.p;try{if(h.T=null,l.p=2,m)return m()}finally{h.T=g,l.p=_,l.d.f()}},yt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(m,g))},yt.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},yt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var _=g.as,E=d(_,g.crossOrigin),y=typeof g.integrity=="string"?g.integrity:void 0,x=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;_==="style"?l.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:E,integrity:y,fetchPriority:x}):_==="script"&&l.d.X(m,{crossOrigin:E,integrity:y,fetchPriority:x,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},yt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var _=d(g.as,g.crossOrigin);l.d.M(m,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&l.d.M(m)},yt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var _=g.as,E=d(_,g.crossOrigin);l.d.L(m,_,{crossOrigin:E,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},yt.preloadModule=function(m,g){if(typeof m=="string")if(g){var _=d(g.as,g.crossOrigin);l.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else l.d.m(m)},yt.requestFormReset=function(m){l.d.r(m)},yt.unstable_batchedUpdates=function(m,g){return m(g)},yt.useFormState=function(m,g,_){return h.H.useFormState(m,g,_)},yt.useFormStatus=function(){return h.H.useHostTransitionStatus()},yt.version="19.1.0",yt}var hg;function N2(){if(hg)return Qc.exports;hg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Qc.exports=C2(),Qc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var dg;function D2(){if(dg)return Yi;dg=1;var n=w2(),r=Fa(),i=N2();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(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 d(e){if(f(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,s=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(s=o.return,s!==null){a=s;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return d(o),e;if(c===s)return d(o),t;c=c.sibling}throw Error(l(188))}if(a.return!==s.return)a=o,s=c;else{for(var p=!1,v=o.child;v;){if(v===a){p=!0,a=o,s=c;break}if(v===s){p=!0,s=o,a=c;break}v=v.sibling}if(!p){for(v=c.child;v;){if(v===a){p=!0,a=c,s=o;break}if(v===s){p=!0,s=c,a=o;break}v=v.sibling}if(!p)throw Error(l(189))}}if(a.alternate!==s)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,E=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),O=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function Fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case N:return"Profiler";case z:return"StrictMode";case S:return"Suspense";case k:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case O:return(e.displayName||"Context")+".Provider";case M:return(e._context.displayName||"Context")+".Consumer";case R:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:Fe(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return Fe(e(t))}catch{}}return null}var Te=Array.isArray,G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},_e=[],w=-1;function P(e){return{current:e}}function $(e){0>w||(e.current=_e[w],_e[w]=null,w--)}function Q(e,t){w++,_e[w]=e.current,e.current=t}var ae=P(null),Se=P(null),ce=P(null),dt=P(null);function ke(e,t){switch(Q(ce,t),Q(Se,e),Q(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Bp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Bp(t),e=jp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ae),Q(ae,e)}function wt(){$(ae),$(Se),$(ce)}function Tr(e){e.memoizedState!==null&&Q(dt,e);var t=ae.current,a=jp(t,e.type);t!==a&&(Q(Se,e),Q(ae,a))}function Za(e){Se.current===e&&($(ae),$(Se)),dt.current===e&&($(dt),Gi._currentValue=J)}var mt=Object.prototype.hasOwnProperty,An=n.unstable_scheduleCallback,Mo=n.unstable_cancelCallback,e1=n.unstable_shouldYield,t1=n.unstable_requestPaint,fn=n.unstable_now,n1=n.unstable_getCurrentPriorityLevel,dd=n.unstable_ImmediatePriority,md=n.unstable_UserBlockingPriority,hs=n.unstable_NormalPriority,r1=n.unstable_LowPriority,pd=n.unstable_IdlePriority,a1=n.log,i1=n.unstable_setDisableYieldValue,Xa=null,Rt=null;function Xn(e){if(typeof a1=="function"&&i1(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Xa,e)}catch{}}var Ct=Math.clz32?Math.clz32:o1,s1=Math.log,l1=Math.LN2;function o1(e){return e>>>=0,e===0?32:31-(s1(e)/l1|0)|0}var ds=256,ms=4194304;function xr(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 e}}function ps(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=s&134217727;return v!==0?(s=v&~c,s!==0?o=xr(s):(p&=v,p!==0?o=xr(p):a||(a=v&~e,a!==0&&(o=xr(a))))):(v=s&~c,v!==0?o=xr(v):p!==0?o=xr(p):a||(a=s&~e,a!==0&&(o=xr(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function Qa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function u1(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-1}}function gd(){var e=ds;return ds<<=1,(ds&4194048)===0&&(ds=256),e}function yd(){var e=ms;return ms<<=1,(ms&62914560)===0&&(ms=4194304),e}function Bo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function c1(e,t,a,s,o,c){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,A=e.expirationTimes,j=e.hiddenUpdates;for(a=p&~a;0<a;){var q=31-Ct(a),V=1<<q;v[q]=0,A[q]=-1;var H=j[q];if(H!==null)for(j[q]=null,q=0;q<H.length;q++){var L=H[q];L!==null&&(L.lane&=-536870913)}a&=~V}s!==0&&_d(e,s,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function _d(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Ct(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&4194090}function bd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-Ct(a),o=1<<s;o&t|e[s]&t&&(e[s]|=t),a&=~o}}function jo(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 Uo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vd(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Wp(e.type))}function f1(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var Qn=Math.random().toString(36).slice(2),pt="__reactFiber$"+Qn,Et="__reactProps$"+Qn,ea="__reactContainer$"+Qn,Ho="__reactEvents$"+Qn,h1="__reactListeners$"+Qn,d1="__reactHandles$"+Qn,Ed="__reactResources$"+Qn,$a="__reactMarker$"+Qn;function Lo(e){delete e[pt],delete e[Et],delete e[Ho],delete e[h1],delete e[d1]}function ta(e){var t=e[pt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ea]||a[pt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=zp(e);e!==null;){if(a=e[pt])return a;e=zp(e)}return t}e=a,a=e.parentNode}return null}function na(e){if(e=e[pt]||e[ea]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ja(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function ra(e){var t=e[Ed];return t||(t=e[Ed]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[$a]=!0}var Sd=new Set,Td={};function Ar(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(Td[e]=t,e=0;e<t.length;e++)Sd.add(t[e])}var m1=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]*$"),xd={},Ad={};function p1(e){return mt.call(Ad,e)?!0:mt.call(xd,e)?!1:m1.test(e)?Ad[e]=!0:(xd[e]=!0,!1)}function gs(e,t,a){if(p1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ys(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function On(e,t,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+s)}}var zo,Od;function ia(e){if(zo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);zo=t&&t[1]||"",Od=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+zo+e+Od}var ko=!1;function Go(e,t){if(!e||ko)return"";ko=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(L){var H=L}Reflect.construct(e,[],V)}else{try{V.call()}catch(L){H=L}e.call(V.prototype)}}else{try{throw Error()}catch(L){H=L}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(L){if(L&&H&&typeof L.stack=="string")return[L.stack,H.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),p=c[0],v=c[1];if(p&&v){var A=p.split(`
|
|
44
|
+
`),j=v.split(`
|
|
45
|
+
`);for(o=s=0;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;for(;o<j.length&&!j[o].includes("DetermineComponentFrameRoot");)o++;if(s===A.length||o===j.length)for(s=A.length-1,o=j.length-1;1<=s&&0<=o&&A[s]!==j[o];)o--;for(;1<=s&&0<=o;s--,o--)if(A[s]!==j[o]){if(s!==1||o!==1)do if(s--,o--,0>o||A[s]!==j[o]){var q=`
|
|
46
|
+
`+A[s].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=s&&0<=o);break}}}finally{ko=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ia(a):""}function g1(e){switch(e.tag){case 26:case 27:case 5:return ia(e.type);case 16:return ia("Lazy");case 13:return ia("Suspense");case 19:return ia("SuspenseList");case 0:case 15:return Go(e.type,!1);case 11:return Go(e.type.render,!1);case 1:return Go(e.type,!0);case 31:return ia("Activity");default:return""}}function wd(e){try{var t="";do t+=g1(e),e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function y1(e){var t=Rd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){s=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return s},setValue:function(p){s=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _s(e){e._valueTracker||(e._valueTracker=y1(e))}function Cd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=Rd(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function bs(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}}var _1=/[\n"\\]/g;function Vt(e){return e.replace(_1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function qo(e,t,a,s,o,c,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Io(e,p,Ft(t)):a!=null?Io(e,p,Ft(a)):s!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Ft(v):e.removeAttribute("name")}function Nd(e,t,a,s,o,c,p,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;a=a!=null?""+Ft(a):"",t=t!=null?""+Ft(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=v?e.checked:!!s,e.defaultChecked=!!s,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function Io(e,t,a){t==="number"&&bs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function sa(e,t,a,s){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&s&&(e[a].defaultSelected=!0)}else{for(a=""+Ft(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Dd(e,t,a){if(t!=null&&(t=""+Ft(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ft(a):""}function Md(e,t,a,s){if(t==null){if(s!=null){if(a!=null)throw Error(l(92));if(Te(s)){if(1<s.length)throw Error(l(93));s=s[0]}a=s}a==null&&(a=""),t=a}a=Ft(t),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s)}function la(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var b1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Bd(e,t,a){var s=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,a):typeof a!="number"||a===0||b1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function jd(e,t,a){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var o in t)s=t[o],t.hasOwnProperty(o)&&a[o]!==s&&Bd(e,o,s)}else for(var c in t)t.hasOwnProperty(c)&&Bd(e,c,t[c])}function Fo(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}}var v1=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"]]),E1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vs(e){return E1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Vo=null;function Po(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,ua=null;function Ud(e){var t=na(e);if(t&&(e=t.stateNode)){var a=e[Et]||null;e:switch(e=t.stateNode,t.type){case"input":if(qo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Vt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var o=s[Et]||null;if(!o)throw Error(l(90));qo(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)s=a[t],s.form===e.form&&Cd(s)}break e;case"textarea":Dd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&sa(e,!!a.multiple,t,!1)}}}var Yo=!1;function Hd(e,t,a){if(Yo)return e(t,a);Yo=!0;try{var s=e(t);return s}finally{if(Yo=!1,(oa!==null||ua!==null)&&(il(),oa&&(t=oa,e=ua,ua=oa=null,Ud(t),e)))for(t=0;t<e.length;t++)Ud(e[t])}}function Wa(e,t){var a=e.stateNode;if(a===null)return null;var s=a[Et]||null;if(s===null)return null;a=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(l(231,t,typeof a));return a}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zo=!1;if(wn)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){Zo=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{Zo=!1}var Kn=null,Xo=null,Es=null;function Ld(){if(Es)return Es;var e,t=Xo,a=t.length,s,o="value"in Kn?Kn.value:Kn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(s=1;s<=p&&t[a-s]===o[c-s];s++);return Es=o.slice(e,1<s?1-s:void 0)}function Ss(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 Ts(){return!0}function zd(){return!1}function St(e){function t(a,s,o,c,p){this._reactName=a,this._targetInst=o,this.type=s,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ts:zd,this.isPropagationStopped=zd,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ts)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ts)},persist:function(){},isPersistent:Ts}),t}var Or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xs=St(Or),ti=_({},Or,{view:0,detail:0}),S1=St(ti),Qo,Ko,ni,As=_({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jo,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!==ni&&(ni&&e.type==="mousemove"?(Qo=e.screenX-ni.screenX,Ko=e.screenY-ni.screenY):Ko=Qo=0,ni=e),Qo)},movementY:function(e){return"movementY"in e?e.movementY:Ko}}),kd=St(As),T1=_({},As,{dataTransfer:0}),x1=St(T1),A1=_({},ti,{relatedTarget:0}),$o=St(A1),O1=_({},Or,{animationName:0,elapsedTime:0,pseudoElement:0}),w1=St(O1),R1=_({},Or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),C1=St(R1),N1=_({},Or,{data:0}),Gd=St(N1),D1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M1={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"},B1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B1[e])?!!t[e]:!1}function Jo(){return j1}var U1=_({},ti,{key:function(e){if(e.key){var t=D1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?M1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jo,charCode:function(e){return e.type==="keypress"?Ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H1=St(U1),L1=_({},As,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qd=St(L1),z1=_({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jo}),k1=St(z1),G1=_({},Or,{propertyName:0,elapsedTime:0,pseudoElement:0}),q1=St(G1),I1=_({},As,{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}),F1=St(I1),V1=_({},Or,{newState:0,oldState:0}),P1=St(V1),Y1=[9,13,27,32],Wo=wn&&"CompositionEvent"in window,ri=null;wn&&"documentMode"in document&&(ri=document.documentMode);var Z1=wn&&"TextEvent"in window&&!ri,Id=wn&&(!Wo||ri&&8<ri&&11>=ri),Fd=" ",Vd=!1;function Pd(e,t){switch(e){case"keyup":return Y1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ca=!1;function X1(e,t){switch(e){case"compositionend":return Yd(t);case"keypress":return t.which!==32?null:(Vd=!0,Fd);case"textInput":return e=t.data,e===Fd&&Vd?null:e;default:return null}}function Q1(e,t){if(ca)return e==="compositionend"||!Wo&&Pd(e,t)?(e=Ld(),Es=Xo=Kn=null,ca=!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 Id&&t.locale!=="ko"?null:t.data;default:return null}}var K1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!K1[e.type]:t==="textarea"}function Xd(e,t,a,s){oa?ua?ua.push(s):ua=[s]:oa=s,t=fl(t,"onChange"),0<t.length&&(a=new xs("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ai=null,ii=null;function $1(e){Rp(e,0)}function Os(e){var t=Ja(e);if(Cd(t))return e}function Qd(e,t){if(e==="change")return t}var Kd=!1;if(wn){var eu;if(wn){var tu="oninput"in document;if(!tu){var $d=document.createElement("div");$d.setAttribute("oninput","return;"),tu=typeof $d.oninput=="function"}eu=tu}else eu=!1;Kd=eu&&(!document.documentMode||9<document.documentMode)}function Jd(){ai&&(ai.detachEvent("onpropertychange",Wd),ii=ai=null)}function Wd(e){if(e.propertyName==="value"&&Os(ii)){var t=[];Xd(t,ii,e,Po(e)),Hd($1,t)}}function J1(e,t,a){e==="focusin"?(Jd(),ai=t,ii=a,ai.attachEvent("onpropertychange",Wd)):e==="focusout"&&Jd()}function W1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Os(ii)}function eE(e,t){if(e==="click")return Os(t)}function tE(e,t){if(e==="input"||e==="change")return Os(t)}function nE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:nE;function si(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var o=a[s];if(!mt.call(t,o)||!Nt(e[o],t[o]))return!1}return!0}function em(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tm(e,t){var a=em(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=t&&s>=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=em(a)}}function nm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bs(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=bs(e.document)}return t}function nu(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")}var rE=wn&&"documentMode"in document&&11>=document.documentMode,fa=null,ru=null,li=null,au=!1;function am(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;au||fa==null||fa!==bs(s)||(s=fa,"selectionStart"in s&&nu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),li&&si(li,s)||(li=s,s=fl(ru,"onSelect"),0<s.length&&(t=new xs("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=fa)))}function wr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ha={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionrun:wr("Transition","TransitionRun"),transitionstart:wr("Transition","TransitionStart"),transitioncancel:wr("Transition","TransitionCancel"),transitionend:wr("Transition","TransitionEnd")},iu={},im={};wn&&(im=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function Rr(e){if(iu[e])return iu[e];if(!ha[e])return e;var t=ha[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in im)return iu[e]=t[a];return e}var sm=Rr("animationend"),lm=Rr("animationiteration"),om=Rr("animationstart"),aE=Rr("transitionrun"),iE=Rr("transitionstart"),sE=Rr("transitioncancel"),um=Rr("transitionend"),cm=new Map,su="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(" ");su.push("scrollEnd");function tn(e,t){cm.set(e,t),Ar(t,[e])}var fm=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var a=fm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:wd(t)},fm.set(e,t),t)}return{value:e,source:t,stack:wd(t)}}var Yt=[],da=0,lu=0;function ws(){for(var e=da,t=lu=da=0;t<e;){var a=Yt[t];Yt[t++]=null;var s=Yt[t];Yt[t++]=null;var o=Yt[t];Yt[t++]=null;var c=Yt[t];if(Yt[t++]=null,s!==null&&o!==null){var p=s.pending;p===null?o.next=o:(o.next=p.next,p.next=o),s.pending=o}c!==0&&hm(a,o,c)}}function Rs(e,t,a,s){Yt[da++]=e,Yt[da++]=t,Yt[da++]=a,Yt[da++]=s,lu|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function ou(e,t,a,s){return Rs(e,t,a,s),Cs(e)}function ma(e,t){return Rs(e,null,null,t),Cs(e)}function hm(e,t,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Ct(a),e=c.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=a|536870912),c):null}function Cs(e){if(50<Mi)throw Mi=0,mc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pa={};function lE(e,t,a,s){this.tag=e,this.key=a,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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,a,s){return new lE(e,t,a,s)}function uu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rn(e,t){var a=e.alternate;return a===null?(a=Dt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function dm(e,t){e.flags&=65011714;var a=e.alternate;return a===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.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ns(e,t,a,s,o,c){var p=0;if(s=e,typeof e=="function")uu(e)&&(p=1);else if(typeof e=="string")p=u2(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=Dt(31,a,t,o),e.elementType=re,e.lanes=c,e;case T:return Cr(a.children,o,c,t);case z:p=8,o|=24;break;case N:return e=Dt(12,a,t,o|2),e.elementType=N,e.lanes=c,e;case S:return e=Dt(13,a,t,o),e.elementType=S,e.lanes=c,e;case k:return e=Dt(19,a,t,o),e.elementType=k,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:case O:p=10;break e;case M:p=9;break e;case R:p=11;break e;case Y:p=14;break e;case K:p=16,s=null;break e}p=29,a=Error(l(130,e===null?"null":typeof e,"")),s=null}return t=Dt(p,a,t,o),t.elementType=e,t.type=s,t.lanes=c,t}function Cr(e,t,a,s){return e=Dt(7,e,s,t),e.lanes=a,e}function cu(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function fu(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ga=[],ya=0,Ds=null,Ms=0,Zt=[],Xt=0,Nr=null,Cn=1,Nn="";function Dr(e,t){ga[ya++]=Ms,ga[ya++]=Ds,Ds=e,Ms=t}function mm(e,t,a){Zt[Xt++]=Cn,Zt[Xt++]=Nn,Zt[Xt++]=Nr,Nr=e;var s=Cn;e=Nn;var o=32-Ct(s)-1;s&=~(1<<o),a+=1;var c=32-Ct(t)+o;if(30<c){var p=o-o%5;c=(s&(1<<p)-1).toString(32),s>>=p,o-=p,Cn=1<<32-Ct(t)+o|a<<o|s,Nn=c+e}else Cn=1<<c|a<<o|s,Nn=e}function hu(e){e.return!==null&&(Dr(e,1),mm(e,1,0))}function du(e){for(;e===Ds;)Ds=ga[--ya],ga[ya]=null,Ms=ga[--ya],ga[ya]=null;for(;e===Nr;)Nr=Zt[--Xt],Zt[Xt]=null,Nn=Zt[--Xt],Zt[Xt]=null,Cn=Zt[--Xt],Zt[Xt]=null}var _t=null,Ye=null,Ne=!1,Mr=null,hn=!1,mu=Error(l(519));function Br(e){var t=Error(l(418,""));throw ci(Pt(t,e)),mu}function pm(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[pt]=e,t[Et]=s,a){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(a=0;a<ji.length;a++)ve(ji[a],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),Nd(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),_s(t);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Md(t,s.value,s.defaultValue,s.children),_s(t)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||Mp(t.textContent,a)?(s.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),s.onScroll!=null&&ve("scroll",t),s.onScrollEnd!=null&&ve("scrollend",t),s.onClick!=null&&(t.onclick=hl),t=!0):t=!1,t||Br(e)}function gm(e){for(_t=e.return;_t;)switch(_t.tag){case 5:case 13:hn=!1;return;case 27:case 3:hn=!0;return;default:_t=_t.return}}function oi(e){if(e!==_t)return!1;if(!Ne)return gm(e),Ne=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Nc(e.type,e.memoizedProps)),a=!a),a&&Ye&&Br(e),gm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Ye=rn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Ye=null}}else t===27?(t=Ye,hr(e.type)?(e=jc,jc=null,Ye=e):Ye=t):Ye=_t?rn(e.stateNode.nextSibling):null;return!0}function ui(){Ye=_t=null,Ne=!1}function ym(){var e=Mr;return e!==null&&(At===null?At=e:At.push.apply(At,e),Mr=null),e}function ci(e){Mr===null?Mr=[e]:Mr.push(e)}var pu=P(null),jr=null,Dn=null;function $n(e,t,a){Q(pu,t._currentValue),t._currentValue=a}function Mn(e){e._currentValue=pu.current,$(pu)}function gu(e,t,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===a)break;e=e.return}}function yu(e,t,a,s){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=o;for(var A=0;A<t.length;A++)if(v.context===t[A]){c.lanes|=a,v=c.alternate,v!==null&&(v.lanes|=a),gu(c.return,a,e),s||(p=null);break e}c=v.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(l(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),gu(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function fi(e,t,a,s){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(l(387));if(p=p.memoizedProps,p!==null){var v=o.type;Nt(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===dt.current){if(p=o.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Gi):e=[Gi])}o=o.return}e!==null&&yu(t,e,a,s),t.flags|=262144}function Bs(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ur(e){jr=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return _m(jr,e)}function js(e,t){return jr===null&&Ur(e),_m(e,t)}function _m(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Dn===null){if(e===null)throw Error(l(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return a}var oE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},uE=n.unstable_scheduleCallback,cE=n.unstable_NormalPriority,tt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _u(){return{controller:new oE,data:new Map,refCount:0}}function hi(e){e.refCount--,e.refCount===0&&uE(cE,function(){e.controller.abort()})}var di=null,bu=0,_a=0,ba=null;function fE(e,t){if(di===null){var a=di=[];bu=0,_a=Ec(),ba={status:"pending",value:void 0,then:function(s){a.push(s)}}}return bu++,t.then(bm,bm),t}function bm(){if(--bu===0&&di!==null){ba!==null&&(ba.status="fulfilled");var e=di;di=null,_a=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hE(e,t){var a=[],s={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(s.status="rejected",s.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),s}var vm=G.S;G.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&fE(e,t),vm!==null&&vm(e,t)};var Hr=P(null);function vu(){var e=Hr.current;return e!==null?e:Ge.pooledCache}function Us(e,t){t===null?Q(Hr,Hr.current):Q(Hr,t.pool)}function Em(){var e=vu();return e===null?null:{parent:tt._currentValue,pool:e}}var mi=Error(l(460)),Sm=Error(l(474)),Hs=Error(l(542)),Eu={then:function(){}};function Tm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ls(){}function xm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ls,Ls),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Om(e),e;default:if(typeof t.status=="string")t.then(Ls,Ls);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=s}},function(s){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Om(e),e}throw pi=t,mi}}var pi=null;function Am(){if(pi===null)throw Error(l(459));var e=pi;return pi=null,e}function Om(e){if(e===mi||e===Hs)throw Error(l(483))}var Jn=!1;function Su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tu(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 Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function er(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Me&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=Cs(e),hm(e,null,a),t}return Rs(e,s,t,a),Cs(e)}function gi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,bd(e,a)}}function xu(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Au=!1;function yi(){if(Au){var e=ba;if(e!==null)throw e}}function _i(e,t,a,s){Au=!1;var o=e.updateQueue;Jn=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var A=v,j=A.next;A.next=null,p===null?c=j:p.next=j,p=A;var q=e.alternate;q!==null&&(q=q.updateQueue,v=q.lastBaseUpdate,v!==p&&(v===null?q.firstBaseUpdate=j:v.next=j,q.lastBaseUpdate=A))}if(c!==null){var V=o.baseState;p=0,q=j=A=null,v=c;do{var H=v.lane&-536870913,L=H!==v.lane;if(L?(Oe&H)===H:(s&H)===H){H!==0&&H===_a&&(Au=!0),q!==null&&(q=q.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var fe=e,se=v;H=t;var Le=a;switch(se.tag){case 1:if(fe=se.payload,typeof fe=="function"){V=fe.call(Le,V,H);break e}V=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=se.payload,H=typeof fe=="function"?fe.call(Le,V,H):fe,H==null)break e;V=_({},V,H);break e;case 2:Jn=!0}}H=v.callback,H!==null&&(e.flags|=64,L&&(e.flags|=8192),L=o.callbacks,L===null?o.callbacks=[H]:L.push(H))}else L={lane:H,tag:v.tag,payload:v.payload,callback:v.callback,next:null},q===null?(j=q=L,A=V):q=q.next=L,p|=H;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;L=v,v=L.next,L.next=null,o.lastBaseUpdate=L,o.shared.pending=null}}while(!0);q===null&&(A=V),o.baseState=A,o.firstBaseUpdate=j,o.lastBaseUpdate=q,c===null&&(o.shared.lanes=0),or|=p,e.lanes=p,e.memoizedState=V}}function wm(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Rm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)wm(a[e],t)}var va=P(null),zs=P(0);function Cm(e,t){e=kn,Q(zs,e),Q(va,t),kn=e|t.baseLanes}function Ou(){Q(zs,kn),Q(va,va.current)}function wu(){kn=zs.current,$(va),$(zs)}var tr=0,ge=null,Ue=null,Ke=null,ks=!1,Ea=!1,Lr=!1,Gs=0,bi=0,Sa=null,dE=0;function Xe(){throw Error(l(321))}function Ru(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Nt(e[a],t[a]))return!1;return!0}function Cu(e,t,a,s,o,c){return tr=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?h0:d0,Lr=!1,c=a(s,o),Lr=!1,Ea&&(c=Dm(t,a,s,o)),Nm(e),c}function Nm(e){G.H=Ys;var t=Ue!==null&&Ue.next!==null;if(tr=0,Ke=Ue=ge=null,ks=!1,bi=0,Sa=null,t)throw Error(l(300));e===null||at||(e=e.dependencies,e!==null&&Bs(e)&&(at=!0))}function Dm(e,t,a,s){ge=e;var o=0;do{if(Ea&&(Sa=null),bi=0,Ea=!1,25<=o)throw Error(l(301));if(o+=1,Ke=Ue=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}G.H=vE,c=t(a,s)}while(Ea);return c}function mE(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?vi(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(ge.flags|=1024),t}function Nu(){var e=Gs!==0;return Gs=0,e}function Du(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Mu(e){if(ks){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ks=!1}tr=0,Ke=Ue=ge=null,Ea=!1,bi=Gs=0,Sa=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ge.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function $e(){if(Ue===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=Ke===null?ge.memoizedState:Ke.next;if(t!==null)Ke=t,Ue=e;else{if(e===null)throw ge.alternate===null?Error(l(467)):Error(l(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},Ke===null?ge.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function Bu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vi(e){var t=bi;return bi+=1,Sa===null&&(Sa=[]),e=xm(Sa,e,t),t=ge,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?h0:d0),e}function qs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vi(e);if(e.$$typeof===O)return gt(e)}throw Error(l(438,String(e)))}function ju(e){var t=null,a=ge.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var s=ge.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Bu(),ge.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),s=0;s<e;s++)a[s]=ee;return t.index++,a}function Bn(e,t){return typeof t=="function"?t(e):t}function Is(e){var t=$e();return Uu(t,Ue,e)}function Uu(e,t,a){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=a;var o=e.baseQueue,c=s.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,s.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=p=null,A=null,j=t,q=!1;do{var V=j.lane&-536870913;if(V!==j.lane?(Oe&V)===V:(tr&V)===V){var H=j.revertLane;if(H===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),V===_a&&(q=!0);else if((tr&H)===H){j=j.next,H===_a&&(q=!0);continue}else V={lane:0,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},A===null?(v=A=V,p=c):A=A.next=V,ge.lanes|=H,or|=H;V=j.action,Lr&&a(c,V),c=j.hasEagerState?j.eagerState:a(c,V)}else H={lane:V,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},A===null?(v=A=H,p=c):A=A.next=H,ge.lanes|=V,or|=V;j=j.next}while(j!==null&&j!==t);if(A===null?p=c:A.next=v,!Nt(c,e.memoizedState)&&(at=!0,q&&(a=ba,a!==null)))throw a;e.memoizedState=c,e.baseState=p,e.baseQueue=A,s.lastRenderedState=c}return o===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Hu(e){var t=$e(),a=t.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=e;var s=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Nt(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,s]}function Mm(e,t,a){var s=ge,o=$e(),c=Ne;if(c){if(a===void 0)throw Error(l(407));a=a()}else a=t();var p=!Nt((Ue||o).memoizedState,a);p&&(o.memoizedState=a,at=!0),o=o.queue;var v=Um.bind(null,s,o,e);if(Ei(2048,8,v,[e]),o.getSnapshot!==t||p||Ke!==null&&Ke.memoizedState.tag&1){if(s.flags|=2048,Ta(9,Fs(),jm.bind(null,s,o,a,t),null),Ge===null)throw Error(l(349));c||(tr&124)!==0||Bm(s,t,a)}return a}function Bm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=Bu(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function jm(e,t,a,s){t.value=a,t.getSnapshot=s,Hm(t)&&Lm(e)}function Um(e,t,a){return a(function(){Hm(t)&&Lm(e)})}function Hm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Nt(e,a)}catch{return!0}}function Lm(e){var t=ma(e,2);t!==null&&Ht(t,e,2)}function Lu(e){var t=Tt();if(typeof e=="function"){var a=e;if(e=a(),Lr){Xn(!0);try{a()}finally{Xn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:e},t}function zm(e,t,a,s){return e.baseState=a,Uu(e,Ue,typeof s=="function"?s:Bn)}function pE(e,t,a,s,o){if(Ps(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};G.T!==null?a(!0):c.isTransition=!1,s(c),a=t.pending,a===null?(c.next=t.pending=c,km(t,c)):(c.next=a.next,t.pending=a.next=c)}}function km(e,t){var a=t.action,s=t.payload,o=e.state;if(t.isTransition){var c=G.T,p={};G.T=p;try{var v=a(o,s),A=G.S;A!==null&&A(p,v),Gm(e,t,v)}catch(j){zu(e,t,j)}finally{G.T=c}}else try{c=a(o,s),Gm(e,t,c)}catch(j){zu(e,t,j)}}function Gm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){qm(e,t,s)},function(s){return zu(e,t,s)}):qm(e,t,a)}function qm(e,t,a){t.status="fulfilled",t.value=a,Im(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,km(e,a)))}function zu(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,Im(t),t=t.next;while(t!==s)}e.action=null}function Im(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Fm(e,t){return t}function Vm(e,t){if(Ne){var a=Ge.formState;if(a!==null){e:{var s=ge;if(Ne){if(Ye){t:{for(var o=Ye,c=hn;o.nodeType!==8;){if(!c){o=null;break t}if(o=rn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Ye=rn(o.nextSibling),s=o.data==="F!";break e}}Br(s)}s=!1}s&&(t=a[0])}}return a=Tt(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fm,lastRenderedState:t},a.queue=s,a=u0.bind(null,ge,s),s.dispatch=a,s=Lu(!1),c=Fu.bind(null,ge,!1,s.queue),s=Tt(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,a=pE.bind(null,ge,o,c,a),o.dispatch=a,s.memoizedState=e,[t,a,!1]}function Pm(e){var t=$e();return Ym(t,Ue,e)}function Ym(e,t,a){if(t=Uu(e,t,Fm)[0],e=Is(Bn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=vi(t)}catch(p){throw p===mi?Hs:p}else s=t;t=$e();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,Ta(9,Fs(),gE.bind(null,o,a),null)),[s,c,e]}function gE(e,t){e.action=t}function Zm(e){var t=$e(),a=Ue;if(a!==null)return Ym(t,a,e);$e(),t=t.memoizedState,a=$e();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function Ta(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Bu(),ge.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,t.lastEffect=e),e}function Fs(){return{destroy:void 0,resource:void 0}}function Xm(){return $e().memoizedState}function Vs(e,t,a,s){var o=Tt();s=s===void 0?null:s,ge.flags|=e,o.memoizedState=Ta(1|t,Fs(),a,s)}function Ei(e,t,a,s){var o=$e();s=s===void 0?null:s;var c=o.memoizedState.inst;Ue!==null&&s!==null&&Ru(s,Ue.memoizedState.deps)?o.memoizedState=Ta(t,c,a,s):(ge.flags|=e,o.memoizedState=Ta(1|t,c,a,s))}function Qm(e,t){Vs(8390656,8,e,t)}function Km(e,t){Ei(2048,8,e,t)}function $m(e,t){return Ei(4,2,e,t)}function Jm(e,t){return Ei(4,4,e,t)}function Wm(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function e0(e,t,a){a=a!=null?a.concat([e]):null,Ei(4,4,Wm.bind(null,t,e),a)}function ku(){}function t0(e,t){var a=$e();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&Ru(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function n0(e,t){var a=$e();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&Ru(t,s[1]))return s[0];if(s=e(),Lr){Xn(!0);try{e()}finally{Xn(!1)}}return a.memoizedState=[s,t],s}function Gu(e,t,a){return a===void 0||(tr&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=ip(),ge.lanes|=e,or|=e,a)}function r0(e,t,a,s){return Nt(a,t)?a:va.current!==null?(e=Gu(e,a,s),Nt(e,t)||(at=!0),e):(tr&42)===0?(at=!0,e.memoizedState=a):(e=ip(),ge.lanes|=e,or|=e,t)}function a0(e,t,a,s,o){var c=X.p;X.p=c!==0&&8>c?c:8;var p=G.T,v={};G.T=v,Fu(e,!1,t,a);try{var A=o(),j=G.S;if(j!==null&&j(v,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var q=hE(A,s);Si(e,t,q,Ut(e))}else Si(e,t,s,Ut(e))}catch(V){Si(e,t,{then:function(){},status:"rejected",reason:V},Ut())}finally{X.p=c,G.T=p}}function yE(){}function qu(e,t,a,s){if(e.tag!==5)throw Error(l(476));var o=i0(e).queue;a0(e,o,t,J,a===null?yE:function(){return s0(e),a(s)})}function i0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function s0(e){var t=i0(e).next.queue;Si(e,t,{},Ut())}function Iu(){return gt(Gi)}function l0(){return $e().memoizedState}function o0(){return $e().memoizedState}function _E(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ut();e=Wn(a);var s=er(t,e,a);s!==null&&(Ht(s,t,a),gi(s,t,a)),t={cache:_u()},e.payload=t;return}t=t.return}}function bE(e,t,a){var s=Ut();a={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ps(e)?c0(t,a):(a=ou(e,t,a,s),a!==null&&(Ht(a,e,s),f0(a,t,s)))}function u0(e,t,a){var s=Ut();Si(e,t,a,s)}function Si(e,t,a,s){var o={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))c0(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,v=c(p,a);if(o.hasEagerState=!0,o.eagerState=v,Nt(v,p))return Rs(e,t,o,0),Ge===null&&ws(),!1}catch{}finally{}if(a=ou(e,t,o,s),a!==null)return Ht(a,e,s),f0(a,t,s),!0}return!1}function Fu(e,t,a,s){if(s={lane:2,revertLane:Ec(),action:s,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(l(479))}else t=ou(e,a,s,2),t!==null&&Ht(t,e,2)}function Ps(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function c0(e,t){Ea=ks=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function f0(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,bd(e,a)}}var Ys={readContext:gt,use:qs,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe},h0={readContext:gt,use:qs,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Qm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Vs(4194308,4,Wm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var a=Tt();t=t===void 0?null:t;var s=e();if(Lr){Xn(!0);try{e()}finally{Xn(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=Tt();if(a!==void 0){var o=a(t);if(Lr){Xn(!0);try{a(t)}finally{Xn(!1)}}}else o=t;return s.memoizedState=s.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},s.queue=e,e=e.dispatch=bE.bind(null,ge,e),[s.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Lu(e);var t=e.queue,a=u0.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ku,useDeferredValue:function(e,t){var a=Tt();return Gu(a,e,t)},useTransition:function(){var e=Lu(!1);return e=a0.bind(null,ge,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=ge,o=Tt();if(Ne){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),Ge===null)throw Error(l(349));(Oe&124)!==0||Bm(s,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Qm(Um.bind(null,s,c,e),[e]),s.flags|=2048,Ta(9,Fs(),jm.bind(null,s,c,a,t),null),a},useId:function(){var e=Tt(),t=Ge.identifierPrefix;if(Ne){var a=Nn,s=Cn;a=(s&~(1<<32-Ct(s)-1)).toString(32)+a,t="«"+t+"R"+a,a=Gs++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=dE++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Iu,useFormState:Vm,useActionState:Vm,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Fu.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:ju,useCacheRefresh:function(){return Tt().memoizedState=_E.bind(null,ge)}},d0={readContext:gt,use:qs,useCallback:t0,useContext:gt,useEffect:Km,useImperativeHandle:e0,useInsertionEffect:$m,useLayoutEffect:Jm,useMemo:n0,useReducer:Is,useRef:Xm,useState:function(){return Is(Bn)},useDebugValue:ku,useDeferredValue:function(e,t){var a=$e();return r0(a,Ue.memoizedState,e,t)},useTransition:function(){var e=Is(Bn)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:Mm,useId:l0,useHostTransitionStatus:Iu,useFormState:Pm,useActionState:Pm,useOptimistic:function(e,t){var a=$e();return zm(a,Ue,e,t)},useMemoCache:ju,useCacheRefresh:o0},vE={readContext:gt,use:qs,useCallback:t0,useContext:gt,useEffect:Km,useImperativeHandle:e0,useInsertionEffect:$m,useLayoutEffect:Jm,useMemo:n0,useReducer:Hu,useRef:Xm,useState:function(){return Hu(Bn)},useDebugValue:ku,useDeferredValue:function(e,t){var a=$e();return Ue===null?Gu(a,e,t):r0(a,Ue.memoizedState,e,t)},useTransition:function(){var e=Hu(Bn)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:Mm,useId:l0,useHostTransitionStatus:Iu,useFormState:Zm,useActionState:Zm,useOptimistic:function(e,t){var a=$e();return Ue!==null?zm(a,Ue,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ju,useCacheRefresh:o0},xa=null,Ti=0;function Zs(e){var t=Ti;return Ti+=1,xa===null&&(xa=[]),xm(xa,e,t)}function xi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xs(e,t){throw t.$$typeof===E?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function m0(e){var t=e._init;return t(e._payload)}function p0(e){function t(D,C){if(e){var B=D.deletions;B===null?(D.deletions=[C],D.flags|=16):B.push(C)}}function a(D,C){if(!e)return null;for(;C!==null;)t(D,C),C=C.sibling;return null}function s(D){for(var C=new Map;D!==null;)D.key!==null?C.set(D.key,D):C.set(D.index,D),D=D.sibling;return C}function o(D,C){return D=Rn(D,C),D.index=0,D.sibling=null,D}function c(D,C,B){return D.index=B,e?(B=D.alternate,B!==null?(B=B.index,B<C?(D.flags|=67108866,C):B):(D.flags|=67108866,C)):(D.flags|=1048576,C)}function p(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function v(D,C,B,F){return C===null||C.tag!==6?(C=cu(B,D.mode,F),C.return=D,C):(C=o(C,B),C.return=D,C)}function A(D,C,B,F){var W=B.type;return W===T?q(D,C,B.props.children,F,B.key):C!==null&&(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&m0(W)===C.type)?(C=o(C,B.props),xi(C,B),C.return=D,C):(C=Ns(B.type,B.key,B.props,null,D.mode,F),xi(C,B),C.return=D,C)}function j(D,C,B,F){return C===null||C.tag!==4||C.stateNode.containerInfo!==B.containerInfo||C.stateNode.implementation!==B.implementation?(C=fu(B,D.mode,F),C.return=D,C):(C=o(C,B.children||[]),C.return=D,C)}function q(D,C,B,F,W){return C===null||C.tag!==7?(C=Cr(B,D.mode,F,W),C.return=D,C):(C=o(C,B),C.return=D,C)}function V(D,C,B){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=cu(""+C,D.mode,B),C.return=D,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case y:return B=Ns(C.type,C.key,C.props,null,D.mode,B),xi(B,C),B.return=D,B;case x:return C=fu(C,D.mode,B),C.return=D,C;case K:var F=C._init;return C=F(C._payload),V(D,C,B)}if(Te(C)||ie(C))return C=Cr(C,D.mode,B,null),C.return=D,C;if(typeof C.then=="function")return V(D,Zs(C),B);if(C.$$typeof===O)return V(D,js(D,C),B);Xs(D,C)}return null}function H(D,C,B,F){var W=C!==null?C.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return W!==null?null:v(D,C,""+B,F);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case y:return B.key===W?A(D,C,B,F):null;case x:return B.key===W?j(D,C,B,F):null;case K:return W=B._init,B=W(B._payload),H(D,C,B,F)}if(Te(B)||ie(B))return W!==null?null:q(D,C,B,F,null);if(typeof B.then=="function")return H(D,C,Zs(B),F);if(B.$$typeof===O)return H(D,C,js(D,B),F);Xs(D,B)}return null}function L(D,C,B,F,W){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return D=D.get(B)||null,v(C,D,""+F,W);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case y:return D=D.get(F.key===null?B:F.key)||null,A(C,D,F,W);case x:return D=D.get(F.key===null?B:F.key)||null,j(C,D,F,W);case K:var ye=F._init;return F=ye(F._payload),L(D,C,B,F,W)}if(Te(F)||ie(F))return D=D.get(B)||null,q(C,D,F,W,null);if(typeof F.then=="function")return L(D,C,B,Zs(F),W);if(F.$$typeof===O)return L(D,C,B,js(C,F),W);Xs(C,F)}return null}function fe(D,C,B,F){for(var W=null,ye=null,ne=C,oe=C=0,st=null;ne!==null&&oe<B.length;oe++){ne.index>oe?(st=ne,ne=null):st=ne.sibling;var Re=H(D,ne,B[oe],F);if(Re===null){ne===null&&(ne=st);break}e&&ne&&Re.alternate===null&&t(D,ne),C=c(Re,C,oe),ye===null?W=Re:ye.sibling=Re,ye=Re,ne=st}if(oe===B.length)return a(D,ne),Ne&&Dr(D,oe),W;if(ne===null){for(;oe<B.length;oe++)ne=V(D,B[oe],F),ne!==null&&(C=c(ne,C,oe),ye===null?W=ne:ye.sibling=ne,ye=ne);return Ne&&Dr(D,oe),W}for(ne=s(ne);oe<B.length;oe++)st=L(ne,D,oe,B[oe],F),st!==null&&(e&&st.alternate!==null&&ne.delete(st.key===null?oe:st.key),C=c(st,C,oe),ye===null?W=st:ye.sibling=st,ye=st);return e&&ne.forEach(function(yr){return t(D,yr)}),Ne&&Dr(D,oe),W}function se(D,C,B,F){if(B==null)throw Error(l(151));for(var W=null,ye=null,ne=C,oe=C=0,st=null,Re=B.next();ne!==null&&!Re.done;oe++,Re=B.next()){ne.index>oe?(st=ne,ne=null):st=ne.sibling;var yr=H(D,ne,Re.value,F);if(yr===null){ne===null&&(ne=st);break}e&&ne&&yr.alternate===null&&t(D,ne),C=c(yr,C,oe),ye===null?W=yr:ye.sibling=yr,ye=yr,ne=st}if(Re.done)return a(D,ne),Ne&&Dr(D,oe),W;if(ne===null){for(;!Re.done;oe++,Re=B.next())Re=V(D,Re.value,F),Re!==null&&(C=c(Re,C,oe),ye===null?W=Re:ye.sibling=Re,ye=Re);return Ne&&Dr(D,oe),W}for(ne=s(ne);!Re.done;oe++,Re=B.next())Re=L(ne,D,oe,Re.value,F),Re!==null&&(e&&Re.alternate!==null&&ne.delete(Re.key===null?oe:Re.key),C=c(Re,C,oe),ye===null?W=Re:ye.sibling=Re,ye=Re);return e&&ne.forEach(function(E2){return t(D,E2)}),Ne&&Dr(D,oe),W}function Le(D,C,B,F){if(typeof B=="object"&&B!==null&&B.type===T&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case y:e:{for(var W=B.key;C!==null;){if(C.key===W){if(W=B.type,W===T){if(C.tag===7){a(D,C.sibling),F=o(C,B.props.children),F.return=D,D=F;break e}}else if(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&m0(W)===C.type){a(D,C.sibling),F=o(C,B.props),xi(F,B),F.return=D,D=F;break e}a(D,C);break}else t(D,C);C=C.sibling}B.type===T?(F=Cr(B.props.children,D.mode,F,B.key),F.return=D,D=F):(F=Ns(B.type,B.key,B.props,null,D.mode,F),xi(F,B),F.return=D,D=F)}return p(D);case x:e:{for(W=B.key;C!==null;){if(C.key===W)if(C.tag===4&&C.stateNode.containerInfo===B.containerInfo&&C.stateNode.implementation===B.implementation){a(D,C.sibling),F=o(C,B.children||[]),F.return=D,D=F;break e}else{a(D,C);break}else t(D,C);C=C.sibling}F=fu(B,D.mode,F),F.return=D,D=F}return p(D);case K:return W=B._init,B=W(B._payload),Le(D,C,B,F)}if(Te(B))return fe(D,C,B,F);if(ie(B)){if(W=ie(B),typeof W!="function")throw Error(l(150));return B=W.call(B),se(D,C,B,F)}if(typeof B.then=="function")return Le(D,C,Zs(B),F);if(B.$$typeof===O)return Le(D,C,js(D,B),F);Xs(D,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,C!==null&&C.tag===6?(a(D,C.sibling),F=o(C,B),F.return=D,D=F):(a(D,C),F=cu(B,D.mode,F),F.return=D,D=F),p(D)):a(D,C)}return function(D,C,B,F){try{Ti=0;var W=Le(D,C,B,F);return xa=null,W}catch(ne){if(ne===mi||ne===Hs)throw ne;var ye=Dt(29,ne,null,D.mode);return ye.lanes=F,ye.return=D,ye}finally{}}}var Aa=p0(!0),g0=p0(!1),Qt=P(null),dn=null;function nr(e){var t=e.alternate;Q(nt,nt.current&1),Q(Qt,e),dn===null&&(t===null||va.current!==null||t.memoizedState!==null)&&(dn=e)}function y0(e){if(e.tag===22){if(Q(nt,nt.current),Q(Qt,e),dn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(dn=e)}}else rr()}function rr(){Q(nt,nt.current),Q(Qt,Qt.current)}function jn(e){$(Qt),dn===e&&(dn=null),$(nt)}var nt=P(0);function Qs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Bc(a)))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 Vu(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:_({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Pu={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=Ut(),o=Wn(s);o.payload=t,a!=null&&(o.callback=a),t=er(e,o,s),t!==null&&(Ht(t,e,s),gi(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=Ut(),o=Wn(s);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=er(e,o,s),t!==null&&(Ht(t,e,s),gi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ut(),s=Wn(a);s.tag=2,t!=null&&(s.callback=t),t=er(e,s,a),t!==null&&(Ht(t,e,a),gi(t,e,a))}};function _0(e,t,a,s,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,p):t.prototype&&t.prototype.isPureReactComponent?!si(a,s)||!si(o,c):!0}function b0(e,t,a,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,s),t.state!==e&&Pu.enqueueReplaceState(t,t.state,null)}function zr(e,t){var a=t;if("ref"in t){a={};for(var s in t)s!=="ref"&&(a[s]=t[s])}if(e=e.defaultProps){a===t&&(a=_({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Ks=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)};function v0(e){Ks(e)}function E0(e){console.error(e)}function S0(e){Ks(e)}function $s(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function T0(e,t,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Yu(e,t,a){return a=Wn(a),a.tag=3,a.payload={element:null},a.callback=function(){$s(e,t)},a}function x0(e){return e=Wn(e),e.tag=3,e}function A0(e,t,a,s){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=s.value;e.payload=function(){return o(c)},e.callback=function(){T0(t,a,s)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){T0(t,a,s),typeof o!="function"&&(ur===null?ur=new Set([this]):ur.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})})}function EE(e,t,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&fi(t,a,o,!0),a=Qt.current,a!==null){switch(a.tag){case 13:return dn===null?gc():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===Eu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),_c(e,s,o)),!1;case 22:return a.flags|=65536,s===Eu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([s]):a.add(s)),_c(e,s,o)),!1}throw Error(l(435,a.tag))}return _c(e,s,o),gc(),!1}if(Ne)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==mu&&(e=Error(l(422),{cause:s}),ci(Pt(e,a)))):(s!==mu&&(t=Error(l(423),{cause:s}),ci(Pt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Pt(s,a),o=Yu(e.stateNode,s,o),xu(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(l(520),{cause:s});if(c=Pt(c,a),Di===null?Di=[c]:Di.push(c),Ze!==4&&(Ze=2),t===null)return!0;s=Pt(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Yu(a.stateNode,s,e),xu(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ur===null||!ur.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=x0(o),A0(o,e,a,s),xu(a,o),!1}a=a.return}while(a!==null);return!1}var O0=Error(l(461)),at=!1;function lt(e,t,a,s){t.child=e===null?g0(t,null,a,s):Aa(t,e.child,a,s)}function w0(e,t,a,s,o){a=a.render;var c=t.ref;if("ref"in s){var p={};for(var v in s)v!=="ref"&&(p[v]=s[v])}else p=s;return Ur(t),s=Cu(e,t,a,p,c,o),v=Nu(),e!==null&&!at?(Du(e,t,o),Un(e,t,o)):(Ne&&v&&hu(t),t.flags|=1,lt(e,t,s,o),t.child)}function R0(e,t,a,s,o){if(e===null){var c=a.type;return typeof c=="function"&&!uu(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,C0(e,t,c,s,o)):(e=Ns(a.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ec(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:si,a(p,s)&&e.ref===t.ref)return Un(e,t,o)}return t.flags|=1,e=Rn(c,s),e.ref=t.ref,e.return=t,t.child=e}function C0(e,t,a,s,o){if(e!==null){var c=e.memoizedProps;if(si(c,s)&&e.ref===t.ref)if(at=!1,t.pendingProps=s=c,ec(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Un(e,t,o)}return Zu(e,t,a,s,o)}function N0(e,t,a){var s=t.pendingProps,o=s.children,c=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=c!==null?c.baseLanes|a:a,e!==null){for(o=t.child=e.child,c=0;o!==null;)c=c|o.lanes|o.childLanes,o=o.sibling;t.childLanes=c&~s}else t.childLanes=0,t.child=null;return D0(e,t,s,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Us(t,c!==null?c.cachePool:null),c!==null?Cm(t,c):Ou(),y0(t);else return t.lanes=t.childLanes=536870912,D0(e,t,c!==null?c.baseLanes|a:a,a)}else c!==null?(Us(t,c.cachePool),Cm(t,c),rr(),t.memoizedState=null):(e!==null&&Us(t,null),Ou(),rr());return lt(e,t,o,a),t.child}function D0(e,t,a,s){var o=vu();return o=o===null?null:{parent:tt._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Us(t,null),Ou(),y0(t),e!==null&&fi(e,t,s,!0),null}function Js(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Zu(e,t,a,s,o){return Ur(t),a=Cu(e,t,a,s,void 0,o),s=Nu(),e!==null&&!at?(Du(e,t,o),Un(e,t,o)):(Ne&&s&&hu(t),t.flags|=1,lt(e,t,a,o),t.child)}function M0(e,t,a,s,o,c){return Ur(t),t.updateQueue=null,a=Dm(t,s,a,o),Nm(e),s=Nu(),e!==null&&!at?(Du(e,t,c),Un(e,t,c)):(Ne&&s&&hu(t),t.flags|=1,lt(e,t,a,c),t.child)}function B0(e,t,a,s,o){if(Ur(t),t.stateNode===null){var c=pa,p=a.contextType;typeof p=="object"&&p!==null&&(c=gt(p)),c=new a(s,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Pu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=s,c.state=t.memoizedState,c.refs={},Su(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?gt(p):pa,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Vu(t,a,p,s),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Pu.enqueueReplaceState(c,c.state,null),_i(t,s,c,o),yi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,A=zr(a,v);c.props=A;var j=c.context,q=a.contextType;p=pa,typeof q=="object"&&q!==null&&(p=gt(q));var V=a.getDerivedStateFromProps;q=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||j!==p)&&b0(t,c,s,p),Jn=!1;var H=t.memoizedState;c.state=H,_i(t,s,c,o),yi(),j=t.memoizedState,v||H!==j||Jn?(typeof V=="function"&&(Vu(t,a,V,s),j=t.memoizedState),(A=Jn||_0(t,a,A,s,H,j,p))?(q||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)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=j),c.props=s,c.state=j,c.context=p,s=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{c=t.stateNode,Tu(e,t),p=t.memoizedProps,q=zr(a,p),c.props=q,V=t.pendingProps,H=c.context,j=a.contextType,A=pa,typeof j=="object"&&j!==null&&(A=gt(j)),v=a.getDerivedStateFromProps,(j=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==V||H!==A)&&b0(t,c,s,A),Jn=!1,H=t.memoizedState,c.state=H,_i(t,s,c,o),yi();var L=t.memoizedState;p!==V||H!==L||Jn||e!==null&&e.dependencies!==null&&Bs(e.dependencies)?(typeof v=="function"&&(Vu(t,a,v,s),L=t.memoizedState),(q=Jn||_0(t,a,q,s,H,L,A)||e!==null&&e.dependencies!==null&&Bs(e.dependencies))?(j||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,L,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,L,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=L),c.props=s,c.state=L,c.context=A,s=q):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),s=!1)}return c=s,Js(e,t),s=(t.flags&128)!==0,c||s?(c=t.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&s?(t.child=Aa(t,e.child,null,o),t.child=Aa(t,null,a,o)):lt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=Un(e,t,o),e}function j0(e,t,a,s){return ui(),t.flags|=256,lt(e,t,a,s),t.child}var Xu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qu(e){return{baseLanes:e,cachePool:Em()}}function Ku(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Kt),e}function U0(e,t,a){var s=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?nr(t):rr(),Ne){var v=Ye,A;if(A=v){e:{for(A=v,v=hn;A.nodeType!==8;){if(!v){v=null;break e}if(A=rn(A.nextSibling),A===null){v=null;break e}}v=A}v!==null?(t.memoizedState={dehydrated:v,treeContext:Nr!==null?{id:Cn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},A=Dt(18,null,null,0),A.stateNode=v,A.return=t,t.child=A,_t=t,Ye=null,A=!0):A=!1}A||Br(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Bc(v)?t.lanes=32:t.lanes=536870912,null;jn(t)}return v=s.children,s=s.fallback,o?(rr(),o=t.mode,v=Ws({mode:"hidden",children:v},o),s=Cr(s,o,a,null),v.return=t,s.return=t,v.sibling=s,t.child=v,o=t.child,o.memoizedState=Qu(a),o.childLanes=Ku(e,p,a),t.memoizedState=Xu,s):(nr(t),$u(t,v))}if(A=e.memoizedState,A!==null&&(v=A.dehydrated,v!==null)){if(c)t.flags&256?(nr(t),t.flags&=-257,t=Ju(e,t,a)):t.memoizedState!==null?(rr(),t.child=e.child,t.flags|=128,t=null):(rr(),o=s.fallback,v=t.mode,s=Ws({mode:"visible",children:s.children},v),o=Cr(o,v,a,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,Aa(t,e.child,null,a),s=t.child,s.memoizedState=Qu(a),s.childLanes=Ku(e,p,a),t.memoizedState=Xu,t=o);else if(nr(t),Bc(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var j=p.dgst;p=j,s=Error(l(419)),s.stack="",s.digest=p,ci({value:s,source:null,stack:null}),t=Ju(e,t,a)}else if(at||fi(e,t,a,!1),p=(a&e.childLanes)!==0,at||p){if(p=Ge,p!==null&&(s=a&-a,s=(s&42)!==0?1:jo(s),s=(s&(p.suspendedLanes|a))!==0?0:s,s!==0&&s!==A.retryLane))throw A.retryLane=s,ma(e,s),Ht(p,e,s),O0;v.data==="$?"||gc(),t=Ju(e,t,a)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Ye=rn(v.nextSibling),_t=t,Ne=!0,Mr=null,hn=!1,e!==null&&(Zt[Xt++]=Cn,Zt[Xt++]=Nn,Zt[Xt++]=Nr,Cn=e.id,Nn=e.overflow,Nr=t),t=$u(t,s.children),t.flags|=4096);return t}return o?(rr(),o=s.fallback,v=t.mode,A=e.child,j=A.sibling,s=Rn(A,{mode:"hidden",children:s.children}),s.subtreeFlags=A.subtreeFlags&65011712,j!==null?o=Rn(j,o):(o=Cr(o,v,a,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,s=o,o=t.child,v=e.child.memoizedState,v===null?v=Qu(a):(A=v.cachePool,A!==null?(j=tt._currentValue,A=A.parent!==j?{parent:j,pool:j}:A):A=Em(),v={baseLanes:v.baseLanes|a,cachePool:A}),o.memoizedState=v,o.childLanes=Ku(e,p,a),t.memoizedState=Xu,s):(nr(t),a=e.child,e=a.sibling,a=Rn(a,{mode:"visible",children:s.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function $u(e,t){return t=Ws({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ws(e,t){return e=Dt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ju(e,t,a){return Aa(t,e.child,null,a),e=$u(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function H0(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),gu(e.return,t,a)}function Wu(e,t,a,s,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:o}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=s,c.tail=a,c.tailMode=o)}function L0(e,t,a){var s=t.pendingProps,o=s.revealOrder,c=s.tail;if(lt(e,t,s.children,a),s=nt.current,(s&2)!==0)s=s&1|2,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&&H0(e,a,t);else if(e.tag===19)H0(e,a,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}s&=1}switch(Q(nt,s),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Qs(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Wu(t,!1,o,a,c);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Qs(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Wu(t,!0,a,null,c);break;case"together":Wu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Un(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),or|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=Rn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Rn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ec(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Bs(e)))}function SE(e,t,a){switch(t.tag){case 3:ke(t,t.stateNode.containerInfo),$n(t,tt,e.memoizedState.cache),ui();break;case 27:case 5:Tr(t);break;case 4:ke(t,t.stateNode.containerInfo);break;case 10:$n(t,t.type,t.memoizedProps.value);break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(nr(t),t.flags|=128,null):(a&t.child.childLanes)!==0?U0(e,t,a):(nr(t),e=Un(e,t,a),e!==null?e.sibling:null);nr(t);break;case 19:var o=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(fi(e,t,a,!1),s=(a&t.childLanes)!==0),o){if(s)return L0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(nt,nt.current),s)break;return null;case 22:case 23:return t.lanes=0,N0(e,t,a);case 24:$n(t,tt,e.memoizedState.cache)}return Un(e,t,a)}function z0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!ec(e,a)&&(t.flags&128)===0)return at=!1,SE(e,t,a);at=(e.flags&131072)!==0}else at=!1,Ne&&(t.flags&1048576)!==0&&mm(t,Ms,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var s=t.elementType,o=s._init;if(s=o(s._payload),t.type=s,typeof s=="function")uu(s)?(e=zr(s,e),t.tag=1,t=B0(null,t,s,e,a)):(t.tag=0,t=Zu(null,t,s,e,a));else{if(s!=null){if(o=s.$$typeof,o===R){t.tag=11,t=w0(null,t,s,e,a);break e}else if(o===Y){t.tag=14,t=R0(null,t,s,e,a);break e}}throw t=Fe(s)||s,Error(l(306,t,""))}}return t;case 0:return Zu(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,o=zr(s,t.pendingProps),B0(e,t,s,o,a);case 3:e:{if(ke(t,t.stateNode.containerInfo),e===null)throw Error(l(387));s=t.pendingProps;var c=t.memoizedState;o=c.element,Tu(e,t),_i(t,s,null,a);var p=t.memoizedState;if(s=p.cache,$n(t,tt,s),s!==c.cache&&yu(t,[tt],a,!0),yi(),s=p.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=j0(e,t,s,a);break e}else if(s!==o){o=Pt(Error(l(424)),t),ci(o),t=j0(e,t,s,a);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(Ye=rn(e.firstChild),_t=t,Ne=!0,Mr=null,hn=!0,a=g0(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ui(),s===o){t=Un(e,t,a);break e}lt(e,t,s,a)}t=t.child}return t;case 26:return Js(e,t),e===null?(a=Ip(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ne||(a=t.type,e=t.pendingProps,s=dl(ce.current).createElement(a),s[pt]=t,s[Et]=e,ut(s,a,e),rt(s),t.stateNode=s):t.memoizedState=Ip(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Tr(t),e===null&&Ne&&(s=t.stateNode=kp(t.type,t.pendingProps,ce.current),_t=t,hn=!0,o=Ye,hr(t.type)?(jc=o,Ye=rn(s.firstChild)):Ye=o),lt(e,t,t.pendingProps.children,a),Js(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=s=Ye)&&(s=KE(s,t.type,t.pendingProps,hn),s!==null?(t.stateNode=s,_t=t,Ye=rn(s.firstChild),hn=!1,o=!0):o=!1),o||Br(t)),Tr(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,s=c.children,Nc(o,c)?s=null:p!==null&&Nc(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Cu(e,t,mE,null,null,a),Gi._currentValue=o),Js(e,t),lt(e,t,s,a),t.child;case 6:return e===null&&Ne&&((e=a=Ye)&&(a=$E(a,t.pendingProps,hn),a!==null?(t.stateNode=a,_t=t,Ye=null,e=!0):e=!1),e||Br(t)),null;case 13:return U0(e,t,a);case 4:return ke(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Aa(t,null,s,a):lt(e,t,s,a),t.child;case 11:return w0(e,t,t.type,t.pendingProps,a);case 7:return lt(e,t,t.pendingProps,a),t.child;case 8:return lt(e,t,t.pendingProps.children,a),t.child;case 12:return lt(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,$n(t,t.type,s.value),lt(e,t,s.children,a),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,Ur(t),o=gt(o),s=s(o),t.flags|=1,lt(e,t,s,a),t.child;case 14:return R0(e,t,t.type,t.pendingProps,a);case 15:return C0(e,t,t.type,t.pendingProps,a);case 19:return L0(e,t,a);case 31:return s=t.pendingProps,a=t.mode,s={mode:s.mode,children:s.children},e===null?(a=Ws(s,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=Rn(e.child,s),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return N0(e,t,a);case 24:return Ur(t),s=gt(tt),e===null?(o=vu(),o===null&&(o=Ge,c=_u(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:s,cache:o},Su(t),$n(t,tt,o)):((e.lanes&a)!==0&&(Tu(e,t),_i(t,null,null,a),yi()),o=e.memoizedState,c=t.memoizedState,o.parent!==s?(o={parent:s,cache:s},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),$n(t,tt,s)):(s=c.cache,$n(t,tt,s),s!==o.cache&&yu(t,[tt],a,!0))),lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Hn(e){e.flags|=4}function k0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Zp(t)){if(t=Qt.current,t!==null&&((Oe&4194048)===Oe?dn!==null:(Oe&62914560)!==Oe&&(Oe&536870912)===0||t!==dn))throw pi=Eu,Sm;e.flags|=8192}}function el(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yd():536870912,e.lanes|=t,Ca|=t)}function Ai(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=a,t}function TE(e,t,a){var s=t.pendingProps;switch(du(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Mn(tt),wt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(oi(t)?Hn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ym())),Ve(t),null;case 26:return a=t.memoizedState,e===null?(Hn(t),a!==null?(Ve(t),k0(t,a)):(Ve(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Hn(t),Ve(t),k0(t,a)):(Ve(t),t.flags&=-16777217):(e.memoizedProps!==s&&Hn(t),Ve(t),t.flags&=-16777217),null;case 27:Za(t),a=ce.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Hn(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Ve(t),null}e=ae.current,oi(t)?pm(t):(e=kp(o,s,a),t.stateNode=e,Hn(t))}return Ve(t),null;case 5:if(Za(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Hn(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Ve(t),null}if(e=ae.current,oi(t))pm(t);else{switch(o=dl(ce.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?o.createElement("select",{is:s.is}):o.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?o.createElement(a,{is:s.is}):o.createElement(a)}}e[pt]=t,e[Et]=s;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(ut(e,a,s),a){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Hn(t)}}return Ve(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Hn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(l(166));if(e=ce.current,oi(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,o=_t,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[pt]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||Mp(e.nodeValue,a)),e||Br(t)}else e=dl(e).createTextNode(s),e[pt]=t,t.stateNode=e}return Ve(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=oi(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[pt]=t}else ui(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=ym(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(jn(t),t):(jn(t),null)}if(jn(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=s!==null,e=e!==null&&e.memoizedState!==null,a){s=t.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool);var c=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==o&&(s.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),el(t,t.updateQueue),Ve(t),null;case 4:return wt(),e===null&&Ac(t.stateNode.containerInfo),Ve(t),null;case 10:return Mn(t.type),Ve(t),null;case 19:if($(nt),o=t.memoizedState,o===null)return Ve(t),null;if(s=(t.flags&128)!==0,c=o.rendering,c===null)if(s)Ai(o,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Qs(e),c!==null){for(t.flags|=128,Ai(o,!1),e=c.updateQueue,t.updateQueue=e,el(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)dm(a,e),a=a.sibling;return Q(nt,nt.current&1|2),t.child}e=e.sibling}o.tail!==null&&fn()>rl&&(t.flags|=128,s=!0,Ai(o,!1),t.lanes=4194304)}else{if(!s)if(e=Qs(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,el(t,e),Ai(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!Ne)return Ve(t),null}else 2*fn()-o.renderingStartTime>rl&&a!==536870912&&(t.flags|=128,s=!0,Ai(o,!1),t.lanes=4194304);o.isBackwards?(c.sibling=t.child,t.child=c):(e=o.last,e!==null?e.sibling=c:t.child=c,o.last=c)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=fn(),t.sibling=null,e=nt.current,Q(nt,s?e&1|2:e&1),t):(Ve(t),null);case 22:case 23:return jn(t),wu(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(a&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),a=t.updateQueue,a!==null&&el(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&$(Hr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Mn(tt),Ve(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function xE(e,t){switch(du(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mn(tt),wt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Za(t),null;case 13:if(jn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(nt),null;case 4:return wt(),null;case 10:return Mn(t.type),null;case 22:case 23:return jn(t),wu(),e!==null&&$(Hr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mn(tt),null;case 25:return null;default:return null}}function G0(e,t){switch(du(t),t.tag){case 3:Mn(tt),wt();break;case 26:case 27:case 5:Za(t);break;case 4:wt();break;case 13:jn(t);break;case 19:$(nt);break;case 10:Mn(t.type);break;case 22:case 23:jn(t),wu(),e!==null&&$(Hr);break;case 24:Mn(tt)}}function Oi(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){s=void 0;var c=a.create,p=a.inst;s=c(),p.destroy=s}a=a.next}while(a!==o)}}catch(v){ze(t,t.return,v)}}function ar(e,t,a){try{var s=t.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var c=o.next;s=c;do{if((s.tag&e)===e){var p=s.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,o=t;var A=a,j=v;try{j()}catch(q){ze(o,A,q)}}}s=s.next}while(s!==c)}}catch(q){ze(t,t.return,q)}}function q0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Rm(t,a)}catch(s){ze(e,e.return,s)}}}function I0(e,t,a){a.props=zr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){ze(e,t,s)}}function wi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(o){ze(e,t,o)}}function mn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){ze(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){ze(e,t,o)}else a.current=null}function F0(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(o){ze(e,e.return,o)}}function tc(e,t,a){try{var s=e.stateNode;PE(s,e.type,a,t),s[Et]=t}catch(o){ze(e,e.return,o)}}function V0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hr(e.type)||e.tag===4}function nc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V0(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&&hr(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 rc(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=hl));else if(s!==4&&(s===27&&hr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(rc(e,t,a),e=e.sibling;e!==null;)rc(e,t,a),e=e.sibling}function tl(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&hr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(tl(e,t,a),e=e.sibling;e!==null;)tl(e,t,a),e=e.sibling}function P0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ut(t,s,a),t[pt]=e,t[Et]=a}catch(c){ze(e,e.return,c)}}var Ln=!1,Qe=!1,ac=!1,Y0=typeof WeakSet=="function"?WeakSet:Set,it=null;function AE(e,t){if(e=e.containerInfo,Rc=bl,e=rm(e),nu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var o=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,v=-1,A=-1,j=0,q=0,V=e,H=null;t:for(;;){for(var L;V!==a||o!==0&&V.nodeType!==3||(v=p+o),V!==c||s!==0&&V.nodeType!==3||(A=p+s),V.nodeType===3&&(p+=V.nodeValue.length),(L=V.firstChild)!==null;)H=V,V=L;for(;;){if(V===e)break t;if(H===a&&++j===o&&(v=p),H===c&&++q===s&&(A=p),(L=V.nextSibling)!==null)break;V=H,H=V.parentNode}V=L}a=v===-1||A===-1?null:{start:v,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Cc={focusedElem:e,selectionRange:a},bl=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var fe=zr(a.type,o,a.elementType===a.type);e=s.getSnapshotBeforeUpdate(fe,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(se){ze(a,a.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Mc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function Z0(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:ir(e,a),s&4&&Oi(5,a);break;case 1:if(ir(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){ze(a,a.return,p)}else{var o=zr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){ze(a,a.return,p)}}s&64&&q0(a),s&512&&wi(a,a.return);break;case 3:if(ir(e,a),s&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Rm(e,t)}catch(p){ze(a,a.return,p)}}break;case 27:t===null&&s&4&&P0(a);case 26:case 5:ir(e,a),t===null&&s&4&&F0(a),s&512&&wi(a,a.return);break;case 12:ir(e,a);break;case 13:ir(e,a),s&4&&K0(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=jE.bind(null,a),JE(e,a))));break;case 22:if(s=a.memoizedState!==null||Ln,!s){t=t!==null&&t.memoizedState!==null||Qe,o=Ln;var c=Qe;Ln=s,(Qe=t)&&!c?sr(e,a,(a.subtreeFlags&8772)!==0):ir(e,a),Ln=o,Qe=c}break;case 30:break;default:ir(e,a)}}function X0(e){var t=e.alternate;t!==null&&(e.alternate=null,X0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Lo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ie=null,xt=!1;function zn(e,t,a){for(a=a.child;a!==null;)Q0(e,t,a),a=a.sibling}function Q0(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Xa,a)}catch{}switch(a.tag){case 26:Qe||mn(a,t),zn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Qe||mn(a,t);var s=Ie,o=xt;hr(a.type)&&(Ie=a.stateNode,xt=!1),zn(e,t,a),Hi(a.stateNode),Ie=s,xt=o;break;case 5:Qe||mn(a,t);case 6:if(s=Ie,o=xt,Ie=null,zn(e,t,a),Ie=s,xt=o,Ie!==null)if(xt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(a.stateNode)}catch(c){ze(a,t,c)}else try{Ie.removeChild(a.stateNode)}catch(c){ze(a,t,c)}break;case 18:Ie!==null&&(xt?(e=Ie,Lp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Vi(e)):Lp(Ie,a.stateNode));break;case 4:s=Ie,o=xt,Ie=a.stateNode.containerInfo,xt=!0,zn(e,t,a),Ie=s,xt=o;break;case 0:case 11:case 14:case 15:Qe||ar(2,a,t),Qe||ar(4,a,t),zn(e,t,a);break;case 1:Qe||(mn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&I0(a,t,s)),zn(e,t,a);break;case 21:zn(e,t,a);break;case 22:Qe=(s=Qe)||a.memoizedState!==null,zn(e,t,a),Qe=s;break;default:zn(e,t,a)}}function K0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vi(e)}catch(a){ze(t,t.return,a)}}function OE(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Y0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Y0),t;default:throw Error(l(435,e.tag))}}function ic(e,t){var a=OE(e);t.forEach(function(s){var o=UE.bind(null,e,s);a.has(s)||(a.add(s),s.then(o,o))})}function Mt(e,t){var a=t.deletions;if(a!==null)for(var s=0;s<a.length;s++){var o=a[s],c=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(hr(v.type)){Ie=v.stateNode,xt=!1;break e}break;case 5:Ie=v.stateNode,xt=!1;break e;case 3:case 4:Ie=v.stateNode.containerInfo,xt=!0;break e}v=v.return}if(Ie===null)throw Error(l(160));Q0(c,p,o),Ie=null,xt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)$0(t,e),t=t.sibling}var nn=null;function $0(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),Bt(e),s&4&&(ar(3,e,e.return),Oi(3,e),ar(5,e,e.return));break;case 1:Mt(t,e),Bt(e),s&512&&(Qe||a===null||mn(a,a.return)),s&64&&Ln&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var o=nn;if(Mt(t,e),Bt(e),s&512&&(Qe||a===null||mn(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(s){case"title":c=o.getElementsByTagName("title")[0],(!c||c[$a]||c[pt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(s),o.head.insertBefore(c,o.querySelector("head > title"))),ut(c,s,a),c[pt]=e,rt(c),s=c;break e;case"link":var p=Pp("link","href",o).get(s+(a.href||""));if(p){for(var v=0;v<p.length;v++)if(c=p[v],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(v,1);break t}}c=o.createElement(s),ut(c,s,a),o.head.appendChild(c);break;case"meta":if(p=Pp("meta","content",o).get(s+(a.content||""))){for(v=0;v<p.length;v++)if(c=p[v],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(v,1);break t}}c=o.createElement(s),ut(c,s,a),o.head.appendChild(c);break;default:throw Error(l(468,s))}c[pt]=e,rt(c),s=c}e.stateNode=s}else Yp(o,e.type,e.stateNode);else e.stateNode=Vp(o,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?Yp(o,e.type,e.stateNode):Vp(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&tc(e,e.memoizedProps,a.memoizedProps)}break;case 27:Mt(t,e),Bt(e),s&512&&(Qe||a===null||mn(a,a.return)),a!==null&&s&4&&tc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Mt(t,e),Bt(e),s&512&&(Qe||a===null||mn(a,a.return)),e.flags&32){o=e.stateNode;try{la(o,"")}catch(L){ze(e,e.return,L)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,tc(e,o,a!==null?a.memoizedProps:o)),s&1024&&(ac=!0);break;case 6:if(Mt(t,e),Bt(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(L){ze(e,e.return,L)}}break;case 3:if(gl=null,o=nn,nn=ml(t.containerInfo),Mt(t,e),nn=o,Bt(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Vi(t.containerInfo)}catch(L){ze(e,e.return,L)}ac&&(ac=!1,J0(e));break;case 4:s=nn,nn=ml(e.stateNode.containerInfo),Mt(t,e),Bt(e),nn=s;break;case 12:Mt(t,e),Bt(e);break;case 13:Mt(t,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(fc=fn()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ic(e,s)));break;case 22:o=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,j=Ln,q=Qe;if(Ln=j||o,Qe=q||A,Mt(t,e),Qe=q,Ln=j,Bt(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||A||Ln||Qe||kr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(c=A.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=A.stateNode;var V=A.memoizedProps.style,H=V!=null&&V.hasOwnProperty("display")?V.display:null;v.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(L){ze(A,A.return,L)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(L){ze(A,A.return,L)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,ic(e,a))));break;case 19:Mt(t,e),Bt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ic(e,s)));break;case 30:break;case 21:break;default:Mt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(V0(s)){a=s;break}s=s.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var o=a.stateNode,c=nc(e);tl(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(la(p,""),a.flags&=-33);var v=nc(e);tl(e,v,p);break;case 3:case 4:var A=a.stateNode.containerInfo,j=nc(e);rc(e,j,A);break;default:throw Error(l(161))}}catch(q){ze(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function J0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;J0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ir(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Z0(e,t.alternate,t),t=t.sibling}function kr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ar(4,t,t.return),kr(t);break;case 1:mn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&I0(t,t.return,a),kr(t);break;case 27:Hi(t.stateNode);case 26:case 5:mn(t,t.return),kr(t);break;case 22:t.memoizedState===null&&kr(t);break;case 30:kr(t);break;default:kr(t)}e=e.sibling}}function sr(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:sr(o,c,a),Oi(4,c);break;case 1:if(sr(o,c,a),s=c,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(j){ze(s,s.return,j)}if(s=c,o=s.updateQueue,o!==null){var v=s.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)wm(A[o],v)}catch(j){ze(s,s.return,j)}}a&&p&64&&q0(c),wi(c,c.return);break;case 27:P0(c);case 26:case 5:sr(o,c,a),a&&s===null&&p&4&&F0(c),wi(c,c.return);break;case 12:sr(o,c,a);break;case 13:sr(o,c,a),a&&p&4&&K0(o,c);break;case 22:c.memoizedState===null&&sr(o,c,a),wi(c,c.return);break;case 30:break;default:sr(o,c,a)}t=t.sibling}}function sc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&hi(a))}function lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hi(e))}function pn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)W0(e,t,a,s),t=t.sibling}function W0(e,t,a,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:pn(e,t,a,s),o&2048&&Oi(9,t);break;case 1:pn(e,t,a,s);break;case 3:pn(e,t,a,s),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hi(e)));break;case 12:if(o&2048){pn(e,t,a,s),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,v=c.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){ze(t,t.return,A)}}else pn(e,t,a,s);break;case 13:pn(e,t,a,s);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?pn(e,t,a,s):Ri(e,t):c._visibility&2?pn(e,t,a,s):(c._visibility|=2,Oa(e,t,a,s,(t.subtreeFlags&10256)!==0)),o&2048&&sc(p,t);break;case 24:pn(e,t,a,s),o&2048&&lc(t.alternate,t);break;default:pn(e,t,a,s)}}function Oa(e,t,a,s,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,p=t,v=a,A=s,j=p.flags;switch(p.tag){case 0:case 11:case 15:Oa(c,p,v,A,o),Oi(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?Oa(c,p,v,A,o):Ri(c,p):(q._visibility|=2,Oa(c,p,v,A,o)),o&&j&2048&&sc(p.alternate,p);break;case 24:Oa(c,p,v,A,o),o&&j&2048&&lc(p.alternate,p);break;default:Oa(c,p,v,A,o)}t=t.sibling}}function Ri(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,s=t,o=s.flags;switch(s.tag){case 22:Ri(a,s),o&2048&&sc(s.alternate,s);break;case 24:Ri(a,s),o&2048&&lc(s.alternate,s);break;default:Ri(a,s)}t=t.sibling}}var Ci=8192;function wa(e){if(e.subtreeFlags&Ci)for(e=e.child;e!==null;)ep(e),e=e.sibling}function ep(e){switch(e.tag){case 26:wa(e),e.flags&Ci&&e.memoizedState!==null&&f2(nn,e.memoizedState,e.memoizedProps);break;case 5:wa(e);break;case 3:case 4:var t=nn;nn=ml(e.stateNode.containerInfo),wa(e),nn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ci,Ci=16777216,wa(e),Ci=t):wa(e));break;default:wa(e)}}function tp(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 Ni(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];it=s,rp(s,e)}tp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)np(e),e=e.sibling}function np(e){switch(e.tag){case 0:case 11:case 15:Ni(e),e.flags&2048&&ar(9,e,e.return);break;case 3:Ni(e);break;case 12:Ni(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nl(e)):Ni(e);break;default:Ni(e)}}function nl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];it=s,rp(s,e)}tp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ar(8,t,t.return),nl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,nl(t));break;default:nl(t)}e=e.sibling}}function rp(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:ar(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:hi(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,it=s;else e:for(a=e;it!==null;){s=it;var o=s.sibling,c=s.return;if(X0(s),s===a){it=null;break e}if(o!==null){o.return=c,it=o;break e}it=c}}}var wE={getCacheForType:function(e){var t=gt(tt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},RE=typeof WeakMap=="function"?WeakMap:Map,Me=0,Ge=null,be=null,Oe=0,Be=0,jt=null,lr=!1,Ra=!1,oc=!1,kn=0,Ze=0,or=0,Gr=0,uc=0,Kt=0,Ca=0,Di=null,At=null,cc=!1,fc=0,rl=1/0,al=null,ur=null,ot=0,cr=null,Na=null,Da=0,hc=0,dc=null,ap=null,Mi=0,mc=null;function Ut(){if((Me&2)!==0&&Oe!==0)return Oe&-Oe;if(G.T!==null){var e=_a;return e!==0?e:Ec()}return vd()}function ip(){Kt===0&&(Kt=(Oe&536870912)===0||Ne?gd():536870912);var e=Qt.current;return e!==null&&(e.flags|=32),Kt}function Ht(e,t,a){(e===Ge&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),fr(e,Oe,Kt,!1)),Ka(e,a),((Me&2)===0||e!==Ge)&&(e===Ge&&((Me&2)===0&&(Gr|=a),Ze===4&&fr(e,Oe,Kt,!1)),gn(e))}function sp(e,t,a){if((Me&6)!==0)throw Error(l(327));var s=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Qa(e,t),o=s?DE(e,t):yc(e,t,!0),c=s;do{if(o===0){Ra&&!s&&fr(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!CE(a)){o=yc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;o=Di;var A=v.current.memoizedState.isDehydrated;if(A&&(Ma(v,p).flags|=256),p=yc(v,p,!1),p!==2){if(oc&&!A){v.errorRecoveryDisabledLanes|=c,Gr|=c,o=4;break e}c=At,At=o,c!==null&&(At===null?At=c:At.push.apply(At,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Ma(e,0),fr(e,t,0,!0);break}e:{switch(s=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:fr(s,t,Kt,!lr);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=fc+300-fn(),10<o)){if(fr(s,t,Kt,!lr),ps(s,0,!0)!==0)break e;s.timeoutHandle=Up(lp.bind(null,s,a,At,al,cc,t,Kt,Gr,Ca,lr,c,2,-0,0),o);break e}lp(s,a,At,al,cc,t,Kt,Gr,Ca,lr,c,0,-0,0)}}break}while(!0);gn(e)}function lp(e,t,a,s,o,c,p,v,A,j,q,V,H,L){if(e.timeoutHandle=-1,V=t.subtreeFlags,(V&8192||(V&16785408)===16785408)&&(ki={stylesheets:null,count:0,unsuspend:c2},ep(t),V=h2(),V!==null)){e.cancelPendingCommit=V(mp.bind(null,e,t,c,a,s,o,p,v,A,q,1,H,L)),fr(e,c,p,!j);return}mp(e,t,c,a,s,o,p,v,A)}function CE(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var o=a[s],c=o.getSnapshot;o=o.value;try{if(!Nt(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 fr(e,t,a,s){t&=~uc,t&=~Gr,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var c=31-Ct(o),p=1<<c;s[c]=-1,o&=~p}a!==0&&_d(e,a,t)}function il(){return(Me&6)===0?(Bi(0),!1):!0}function pc(){if(be!==null){if(Be===0)var e=be.return;else e=be,Dn=jr=null,Mu(e),xa=null,Ti=0,e=be;for(;e!==null;)G0(e.alternate,e),e=e.return;be=null}}function Ma(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,ZE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),pc(),Ge=e,be=a=Rn(e.current,null),Oe=t,Be=0,jt=null,lr=!1,Ra=Qa(e,t),oc=!1,Ca=Kt=uc=Gr=or=Ze=0,At=Di=null,cc=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var o=31-Ct(s),c=1<<o;t|=e[o],s&=~c}return kn=t,ws(),a}function op(e,t){ge=null,G.H=Ys,t===mi||t===Hs?(t=Am(),Be=3):t===Sm?(t=Am(),Be=4):Be=t===O0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,be===null&&(Ze=1,$s(e,Pt(t,e.current)))}function up(){var e=G.H;return G.H=Ys,e===null?Ys:e}function cp(){var e=G.A;return G.A=wE,e}function gc(){Ze=4,lr||(Oe&4194048)!==Oe&&Qt.current!==null||(Ra=!0),(or&134217727)===0&&(Gr&134217727)===0||Ge===null||fr(Ge,Oe,Kt,!1)}function yc(e,t,a){var s=Me;Me|=2;var o=up(),c=cp();(Ge!==e||Oe!==t)&&(al=null,Ma(e,t)),t=!1;var p=Ze;e:do try{if(Be!==0&&be!==null){var v=be,A=jt;switch(Be){case 8:pc(),p=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var j=Be;if(Be=0,jt=null,Ba(e,v,A,j),a&&Ra){p=0;break e}break;default:j=Be,Be=0,jt=null,Ba(e,v,A,j)}}NE(),p=Ze;break}catch(q){op(e,q)}while(!0);return t&&e.shellSuspendCounter++,Dn=jr=null,Me=s,G.H=o,G.A=c,be===null&&(Ge=null,Oe=0,ws()),p}function NE(){for(;be!==null;)fp(be)}function DE(e,t){var a=Me;Me|=2;var s=up(),o=cp();Ge!==e||Oe!==t?(al=null,rl=fn()+500,Ma(e,t)):Ra=Qa(e,t);e:do try{if(Be!==0&&be!==null){t=be;var c=jt;t:switch(Be){case 1:Be=0,jt=null,Ba(e,t,c,1);break;case 2:case 9:if(Tm(c)){Be=0,jt=null,hp(t);break}t=function(){Be!==2&&Be!==9||Ge!==e||(Be=7),gn(e)},c.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:Tm(c)?(Be=0,jt=null,hp(t)):(Be=0,jt=null,Ba(e,t,c,7));break;case 5:var p=null;switch(be.tag){case 26:p=be.memoizedState;case 5:case 27:var v=be;if(!p||Zp(p)){Be=0,jt=null;var A=v.sibling;if(A!==null)be=A;else{var j=v.return;j!==null?(be=j,sl(j)):be=null}break t}}Be=0,jt=null,Ba(e,t,c,5);break;case 6:Be=0,jt=null,Ba(e,t,c,6);break;case 8:pc(),Ze=6;break e;default:throw Error(l(462))}}ME();break}catch(q){op(e,q)}while(!0);return Dn=jr=null,G.H=s,G.A=o,Me=a,be!==null?0:(Ge=null,Oe=0,ws(),Ze)}function ME(){for(;be!==null&&!e1();)fp(be)}function fp(e){var t=z0(e.alternate,e,kn);e.memoizedProps=e.pendingProps,t===null?sl(e):be=t}function hp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=M0(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=M0(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Mu(t);default:G0(a,t),t=be=dm(t,kn),t=z0(a,t,kn)}e.memoizedProps=e.pendingProps,t===null?sl(e):be=t}function Ba(e,t,a,s){Dn=jr=null,Mu(t),xa=null,Ti=0;var o=t.return;try{if(EE(e,o,t,a,Oe)){Ze=1,$s(e,Pt(a,e.current)),be=null;return}}catch(c){if(o!==null)throw be=o,c;Ze=1,$s(e,Pt(a,e.current)),be=null;return}t.flags&32768?(Ne||s===1?e=!0:Ra||(Oe&536870912)!==0?e=!1:(lr=e=!0,(s===2||s===9||s===3||s===6)&&(s=Qt.current,s!==null&&s.tag===13&&(s.flags|=16384))),dp(t,e)):sl(t)}function sl(e){var t=e;do{if((t.flags&32768)!==0){dp(t,lr);return}e=t.return;var a=TE(t.alternate,t,kn);if(a!==null){be=a;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ze===0&&(Ze=5)}function dp(e,t){do{var a=xE(e.alternate,e);if(a!==null){a.flags&=32767,be=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=a}while(e!==null);Ze=6,be=null}function mp(e,t,a,s,o,c,p,v,A){e.cancelPendingCommit=null;do ll();while(ot!==0);if((Me&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=lu,c1(e,a,c,p,v,A),e===Ge&&(be=Ge=null,Oe=0),Na=t,cr=e,Da=a,hc=c,dc=o,ap=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,HE(hs,function(){return bp(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=G.T,G.T=null,o=X.p,X.p=2,p=Me,Me|=4;try{AE(e,t,a)}finally{Me=p,X.p=o,G.T=s}}ot=1,pp(),gp(),yp()}}function pp(){if(ot===1){ot=0;var e=cr,t=Na,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=G.T,G.T=null;var s=X.p;X.p=2;var o=Me;Me|=4;try{$0(t,e);var c=Cc,p=rm(e.containerInfo),v=c.focusedElem,A=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&nm(v.ownerDocument.documentElement,v)){if(A!==null&&nu(v)){var j=A.start,q=A.end;if(q===void 0&&(q=j),"selectionStart"in v)v.selectionStart=j,v.selectionEnd=Math.min(q,v.value.length);else{var V=v.ownerDocument||document,H=V&&V.defaultView||window;if(H.getSelection){var L=H.getSelection(),fe=v.textContent.length,se=Math.min(A.start,fe),Le=A.end===void 0?se:Math.min(A.end,fe);!L.extend&&se>Le&&(p=Le,Le=se,se=p);var D=tm(v,se),C=tm(v,Le);if(D&&C&&(L.rangeCount!==1||L.anchorNode!==D.node||L.anchorOffset!==D.offset||L.focusNode!==C.node||L.focusOffset!==C.offset)){var B=V.createRange();B.setStart(D.node,D.offset),L.removeAllRanges(),se>Le?(L.addRange(B),L.extend(C.node,C.offset)):(B.setEnd(C.node,C.offset),L.addRange(B))}}}}for(V=[],L=v;L=L.parentNode;)L.nodeType===1&&V.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<V.length;v++){var F=V[v];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}bl=!!Rc,Cc=Rc=null}finally{Me=o,X.p=s,G.T=a}}e.current=t,ot=2}}function gp(){if(ot===2){ot=0;var e=cr,t=Na,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=G.T,G.T=null;var s=X.p;X.p=2;var o=Me;Me|=4;try{Z0(e,t.alternate,t)}finally{Me=o,X.p=s,G.T=a}}ot=3}}function yp(){if(ot===4||ot===3){ot=0,t1();var e=cr,t=Na,a=Da,s=ap;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Na=cr=null,_p(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ur=null),Uo(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Xa,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=G.T,o=X.p,X.p=2,G.T=null;try{for(var c=e.onRecoverableError,p=0;p<s.length;p++){var v=s[p];c(v.value,{componentStack:v.stack})}}finally{G.T=t,X.p=o}}(Da&3)!==0&&ll(),gn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===mc?Mi++:(Mi=0,mc=e):Mi=0,Bi(0)}}function _p(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hi(t)))}function ll(e){return pp(),gp(),yp(),bp()}function bp(){if(ot!==5)return!1;var e=cr,t=hc;hc=0;var a=Uo(Da),s=G.T,o=X.p;try{X.p=32>a?32:a,G.T=null,a=dc,dc=null;var c=cr,p=Da;if(ot=0,Na=cr=null,Da=0,(Me&6)!==0)throw Error(l(331));var v=Me;if(Me|=4,np(c.current),W0(c,c.current,p,a),Me=v,Bi(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Xa,c)}catch{}return!0}finally{X.p=o,G.T=s,_p(e,t)}}function vp(e,t,a){t=Pt(a,t),t=Yu(e.stateNode,t,2),e=er(e,t,2),e!==null&&(Ka(e,2),gn(e))}function ze(e,t,a){if(e.tag===3)vp(e,e,a);else for(;t!==null;){if(t.tag===3){vp(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ur===null||!ur.has(s))){e=Pt(a,e),a=x0(2),s=er(t,a,2),s!==null&&(A0(a,s,t,e),Ka(s,2),gn(s));break}}t=t.return}}function _c(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new RE;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(a)||(oc=!0,o.add(a),e=BE.bind(null,e,t,a),t.then(e,e))}function BE(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ge===e&&(Oe&a)===a&&(Ze===4||Ze===3&&(Oe&62914560)===Oe&&300>fn()-fc?(Me&2)===0&&Ma(e,0):uc|=a,Ca===Oe&&(Ca=0)),gn(e)}function Ep(e,t){t===0&&(t=yd()),e=ma(e,t),e!==null&&(Ka(e,t),gn(e))}function jE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ep(e,a)}function UE(e,t){var a=0;switch(e.tag){case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(t),Ep(e,a)}function HE(e,t){return An(e,t)}var ol=null,ja=null,bc=!1,ul=!1,vc=!1,qr=0;function gn(e){e!==ja&&e.next===null&&(ja===null?ol=ja=e:ja=ja.next=e),ul=!0,bc||(bc=!0,zE())}function Bi(e,t){if(!vc&&ul){vc=!0;do for(var a=!1,s=ol;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var c=0;else{var p=s.suspendedLanes,v=s.pingedLanes;c=(1<<31-Ct(42|e)+1)-1,c&=o&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Ap(s,c))}else c=Oe,c=ps(s,s===Ge?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Qa(s,c)||(a=!0,Ap(s,c));s=s.next}while(a);vc=!1}}function LE(){Sp()}function Sp(){ul=bc=!1;var e=0;qr!==0&&(YE()&&(e=qr),qr=0);for(var t=fn(),a=null,s=ol;s!==null;){var o=s.next,c=Tp(s,t);c===0?(s.next=null,a===null?ol=o:a.next=o,o===null&&(ja=a)):(a=s,(e!==0||(c&3)!==0)&&(ul=!0)),s=o}Bi(e)}function Tp(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-Ct(c),v=1<<p,A=o[p];A===-1?((v&a)===0||(v&s)!==0)&&(o[p]=u1(v,t)):A<=t&&(e.expiredLanes|=v),c&=~v}if(t=Ge,a=Oe,a=ps(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Mo(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Qa(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&Mo(s),Uo(a)){case 2:case 8:a=md;break;case 32:a=hs;break;case 268435456:a=pd;break;default:a=hs}return s=xp.bind(null,e),a=An(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&Mo(s),e.callbackPriority=2,e.callbackNode=null,2}function xp(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ll()&&e.callbackNode!==a)return null;var s=Oe;return s=ps(e,e===Ge?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(sp(e,s,t),Tp(e,fn()),e.callbackNode!=null&&e.callbackNode===a?xp.bind(null,e):null)}function Ap(e,t){if(ll())return null;sp(e,t,!0)}function zE(){XE(function(){(Me&6)!==0?An(dd,LE):Sp()})}function Ec(){return qr===0&&(qr=gd()),qr}function Op(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vs(""+e)}function wp(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function kE(e,t,a,s,o){if(t==="submit"&&a&&a.stateNode===o){var c=Op((o[Et]||null).action),p=s.submitter;p&&(t=(t=p[Et]||null)?Op(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new xs("action","action",null,s,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(qr!==0){var A=p?wp(o,p):new FormData(o);qu(a,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(v.preventDefault(),A=p?wp(o,p):new FormData(o),qu(a,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var Sc=0;Sc<su.length;Sc++){var Tc=su[Sc],GE=Tc.toLowerCase(),qE=Tc[0].toUpperCase()+Tc.slice(1);tn(GE,"on"+qE)}tn(sm,"onAnimationEnd"),tn(lm,"onAnimationIteration"),tn(om,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(aE,"onTransitionRun"),tn(iE,"onTransitionStart"),tn(sE,"onTransitionCancel"),tn(um,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),Ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ar("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="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(" "),IE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ji));function Rp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],o=s.event;s=s.listeners;e:{var c=void 0;if(t)for(var p=s.length-1;0<=p;p--){var v=s[p],A=v.instance,j=v.currentTarget;if(v=v.listener,A!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=j;try{c(o)}catch(q){Ks(q)}o.currentTarget=null,c=A}else for(p=0;p<s.length;p++){if(v=s[p],A=v.instance,j=v.currentTarget,v=v.listener,A!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=j;try{c(o)}catch(q){Ks(q)}o.currentTarget=null,c=A}}}}function ve(e,t){var a=t[Ho];a===void 0&&(a=t[Ho]=new Set);var s=e+"__bubble";a.has(s)||(Cp(t,e,2,!1),a.add(s))}function xc(e,t,a){var s=0;t&&(s|=4),Cp(a,e,s,t)}var cl="_reactListening"+Math.random().toString(36).slice(2);function Ac(e){if(!e[cl]){e[cl]=!0,Sd.forEach(function(a){a!=="selectionchange"&&(IE.has(a)||xc(a,!1,e),xc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cl]||(t[cl]=!0,xc("selectionchange",!1,t))}}function Cp(e,t,a,s){switch(Wp(t)){case 2:var o=p2;break;case 8:o=g2;break;default:o=kc}a=o.bind(null,t,a,e),o=void 0,!Zo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Oc(e,t,a,s,o){var c=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var v=s.stateNode.containerInfo;if(v===o)break;if(p===4)for(p=s.return;p!==null;){var A=p.tag;if((A===3||A===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;v!==null;){if(p=ta(v),p===null)return;if(A=p.tag,A===5||A===6||A===26||A===27){s=c=p;continue e}v=v.parentNode}}s=s.return}Hd(function(){var j=c,q=Po(a),V=[];e:{var H=cm.get(e);if(H!==void 0){var L=xs,fe=e;switch(e){case"keypress":if(Ss(a)===0)break e;case"keydown":case"keyup":L=H1;break;case"focusin":fe="focus",L=$o;break;case"focusout":fe="blur",L=$o;break;case"beforeblur":case"afterblur":L=$o;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=kd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=x1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=k1;break;case sm:case lm:case om:L=w1;break;case um:L=q1;break;case"scroll":case"scrollend":L=S1;break;case"wheel":L=F1;break;case"copy":case"cut":case"paste":L=C1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=qd;break;case"toggle":case"beforetoggle":L=P1}var se=(t&4)!==0,Le=!se&&(e==="scroll"||e==="scrollend"),D=se?H!==null?H+"Capture":null:H;se=[];for(var C=j,B;C!==null;){var F=C;if(B=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||B===null||D===null||(F=Wa(C,D),F!=null&&se.push(Ui(C,F,B))),Le)break;C=C.return}0<se.length&&(H=new L(H,fe,null,a,q),V.push({event:H,listeners:se}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",H&&a!==Vo&&(fe=a.relatedTarget||a.fromElement)&&(ta(fe)||fe[ea]))break e;if((L||H)&&(H=q.window===q?q:(H=q.ownerDocument)?H.defaultView||H.parentWindow:window,L?(fe=a.relatedTarget||a.toElement,L=j,fe=fe?ta(fe):null,fe!==null&&(Le=f(fe),se=fe.tag,fe!==Le||se!==5&&se!==27&&se!==6)&&(fe=null)):(L=null,fe=j),L!==fe)){if(se=kd,F="onMouseLeave",D="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(se=qd,F="onPointerLeave",D="onPointerEnter",C="pointer"),Le=L==null?H:Ja(L),B=fe==null?H:Ja(fe),H=new se(F,C+"leave",L,a,q),H.target=Le,H.relatedTarget=B,F=null,ta(q)===j&&(se=new se(D,C+"enter",fe,a,q),se.target=B,se.relatedTarget=Le,F=se),Le=F,L&&fe)t:{for(se=L,D=fe,C=0,B=se;B;B=Ua(B))C++;for(B=0,F=D;F;F=Ua(F))B++;for(;0<C-B;)se=Ua(se),C--;for(;0<B-C;)D=Ua(D),B--;for(;C--;){if(se===D||D!==null&&se===D.alternate)break t;se=Ua(se),D=Ua(D)}se=null}else se=null;L!==null&&Np(V,H,L,se,!1),fe!==null&&Le!==null&&Np(V,Le,fe,se,!0)}}e:{if(H=j?Ja(j):window,L=H.nodeName&&H.nodeName.toLowerCase(),L==="select"||L==="input"&&H.type==="file")var W=Qd;else if(Zd(H))if(Kd)W=tE;else{W=W1;var ye=J1}else L=H.nodeName,!L||L.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?j&&Fo(j.elementType)&&(W=Qd):W=eE;if(W&&(W=W(e,j))){Xd(V,W,a,q);break e}ye&&ye(e,H,j),e==="focusout"&&j&&H.type==="number"&&j.memoizedProps.value!=null&&Io(H,"number",H.value)}switch(ye=j?Ja(j):window,e){case"focusin":(Zd(ye)||ye.contentEditable==="true")&&(fa=ye,ru=j,li=null);break;case"focusout":li=ru=fa=null;break;case"mousedown":au=!0;break;case"contextmenu":case"mouseup":case"dragend":au=!1,am(V,a,q);break;case"selectionchange":if(rE)break;case"keydown":case"keyup":am(V,a,q)}var ne;if(Wo)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else ca?Pd(e,a)&&(oe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(oe="onCompositionStart");oe&&(Id&&a.locale!=="ko"&&(ca||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&ca&&(ne=Ld()):(Kn=q,Xo="value"in Kn?Kn.value:Kn.textContent,ca=!0)),ye=fl(j,oe),0<ye.length&&(oe=new Gd(oe,e,null,a,q),V.push({event:oe,listeners:ye}),ne?oe.data=ne:(ne=Yd(a),ne!==null&&(oe.data=ne)))),(ne=Z1?X1(e,a):Q1(e,a))&&(oe=fl(j,"onBeforeInput"),0<oe.length&&(ye=new Gd("onBeforeInput","beforeinput",null,a,q),V.push({event:ye,listeners:oe}),ye.data=ne)),kE(V,e,j,a,q)}Rp(V,t)})}function Ui(e,t,a){return{instance:e,listener:t,currentTarget:a}}function fl(e,t){for(var a=t+"Capture",s=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Wa(e,a),o!=null&&s.unshift(Ui(e,o,c)),o=Wa(e,t),o!=null&&s.push(Ui(e,o,c))),e.tag===3)return s;e=e.return}return[]}function Ua(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Np(e,t,a,s,o){for(var c=t._reactName,p=[];a!==null&&a!==s;){var v=a,A=v.alternate,j=v.stateNode;if(v=v.tag,A!==null&&A===s)break;v!==5&&v!==26&&v!==27||j===null||(A=j,o?(j=Wa(a,c),j!=null&&p.unshift(Ui(a,j,A))):o||(j=Wa(a,c),j!=null&&p.push(Ui(a,j,A)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var FE=/\r\n?/g,VE=/\u0000|\uFFFD/g;function Dp(e){return(typeof e=="string"?e:""+e).replace(FE,`
|
|
49
|
+
`).replace(VE,"")}function Mp(e,t){return t=Dp(t),Dp(e)===t}function hl(){}function He(e,t,a,s,o,c){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||la(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&la(e,""+s);break;case"className":ys(e,"class",s);break;case"tabIndex":ys(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ys(e,a,s);break;case"style":jd(e,s,c);break;case"data":if(t!=="object"){ys(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=vs(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"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"&&(a==="formAction"?(t!=="input"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=vs(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=hl);break;case"onScroll":s!=null&&ve("scroll",e);break;case"onScrollEnd":s!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=vs(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":ve("beforetoggle",e),ve("toggle",e),gs(e,"popover",s);break;case"xlinkActuate":On(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":On(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":On(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":On(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":On(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":On(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":On(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":On(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":On(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":gs(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=v1.get(a)||a,gs(e,a,s))}}function wc(e,t,a,s,o,c){switch(a){case"style":jd(e,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"children":typeof s=="string"?la(e,s):(typeof s=="number"||typeof s=="bigint")&&la(e,""+s);break;case"onScroll":s!=null&&ve("scroll",e);break;case"onScrollEnd":s!=null&&ve("scrollend",e);break;case"onClick":s!=null&&(e.onclick=hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Td.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[Et]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof s=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,s,o);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):gs(e,a,s)}}}function ut(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var s=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:He(e,t,c,p,a,null)}}o&&He(e,t,"srcSet",a.srcSet,a,null),s&&He(e,t,"src",a.src,a,null);return;case"input":ve("invalid",e);var v=c=p=o=null,A=null,j=null;for(s in a)if(a.hasOwnProperty(s)){var q=a[s];if(q!=null)switch(s){case"name":o=q;break;case"type":p=q;break;case"checked":A=q;break;case"defaultChecked":j=q;break;case"value":c=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(l(137,t));break;default:He(e,t,s,q,a,null)}}Nd(e,c,v,A,j,p,o,!1),_s(e);return;case"select":ve("invalid",e),s=p=c=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":p=v;break;case"multiple":s=v;default:He(e,t,o,v,a,null)}t=c,a=p,e.multiple=!!s,t!=null?sa(e,!!s,t,!1):a!=null&&sa(e,!!s,a,!0);return;case"textarea":ve("invalid",e),c=o=s=null;for(p in a)if(a.hasOwnProperty(p)&&(v=a[p],v!=null))switch(p){case"value":s=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(l(91));break;default:He(e,t,p,v,a,null)}Md(e,s,o,c),_s(e);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(s=a[A],s!=null))switch(A){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:He(e,t,A,s,a,null)}return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(s=0;s<ji.length;s++)ve(ji[s],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("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(j in a)if(a.hasOwnProperty(j)&&(s=a[j],s!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:He(e,t,j,s,a,null)}return;default:if(Fo(t)){for(q in a)a.hasOwnProperty(q)&&(s=a[q],s!==void 0&&wc(e,t,q,s,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(s=a[v],s!=null&&He(e,t,v,s,a,null))}function PE(e,t,a,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,v=null,A=null,j=null,q=null;for(L in a){var V=a[L];if(a.hasOwnProperty(L)&&V!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":A=V;default:s.hasOwnProperty(L)||He(e,t,L,null,s,V)}}for(var H in s){var L=s[H];if(V=a[H],s.hasOwnProperty(H)&&(L!=null||V!=null))switch(H){case"type":c=L;break;case"name":o=L;break;case"checked":j=L;break;case"defaultChecked":q=L;break;case"value":p=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(l(137,t));break;default:L!==V&&He(e,t,H,L,s,V)}}qo(e,p,v,A,j,q,c,o);return;case"select":L=p=v=H=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":L=A;default:s.hasOwnProperty(c)||He(e,t,c,null,s,A)}for(o in s)if(c=s[o],A=a[o],s.hasOwnProperty(o)&&(c!=null||A!=null))switch(o){case"value":H=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==A&&He(e,t,o,c,s,A)}t=v,a=p,s=L,H!=null?sa(e,!!a,H,!1):!!s!=!!a&&(t!=null?sa(e,!!a,t,!0):sa(e,!!a,a?[]:"",!1));return;case"textarea":L=H=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!s.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:He(e,t,v,null,s,o)}for(p in s)if(o=s[p],c=a[p],s.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":H=o;break;case"defaultValue":L=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&He(e,t,p,o,s,c)}Dd(e,H,L);return;case"option":for(var fe in a)if(H=a[fe],a.hasOwnProperty(fe)&&H!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:He(e,t,fe,null,s,H)}for(A in s)if(H=s[A],L=a[A],s.hasOwnProperty(A)&&H!==L&&(H!=null||L!=null))switch(A){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:He(e,t,A,H,s,L)}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 se in a)H=a[se],a.hasOwnProperty(se)&&H!=null&&!s.hasOwnProperty(se)&&He(e,t,se,null,s,H);for(j in s)if(H=s[j],L=a[j],s.hasOwnProperty(j)&&H!==L&&(H!=null||L!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(l(137,t));break;default:He(e,t,j,H,s,L)}return;default:if(Fo(t)){for(var Le in a)H=a[Le],a.hasOwnProperty(Le)&&H!==void 0&&!s.hasOwnProperty(Le)&&wc(e,t,Le,void 0,s,H);for(q in s)H=s[q],L=a[q],!s.hasOwnProperty(q)||H===L||H===void 0&&L===void 0||wc(e,t,q,H,s,L);return}}for(var D in a)H=a[D],a.hasOwnProperty(D)&&H!=null&&!s.hasOwnProperty(D)&&He(e,t,D,null,s,H);for(V in s)H=s[V],L=a[V],!s.hasOwnProperty(V)||H===L||H==null&&L==null||He(e,t,V,H,s,L)}var Rc=null,Cc=null;function dl(e){return e.nodeType===9?e:e.ownerDocument}function Bp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Nc(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}var Dc=null;function YE(){var e=window.event;return e&&e.type==="popstate"?e===Dc?!1:(Dc=e,!0):(Dc=null,!1)}var Up=typeof setTimeout=="function"?setTimeout:void 0,ZE=typeof clearTimeout=="function"?clearTimeout:void 0,Hp=typeof Promise=="function"?Promise:void 0,XE=typeof queueMicrotask=="function"?queueMicrotask:typeof Hp<"u"?function(e){return Hp.resolve(null).then(e).catch(QE)}:Up;function QE(e){setTimeout(function(){throw e})}function hr(e){return e==="head"}function Lp(e,t){var a=t,s=0,o=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(0<s&&8>s){a=s;var p=e.ownerDocument;if(a&1&&Hi(p.documentElement),a&2&&Hi(p.body),a&4)for(a=p.head,Hi(a),p=a.firstChild;p;){var v=p.nextSibling,A=p.nodeName;p[$a]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=v}}if(o===0){e.removeChild(c),Vi(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:s=a.charCodeAt(0)-48;else s=0;a=c}while(a);Vi(t)}function Mc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Mc(a),Lo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function KE(e,t,a,s){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[$a])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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=rn(e.nextSibling),e===null)break}return null}function $E(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=rn(e.nextSibling),e===null))return null;return e}function Bc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function JE(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var s=function(){t(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function rn(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==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var jc=null;function zp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function kp(e,t,a){switch(t=dl(a),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Hi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Lo(e)}var $t=new Map,Gp=new Set;function ml(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Gn=X.d;X.d={f:WE,r:e2,D:t2,C:n2,L:r2,m:a2,X:s2,S:i2,M:l2};function WE(){var e=Gn.f(),t=il();return e||t}function e2(e){var t=na(e);t!==null&&t.tag===5&&t.type==="form"?s0(t):Gn.r(e)}var Ha=typeof document>"u"?null:document;function qp(e,t,a){var s=Ha;if(s&&typeof t=="string"&&t){var o=Vt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Gp.has(o)||(Gp.add(o),e={rel:e,crossOrigin:a,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),ut(t,"link",e),rt(t),s.head.appendChild(t)))}}function t2(e){Gn.D(e),qp("dns-prefetch",e,null)}function n2(e,t){Gn.C(e,t),qp("preconnect",e,t)}function r2(e,t,a){Gn.L(e,t,a);var s=Ha;if(s&&e&&t){var o='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Vt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Vt(a.imageSizes)+'"]')):o+='[href="'+Vt(e)+'"]';var c=o;switch(t){case"style":c=La(e);break;case"script":c=za(e)}$t.has(c)||(e=_({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),$t.set(c,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(Li(c))||t==="script"&&s.querySelector(zi(c))||(t=s.createElement("link"),ut(t,"link",e),rt(t),s.head.appendChild(t)))}}function a2(e,t){Gn.m(e,t);var a=Ha;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Vt(s)+'"][href="'+Vt(e)+'"]',c=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=za(e)}if(!$t.has(c)&&(e=_({rel:"modulepreload",href:e},t),$t.set(c,e),a.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(zi(c)))return}s=a.createElement("link"),ut(s,"link",e),rt(s),a.head.appendChild(s)}}}function i2(e,t,a){Gn.S(e,t,a);var s=Ha;if(s&&e){var o=ra(s).hoistableStyles,c=La(e);t=t||"default";var p=o.get(c);if(!p){var v={loading:0,preload:null};if(p=s.querySelector(Li(c)))v.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$t.get(c))&&Uc(e,a);var A=p=s.createElement("link");rt(A),ut(A,"link",e),A._p=new Promise(function(j,q){A.onload=j,A.onerror=q}),A.addEventListener("load",function(){v.loading|=1}),A.addEventListener("error",function(){v.loading|=2}),v.loading|=4,pl(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(c,p)}}}function s2(e,t){Gn.X(e,t);var a=Ha;if(a&&e){var s=ra(a).hoistableScripts,o=za(e),c=s.get(o);c||(c=a.querySelector(zi(o)),c||(e=_({src:e,async:!0},t),(t=$t.get(o))&&Hc(e,t),c=a.createElement("script"),rt(c),ut(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function l2(e,t){Gn.M(e,t);var a=Ha;if(a&&e){var s=ra(a).hoistableScripts,o=za(e),c=s.get(o);c||(c=a.querySelector(zi(o)),c||(e=_({src:e,async:!0,type:"module"},t),(t=$t.get(o))&&Hc(e,t),c=a.createElement("script"),rt(c),ut(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function Ip(e,t,a,s){var o=(o=ce.current)?ml(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=La(a.href),a=ra(o).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=La(a.href);var c=ra(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(Li(e)))&&!c._p&&(p.instance=c,p.state.loading=5),$t.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},$t.set(e,a),c||o2(o,e,a,p.state))),t&&s===null)throw Error(l(528,""));return p}if(t&&s!==null)throw Error(l(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=za(a),a=ra(o).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function La(e){return'href="'+Vt(e)+'"'}function Li(e){return'link[rel="stylesheet"]['+e+"]"}function Fp(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function o2(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),ut(t,"link",a),rt(t),e.head.appendChild(t))}function za(e){return'[src="'+Vt(e)+'"]'}function zi(e){return"script[async]"+e}function Vp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Vt(a.href)+'"]');if(s)return t.instance=s,rt(s),s;var o=_({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),rt(s),ut(s,"style",o),pl(s,a.precedence,e),t.instance=s;case"stylesheet":o=La(a.href);var c=e.querySelector(Li(o));if(c)return t.state.loading|=4,t.instance=c,rt(c),c;s=Fp(a),(o=$t.get(o))&&Uc(s,o),c=(e.ownerDocument||e).createElement("link"),rt(c);var p=c;return p._p=new Promise(function(v,A){p.onload=v,p.onerror=A}),ut(c,"link",s),t.state.loading|=4,pl(c,a.precedence,e),t.instance=c;case"script":return c=za(a.src),(o=e.querySelector(zi(c)))?(t.instance=o,rt(o),o):(s=a,(o=$t.get(c))&&(s=_({},a),Hc(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),rt(o),ut(o,"link",s),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,pl(s,a.precedence,e));return t.instance}function pl(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,c=o,p=0;p<s.length;p++){var v=s[p];if(v.dataset.precedence===t)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Uc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Hc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var gl=null;function Pp(e,t,a){if(gl===null){var s=new Map,o=gl=new Map;o.set(a,s)}else o=gl,s=o.get(a),s||(s=new Map,o.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[$a]||c[pt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var v=s.get(p);v?v.push(c):s.set(p,[c])}}return s}function Yp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function u2(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Zp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var ki=null;function c2(){}function f2(e,t,a){if(ki===null)throw Error(l(475));var s=ki;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=La(a.href),c=e.querySelector(Li(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=yl.bind(s),e.then(s,s)),t.state.loading|=4,t.instance=c,rt(c);return}c=e.ownerDocument||e,a=Fp(a),(o=$t.get(o))&&Uc(a,o),c=c.createElement("link"),rt(c);var p=c;p._p=new Promise(function(v,A){p.onload=v,p.onerror=A}),ut(c,"link",a),t.instance=c}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(s.count++,t=yl.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function h2(){if(ki===null)throw Error(l(475));var e=ki;return e.stylesheets&&e.count===0&&Lc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Lc(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function yl(){if(this.count--,this.count===0){if(this.stylesheets)Lc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _l=null;function Lc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_l=new Map,t.forEach(d2,e),_l=null,yl.call(e))}function d2(e,t){if(!(t.state.loading&4)){var a=_l.get(e);if(a)var s=a.get(null);else{a=new Map,_l.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),s=p)}s&&a.set(null,s)}o=t.instance,p=o.getAttribute("data-precedence"),c=a.get(p)||s,c===s&&a.set(null,o),a.set(p,o),this.count++,s=yl.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Gi={$$typeof:O,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function m2(e,t,a,s,o,c,p,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bo(0),this.hiddenUpdates=Bo(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Xp(e,t,a,s,o,c,p,v,A,j,q,V){return e=new m2(e,t,a,p,v,A,j,V),t=1,c===!0&&(t|=24),c=Dt(3,null,null,t),e.current=c,c.stateNode=e,t=_u(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:t},Su(c),e}function Qp(e){return e?(e=pa,e):pa}function Kp(e,t,a,s,o,c){o=Qp(o),s.context===null?s.context=o:s.pendingContext=o,s=Wn(t),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=er(e,s,t),a!==null&&(Ht(a,e,t),gi(a,e,t))}function $p(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function zc(e,t){$p(e,t),(e=e.alternate)&&$p(e,t)}function Jp(e){if(e.tag===13){var t=ma(e,67108864);t!==null&&Ht(t,e,67108864),zc(e,67108864)}}var bl=!0;function p2(e,t,a,s){var o=G.T;G.T=null;var c=X.p;try{X.p=2,kc(e,t,a,s)}finally{X.p=c,G.T=o}}function g2(e,t,a,s){var o=G.T;G.T=null;var c=X.p;try{X.p=8,kc(e,t,a,s)}finally{X.p=c,G.T=o}}function kc(e,t,a,s){if(bl){var o=Gc(s);if(o===null)Oc(e,t,s,vl,a),eg(e,s);else if(_2(o,e,t,a,s))s.stopPropagation();else if(eg(e,s),t&4&&-1<y2.indexOf(e)){for(;o!==null;){var c=na(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=xr(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var A=1<<31-Ct(p);v.entanglements[1]|=A,p&=~A}gn(c),(Me&6)===0&&(rl=fn()+500,Bi(0))}}break;case 13:v=ma(c,2),v!==null&&Ht(v,c,2),il(),zc(c,2)}if(c=Gc(s),c===null&&Oc(e,t,s,vl,a),c===o)break;o=c}o!==null&&s.stopPropagation()}else Oc(e,t,s,null,a)}}function Gc(e){return e=Po(e),qc(e)}var vl=null;function qc(e){if(vl=null,e=ta(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vl=e,null}function Wp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(n1()){case dd:return 2;case md:return 8;case hs:case r1:return 32;case pd:return 268435456;default:return 32}default:return 32}}var Ic=!1,dr=null,mr=null,pr=null,qi=new Map,Ii=new Map,gr=[],y2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function eg(e,t){switch(e){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":mr=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ii.delete(t.pointerId)}}function Fi(e,t,a,s,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[o]},t!==null&&(t=na(t),t!==null&&Jp(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function _2(e,t,a,s,o){switch(t){case"focusin":return dr=Fi(dr,e,t,a,s,o),!0;case"dragenter":return mr=Fi(mr,e,t,a,s,o),!0;case"mouseover":return pr=Fi(pr,e,t,a,s,o),!0;case"pointerover":var c=o.pointerId;return qi.set(c,Fi(qi.get(c)||null,e,t,a,s,o)),!0;case"gotpointercapture":return c=o.pointerId,Ii.set(c,Fi(Ii.get(c)||null,e,t,a,s,o)),!0}return!1}function tg(e){var t=ta(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,f1(e.priority,function(){if(a.tag===13){var s=Ut();s=jo(s);var o=ma(a,s);o!==null&&Ht(o,a,s),zc(a,s)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function El(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Gc(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);Vo=s,a.target.dispatchEvent(s),Vo=null}else return t=na(a),t!==null&&Jp(t),e.blockedOn=a,!1;t.shift()}return!0}function ng(e,t,a){El(e)&&a.delete(t)}function b2(){Ic=!1,dr!==null&&El(dr)&&(dr=null),mr!==null&&El(mr)&&(mr=null),pr!==null&&El(pr)&&(pr=null),qi.forEach(ng),Ii.forEach(ng)}function Sl(e,t){e.blockedOn===t&&(e.blockedOn=null,Ic||(Ic=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,b2)))}var Tl=null;function rg(e){Tl!==e&&(Tl=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Tl===e&&(Tl=null);for(var t=0;t<e.length;t+=3){var a=e[t],s=e[t+1],o=e[t+2];if(typeof s!="function"){if(qc(s||a)===null)continue;break}var c=na(a);c!==null&&(e.splice(t,3),t-=3,qu(c,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Vi(e){function t(A){return Sl(A,e)}dr!==null&&Sl(dr,e),mr!==null&&Sl(mr,e),pr!==null&&Sl(pr,e),qi.forEach(t),Ii.forEach(t);for(var a=0;a<gr.length;a++){var s=gr[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<gr.length&&(a=gr[0],a.blockedOn===null);)tg(a),a.blockedOn===null&&gr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var o=a[s],c=a[s+1],p=o[Et]||null;if(typeof c=="function")p||rg(a);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[Et]||null)v=p.formAction;else if(qc(o)!==null)continue}else v=p.action;typeof v=="function"?a[s+1]=v:(a.splice(s,3),s-=3),rg(a)}}}function Fc(e){this._internalRoot=e}xl.prototype.render=Fc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var a=t.current,s=Ut();Kp(a,s,e,t,null,null)},xl.prototype.unmount=Fc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kp(e.current,2,null,e,null,null),il(),t[ea]=null}};function xl(e){this._internalRoot=e}xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=vd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<gr.length&&t!==0&&t<gr[a].priority;a++);gr.splice(a,0,e),a===0&&tg(e)}};var ag=r.version;if(ag!=="19.1.0")throw Error(l(527,ag,"19.1.0"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var v2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Al=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Al.isDisabled&&Al.supportsFiber)try{Xa=Al.inject(v2),Rt=Al}catch{}}return Yi.createRoot=function(e,t){if(!u(e))throw Error(l(299));var a=!1,s="",o=v0,c=E0,p=S0,v=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(v=t.unstable_transitionCallbacks)),t=Xp(e,1,!1,null,null,a,s,o,c,p,v,null),e[ea]=t.current,Ac(e),new Fc(t)},Yi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(l(299));var s=!1,o="",c=v0,p=E0,v=S0,A=null,j=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(A=a.unstable_transitionCallbacks),a.formState!==void 0&&(j=a.formState)),t=Xp(e,1,!0,t,a??null,s,o,c,p,v,A,j),t.context=Qp(null),a=t.current,s=Ut(),s=jo(s),o=Wn(s),o.callback=null,er(a,o,s),a=s,t.current.lanes=a,Ka(t,a),gn(t),e[ea]=t.current,Ac(e),new xl(t)},Yi.version="19.1.0",Yi}var mg;function M2(){if(mg)return Pc.exports;mg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Pc.exports=D2(),Pc.exports}var B2=M2(),I=Fa();const V_=yo(I);var Kc={exports:{}},$c={};/**
|
|
50
|
+
* @license React
|
|
51
|
+
* use-sync-external-store-with-selector.production.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var pg;function j2(){if(pg)return $c;pg=1;var n=Fa();function r(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var i=typeof Object.is=="function"?Object.is:r,l=n.useSyncExternalStore,u=n.useRef,f=n.useEffect,h=n.useMemo,d=n.useDebugValue;return $c.useSyncExternalStoreWithSelector=function(m,g,_,E,y){var x=u(null);if(x.current===null){var T={hasValue:!1,value:null};x.current=T}else T=x.current;x=h(function(){function N(S){if(!U){if(U=!0,M=S,S=E(S),y!==void 0&&T.hasValue){var k=T.value;if(y(k,S))return O=k}return O=S}if(k=O,i(M,S))return k;var Y=E(S);return y!==void 0&&y(k,Y)?(M=S,k):(M=S,O=Y)}var U=!1,M,O,R=_===void 0?null:_;return[function(){return N(g())},R===null?void 0:function(){return N(R())}]},[g,_,E,y]);var z=l(m,x[0],x[1]);return f(function(){T.hasValue=!0,T.value=z},[z]),d(z),z},$c}var gg;function U2(){return gg||(gg=1,Kc.exports=j2()),Kc.exports}var H2=U2(),L2=I.version.startsWith("19"),z2=Symbol.for(L2?"react.transitional.element":"react.element"),k2=Symbol.for("react.portal"),G2=Symbol.for("react.fragment"),q2=Symbol.for("react.strict_mode"),I2=Symbol.for("react.profiler"),F2=Symbol.for("react.consumer"),V2=Symbol.for("react.context"),P_=Symbol.for("react.forward_ref"),P2=Symbol.for("react.suspense"),Y2=Symbol.for("react.suspense_list"),Dh=Symbol.for("react.memo"),Z2=Symbol.for("react.lazy"),X2=P_,Q2=Dh;function K2(n){if(typeof n=="object"&&n!==null){const{$$typeof:r}=n;switch(r){case z2:switch(n=n.type,n){case G2:case I2:case q2:case P2:case Y2:return n;default:switch(n=n&&n.$$typeof,n){case V2:case P_:case Z2:case Dh:return n;case F2:return n;default:return r}}case k2:return r}}}function $2(n){return K2(n)===Dh}function J2(n,r,i,l,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:h}){let d=!1,m,g,_,E,y;function x(M,O){return m=M,g=O,_=n(m,g),E=r(l,g),y=i(_,E,g),d=!0,y}function T(){return _=n(m,g),r.dependsOnOwnProps&&(E=r(l,g)),y=i(_,E,g),y}function z(){return n.dependsOnOwnProps&&(_=n(m,g)),r.dependsOnOwnProps&&(E=r(l,g)),y=i(_,E,g),y}function N(){const M=n(m,g),O=!h(M,_);return _=M,O&&(y=i(_,E,g)),y}function U(M,O){const R=!f(O,g),S=!u(M,m,O,g);return m=M,g=O,R&&S?T():R?z():S?N():y}return function(O,R){return d?U(O,R):x(O,R)}}function W2(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:l,...u}){const f=r(n,u),h=i(n,u),d=l(n,u);return J2(f,h,d,n,u)}function eS(n,r){const i={};for(const l in n){const u=n[l];typeof u=="function"&&(i[l]=(...f)=>r(u(...f)))}return i}function eh(n){return function(i){const l=n(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function yg(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function Y_(n,r){return function(l,{displayName:u}){const f=function(d,m){return f.dependsOnOwnProps?f.mapToProps(d,m):f.mapToProps(d,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(d,m){f.mapToProps=n,f.dependsOnOwnProps=yg(n);let g=f(d,m);return typeof g=="function"&&(f.mapToProps=g,f.dependsOnOwnProps=yg(g),g=f(d,m)),g},f}}function Mh(n,r){return(i,l)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${l.wrappedComponentName}.`)}}function tS(n){return n&&typeof n=="object"?eh(r=>eS(n,r)):n?typeof n=="function"?Y_(n):Mh(n,"mapDispatchToProps"):eh(r=>({dispatch:r}))}function nS(n){return n?typeof n=="function"?Y_(n):Mh(n,"mapStateToProps"):eh(()=>({}))}function rS(n,r,i){return{...i,...n,...r}}function aS(n){return function(i,{displayName:l,areMergedPropsEqual:u}){let f=!1,h;return function(m,g,_){const E=n(m,g,_);return f?u(E,h)||(h=E):(f=!0,h=E),h}}}function iS(n){return n?typeof n=="function"?aS(n):Mh(n,"mergeProps"):()=>rS}function sS(n){n()}function lS(){let n=null,r=null;return{clear(){n=null,r=null},notify(){sS(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let l=n;for(;l;)i.push(l),l=l.next;return i},subscribe(i){let l=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:n=u,function(){!l||n===null||(l=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var _g={notify(){},get:()=>[]};function Z_(n,r){let i,l=_g,u=0,f=!1;function h(z){_();const N=l.subscribe(z);let U=!1;return()=>{U||(U=!0,N(),E())}}function d(){l.notify()}function m(){T.onStateChange&&T.onStateChange()}function g(){return f}function _(){u++,i||(i=r?r.addNestedSub(m):n.subscribe(m),l=lS())}function E(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=_g)}function y(){f||(f=!0,_())}function x(){f&&(f=!1,E())}const T={addNestedSub:h,notifyNestedSubs:d,handleChangeWrapper:m,isSubscribed:g,trySubscribe:y,tryUnsubscribe:x,getListeners:()=>l};return T}var oS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uS=oS(),cS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",fS=cS(),hS=()=>uS||fS?I.useLayoutEffect:I.useEffect,oo=hS();function bg(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function Jc(n,r){if(bg(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;const i=Object.keys(n),l=Object.keys(r);if(i.length!==l.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!bg(n[i[u]],r[i[u]]))return!1;return!0}var dS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},pS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},X_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gS={[X2]:pS,[Q2]:X_};function vg(n){return $2(n)?X_:gS[n.$$typeof]||dS}var yS=Object.defineProperty,_S=Object.getOwnPropertyNames,Eg=Object.getOwnPropertySymbols,bS=Object.getOwnPropertyDescriptor,vS=Object.getPrototypeOf,Sg=Object.prototype;function th(n,r){if(typeof r!="string"){if(Sg){const f=vS(r);f&&f!==Sg&&th(n,f)}let i=_S(r);Eg&&(i=i.concat(Eg(r)));const l=vg(n),u=vg(r);for(let f=0;f<i.length;++f){const h=i[f];if(!mS[h]&&!(u&&u[h])&&!(l&&l[h])){const d=bS(r,h);try{yS(n,h,d)}catch{}}}}return n}var Wc=Symbol.for("react-redux-context"),ef=typeof globalThis<"u"?globalThis:{};function ES(){if(!I.createContext)return{};const n=ef[Wc]??(ef[Wc]=new Map);let r=n.get(I.createContext);return r||(r=I.createContext(null),n.set(I.createContext,r)),r}var Yn=ES(),SS=[null,null];function TS(n,r,i){oo(()=>n(...r),i)}function xS(n,r,i,l,u,f){n.current=l,i.current=!1,u.current&&(u.current=null,f())}function AS(n,r,i,l,u,f,h,d,m,g,_){if(!n)return()=>{};let E=!1,y=null;const x=()=>{if(E||!d.current)return;const z=r.getState();let N,U;try{N=l(z,u.current)}catch(M){U=M,y=M}U||(y=null),N===f.current?h.current||g():(f.current=N,m.current=N,h.current=!0,_())};return i.onStateChange=x,i.trySubscribe(),x(),()=>{if(E=!0,i.tryUnsubscribe(),i.onStateChange=null,y)throw y}}function OS(n,r){return n===r}function wS(n,r,i,{pure:l,areStatesEqual:u=OS,areOwnPropsEqual:f=Jc,areStatePropsEqual:h=Jc,areMergedPropsEqual:d=Jc,forwardRef:m=!1,context:g=Yn}={}){const _=g,E=nS(n),y=tS(r),x=iS(i),T=!!n;return N=>{const U=N.displayName||N.name||"Component",M=`Connect(${U})`,O={shouldHandleStateChanges:T,displayName:M,wrappedComponentName:U,WrappedComponent:N,initMapStateToProps:E,initMapDispatchToProps:y,initMergeProps:x,areStatesEqual:u,areStatePropsEqual:h,areOwnPropsEqual:f,areMergedPropsEqual:d};function R(Y){const[K,re,ee]=I.useMemo(()=>{const{reactReduxForwardedRef:mt,...An}=Y;return[Y.context,mt,An]},[Y]),le=I.useMemo(()=>{let mt=_;return K!=null&&K.Consumer,mt},[K,_]),ie=I.useContext(le),de=!!Y.store&&!!Y.store.getState&&!!Y.store.dispatch,Fe=!!ie&&!!ie.store,Te=de?Y.store:ie.store,G=Fe?ie.getServerState:Te.getState,X=I.useMemo(()=>W2(Te.dispatch,O),[Te]),[J,_e]=I.useMemo(()=>{if(!T)return SS;const mt=Z_(Te,de?void 0:ie.subscription),An=mt.notifyNestedSubs.bind(mt);return[mt,An]},[Te,de,ie]),w=I.useMemo(()=>de?ie:{...ie,subscription:J},[de,ie,J]),P=I.useRef(void 0),$=I.useRef(ee),Q=I.useRef(void 0),ae=I.useRef(!1),Se=I.useRef(!1),ce=I.useRef(void 0);oo(()=>(Se.current=!0,()=>{Se.current=!1}),[]);const dt=I.useMemo(()=>()=>Q.current&&ee===$.current?Q.current:X(Te.getState(),ee),[Te,ee]),ke=I.useMemo(()=>An=>J?AS(T,Te,J,X,$,P,ae,Se,Q,_e,An):()=>{},[J]);TS(xS,[$,P,ae,ee,Q,_e]);let wt;try{wt=I.useSyncExternalStore(ke,dt,G?()=>X(G(),ee):dt)}catch(mt){throw ce.current&&(mt.message+=`
|
|
58
|
+
The error may be correlated with this previous error:
|
|
59
|
+
${ce.current.stack}
|
|
60
|
+
|
|
61
|
+
`),mt}oo(()=>{ce.current=void 0,Q.current=void 0,P.current=wt});const Tr=I.useMemo(()=>I.createElement(N,{...wt,ref:re}),[re,N,wt]);return I.useMemo(()=>T?I.createElement(le.Provider,{value:w},Tr):Tr,[le,Tr,w])}const k=I.memo(R);if(k.WrappedComponent=N,k.displayName=R.displayName=M,m){const K=I.forwardRef(function(ee,le){return I.createElement(k,{...ee,reactReduxForwardedRef:le})});return K.displayName=M,K.WrappedComponent=N,th(K,N)}return th(k,N)}}var RS=wS;function CS(n){const{children:r,context:i,serverState:l,store:u}=n,f=I.useMemo(()=>{const m=Z_(u);return{store:u,subscription:m,getServerState:l?()=>l:void 0}},[u,l]),h=I.useMemo(()=>u.getState(),[u]);oo(()=>{const{subscription:m}=f;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),h!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[f,h]);const d=i||Yn;return I.createElement(d.Provider,{value:f},r)}var NS=CS;function Bh(n=Yn){return function(){return I.useContext(n)}}var Q_=Bh();function K_(n=Yn){const r=n===Yn?Q_:Bh(n),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var DS=K_();function MS(n=Yn){const r=n===Yn?DS:K_(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var BS=MS(),jS=(n,r)=>n===r;function US(n=Yn){const r=n===Yn?Q_:Bh(n),i=(l,u={})=>{const{equalityFn:f=jS}=typeof u=="function"?{equalityFn:u}:u,h=r(),{store:d,subscription:m,getServerState:g}=h;I.useRef(!0);const _=I.useCallback({[l.name](y){return l(y)}}[l.name],[l]),E=H2.useSyncExternalStoreWithSelector(m.addNestedSub,d.getState,g||d.getState,_,f);return I.useDebugValue(E),E};return Object.assign(i,{withTypes:()=>i}),i}var HS=US(),tf={exports:{}};/*!
|
|
62
|
+
Copyright (c) 2018 Jed Watson.
|
|
63
|
+
Licensed under the MIT License (MIT), see
|
|
64
|
+
http://jedwatson.github.io/classnames
|
|
65
|
+
*/var Tg;function LS(){return Tg||(Tg=1,function(n){(function(){var r={}.hasOwnProperty;function i(){for(var f="",h=0;h<arguments.length;h++){var d=arguments[h];d&&(f=u(f,l(d)))}return f}function l(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return i.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var h="";for(var d in f)r.call(f,d)&&f[d]&&(h=u(h,d));return h}function u(f,h){return h?f?f+" "+h:f+h:f}n.exports?(i.default=i,n.exports=i):window.classNames=i})()}(tf)),tf.exports}var zS=LS();const Z=yo(zS);var nh=function(n,r){return nh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(i[u]=l[u])},nh(n,r)};function Wt(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");nh(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var te=function(){return te=Object.assign||function(r){for(var i,l=1,u=arguments.length;l<u;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(r[f]=i[f])}return r},te.apply(this,arguments)};function _o(n,r){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&r.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(n);u<l.length;u++)r.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(n,l[u])&&(i[l[u]]=n[l[u]]);return i}function bn(n,r,i){if(i||arguments.length===2)for(var l=0,u=r.length,f;l<u;l++)(f||!(l in r))&&(f||(f=Array.prototype.slice.call(r,0,l)),f[l]=r[l]);return n.concat(f||Array.prototype.slice.call(r))}function yn(n,r){var i=r&&r.cache?r.cache:PS,l=r&&r.serializer?r.serializer:FS,u=r&&r.strategy?r.strategy:qS;return u(n,{cache:i,serializer:l})}function kS(n){return n==null||typeof n=="number"||typeof n=="boolean"}function GS(n,r,i,l){var u=kS(l)?l:i(l),f=r.get(u);return typeof f>"u"&&(f=n.call(this,l),r.set(u,f)),f}function $_(n,r,i){var l=Array.prototype.slice.call(arguments,3),u=i(l),f=r.get(u);return typeof f>"u"&&(f=n.apply(this,l),r.set(u,f)),f}function J_(n,r,i,l,u){return i.bind(r,n,l,u)}function qS(n,r){var i=n.length===1?GS:$_;return J_(n,this,i,r.cache.create(),r.serializer)}function IS(n,r){return J_(n,this,$_,r.cache.create(),r.serializer)}var FS=function(){return JSON.stringify(arguments)},VS=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(r){return this.cache[r]},n.prototype.set=function(r,i){this.cache[r]=i},n}(),PS={create:function(){return new VS}},_n={variadic:IS},xe;(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"})(xe||(xe={}));var qe;(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"})(qe||(qe={}));var Ga;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Ga||(Ga={}));function xg(n){return n.type===qe.literal}function YS(n){return n.type===qe.argument}function W_(n){return n.type===qe.number}function eb(n){return n.type===qe.date}function tb(n){return n.type===qe.time}function nb(n){return n.type===qe.select}function rb(n){return n.type===qe.plural}function ZS(n){return n.type===qe.pound}function ab(n){return n.type===qe.tag}function ib(n){return!!(n&&typeof n=="object"&&n.type===Ga.number)}function rh(n){return!!(n&&typeof n=="object"&&n.type===Ga.dateTime)}var sb=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,XS=/(?:[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 QS(n){var r={};return n.replace(XS,function(i){var l=i.length;switch(i[0]){case"G":r.era=l===4?"long":l===5?"narrow":"short";break;case"y":r.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":r.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":r.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":r.weekday=l===4?"long":l===5?"narrow":"short";break;case"e":if(l<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][l-4];break;case"c":if(l<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][l-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][l-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][l-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][l-1];break;case"k":r.hourCycle="h24",r.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":r.minute=["numeric","2-digit"][l-1];break;case"s":r.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":r.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""}),r}var KS=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function $S(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(KS).filter(function(y){return y.length>0}),i=[],l=0,u=r;l<u.length;l++){var f=u[l],h=f.split("/");if(h.length===0)throw new Error("Invalid number skeleton");for(var d=h[0],m=h.slice(1),g=0,_=m;g<_.length;g++){var E=_[g];if(E.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:m})}return i}function JS(n){return n.replace(/^(.*?)-/,"")}var Ag=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,lb=/^(@+)?(\+|#+)?[rs]?$/g,WS=/(\*)(0+)|(#+)(0+)|(0+)/g,ob=/^(0+)$/;function Og(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(lb,function(i,l,u){return typeof u!="string"?(r.minimumSignificantDigits=l.length,r.maximumSignificantDigits=l.length):u==="+"?r.minimumSignificantDigits=l.length:l[0]==="#"?r.maximumSignificantDigits=l.length:(r.minimumSignificantDigits=l.length,r.maximumSignificantDigits=l.length+(typeof u=="string"?u.length:0)),""}),r}function ub(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 eT(n){var r;if(n[0]==="E"&&n[1]==="E"?(r={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(r={notation:"scientific"},n=n.slice(1)),r){var i=n.slice(0,2);if(i==="+!"?(r.signDisplay="always",n=n.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",n=n.slice(2)),!ob.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function wg(n){var r={},i=ub(n);return i||r}function tT(n){for(var r={},i=0,l=n;i<l.length;i++){var u=l[i];switch(u.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=u.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=JS(u.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=te(te(te({},r),{notation:"scientific"}),u.options.reduce(function(m,g){return te(te({},m),wg(g))},{}));continue;case"engineering":r=te(te(te({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return te(te({},m),wg(g))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.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(WS,function(m,g,_,E,y,x){if(g)r.minimumIntegerDigits=_.length;else{if(E&&y)throw new Error("We currently do not support maximum integer digits");if(x)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ob.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(Ag.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(Ag,function(m,g,_,E,y,x){return _==="*"?r.minimumFractionDigits=g.length:E&&E[0]==="#"?r.maximumFractionDigits=E.length:y&&x?(r.minimumFractionDigits=y.length,r.maximumFractionDigits=y.length+x.length):(r.minimumFractionDigits=g.length,r.maximumFractionDigits=g.length),""});var f=u.options[0];f==="w"?r=te(te({},r),{trailingZeroDisplay:"stripIfInteger"}):f&&(r=te(te({},r),Og(f)));continue}if(lb.test(u.stem)){r=te(te({},r),Og(u.stem));continue}var h=ub(u.stem);h&&(r=te(te({},r),h));var d=eT(u.stem);d&&(r=te(te({},r),d))}return r}var wl={"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 nT(n,r){for(var i="",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 h=1+(f&1),d=f<2?1:3+(f>>1),m="a",g=rT(r);for((g=="H"||g=="k")&&(d=0);d-- >0;)i+=m;for(;h-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function rT(n){var r=n.hourCycle;if(r===void 0&&n.hourCycles&&n.hourCycles.length&&(r=n.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,l;i!=="root"&&(l=n.maximize().region);var u=wl[l||""]||wl[i||""]||wl["".concat(i,"-001")]||wl["001"];return u[0]}var nf,aT=new RegExp("^".concat(sb.source,"*")),iT=new RegExp("".concat(sb.source,"*$"));function we(n,r){return{start:n,end:r}}var sT=!!String.prototype.startsWith&&"_a".startsWith("a",1),lT=!!String.fromCodePoint,oT=!!Object.fromEntries,uT=!!String.prototype.codePointAt,cT=!!String.prototype.trimStart,fT=!!String.prototype.trimEnd,hT=!!Number.isSafeInteger,dT=hT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},ah=!0;try{var mT=fb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ah=((nf=mT.exec("a"))===null||nf===void 0?void 0:nf[0])==="a"}catch{ah=!1}var Rg=sT?function(r,i,l){return r.startsWith(i,l)}:function(r,i,l){return r.slice(l,l+i.length)===i},ih=lT?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var l="",u=r.length,f=0,h;u>f;){if(h=r[f++],h>1114111)throw RangeError(h+" is not a valid code point");l+=h<65536?String.fromCharCode(h):String.fromCharCode(((h-=65536)>>10)+55296,h%1024+56320)}return l},Cg=oT?Object.fromEntries:function(r){for(var i={},l=0,u=r;l<u.length;l++){var f=u[l],h=f[0],d=f[1];i[h]=d}return i},cb=uT?function(r,i){return r.codePointAt(i)}:function(r,i){var l=r.length;if(!(i<0||i>=l)){var u=r.charCodeAt(i),f;return u<55296||u>56319||i+1===l||(f=r.charCodeAt(i+1))<56320||f>57343?u:(u-55296<<10)+(f-56320)+65536}},pT=cT?function(r){return r.trimStart()}:function(r){return r.replace(aT,"")},gT=fT?function(r){return r.trimEnd()}:function(r){return r.replace(iT,"")};function fb(n,r){return new RegExp(n,r)}var sh;if(ah){var Ng=fb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");sh=function(r,i){var l;Ng.lastIndex=i;var u=Ng.exec(r);return(l=u[1])!==null&&l!==void 0?l:""}}else sh=function(r,i){for(var l=[];;){var u=cb(r,i);if(u===void 0||hb(u)||vT(u))break;l.push(u),i+=u>=65536?2:1}return ih.apply(void 0,l)};var yT=function(){function n(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.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(r,i,l){for(var u=[];!this.isEOF();){var f=this.char();if(f===123){var h=this.parseArgument(r,l);if(h.err)return h;u.push(h.val)}else{if(f===125&&r>0)break;if(f===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),u.push({type:qe.pound,location:we(d,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(xe.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&lh(this.peek()||0)){var h=this.parseTag(r,i);if(h.err)return h;u.push(h.val)}else{var h=this.parseLiteral(r,i);if(h.err)return h;u.push(h.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(r,i){var l=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:qe.literal,value:"<".concat(u,"/>"),location:we(l,this.clonePosition())},err:null};if(this.bumpIf(">")){var f=this.parseMessage(r+1,i,!0);if(f.err)return f;var h=f.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!lh(this.char()))return this.error(xe.INVALID_TAG,we(d,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(xe.UNMATCHED_CLOSING_TAG,we(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:qe.tag,value:u,children:h,location:we(l,this.clonePosition())},err:null}:this.error(xe.INVALID_TAG,we(d,this.clonePosition())))}else return this.error(xe.UNCLOSED_TAG,we(l,this.clonePosition()))}else return this.error(xe.INVALID_TAG,we(l,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&bT(this.char());)this.bump();return this.message.slice(r,this.offset())},n.prototype.parseLiteral=function(r,i){for(var l=this.clonePosition(),u="";;){var f=this.tryParseQuote(i);if(f){u+=f;continue}var h=this.tryParseUnquoted(r,i);if(h){u+=h;continue}var d=this.tryParseLeftAngleBracket();if(d){u+=d;continue}break}var m=we(l,this.clonePosition());return{val:{type:qe.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_T(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(r){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(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var l=this.char();if(l===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(l);this.bump()}return ih.apply(void 0,i)},n.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var l=this.char();return l===60||l===123||l===35&&(i==="plural"||i==="selectordinal")||l===125&&r>0?null:(this.bump(),ih(l))},n.prototype.parseArgument=function(r,i){var l=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(xe.EMPTY_ARGUMENT,we(l,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(xe.MALFORMED_ARGUMENT,we(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:qe.argument,value:u,location:we(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(l,this.clonePosition())):this.parseArgumentOptions(r,i,u,l);default:return this.error(xe.MALFORMED_ARGUMENT,we(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),l=sh(this.message,i),u=i+l.length;this.bumpTo(u);var f=this.clonePosition(),h=we(r,f);return{value:l,location:h}},n.prototype.parseArgumentOptions=function(r,i,l,u){var f,h=this.clonePosition(),d=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(d){case"":return this.error(xe.EXPECT_ARGUMENT_TYPE,we(h,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var _=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var y=gT(E.val);if(y.length===0)return this.error(xe.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var x=we(_,this.clonePosition());g={style:y,styleLocation:x}}var T=this.tryParseArgumentClose(u);if(T.err)return T;var z=we(u,this.clonePosition());if(g&&Rg(g==null?void 0:g.style,"::",0)){var N=pT(g.style.slice(2));if(d==="number"){var E=this.parseNumberSkeletonFromString(N,g.styleLocation);return E.err?E:{val:{type:qe.number,value:l,location:z,style:E.val},err:null}}else{if(N.length===0)return this.error(xe.EXPECT_DATE_TIME_SKELETON,z);var U=N;this.locale&&(U=nT(N,this.locale));var y={type:Ga.dateTime,pattern:U,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?QS(U):{}},M=d==="date"?qe.date:qe.time;return{val:{type:M,value:l,location:z,style:y},err:null}}}return{val:{type:d==="number"?qe.number:d==="date"?qe.date:qe.time,value:l,location:z,style:(f=g==null?void 0:g.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var O=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(xe.EXPECT_SELECT_ARGUMENT_OPTIONS,we(O,te({},O)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),S=0;if(d!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),R=this.parseIdentifierIfPossible(),S=E.val}var k=this.tryParsePluralOrSelectOptions(r,d,i,R);if(k.err)return k;var T=this.tryParseArgumentClose(u);if(T.err)return T;var Y=we(u,this.clonePosition());return d==="select"?{val:{type:qe.select,value:l,options:Cg(k.val),location:Y},err:null}:{val:{type:qe.plural,value:l,options:Cg(k.val),offset:S,pluralType:d==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(xe.INVALID_ARGUMENT_TYPE,we(h,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var l=this.char();switch(l){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(xe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,we(u,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(r,i){var l=[];try{l=$S(r)}catch{return this.error(xe.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ga.number,tokens:l,location:i,parsedOptions:this.shouldParseSkeletons?tT(l):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(r,i,l,u){for(var f,h=!1,d=[],m=new Set,g=u.value,_=u.location;;){if(g.length===0){var E=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,xe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;_=we(E,this.clonePosition()),g=this.message.slice(E.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?xe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:xe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,_);g==="other"&&(h=!0),this.bumpSpace();var x=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?xe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:xe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var T=this.parseMessage(r+1,i,l);if(T.err)return T;var z=this.tryParseArgumentClose(x);if(z.err)return z;d.push([g,{value:T.val,location:we(x,this.clonePosition())}]),m.add(g),this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=f.value,_=f.location}return d.length===0?this.error(i==="select"?xe.EXPECT_SELECT_ARGUMENT_SELECTOR:xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!h?this.error(xe.MISSING_OTHER_CLAUSE,we(this.clonePosition(),this.clonePosition())):{val:d,err:null}},n.prototype.tryParseDecimalInteger=function(r,i){var l=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(l=-1);for(var f=!1,h=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)f=!0,h=h*10+(d-48),this.bump();else break}var m=we(u,this.clonePosition());return f?(h*=l,dT(h)?{val:h,err:null}:this.error(i,m)):this.error(r,m)},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 r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=cb(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},n.prototype.bumpIf=function(r){if(Rg(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(r){var i=this.offset(),l=this.message.indexOf(r,i);return l>=0?(this.bumpTo(l),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&hb(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),l=this.message.charCodeAt(i+(r>=65536?2:1));return l??null},n}();function lh(n){return n>=97&&n<=122||n>=65&&n<=90}function _T(n){return lh(n)||n===47}function bT(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 hb(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function vT(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 oh(n){n.forEach(function(r){if(delete r.location,nb(r)||rb(r))for(var i in r.options)delete r.options[i].location,oh(r.options[i].value);else W_(r)&&ib(r.style)||(eb(r)||tb(r))&&rh(r.style)?delete r.style.location:ab(r)&&oh(r.children)})}function ET(n,r){r===void 0&&(r={}),r=te({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new yT(n,r).parse();if(i.err){var l=SyntaxError(xe[i.err.kind]);throw l.location=i.err.location,l.originalMessage=i.err.message,l}return r!=null&&r.captureLocation||oh(i.val),i.val}var Sn;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Sn||(Sn={}));var Sr=function(n){Wt(r,n);function r(i,l,u){var f=n.call(this,i)||this;return f.code=l,f.originalMessage=u,f}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),Dg=function(n){Wt(r,n);function r(i,l,u,f){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(l,'". Options are "').concat(Object.keys(u).join('", "'),'"'),Sn.INVALID_VALUE,f)||this}return r}(Sr),ST=function(n){Wt(r,n);function r(i,l,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(l),Sn.INVALID_VALUE,u)||this}return r}(Sr),TT=function(n){Wt(r,n);function r(i,l){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(l,'"'),Sn.MISSING_VALUE,l)||this}return r}(Sr),bt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(bt||(bt={}));function xT(n){return n.length<2?n:n.reduce(function(r,i){var l=r[r.length-1];return!l||l.type!==bt.literal||i.type!==bt.literal?r.push(i):l.value+=i.value,r},[])}function db(n){return typeof n=="function"}function no(n,r,i,l,u,f,h){if(n.length===1&&xg(n[0]))return[{type:bt.literal,value:n[0].value}];for(var d=[],m=0,g=n;m<g.length;m++){var _=g[m];if(xg(_)){d.push({type:bt.literal,value:_.value});continue}if(ZS(_)){typeof f=="number"&&d.push({type:bt.literal,value:i.getNumberFormat(r).format(f)});continue}var E=_.value;if(!(u&&E in u))throw new TT(E,h);var y=u[E];if(YS(_)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),d.push({type:typeof y=="string"?bt.literal:bt.object,value:y});continue}if(eb(_)){var x=typeof _.style=="string"?l.date[_.style]:rh(_.style)?_.style.parsedOptions:void 0;d.push({type:bt.literal,value:i.getDateTimeFormat(r,x).format(y)});continue}if(tb(_)){var x=typeof _.style=="string"?l.time[_.style]:rh(_.style)?_.style.parsedOptions:l.time.medium;d.push({type:bt.literal,value:i.getDateTimeFormat(r,x).format(y)});continue}if(W_(_)){var x=typeof _.style=="string"?l.number[_.style]:ib(_.style)?_.style.parsedOptions:void 0;x&&x.scale&&(y=y*(x.scale||1)),d.push({type:bt.literal,value:i.getNumberFormat(r,x).format(y)});continue}if(ab(_)){var T=_.children,z=_.value,N=u[z];if(!db(N))throw new ST(z,"function",h);var U=no(T,r,i,l,u,f),M=N(U.map(function(S){return S.value}));Array.isArray(M)||(M=[M]),d.push.apply(d,M.map(function(S){return{type:typeof S=="string"?bt.literal:bt.object,value:S}}))}if(nb(_)){var O=_.options[y]||_.options.other;if(!O)throw new Dg(_.value,y,Object.keys(_.options),h);d.push.apply(d,no(O.value,r,i,l,u));continue}if(rb(_)){var O=_.options["=".concat(y)];if(!O){if(!Intl.PluralRules)throw new Sr(`Intl.PluralRules is not available in this environment.
|
|
66
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
+
`,Sn.MISSING_INTL_API,h);var R=i.getPluralRules(r,{type:_.pluralType}).select(y-(_.offset||0));O=_.options[R]||_.options.other}if(!O)throw new Dg(_.value,y,Object.keys(_.options),h);d.push.apply(d,no(O.value,r,i,l,u,y-(_.offset||0)));continue}}return xT(d)}function AT(n,r){return r?te(te(te({},n||{}),r||{}),Object.keys(n).reduce(function(i,l){return i[l]=te(te({},n[l]),r[l]||{}),i},{})):n}function OT(n,r){return r?Object.keys(n).reduce(function(i,l){return i[l]=AT(n[l],r[l]),i},te({},n)):n}function rf(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function wT(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:yn(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.NumberFormat).bind.apply(r,bn([void 0],i,!1)))},{cache:rf(n.number),strategy:_n.variadic}),getDateTimeFormat:yn(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.DateTimeFormat).bind.apply(r,bn([void 0],i,!1)))},{cache:rf(n.dateTime),strategy:_n.variadic}),getPluralRules:yn(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.PluralRules).bind.apply(r,bn([void 0],i,!1)))},{cache:rf(n.pluralRules),strategy:_n.variadic})}}var mb=function(){function n(r,i,l,u){i===void 0&&(i=n.defaultLocale);var f=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var g=f.formatToParts(m);if(g.length===1)return g[0].value;var _=g.reduce(function(E,y){return!E.length||y.type!==bt.literal||typeof E[E.length-1]!="string"?E.push(y.value):E[E.length-1]+=y.value,E},[]);return _.length<=1?_[0]||"":_},this.formatToParts=function(m){return no(f.ast,f.locales,f.formatters,f.formats,m,void 0,f.message)},this.resolvedOptions=function(){var m;return{locale:((m=f.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(f.locales)[0]}},this.getAst=function(){return f.ast},this.locales=i,this.resolvedLocale=n.resolveLocale(i),typeof r=="string"){if(this.message=r,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=u||{};h.formatters;var d=_o(h,["formatters"]);this.ast=n.__parse(r,te(te({},d),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=OT(n.formats,l),this.formatters=u&&u.formatters||wT(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(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},n.__parse=ET,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}(),$r;(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"})($r||($r={}));var us=function(n){Wt(r,n);function r(i,l,u){var f=this,h=u?u instanceof Error?u:new Error(String(u)):void 0;return f=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(l,`
|
|
68
|
+
`).concat(h?`
|
|
69
|
+
`.concat(h.message,`
|
|
70
|
+
`).concat(h.stack):""))||this,f.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(f,r),f}return r}(Error),RT=function(n){Wt(r,n);function r(i,l){return n.call(this,$r.UNSUPPORTED_FORMATTER,i,l)||this}return r}(us),CT=function(n){Wt(r,n);function r(i,l){return n.call(this,$r.INVALID_CONFIG,i,l)||this}return r}(us),Mg=function(n){Wt(r,n);function r(i,l){return n.call(this,$r.MISSING_DATA,i,l)||this}return r}(us),en=function(n){Wt(r,n);function r(i,l,u){var f=n.call(this,$r.FORMAT_ERROR,"".concat(i,`
|
|
71
|
+
Locale: `).concat(l,`
|
|
72
|
+
`),u)||this;return f.locale=l,f}return r}(us),af=function(n){Wt(r,n);function r(i,l,u,f){var h=n.call(this,"".concat(i,`
|
|
73
|
+
MessageID: `).concat(u==null?void 0:u.id,`
|
|
74
|
+
Default Message: `).concat(u==null?void 0:u.defaultMessage,`
|
|
75
|
+
Description: `).concat(u==null?void 0:u.description,`
|
|
76
|
+
`),l,f)||this;return h.descriptor=u,h.locale=l,h}return r}(en),NT=function(n){Wt(r,n);function r(i,l){var u=n.call(this,$r.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(l,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(f){var h;return(h=f.value)!==null&&h!==void 0?h:JSON.stringify(f)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(us);function DT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Va(n,r,i){return i===void 0&&(i={}),r.reduce(function(l,u){return u in n?l[u]=n[u]:u in i&&(l[u]=i[u]),l},{})}var MT=function(n){},BT=function(n){},pb={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:MT,onWarn:BT};function gb(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ir(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function jT(n){n===void 0&&(n=gb());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,l=Intl.DisplayNames,u=yn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.DateTimeFormat).bind.apply(d,bn([void 0],m,!1)))},{cache:Ir(n.dateTime),strategy:_n.variadic}),f=yn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.NumberFormat).bind.apply(d,bn([void 0],m,!1)))},{cache:Ir(n.number),strategy:_n.variadic}),h=yn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.PluralRules).bind.apply(d,bn([void 0],m,!1)))},{cache:Ir(n.pluralRules),strategy:_n.variadic});return{getDateTimeFormat:u,getNumberFormat:f,getMessageFormat:yn(function(d,m,g,_){return new mb(d,m,g,te({formatters:{getNumberFormat:f,getDateTimeFormat:u,getPluralRules:h}},_||{}))},{cache:Ir(n.message),strategy:_n.variadic}),getRelativeTimeFormat:yn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(r.bind.apply(r,bn([void 0],d,!1)))},{cache:Ir(n.relativeTime),strategy:_n.variadic}),getPluralRules:h,getListFormat:yn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(i.bind.apply(i,bn([void 0],d,!1)))},{cache:Ir(n.list),strategy:_n.variadic}),getDisplayNames:yn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(l.bind.apply(l,bn([void 0],d,!1)))},{cache:Ir(n.displayNames),strategy:_n.variadic})}}function jh(n,r,i,l){var u=n&&n[r],f;if(u&&(f=u[i]),f)return f;l(new RT("No ".concat(r," format named: ").concat(i)))}function Rl(n,r){return Object.keys(n).reduce(function(i,l){return i[l]=te({timeZone:r},n[l]),i},{})}function Bg(n,r){var i=Object.keys(te(te({},n),r));return i.reduce(function(l,u){return l[u]=te(te({},n[u]||{}),r[u]||{}),l},{})}function jg(n,r){if(!r)return n;var i=mb.formats;return te(te(te({},i),n),{date:Bg(Rl(i.date,r),Rl(n.date||{},r)),time:Bg(Rl(i.time,r),Rl(n.time||{},r))})}var uh=function(n,r,i,l,u){var f=n.locale,h=n.formats,d=n.messages,m=n.defaultLocale,g=n.defaultFormats,_=n.fallbackOnEmptyString,E=n.onError,y=n.timeZone,x=n.defaultRichTextElements;i===void 0&&(i={id:""});var T=i.id,z=i.defaultMessage;DT(!!T,"[@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 N=String(T),U=d&&Object.prototype.hasOwnProperty.call(d,N)&&d[N];if(Array.isArray(U)&&U.length===1&&U[0].type===qe.literal)return U[0].value;if(!l&&U&&typeof U=="string"&&!x)return U.replace(/'\{(.*?)\}'/gi,"{$1}");if(l=te(te({},x),l||{}),h=jg(h,y),g=jg(g,y),!U){if(_===!1&&U==="")return U;if((!z||f&&f.toLowerCase()!==m.toLowerCase())&&E(new NT(i,f)),z)try{var M=r.getMessageFormat(z,m,g,u);return M.format(l)}catch(O){return E(new af('Error formatting default message for: "'.concat(N,'", rendering default message verbatim'),f,i,O)),typeof z=="string"?z:N}return N}try{var M=r.getMessageFormat(U,f,h,te({formatters:r},u||{}));return M.format(l)}catch(O){E(new af('Error formatting message: "'.concat(N,'", using ').concat(z?"default message":"id"," as fallback."),f,i,O))}if(z)try{var M=r.getMessageFormat(z,m,g,u);return M.format(l)}catch(O){E(new af('Error formatting the default message for: "'.concat(N,'", rendering message verbatim'),f,i,O))}return typeof U=="string"?U:typeof z=="string"?z:N},UT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function cs(n,r,i,l){var u=n.locale,f=n.formats,h=n.onError,d=n.timeZone;l===void 0&&(l={});var m=l.format,g=te(te({},d&&{timeZone:d}),m&&jh(f,r,m,h)),_=Va(l,UT,g);return r==="time"&&!_.hour&&!_.minute&&!_.second&&!_.timeStyle&&!_.dateStyle&&(_=te(te({},_),{hour:"numeric",minute:"numeric"})),i(u,_)}function HT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],f=i[1],h=f===void 0?{}:f,d=typeof u=="string"?new Date(u||0):u;try{return cs(n,"date",r,h).format(d)}catch(m){n.onError(new en("Error formatting date.",n.locale,m))}return String(d)}function LT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],f=i[1],h=f===void 0?{}:f,d=typeof u=="string"?new Date(u||0):u;try{return cs(n,"time",r,h).format(d)}catch(m){n.onError(new en("Error formatting time.",n.locale,m))}return String(d)}function zT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],f=i[1],h=i[2],d=h===void 0?{}:h,m=typeof u=="string"?new Date(u||0):u,g=typeof f=="string"?new Date(f||0):f;try{return cs(n,"dateTimeRange",r,d).formatRange(m,g)}catch(_){n.onError(new en("Error formatting date time range.",n.locale,_))}return String(m)}function kT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],f=i[1],h=f===void 0?{}:f,d=typeof u=="string"?new Date(u||0):u;try{return cs(n,"date",r,h).formatToParts(d)}catch(m){n.onError(new en("Error formatting date.",n.locale,m))}return[]}function GT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],f=i[1],h=f===void 0?{}:f,d=typeof u=="string"?new Date(u||0):u;try{return cs(n,"time",r,h).formatToParts(d)}catch(m){n.onError(new en("Error formatting time.",n.locale,m))}return[]}var qT=["style","type","fallback","languageDisplay"];function IT(n,r,i,l){var u=n.locale,f=n.onError,h=Intl.DisplayNames;h||f(new Sr(`Intl.DisplayNames is not available in this environment.
|
|
77
|
+
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
+
`,Sn.MISSING_INTL_API));var d=Va(l,qT);try{return r(u,d).of(i)}catch(m){f(new en("Error formatting display name.",u,m))}}var FT=["type","style"],Ug=Date.now();function VT(n){return"".concat(Ug,"_").concat(n,"_").concat(Ug)}function PT(n,r,i,l){l===void 0&&(l={});var u=yb(n,r,i,l).reduce(function(f,h){var d=h.value;return typeof d!="string"?f.push(d):typeof f[f.length-1]=="string"?f[f.length-1]+=d:f.push(d),f},[]);return u.length===1?u[0]:u.length===0?"":u}function yb(n,r,i,l){var u=n.locale,f=n.onError;l===void 0&&(l={});var h=Intl.ListFormat;h||f(new Sr(`Intl.ListFormat is not available in this environment.
|
|
79
|
+
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
+
`,Sn.MISSING_INTL_API));var d=Va(l,FT);try{var m={},g=i.map(function(_,E){if(typeof _=="object"){var y=VT(E);return m[y]=_,y}return String(_)});return r(u,d).formatToParts(g).map(function(_){return _.type==="literal"?_:te(te({},_),{value:m[_.value]||_.value})})}catch(_){f(new en("Error formatting list.",u,_))}return i}var YT=["type"];function ZT(n,r,i,l){var u=n.locale,f=n.onError;l===void 0&&(l={}),Intl.PluralRules||f(new Sr(`Intl.PluralRules is not available in this environment.
|
|
81
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
|
+
`,Sn.MISSING_INTL_API));var h=Va(l,YT);try{return r(u,h).select(i)}catch(d){f(new en("Error formatting plural.",u,d))}return"other"}var XT=["numeric","style"];function QT(n,r,i){var l=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var h=i.format,d=!!h&&jh(u,"relative",h,f)||{},m=Va(i,XT,d);return r(l,m)}function KT(n,r,i,l,u){u===void 0&&(u={}),l||(l="second");var f=Intl.RelativeTimeFormat;f||n.onError(new Sr(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
|
+
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
+
`,Sn.MISSING_INTL_API));try{return QT(n,r,u).format(i,l)}catch(h){n.onError(new en("Error formatting relative time.",n.locale,h))}return String(i)}var $T=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function _b(n,r,i){var l=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var h=i.format,d=h&&jh(u,"number",h,f)||{},m=Va(i,$T,d);return r(l,m)}function JT(n,r,i,l){l===void 0&&(l={});try{return _b(n,r,l).format(i)}catch(u){n.onError(new en("Error formatting number.",n.locale,u))}return String(i)}function WT(n,r,i,l){l===void 0&&(l={});try{return _b(n,r,l).formatToParts(i)}catch(u){n.onError(new en("Error formatting number.",n.locale,u))}return[]}function ex(n){var r=n?n[Object.keys(n)[0]]:void 0;return typeof r=="string"}function tx(n){n.onWarn&&n.defaultRichTextElements&&ex(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
85
|
+
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
86
|
+
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function nx(n,r){var i=jT(r),l=te(te({},pb),n),u=l.locale,f=l.defaultLocale,h=l.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&h?h(new Mg('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&&h&&h(new Mg('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'))):(h&&h(new CT('"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"),tx(l),te(te({},l),{formatters:i,formatNumber:JT.bind(null,l,i.getNumberFormat),formatNumberToParts:WT.bind(null,l,i.getNumberFormat),formatRelativeTime:KT.bind(null,l,i.getRelativeTimeFormat),formatDate:HT.bind(null,l,i.getDateTimeFormat),formatDateToParts:kT.bind(null,l,i.getDateTimeFormat),formatTime:LT.bind(null,l,i.getDateTimeFormat),formatDateTimeRange:zT.bind(null,l,i.getDateTimeFormat),formatTimeToParts:GT.bind(null,l,i.getDateTimeFormat),formatPlural:ZT.bind(null,l,i.getPluralRules),formatMessage:uh.bind(null,l,i),$t:uh.bind(null,l,i),formatList:PT.bind(null,l,i.getListFormat),formatListToParts:yb.bind(null,l,i.getListFormat),formatDisplayName:IT.bind(null,l,i.getDisplayNames)})}function rx(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function bb(n){rx(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var vb=te(te({},pb),{textComponent:I.Fragment}),ax={key:42},ix=function(n){return I.isValidElement(n)?I.createElement(I.Fragment,ax,n):n},sx=function(n){var r;return(r=I.Children.map(n,ix))!==null&&r!==void 0?r:[]};function lx(n){return function(r){return n(I.Children.toArray(r))}}function ox(n,r){if(n===r)return!0;if(!n||!r)return!1;var i=Object.keys(n),l=Object.keys(r),u=i.length;if(l.length!==u)return!1;for(var f=0;f<u;f++){var h=i[f];if(n[h]!==r[h]||!Object.prototype.hasOwnProperty.call(r,h))return!1}return!0}var sf={exports:{}},De={};/** @license React v16.13.1
|
|
87
|
+
* react-is.production.min.js
|
|
88
|
+
*
|
|
89
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/var Hg;function ux(){if(Hg)return De;Hg=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=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,h=n?Symbol.for("react.provider"):60109,d=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,_=n?Symbol.for("react.forward_ref"):60112,E=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,x=n?Symbol.for("react.memo"):60115,T=n?Symbol.for("react.lazy"):60116,z=n?Symbol.for("react.block"):60121,N=n?Symbol.for("react.fundamental"):60117,U=n?Symbol.for("react.responder"):60118,M=n?Symbol.for("react.scope"):60119;function O(S){if(typeof S=="object"&&S!==null){var k=S.$$typeof;switch(k){case r:switch(S=S.type,S){case m:case g:case l:case f:case u:case E:return S;default:switch(S=S&&S.$$typeof,S){case d:case _:case T:case x:case h:return S;default:return k}}case i:return k}}}function R(S){return O(S)===g}return De.AsyncMode=m,De.ConcurrentMode=g,De.ContextConsumer=d,De.ContextProvider=h,De.Element=r,De.ForwardRef=_,De.Fragment=l,De.Lazy=T,De.Memo=x,De.Portal=i,De.Profiler=f,De.StrictMode=u,De.Suspense=E,De.isAsyncMode=function(S){return R(S)||O(S)===m},De.isConcurrentMode=R,De.isContextConsumer=function(S){return O(S)===d},De.isContextProvider=function(S){return O(S)===h},De.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===r},De.isForwardRef=function(S){return O(S)===_},De.isFragment=function(S){return O(S)===l},De.isLazy=function(S){return O(S)===T},De.isMemo=function(S){return O(S)===x},De.isPortal=function(S){return O(S)===i},De.isProfiler=function(S){return O(S)===f},De.isStrictMode=function(S){return O(S)===u},De.isSuspense=function(S){return O(S)===E},De.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===l||S===g||S===f||S===u||S===E||S===y||typeof S=="object"&&S!==null&&(S.$$typeof===T||S.$$typeof===x||S.$$typeof===h||S.$$typeof===d||S.$$typeof===_||S.$$typeof===N||S.$$typeof===U||S.$$typeof===M||S.$$typeof===z)},De.typeOf=O,De}var Lg;function cx(){return Lg||(Lg=1,sf.exports=ux()),sf.exports}var lf,zg;function fx(){if(zg)return lf;zg=1;var n=cx(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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 h(T){return n.isMemo(T)?u:f[T.$$typeof]||r}var d=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,_=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,y=Object.prototype;function x(T,z,N){if(typeof z!="string"){if(y){var U=E(z);U&&U!==y&&x(T,U,N)}var M=m(z);g&&(M=M.concat(g(z)));for(var O=h(T),R=h(z),S=0;S<M.length;++S){var k=M[S];if(!i[k]&&!(N&&N[k])&&!(R&&R[k])&&!(O&&O[k])){var Y=_(z,k);try{d(T,k,Y)}catch{}}}}return T}return lf=x,lf}fx();var Uh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=I.createContext(null)):I.createContext(null);Uh.Consumer;var hx=Uh.Provider,dx=hx,mx=Uh;function bo(){var n=I.useContext(mx);return bb(n),n}var ch;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(ch||(ch={}));var fh;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(fh||(fh={}));function Eb(n){var r=function(i){var l=bo(),u=i.value,f=i.children,h=_o(i,["value","children"]),d=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?l.formatDateToParts(d,h):l.formatTimeToParts(d,h);return f(m)};return r.displayName=fh[n],r}function fs(n){var r=function(i){var l=bo(),u=i.value,f=i.children,h=_o(i,["value","children"]),d=l[n](u,h);if(typeof f=="function")return f(d);var m=l.textComponent||I.Fragment;return I.createElement(m,null,d)};return r.displayName=ch[n],r}function Sb(n){return n&&Object.keys(n).reduce(function(r,i){var l=n[i];return r[i]=db(l)?lx(l):l,r},{})}var kg=function(n,r,i,l){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var h=Sb(l),d=uh.apply(void 0,bn([n,r,i,h],u,!1));return Array.isArray(d)?sx(d):d},Gg=function(n,r){var i=n.defaultRichTextElements,l=_o(n,["defaultRichTextElements"]),u=Sb(i),f=nx(te(te(te({},vb),l),{defaultRichTextElements:u}),r),h={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 te(te({},f),{formatMessage:kg.bind(null,h,f.formatters),$t:kg.bind(null,h,f.formatters)})};function of(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 px=function(n){Wt(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=gb(),i.state={cache:i.cache,intl:Gg(of(i.props),i.cache),prevConfig:of(i.props)},i}return r.getDerivedStateFromProps=function(i,l){var u=l.prevConfig,f=l.cache,h=of(i);return ox(u,h)?null:{intl:Gg(h,f),prevConfig:h}},r.prototype.render=function(){return bb(this.state.intl),I.createElement(dx,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=vb,r}(I.PureComponent);fs("formatDate");fs("formatTime");fs("formatNumber");fs("formatList");fs("formatDisplayName");Eb("formatDate");Eb("formatTime");const gx="_app_1rj0t_1",yx={app:gx},Pa=BS,kt=HS,Tb="%[a-f0-9]{2}",qg=new RegExp("("+Tb+")|([^%]+?)","gi"),Ig=new RegExp("("+Tb+")+","gi");function hh(n,r){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;r=r||1;const i=n.slice(0,r),l=n.slice(r);return Array.prototype.concat.call([],hh(i),hh(l))}function _x(n){try{return decodeURIComponent(n)}catch{let r=n.match(qg)||[];for(let i=1;i<r.length;i++)n=hh(r,i).join(""),r=n.match(qg)||[];return n}}function bx(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=Ig.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=_x(i[0]);u!==i[0]&&(r[i[0]]=u)}i=Ig.exec(n)}r["%C2"]="�";const l=Object.keys(r);for(const u of l)n=n.replace(new RegExp(u,"g"),r[u]);return n}function vx(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return bx(n)}}function Ex(n,r){const i={};if(Array.isArray(r))for(const l of r){const u=Object.getOwnPropertyDescriptor(n,l);u!=null&&u.enumerable&&Object.defineProperty(i,l,u)}else for(const l of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,l);if(u.enumerable){const f=n[l];r(l,f,n)&&Object.defineProperty(i,l,u)}}return i}function xb(n,r){if(!(typeof n=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||r==="")return[];const i=n.indexOf(r);return i===-1?[]:[n.slice(0,i),n.slice(i+r.length)]}const Sx=n=>n==null,Tx=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),dh=Symbol("encodeFragmentIdentifier");function xx(n){switch(n.arrayFormat){case"index":return r=>(i,l)=>{const u=i.length;return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[Je(r,n),"[",u,"]"].join("")]:[...i,[Je(r,n),"[",Je(u,n),"]=",Je(l,n)].join("")]};case"bracket":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[Je(r,n),"[]"].join("")]:[...i,[Je(r,n),"[]=",Je(l,n)].join("")];case"colon-list-separator":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[Je(r,n),":list="].join("")]:[...i,[Je(r,n),":list=",Je(l,n)].join("")];case"comma":case"separator":case"bracket-separator":{const r=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(l,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?l:(u=u===null?"":u,l.length===0?[[Je(i,n),r,Je(u,n)].join("")]:[[l,Je(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,Je(r,n)]:[...i,[Je(r,n),"=",Je(l,n)].join("")]}}function Ax(n){let r;switch(n.arrayFormat){case"index":return(i,l,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=l;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=l};case"bracket":return(i,l,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=l;return}if(u[i]===void 0){u[i]=[l];return}u[i]=[...u[i],l]};case"colon-list-separator":return(i,l,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=l;return}if(u[i]===void 0){u[i]=[l];return}u[i]=[...u[i],l]};case"comma":case"separator":return(i,l,u)=>{const f=typeof l=="string"&&l.includes(n.arrayFormatSeparator),h=typeof l=="string"&&!f&&Fn(l,n).includes(n.arrayFormatSeparator);l=h?Fn(l,n):l;const d=f||h?l.split(n.arrayFormatSeparator).map(m=>Fn(m,n)):l===null?l:Fn(l,n);u[i]=d};case"bracket-separator":return(i,l,u)=>{const f=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!f){u[i]=l&&Fn(l,n);return}const h=l===null?[]:Fn(l,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=h;return}u[i]=[...u[i],...h]};default:return(i,l,u)=>{if(u[i]===void 0){u[i]=l;return}u[i]=[...[u[i]].flat(),l]}}}function Ab(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Je(n,r){return r.encode?r.strict?Tx(n):encodeURIComponent(n):n}function Fn(n,r){return r.decode?vx(n):n}function Ob(n){return Array.isArray(n)?n.sort():typeof n=="object"?Ob(Object.keys(n)).sort((r,i)=>Number(r)-Number(i)).map(r=>n[r]):n}function wb(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function Ox(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function Fg(n,r,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":i==="string[]"&&r.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&r.arrayFormat!=="none"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?[Number(n)]:i==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):r.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Hh(n){n=wb(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function Lh(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},Ab(r.arrayFormatSeparator);const i=Ax(r),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=r.decode?u.replaceAll("+"," "):u;let[h,d]=xb(f,"=");h===void 0&&(h=f),d=d===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?d:Fn(d,r),i(Fn(h,r),d,l)}for(const[u,f]of Object.entries(l))if(typeof f=="object"&&f!==null&&r.types[u]!=="string")for(const[h,d]of Object.entries(f)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;f[h]=Fg(d,r,m)}else typeof f=="object"&&f!==null&&r.types[u]==="string"?l[u]=Object.values(f).join(r.arrayFormatSeparator):l[u]=Fg(f,r,r.types[u]);return r.sort===!1?l:(r.sort===!0?Object.keys(l).sort():Object.keys(l).sort(r.sort)).reduce((u,f)=>{const h=l[f];return u[f]=h&&typeof h=="object"&&!Array.isArray(h)?Ob(h):h,u},Object.create(null))}function Rb(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},Ab(r.arrayFormatSeparator);const i=h=>r.skipNull&&Sx(n[h])||r.skipEmptyString&&n[h]==="",l=xx(r),u={};for(const[h,d]of Object.entries(n))i(h)||(u[h]=d);const f=Object.keys(u);return r.sort!==!1&&f.sort(r.sort),f.map(h=>{const d=n[h];return d===void 0?"":d===null?Je(h,r):Array.isArray(d)?d.length===0&&r.arrayFormat==="bracket-separator"?Je(h,r)+"[]":d.reduce(l(h),[]).join("&"):Je(h,r)+"="+Je(d,r)}).filter(h=>h.length>0).join("&")}function Cb(n,r){var u;r={decode:!0,...r};let[i,l]=xb(n,"#");return i===void 0&&(i=n),{url:((u=i==null?void 0:i.split("?"))==null?void 0:u[0])??"",query:Lh(Hh(n),r),...r&&r.parseFragmentIdentifier&&l?{fragmentIdentifier:Fn(l,r)}:{}}}function Nb(n,r){r={encode:!0,strict:!0,[dh]:!0,...r};const i=wb(n.url).split("?")[0]||"",l=Hh(n.url),u={...Lh(l,{sort:!1}),...n.query};let f=Rb(u,r);f&&(f=`?${f}`);let h=Ox(n.url);if(typeof n.fragmentIdentifier=="string"){const d=new URL(i);d.hash=n.fragmentIdentifier,h=r[dh]?d.hash:`#${n.fragmentIdentifier}`}return`${i}${f}${h}`}function Db(n,r,i){i={parseFragmentIdentifier:!0,[dh]:!1,...i};const{url:l,query:u,fragmentIdentifier:f}=Cb(n,i);return Nb({url:l,query:Ex(u,r),fragmentIdentifier:f},i)}function wx(n,r,i){const l=Array.isArray(r)?u=>!r.includes(u):(u,f)=>!r(u,f);return Db(n,l,i)}const vo=Object.freeze(Object.defineProperty({__proto__:null,exclude:wx,extract:Hh,parse:Lh,parseUrl:Cb,pick:Db,stringify:Rb,stringifyUrl:Nb},Symbol.toStringTag,{value:"Module"}));var an={},sn={},je={},Cl={},he={},Vg;function It(){return Vg||(Vg=1,Object.defineProperty(he,"__esModule",{value:!0}),he.GUEST_LOCALE_CHANGED=he.DRAWER_CLOSE=he.DRAWER_OPEN=he.CONVERSATION_RATING_FROM_GUEST=he.TRANSCRIPT_ITEM_GUEST_REACTION=he.TRANSCRIPT_MAIL_REQUEST=he.INBOX_CONNECT_REQUEST=he.RESTART_CHAT_REQUEST=he.EVENT_TO_GUEST=he.NLU_REQUEST_EVENT=he.EXPERTS_DISCONNECTED=he.EXPERTS_DISCONNECT_REQUEST=he.EXPERTS_CONNECTED=he.EXPERTS_CONNECT_REQUEST=he.MESSAGE_TO_GUEST=he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=he.MESSAGE_FROM_GUEST=he.GUEST_FEEDBACK_RESPONSE=he.GUEST_DISCONNECTED=he.GUEST_CONNECTED=he.TYPING_OFF=he.TYPING_ON=void 0,he.TYPING_ON="core.typing.on",he.TYPING_OFF="core.typing.off",he.GUEST_CONNECTED="core.guest.connected",he.GUEST_DISCONNECTED="core.guest.disconnected",he.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",he.MESSAGE_FROM_GUEST="core.message.from.guest",he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",he.MESSAGE_TO_GUEST="core.message.to.guest",he.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",he.EXPERTS_CONNECTED="core.experts.connected",he.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",he.EXPERTS_DISCONNECTED="core.experts.disconnected",he.NLU_REQUEST_EVENT="core.nlu.request.event",he.EVENT_TO_GUEST="core.event.to.guest",he.RESTART_CHAT_REQUEST="core.chat.restart.request",he.INBOX_CONNECT_REQUEST="core.inbox.connect.request",he.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",he.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",he.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",he.DRAWER_OPEN="core.drawer.open",he.DRAWER_CLOSE="core.drawer.close",he.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),he}var Pg;function Rx(){if(Pg)return Cl;Pg=1,Object.defineProperty(Cl,"__esModule",{value:!0});const n=It(),r=()=>({type:n.DRAWER_CLOSE});return Cl.default=r,Cl}var Nl={},Yg;function Cx(){if(Yg)return Nl;Yg=1,Object.defineProperty(Nl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:l}});return Nl.default=r,Nl}var Dl={},Zg;function Nx(){if(Zg)return Dl;Zg=1,Object.defineProperty(Dl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Dl.default=r,Dl}var Ml={},Xg;function Dx(){if(Xg)return Ml;Xg=1,Object.defineProperty(Ml,"__esModule",{value:!0});const n=It(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Ml.default=r,Ml}var Bl={},Qg;function Mx(){if(Qg)return Bl;Qg=1,Object.defineProperty(Bl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:l}});return Bl.default=r,Bl}var jl={},Kg;function Bx(){if(Kg)return jl;Kg=1,Object.defineProperty(jl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return jl.default=r,jl}var Ul={},Pe={},$g;function zh(){if($g)return Pe;$g=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.getStringRepresentationFromMessage=Pe.MessageTypeEnum=Pe.AudioMessage=Pe.FileMessage=Pe.ImageMessage=Pe.VideoMessage=Pe.MarkdownMessage=Pe.DetailMessage=Pe.TextMessage=Pe.Message=void 0;class n{constructor(E,y,x=[],T=[]){Ce(this,"type");Ce(this,"sender");Ce(this,"sources");Ce(this,"quickReplies");this.type=E,this.sender=y,this.sources=x,this.quickReplies=T}addQuickReply(E,y){this.quickReplies.push({label:E,payload:y})}}Pe.Message=n;class r extends n{constructor(y,x,T=[],z=[]){super(m.TEXT,x,T,z);Ce(this,"text");this.text=y}}Pe.TextMessage=r;class i extends n{constructor(y,x){super(m.DETAIL,x);Ce(this,"title");Ce(this,"subtitle");Ce(this,"text");Ce(this,"imageUrl");Ce(this,"itemUrl");Ce(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)}}Pe.DetailMessage=i;class l extends n{constructor(y,x,T=[],z=[]){super(m.MARKDOWN,x,T,z);Ce(this,"markdown");this.markdown=y}}Pe.MarkdownMessage=l;class u extends n{constructor(y,x){super(m.VIDEO,x);Ce(this,"url");this.url=y}}Pe.VideoMessage=u;class f extends n{constructor(y,x){super(m.IMAGE,x);Ce(this,"url");this.url=y}}Pe.ImageMessage=f;class h extends n{constructor(y,x){super(m.FILE,x);Ce(this,"url");this.url=y}}Pe.FileMessage=h;class d extends n{constructor(y,x){super(m.AUDIO,x);Ce(this,"url");this.url=y}}Pe.AudioMessage=d;var m;(function(_){_.TEXT="TEXT",_.DETAIL="DETAIL",_.MARKDOWN="MARKDOWN",_.VIDEO="VIDEO",_.IMAGE="IMAGE",_.FILE="FILE",_.AUDIO="AUDIO"})(m||(Pe.MessageTypeEnum=m={}));const g=_=>{switch(_.type){case m.TEXT:return _.text;case m.DETAIL:{const E=_;return`${E.title} // ${E.subtitle}`}case m.MARKDOWN:return _.markdown;case m.VIDEO:return`Video Url: ${_.url}`;case m.IMAGE:return`Image Url: ${_.url}`;case m.FILE:return`File Url: ${_.url}`;case m.AUDIO:return`Audio Url: ${_.url}`;default:throw new Error("Unknown message type "+_.type)}};return Pe.getStringRepresentationFromMessage=g,Pe}var Lt={},Jg;function kh(){if(Jg)return Lt;Jg=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.UserType=Lt.PersonUser=Lt.GuestUser=Lt.BotUser=Lt.User=void 0;class n{constructor(h,d,m,g){Ce(this,"type");Ce(this,"id");Ce(this,"name");Ce(this,"avatar");this.type=h,this.id=d,this.name=m,this.avatar=g}}Lt.User=n;class r extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}Lt.BotUser=r;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}Lt.GuestUser=i;class l extends n{constructor(h,d,m){super(u.PERSON,h,d,m)}}Lt.PersonUser=l;var u;return function(f){f.GUEST="GUEST",f.BOT="BOT",f.PERSON="PERSON"}(u||(Lt.UserType=u={})),Lt}var Wg;function jx(){if(Wg)return Ul;Wg=1,Object.defineProperty(Ul,"__esModule",{value:!0});const n=zh(),r=kh(),i=It(),l=u=>{const f=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:f}};return Ul.default=l,Ul}var Hl={},ey;function Ux(){if(ey)return Hl;ey=1,Object.defineProperty(Hl,"__esModule",{value:!0});const n=zh(),r=kh(),i=It(),l=(u,f={})=>{const h=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:h,payload:f}};return Hl.default=l,Hl}var Ll={},ty;function Hx(){if(ty)return Ll;ty=1,Object.defineProperty(Ll,"__esModule",{value:!0});const n=It(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Ll.default=r,Ll}var zl={},ny;function Lx(){if(ny)return zl;ny=1,Object.defineProperty(zl,"__esModule",{value:!0});const n=It(),r=()=>({type:n.RESTART_CHAT_REQUEST});return zl.default=r,zl}var kl={},ry;function zx(){if(ry)return kl;ry=1,Object.defineProperty(kl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return kl.default=r,kl}var Gl={},ay;function kx(){if(ay)return Gl;ay=1,Object.defineProperty(Gl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:l}});return Gl.default=r,Gl}var iy;function Gx(){if(iy)return je;iy=1;var n=je&&je.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(je,"__esModule",{value:!0}),je.transcriptItemGuestReaction=je.sendMessageToGuest=je.restartChatRequest=je.requestNLUEvent=je.receiveTextMessageWithoutAnalysisFromGuest=je.receiveTextMessageFromGuest=je.openDrawer=je.guestLocaleChanged=je.guestDisconnected=je.guestConnected=je.feedbackFromGuestResponse=je.closeDrawer=void 0;const r=n(Rx());je.closeDrawer=r.default;const i=n(Cx());je.feedbackFromGuestResponse=i.default;const l=n(Nx());je.guestConnected=l.default;const u=n(Dx());je.guestDisconnected=u.default;const f=n(Mx());je.guestLocaleChanged=f.default;const h=n(Bx());je.openDrawer=h.default;const d=n(jx());je.receiveTextMessageFromGuest=d.default;const m=n(Ux());je.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(Hx());je.requestNLUEvent=g.default;const _=n(Lx());je.restartChatRequest=_.default;const E=n(zx());je.sendMessageToGuest=E.default;const y=n(kx());return je.transcriptItemGuestReaction=y.default,je}var uf={},sy;function qx(){return sy||(sy=1,Object.defineProperty(uf,"__esModule",{value:!0})),uf}var ly;function Ix(){return ly||(ly=1,function(n){var r=sn&&sn.__createBinding||(Object.create?function(f,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(f,m,g)}:function(f,h,d,m){m===void 0&&(m=d),f[m]=h[d]}),i=sn&&sn.__setModuleDefault||(Object.create?function(f,h){Object.defineProperty(f,"default",{enumerable:!0,value:h})}:function(f,h){f.default=h}),l=sn&&sn.__importStar||function(){var f=function(h){return f=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},f(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=f(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}(),u=sn&&sn.__exportStar||function(f,h){for(var d in f)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,f,d)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=l(Gx()),n.ActionTypes=l(It()),u(qx(),n)}(sn)),sn}var zt={},cf={},oy;function Fx(){return oy||(oy=1,Object.defineProperty(cf,"__esModule",{value:!0})),cf}var Zi={},uy;function Vx(){if(uy)return Zi;uy=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,l){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,l,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,l){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,l){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,l,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,l,u,f){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,l,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,l){throw new Error("Method not implemented.")}async subscribeToReindex(i,l){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,l){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Zi.NullableKnowledgeBaseAdapter=n,Zi}var cy;function Px(){if(cy)return zt;cy=1;var n=zt&&zt.__createBinding||(Object.create?function(u,f,h,d){d===void 0&&(d=h);var m=Object.getOwnPropertyDescriptor(f,h);(!m||("get"in m?!f.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return f[h]}}),Object.defineProperty(u,d,m)}:function(u,f,h,d){d===void 0&&(d=h),u[d]=f[h]}),r=zt&&zt.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),i=zt&&zt.__importStar||function(){var u=function(f){return u=Object.getOwnPropertyNames||function(h){var d=[];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(d[d.length]=m);return d},u(f)};return function(f){if(f&&f.__esModule)return f;var h={};if(f!=null)for(var d=u(f),m=0;m<d.length;m++)d[m]!=="default"&&n(h,f,d[m]);return r(h,f),h}}();Object.defineProperty(zt,"__esModule",{value:!0}),zt.NullableCmsAdapter=zt.KnowledgeBase=void 0,zt.KnowledgeBase=i(Fx());const l=Vx();return zt.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},zt}var Fr={},ff={},fy;function Yx(){return fy||(fy=1,Object.defineProperty(ff,"__esModule",{value:!0})),ff}var hf={},hy;function Zx(){return hy||(hy=1,Object.defineProperty(hf,"__esModule",{value:!0})),hf}var df={},dy;function Xx(){return dy||(dy=1,Object.defineProperty(df,"__esModule",{value:!0})),df}var mf={},my;function Qx(){return my||(my=1,Object.defineProperty(mf,"__esModule",{value:!0})),mf}var Xi={},py;function Kx(){if(py)return Xi;py=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.checkMiddlewareCondition=void 0;const n=async(r,i,l)=>(Array.isArray(r)?r:[r]).reduce(async(f,h)=>await f?await h(i,l):!1,Promise.resolve(!0));return Xi.checkMiddlewareCondition=n,Xi}var pf={},gy;function $x(){return gy||(gy=1,Object.defineProperty(pf,"__esModule",{value:!0})),pf}var gf={},yy;function Jx(){return yy||(yy=1,Object.defineProperty(gf,"__esModule",{value:!0})),gf}var yf={},_y;function Wx(){return _y||(_y=1,Object.defineProperty(yf,"__esModule",{value:!0})),yf}var by;function eA(){return by||(by=1,function(n){var r=Fr&&Fr.__createBinding||(Object.create?function(l,u,f,h){h===void 0&&(h=f);var d=Object.getOwnPropertyDescriptor(u,f);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,h,d)}:function(l,u,f,h){h===void 0&&(h=f),l[h]=u[f]}),i=Fr&&Fr.__exportStar||function(l,u){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&r(u,l,f)};Object.defineProperty(n,"__esModule",{value:!0}),i(Yx(),n),i(Zx(),n),i(Xx(),n),i(Qx(),n),i(Kx(),n),i($x(),n),i(Jx(),n),i(Wx(),n)}(Fr)),Fr}var Vr={},ln={},vy;function tA(){if(vy)return ln;vy=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.ButtonTypeEnum=ln.PostbackButton=ln.UrlButton=ln.Button=void 0;class n{constructor(f,h){Ce(this,"title");Ce(this,"type");this.title=f,this.type=h}}ln.Button=n;class r extends n{constructor(h,d){super(h,l.WEB_URL);Ce(this,"url");this.url=d}}ln.UrlButton=r;class i extends n{constructor(h,d){super(h,l.POSTBACK);Ce(this,"payload");this.payload=d}}ln.PostbackButton=i;var l;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(l||(ln.ButtonTypeEnum=l={})),ln}var _f={},Ey;function nA(){return Ey||(Ey=1,Object.defineProperty(_f,"__esModule",{value:!0})),_f}var Qi={},Sy;function rA(){if(Sy)return Qi;Sy=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(Qi.SatisfactionEnum=n={})),Qi}var Ty;function xy(){return Ty||(Ty=1,function(n){var r=Vr&&Vr.__createBinding||(Object.create?function(l,u,f,h){h===void 0&&(h=f);var d=Object.getOwnPropertyDescriptor(u,f);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,h,d)}:function(l,u,f,h){h===void 0&&(h=f),l[h]=u[f]}),i=Vr&&Vr.__exportStar||function(l,u){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&r(u,l,f)};Object.defineProperty(n,"__esModule",{value:!0}),i(tA(),n),i(nA(),n),i(rA(),n),i(zh(),n),i(kh(),n)}(Vr)),Vr}var Ay;function aA(){return Ay||(Ay=1,function(n){var r=an&&an.__createBinding||(Object.create?function(f,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(f,m,g)}:function(f,h,d,m){m===void 0&&(m=d),f[m]=h[d]}),i=an&&an.__setModuleDefault||(Object.create?function(f,h){Object.defineProperty(f,"default",{enumerable:!0,value:h})}:function(f,h){f.default=h}),l=an&&an.__exportStar||function(f,h){for(var d in f)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,f,d)},u=an&&an.__importStar||function(){var f=function(h){return f=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},f(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=f(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,l(Ix(),n),n.CMS=u(Px()),l(eA(),n),l(xy(),n),n.Model=u(xy())}(an)),an}var Ee=aA();const Mb=n=>r=>(n.payload.type!==Ee.ActionTypes.MESSAGE_FROM_GUEST&&r(Ee.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),Bb=n=>(r,i)=>{const{quickReplies:l}=i().chat,u=l.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return r(u?Mb({...u,label:n}):Ee.Actions.receiveTextMessageFromGuest(n))},Gh="MESSAGE_TO_PARENT_PAGE",qh="RESTORE_PREVIOUS_CHAT_MESSAGES",Ih="AUDIO_MESSAGE_FROM_USER",iA="EXPORT_TRANSCRIPT",Fh="RECEIVE_SPEECH_TRANSCRIPTION",Vh="ENABLE_CONVERSATION_RATING",jb="LOAD_SOURCE_INFOS_RESPONSE",Ub="LOAD_SOURCE_INFOS_ERROR",Ph="LOAD_SOURCE_INFOS_REQUEST",Yh="CLOSE_SOURCE_INFOS",sA="webclient.get.started",Hb="webclient.window.expand",Lb="webclient.window.close",zb="webclient.transcript.pdf.download",lA=[Gh,qh,Ih,iA,Fh,Vh,Ph,Yh],oA=n=>({type:Ih,buffer:n}),uA=n=>({type:Fh,transcription:n}),cA=n=>({type:Ee.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),fA=()=>({type:zb}),hA=({rating:n})=>({type:Vh,payload:{rating:n}}),dA=(n,r)=>({type:Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),kb=n=>Ee.Actions.requestNLUEvent(n),mA=n=>({type:qh,messages:n}),pA=n=>{switch(n.type){case Ee.ButtonTypeEnum.WEB_URL:return Gb(n.url);case Ee.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},gA=n=>Gb(n),Gb=n=>({type:Gh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function ql(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)n[l]=i[l]}return n}var yA={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 mh(n,r){function i(u,f,h){if(!(typeof document>"u")){h=ql({},r,h),typeof h.expires=="number"&&(h.expires=new Date(Date.now()+h.expires*864e5)),h.expires&&(h.expires=h.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var m in h)h[m]&&(d+="; "+m,h[m]!==!0&&(d+="="+h[m].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+d}}function l(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],h={},d=0;d<f.length;d++){var m=f[d].split("="),g=m.slice(1).join("=");try{var _=decodeURIComponent(m[0]);if(h[_]=n.read(g,_),u===_)break}catch{}}return u?h[u]:h}}return Object.create({set:i,get:l,remove:function(u,f){i(u,"",ql({},f,{expires:-1}))},withAttributes:function(u){return mh(this.converter,ql({},this.attributes,u))},withConverter:function(u){return mh(ql({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var Il=mh(yA,{path:"/"});const ct=[];for(let n=0;n<256;++n)ct.push((n+256).toString(16).slice(1));function _A(n,r=0){return(ct[n[r+0]]+ct[n[r+1]]+ct[n[r+2]]+ct[n[r+3]]+"-"+ct[n[r+4]]+ct[n[r+5]]+"-"+ct[n[r+6]]+ct[n[r+7]]+"-"+ct[n[r+8]]+ct[n[r+9]]+"-"+ct[n[r+10]]+ct[n[r+11]]+ct[n[r+12]]+ct[n[r+13]]+ct[n[r+14]]+ct[n[r+15]]).toLowerCase()}let bf;const bA=new Uint8Array(16);function vA(){if(!bf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");bf=crypto.getRandomValues.bind(crypto)}return bf(bA)}const EA=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Oy={randomUUID:EA};function ph(n,r,i){var u;if(Oy.randomUUID&&!n)return Oy.randomUUID();n=n||{};const l=n.random??((u=n.rng)==null?void 0:u.call(n))??vA();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,_A(l)}function ft(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var SA=typeof Symbol=="function"&&Symbol.observable||"@@observable",wy=SA,vf=()=>Math.random().toString(36).substring(7).split("").join("."),TA={INIT:`@@redux/INIT${vf()}`,REPLACE:`@@redux/REPLACE${vf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vf()}`},uo=TA;function Zh(n){if(typeof n!="object"||n===null)return!1;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r||Object.getPrototypeOf(n)===null}function qb(n,r,i){if(typeof n!="function")throw new Error(ft(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ft(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ft(1));return i(qb)(n,r)}let l=n,u=r,f=new Map,h=f,d=0,m=!1;function g(){h===f&&(h=new Map,f.forEach((N,U)=>{h.set(U,N)}))}function _(){if(m)throw new Error(ft(3));return u}function E(N){if(typeof N!="function")throw new Error(ft(4));if(m)throw new Error(ft(5));let U=!0;g();const M=d++;return h.set(M,N),function(){if(U){if(m)throw new Error(ft(6));U=!1,g(),h.delete(M),f=null}}}function y(N){if(!Zh(N))throw new Error(ft(7));if(typeof N.type>"u")throw new Error(ft(8));if(typeof N.type!="string")throw new Error(ft(17));if(m)throw new Error(ft(9));try{m=!0,u=l(u,N)}finally{m=!1}return(f=h).forEach(M=>{M()}),N}function x(N){if(typeof N!="function")throw new Error(ft(10));l=N,y({type:uo.REPLACE})}function T(){const N=E;return{subscribe(U){if(typeof U!="object"||U===null)throw new Error(ft(11));function M(){const R=U;R.next&&R.next(_())}return M(),{unsubscribe:N(M)}},[wy](){return this}}}return y({type:uo.INIT}),{dispatch:y,subscribe:E,getState:_,replaceReducer:x,[wy]:T}}function xA(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:uo.INIT})>"u")throw new Error(ft(12));if(typeof i(void 0,{type:uo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ft(13))})}function Ib(n){const r=Object.keys(n),i={};for(let f=0;f<r.length;f++){const h=r[f];typeof n[h]=="function"&&(i[h]=n[h])}const l=Object.keys(i);let u;try{xA(i)}catch(f){u=f}return function(h={},d){if(u)throw u;let m=!1;const g={};for(let _=0;_<l.length;_++){const E=l[_],y=i[E],x=h[E],T=y(x,d);if(typeof T>"u")throw d&&d.type,new Error(ft(14));g[E]=T,m=m||T!==x}return m=m||l.length!==Object.keys(h).length,m?g:h}}function co(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...l)=>r(i(...l)))}function AA(...n){return r=>(i,l)=>{const u=r(i,l);let f=()=>{throw new Error(ft(15))};const h={getState:u.getState,dispatch:(m,...g)=>f(m,...g)},d=n.map(m=>m(h));return f=co(...d)(u.dispatch),{...u,dispatch:f}}}function OA(n){return Zh(n)&&"type"in n&&typeof n.type=="string"}var Fb=Symbol.for("immer-nothing"),Ry=Symbol.for("immer-draftable"),Gt=Symbol.for("immer-state");function cn(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var qa=Object.getPrototypeOf;function Jr(n){return!!n&&!!n[Gt]}function Zn(n){var r;return n?Vb(n)||Array.isArray(n)||!!n[Ry]||!!((r=n.constructor)!=null&&r[Ry])||So(n)||To(n):!1}var wA=Object.prototype.constructor.toString();function Vb(n){if(!n||typeof n!="object")return!1;const r=qa(n);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===wA}function fo(n,r){Eo(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,l)=>r(l,i,n))}function Eo(n){const r=n[Gt];return r?r.type_:Array.isArray(n)?1:So(n)?2:To(n)?3:0}function gh(n,r){return Eo(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function Pb(n,r,i){const l=Eo(n);l===2?n.set(r,i):l===3?n.add(i):n[r]=i}function RA(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function So(n){return n instanceof Map}function To(n){return n instanceof Set}function Xr(n){return n.copy_||n.base_}function yh(n,r){if(So(n))return new Map(n);if(To(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=Vb(n);if(r===!0||r==="class_only"&&!i){const l=Object.getOwnPropertyDescriptors(n);delete l[Gt];let u=Reflect.ownKeys(l);for(let f=0;f<u.length;f++){const h=u[f],d=l[h];d.writable===!1&&(d.writable=!0,d.configurable=!0),(d.get||d.set)&&(l[h]={configurable:!0,writable:!0,enumerable:d.enumerable,value:n[h]})}return Object.create(qa(n),l)}else{const l=qa(n);if(l!==null&&i)return{...n};const u=Object.create(l);return Object.assign(u,n)}}function Xh(n,r=!1){return xo(n)||Jr(n)||!Zn(n)||(Eo(n)>1&&(n.set=n.add=n.clear=n.delete=CA),Object.freeze(n),r&&Object.entries(n).forEach(([i,l])=>Xh(l,!0))),n}function CA(){cn(2)}function xo(n){return Object.isFrozen(n)}var NA={};function Wr(n){const r=NA[n];return r||cn(0,n),r}var as;function Yb(){return as}function DA(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Cy(n,r){r&&(Wr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function _h(n){bh(n),n.drafts_.forEach(MA),n.drafts_=null}function bh(n){n===as&&(as=n.parent_)}function Ny(n){return as=DA(as,n)}function MA(n){const r=n[Gt];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function Dy(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[Gt].modified_&&(_h(r),cn(4)),Zn(n)&&(n=ho(r,n),r.parent_||mo(r,n)),r.patches_&&Wr("Patches").generateReplacementPatches_(i[Gt].base_,n,r.patches_,r.inversePatches_)):n=ho(r,i,[]),_h(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==Fb?n:void 0}function ho(n,r,i){if(xo(r))return r;const l=r[Gt];if(!l)return fo(r,(u,f)=>My(n,l,r,u,f,i)),r;if(l.scope_!==n)return r;if(!l.modified_)return mo(n,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const u=l.copy_;let f=u,h=!1;l.type_===3&&(f=new Set(u),u.clear(),h=!0),fo(f,(d,m)=>My(n,l,u,d,m,i,h)),mo(n,u,!1),i&&n.patches_&&Wr("Patches").generatePatches_(l,i,n.patches_,n.inversePatches_)}return l.copy_}function My(n,r,i,l,u,f,h){if(Jr(u)){const d=f&&r&&r.type_!==3&&!gh(r.assigned_,l)?f.concat(l):void 0,m=ho(n,u,d);if(Pb(i,l,m),Jr(m))n.canAutoFreeze_=!1;else return}else h&&i.add(u);if(Zn(u)&&!xo(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;ho(n,u),(!r||!r.scope_.parent_)&&typeof l!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,l)&&mo(n,u)}}function mo(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Xh(r,i)}function BA(n,r){const i=Array.isArray(n),l={type_:i?1:0,scope_:r?r.scope_:Yb(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,f=Qh;i&&(u=[l],f=is);const{revoke:h,proxy:d}=Proxy.revocable(u,f);return l.draft_=d,l.revoke_=h,d}var Qh={get(n,r){if(r===Gt)return n;const i=Xr(n);if(!gh(i,r))return jA(n,i,r);const l=i[r];return n.finalized_||!Zn(l)?l:l===Ef(n.base_,r)?(Sf(n),n.copy_[r]=Eh(l,n)):l},has(n,r){return r in Xr(n)},ownKeys(n){return Reflect.ownKeys(Xr(n))},set(n,r,i){const l=Zb(Xr(n),r);if(l!=null&&l.set)return l.set.call(n.draft_,i),!0;if(!n.modified_){const u=Ef(Xr(n),r),f=u==null?void 0:u[Gt];if(f&&f.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(RA(i,u)&&(i!==void 0||gh(n.base_,r)))return!0;Sf(n),vh(n)}return n.copy_[r]===i&&(i!==void 0||r in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[r])||(n.copy_[r]=i,n.assigned_[r]=!0),!0},deleteProperty(n,r){return Ef(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,Sf(n),vh(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Xr(n),l=Reflect.getOwnPropertyDescriptor(i,r);return l&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:l.enumerable,value:i[r]}},defineProperty(){cn(11)},getPrototypeOf(n){return qa(n.base_)},setPrototypeOf(){cn(12)}},is={};fo(Qh,(n,r)=>{is[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});is.deleteProperty=function(n,r){return is.set.call(this,n,r,void 0)};is.set=function(n,r,i){return Qh.set.call(this,n[0],r,i,n[0])};function Ef(n,r){const i=n[Gt];return(i?Xr(i):n)[r]}function jA(n,r,i){var u;const l=Zb(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(n.draft_):void 0}function Zb(n,r){if(!(r in n))return;let i=qa(n);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=qa(i)}}function vh(n){n.modified_||(n.modified_=!0,n.parent_&&vh(n.parent_))}function Sf(n){n.copy_||(n.copy_=yh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var UA=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,l)=>{if(typeof r=="function"&&typeof i!="function"){const f=i;i=r;const h=this;return function(m=f,...g){return h.produce(m,_=>i.call(this,_,...g))}}typeof i!="function"&&cn(6),l!==void 0&&typeof l!="function"&&cn(7);let u;if(Zn(r)){const f=Ny(this),h=Eh(r,void 0);let d=!0;try{u=i(h),d=!1}finally{d?_h(f):bh(f)}return Cy(f,l),Dy(u,f)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===Fb&&(u=void 0),this.autoFreeze_&&Xh(u,!0),l){const f=[],h=[];Wr("Patches").generateReplacementPatches_(r,u,f,h),l(f,h)}return u}else cn(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(h,...d)=>this.produceWithPatches(h,m=>r(m,...d));let l,u;return[this.produce(r,i,(h,d)=>{l=h,u=d}),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){Zn(n)||cn(8),Jr(n)&&(n=HA(n));const r=Ny(this),i=Eh(n,void 0);return i[Gt].isManual_=!0,bh(r),i}finishDraft(n,r){const i=n&&n[Gt];(!i||!i.isManual_)&&cn(9);const{scope_:l}=i;return Cy(l,r),Dy(void 0,l)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}i>-1&&(r=r.slice(i+1));const l=Wr("Patches").applyPatches_;return Jr(n)?l(n,r):this.produce(n,u=>l(u,r))}};function Eh(n,r){const i=So(n)?Wr("MapSet").proxyMap_(n,r):To(n)?Wr("MapSet").proxySet_(n,r):BA(n,r);return(r?r.scope_:Yb()).drafts_.push(i),i}function HA(n){return Jr(n)||cn(10,n),Xb(n)}function Xb(n){if(!Zn(n)||xo(n))return n;const r=n[Gt];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=yh(n,r.scope_.immer_.useStrictShallowCopy_)}else i=yh(n,!0);return fo(i,(l,u)=>{Pb(i,l,Xb(u))}),r&&(r.finalized_=!1),i}var qt=new UA,Qb=qt.produce;qt.produceWithPatches.bind(qt);qt.setAutoFreeze.bind(qt);qt.setUseStrictShallowCopy.bind(qt);qt.applyPatches.bind(qt);qt.createDraft.bind(qt);qt.finishDraft.bind(qt);function Kb(n){return({dispatch:i,getState:l})=>u=>f=>typeof f=="function"?f(i,l,n):u(f)}var LA=Kb(),zA=Kb,kA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?co:co.apply(null,arguments)};function By(n,r){function i(...l){if(r){let u=r(...l);if(!u)throw new Error(Vn(0));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 i.toString=()=>`${n}`,i.type=n,i.match=l=>OA(l)&&l.type===n,i}var $b=class ts extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,ts.prototype)}static get[Symbol.species](){return ts}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new ts(...r[0].concat(this)):new ts(...r.concat(this))}};function jy(n){return Zn(n)?Qb(n,()=>{}):n}function Fl(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function GA(n){return typeof n=="boolean"}var qA=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=r??{};let h=new $b;return i&&(GA(i)?h.push(LA):h.push(zA(i.extraArgument))),h},IA="RTK_autoBatch",Uy=n=>r=>{setTimeout(r,n)},FA=(n={type:"raf"})=>r=>(...i)=>{const l=r(...i);let u=!0,f=!1,h=!1;const d=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Uy(10):n.type==="callback"?n.queueNotification:Uy(n.timeout),g=()=>{h=!1,f&&(f=!1,d.forEach(_=>_()))};return Object.assign({},l,{subscribe(_){const E=()=>u&&_(),y=l.subscribe(E);return d.add(_),()=>{y(),d.delete(_)}},dispatch(_){var E;try{return u=!((E=_==null?void 0:_.meta)!=null&&E[IA]),f=!u,f&&(h||(h=!0,m(g))),l.dispatch(_)}finally{u=!0}}})},VA=n=>function(i){const{autoBatch:l=!0}=i??{};let u=new $b(n);return l&&u.push(FA(typeof l=="object"?l:void 0)),u};function PA(n){const r=qA(),{reducer:i=void 0,middleware:l,devTools:u=!0,preloadedState:f=void 0,enhancers:h=void 0}=n||{};let d;if(typeof i=="function")d=i;else if(Zh(i))d=Ib(i);else throw new Error(Vn(1));let m;typeof l=="function"?m=l(r):m=r();let g=co;u&&(g=kA({trace:!1,...typeof u=="object"&&u}));const _=AA(...m),E=VA(_);let y=typeof h=="function"?h(E):E();const x=g(...y);return qb(d,f,x)}function Jb(n){const r={},i=[];let l;const u={addCase(f,h){const d=typeof f=="string"?f:f.type;if(!d)throw new Error(Vn(28));if(d in r)throw new Error(Vn(29));return r[d]=h,u},addMatcher(f,h){return i.push({matcher:f,reducer:h}),u},addDefaultCase(f){return l=f,u}};return n(u),[r,i,l]}function YA(n){return typeof n=="function"}function ZA(n,r){let[i,l,u]=Jb(r),f;if(YA(n))f=()=>jy(n());else{const d=jy(n);f=()=>d}function h(d=f(),m){let g=[i[m.type],...l.filter(({matcher:_})=>_(m)).map(({reducer:_})=>_)];return g.filter(_=>!!_).length===0&&(g=[u]),g.reduce((_,E)=>{if(E)if(Jr(_)){const x=E(_,m);return x===void 0?_:x}else{if(Zn(_))return Qb(_,y=>E(y,m));{const y=E(_,m);if(y===void 0){if(_===null)return _;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return _},d)}return h.getInitialState=f,h}var XA=Symbol.for("rtk-slice-createasyncthunk");function QA(n,r){return`${n}/${r}`}function KA({creators:n}={}){var i;const r=(i=n==null?void 0:n.asyncThunk)==null?void 0:i[XA];return function(u){const{name:f,reducerPath:h=f}=u;if(!f)throw new Error(Vn(11));const d=(typeof u.reducers=="function"?u.reducers(JA()):u.reducers)||{},m=Object.keys(d),g={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},_={addCase(R,S){const k=typeof R=="string"?R:R.type;if(!k)throw new Error(Vn(12));if(k in g.sliceCaseReducersByType)throw new Error(Vn(13));return g.sliceCaseReducersByType[k]=S,_},addMatcher(R,S){return g.sliceMatchers.push({matcher:R,reducer:S}),_},exposeAction(R,S){return g.actionCreators[R]=S,_},exposeCaseReducer(R,S){return g.sliceCaseReducersByName[R]=S,_}};m.forEach(R=>{const S=d[R],k={reducerName:R,type:QA(f,R),createNotation:typeof u.reducers=="function"};eO(S)?nO(k,S,_,r):WA(k,S,_)});function E(){const[R={},S=[],k=void 0]=typeof u.extraReducers=="function"?Jb(u.extraReducers):[u.extraReducers],Y={...R,...g.sliceCaseReducersByType};return ZA(u.initialState,K=>{for(let re in Y)K.addCase(re,Y[re]);for(let re of g.sliceMatchers)K.addMatcher(re.matcher,re.reducer);for(let re of S)K.addMatcher(re.matcher,re.reducer);k&&K.addDefaultCase(k)})}const y=R=>R,x=new Map,T=new WeakMap;let z;function N(R,S){return z||(z=E()),z(R,S)}function U(){return z||(z=E()),z.getInitialState()}function M(R,S=!1){function k(K){let re=K[R];return typeof re>"u"&&S&&(re=Fl(T,k,U)),re}function Y(K=y){const re=Fl(x,S,()=>new WeakMap);return Fl(re,K,()=>{const ee={};for(const[le,ie]of Object.entries(u.selectors??{}))ee[le]=$A(ie,K,()=>Fl(T,K,U),S);return ee})}return{reducerPath:R,getSelectors:Y,get selectors(){return Y(k)},selectSlice:k}}const O={name:f,reducer:N,actions:g.actionCreators,caseReducers:g.sliceCaseReducersByName,getInitialState:U,...M(h),injectInto(R,{reducerPath:S,...k}={}){const Y=S??h;return R.inject({reducerPath:Y,reducer:N},k),{...O,...M(Y,!0)}}};return O}}function $A(n,r,i,l){function u(f,...h){let d=r(f);return typeof d>"u"&&l&&(d=i()),n(d,...h)}return u.unwrapped=n,u}var Kh=KA();function JA(){function n(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return n.withTypes=()=>n,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:n}}function WA({type:n,reducerName:r,createNotation:i},l,u){let f,h;if("reducer"in l){if(i&&!tO(l))throw new Error(Vn(17));f=l.reducer,h=l.prepare}else f=l;u.addCase(n,f).exposeCaseReducer(r,f).exposeAction(r,h?By(n,h):By(n))}function eO(n){return n._reducerDefinitionType==="asyncThunk"}function tO(n){return n._reducerDefinitionType==="reducerWithPrepare"}function nO({type:n,reducerName:r},i,l,u){if(!u)throw new Error(Vn(18));const{payloadCreator:f,fulfilled:h,pending:d,rejected:m,settled:g,options:_}=i,E=u(n,f,_);l.exposeAction(r,E),h&&l.addCase(E.fulfilled,h),d&&l.addCase(E.pending,d),m&&l.addCase(E.rejected,m),g&&l.addMatcher(E.settled,g),l.exposeCaseReducer(r,{fulfilled:h||Vl,pending:d||Vl,rejected:m||Vl,settled:g||Vl})}function Vl(){}function Vn(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const rO={formValues:{}},Wb=Kh({name:"start-screen",initialState:rO,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload}}}),{startChat:aO,showStartScreen:iO}=Wb.actions,sO=Wb.reducer,ev="RESET_CHAT_STATE",lO=()=>({type:Lb}),oO=()=>({type:ev}),Hy=n=>(r,i)=>{const l=i();return r({type:Ph,payload:{chunkId:n}}),fetch(`/cms/public/vector-store/chunks/${n}`,{headers:{"Accept-Language":l.intl.locale}}).then(u=>{if(!u.ok)throw r({type:Ub}),new Error(`HTTP error! Status: ${u.status}`);return u.json()}).then(u=>{const f={...u,chunkId:n};r({type:jb,payload:f})})},uO=()=>({type:Yh}),$h="CONNECT",Jh="CONNECTING",Wh="CONNECTED",ed="DISCONNECTED",td="RECONNECTED",nd="RESTORE_SESSION_ID",Ao="START",Oo="CLEAR_SESSION_ID",cO=[$h,Jh,Wh,ed,td,nd],fO=(n,r)=>({type:$h,clientName:n,querystrings:r}),hO=n=>({type:nd,sessionId:n}),dO=()=>({type:Jh}),mO=()=>({type:Wh}),pO=()=>({type:ed}),gO=()=>({type:td}),tv=(n,r)=>(i,l)=>{const u=l().connection,f=l().startScreen.formValues;let h=u.sessionId;h===void 0&&(h=ph());let d=u.userId;if(d===void 0){const m=Il.get("bubble-chat-user-id")||Il.get("bubble-chat-userId")||Il.get("bf-webclient-userId");d=m||ph(),Il.set("bubble-chat-user-id",d)}i({type:Ao,payload:{sessionId:h,userId:d,clientName:n,querystrings:{...r,...f}}})},wo=(n,r)=>(i,l)=>{const u=l().connection.sessionId||"";if(i(yO(u)),i(oO()),l().settings.enableStartScreen)i(iO());else return i(tv(n,r))},yO=n=>({type:Oo,payload:{sessionId:n}}),et=()=>{const n=bo();return i=>{const l=n.formatMessage({id:i});return l===i?void 0:l}};var Kr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Kr||{}),po=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(po||{});const _O="_container_q2uun_1",bO="_chatcontent_q2uun_6",vO="_accessabilityHidden_q2uun_12",Tf={container:_O,chatcontent:bO,accessabilityHidden:vO},EO="_messageContainer_1m8fy_1",SO="_messages_1m8fy_13",Ly={messageContainer:EO,messages:SO};function Qr(){return Qr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(n[l]=i[l])}return n},Qr.apply(this,arguments)}const TO=["children","options"],ue={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 zy;(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"})(zy||(zy={}));const ky=["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,r)=>(n[r.toLowerCase()]=r,n),{class:"className",for:"htmlFor"}),Gy={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},xO=["style","script"],AO=["src","href","data","formAction","srcDoc","action"],OO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,wO=/mailto:/i,RO=/\n{2,}$/,nv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,CO=/^ *> ?/gm,NO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,DO=/^ {2,}\n/,MO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,rv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,av=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,BO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,jO=/^(?:\n *)*\n/,UO=/\r\n?/g,HO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,LO=/^\[\^([^\]]+)]/,zO=/\f/g,kO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,GO=/^\s*?\[(x|\s)\]/,iv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,sv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,lv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Sh=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,qO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,ov=/^<!--[\s\S]*?(?:-->)/,IO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Th=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,FO=/^\{.*\}$/,VO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,PO=/^<([^ >]+@[^ >]+)>/,YO=/^<([^ >]+:\/[^ >]+)>/,ZO=/-([a-z])?/gi,uv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,XO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,QO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,KO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,$O=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,JO=/\t/g,WO=/(^ *\||\| *$)/g,ew=/^ *:-+: *$/,tw=/^ *:-+ *$/,nw=/^ *-+: *$/,Ro="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",rw=new RegExp(`^([*_])\\1${Ro}\\1\\1(?!\\1)`),aw=new RegExp(`^([*_])${Ro}\\1(?!\\1)`),iw=new RegExp(`^(==)${Ro}\\1`),sw=new RegExp(`^(~~)${Ro}\\1`),lw=/^\\([^0-9A-Za-z\s])/,qy=/\\([^0-9A-Za-z\s])/g,ow=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,uw=/^\n+/,cw=/^([ \t]*)/,fw=/\\([^\\])/g,hw=/(?:^|\n)( *)$/,rd="(?:\\d+\\.)",ad="(?:[*+-])";function cv(n){return"( *)("+(n===1?rd:ad)+") +"}const fv=cv(1),hv=cv(2);function dv(n){return new RegExp("^"+(n===1?fv:hv))}const dw=dv(1),mw=dv(2);function mv(n){return new RegExp("^"+(n===1?fv:hv)+"[^\\n]*(?:\\n(?!\\1"+(n===1?rd:ad)+" )[^\\n]*)*(\\n|$)","gm")}const pw=mv(1),gw=mv(2);function pv(n){const r=n===1?rd:ad;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const gv=pv(1),yv=pv(2);function Iy(n,r){const i=r===1,l=i?gv:yv,u=i?pw:gw,f=i?dw:mw;return{match:Ia(function(h,d){const m=hw.exec(d.prevCapture);return m&&(d.list||!d.inline&&!d.simple)?l.exec(h=m[1]+h):null}),order:1,parse(h,d,m){const g=i?+h[2]:void 0,_=h[0].replace(RO,`
|
|
94
|
+
`).match(u);let E=!1;return{items:_.map(function(y,x){const T=f.exec(y)[0].length,z=new RegExp("^ {1,"+T+"}","gm"),N=y.replace(z,"").replace(f,""),U=x===_.length-1,M=N.indexOf(`
|
|
95
|
+
|
|
96
|
+
`)!==-1||U&&E;E=M;const O=m.inline,R=m.list;let S;m.list=!0,M?(m.inline=!1,S=ss(N)+`
|
|
97
|
+
|
|
98
|
+
`):(m.inline=!0,S=ss(N));const k=d(S,m);return m.inline=O,m.list=R,k}),ordered:i,start:g}},render:(h,d,m)=>n(h.ordered?"ol":"ul",{key:m.key,start:h.type===ue.orderedList?h.start:void 0},h.items.map(function(g,_){return n("li",{key:_},d(g,m))}))}}const yw=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),_w=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,_v=[nv,rv,av,iv,lv,sv,uv,gv,yv],bw=[..._v,/^[^\n]+(?: \n|\n{2,})/,Sh,ov,Th];function ss(n){let r=n.length;for(;r>0&&n[r-1]<=" ";)r--;return n.slice(0,r)}function Ki(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 vw(n){return nw.test(n)?"right":ew.test(n)?"center":tw.test(n)?"left":null}function Fy(n,r,i,l){const u=i.inTable;i.inTable=!0;let f=[[]],h="";function d(){if(!h)return;const m=f[f.length-1];m.push.apply(m,r(h,i)),h=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,_)=>{m.trim()==="|"&&(d(),l)?g!==0&&g!==_.length-1&&f.push([]):h+=m}),d(),i.inTable=u,f}function Ew(n,r,i){i.inline=!0;const l=n[2]?n[2].replace(WO,"").split("|").map(vw):[],u=n[3]?function(h,d,m){return h.trim().split(`
|
|
99
|
+
`).map(function(g){return Fy(g,d,m,!0)})}(n[3],r,i):[],f=Fy(n[1],r,i,!!u.length);return i.inline=!1,u.length?{align:l,cells:u,header:f,type:ue.table}:{children:f,type:ue.paragraph}}function Vy(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function Ia(n){return n.inline=1,n}function _r(n){return Ia(function(r,i){return i.inline?n.exec(r):null})}function br(n){return Ia(function(r,i){return i.inline||i.simple?n.exec(r):null})}function qn(n){return function(r,i){return i.inline||i.simple?null:n.exec(r)}}function $i(n){return Ia(function(r){return n.exec(r)})}function Sw(n,r){if(r.inline||r.simple)return null;let i="";n.split(`
|
|
100
|
+
`).every(u=>(u+=`
|
|
101
|
+
`,!_v.some(f=>f.test(u))&&(i+=u,!!u.trim())));const l=ss(i);return l==""?null:[i,,l]}const Tw=/(javascript|vbscript|data(?!:image)):/i;function xw(n){try{const r=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(Tw.test(r))return null}catch{return null}return n}function Py(n){return n.replace(fw,"$1")}function ro(n,r,i){const l=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const f=n(r,i);return i.inline=l,i.simple=u,f}function Aw(n,r,i){const l=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const f=n(r,i);return i.inline=l,i.simple=u,f}function Ow(n,r,i){const l=i.inline||!1;i.inline=!1;const u=n(r,i);return i.inline=l,u}const xf=(n,r,i)=>({children:ro(r,n[2],i)});function Af(){return{}}function Of(){return null}function ww(...n){return n.filter(Boolean).join(" ")}function wf(n,r,i){let l=n;const u=r.split(".");for(;u.length&&(l=l[u[0]],l!==void 0);)u.shift();return l||i}function Rw(n="",r={}){function i(y,x,...T){const z=wf(r.overrides,`${y}.props`,{});return r.createElement(function(N,U){const M=wf(U,N);return M?typeof M=="function"||typeof M=="object"&&"render"in M?M:wf(U,`${N}.component`,N):N}(y,r.overrides),Qr({},x,z,{className:ww(x==null?void 0:x.className,z.className)||void 0}),...T)}function l(y){y=y.replace(kO,"");let x=!1;r.forceInline?x=!0:r.forceBlock||(x=$O.test(y)===!1);const T=g(m(x?y:`${ss(y).replace(uw,"")}
|
|
102
|
+
|
|
103
|
+
`,{inline:x}));for(;typeof T[T.length-1]=="string"&&!T[T.length-1].trim();)T.pop();if(r.wrapper===null)return T;const z=r.wrapper||(x?"span":"div");let N;if(T.length>1||r.forceWrapper)N=T;else{if(T.length===1)return N=T[0],typeof N=="string"?i("span",{key:"outer"},N):N;N=null}return r.createElement(z,{key:"outer"},N)}function u(y,x){const T=x.match(OO);return T?T.reduce(function(z,N){const U=N.indexOf("=");if(U!==-1){const M=function(k){return k.indexOf("-")!==-1&&k.match(IO)===null&&(k=k.replace(ZO,function(Y,K){return K.toUpperCase()})),k}(N.slice(0,U)).trim(),O=function(k){const Y=k[0];return(Y==='"'||Y==="'")&&k.length>=2&&k[k.length-1]===Y?k.slice(1,-1):k}(N.slice(U+1).trim()),R=ky[M]||M;if(R==="ref")return z;const S=z[R]=function(k,Y,K,re){return Y==="style"?function(ee){const le=[];let ie="",de=!1,Fe=!1,Te="";if(!ee)return le;for(let X=0;X<ee.length;X++){const J=ee[X];if(J!=='"'&&J!=="'"||de||(Fe?J===Te&&(Fe=!1,Te=""):(Fe=!0,Te=J)),J==="("&&ie.endsWith("url")?de=!0:J===")"&&de&&(de=!1),J!==";"||Fe||de)ie+=J;else{const _e=ie.trim();if(_e){const w=_e.indexOf(":");if(w>0){const P=_e.slice(0,w).trim(),$=_e.slice(w+1).trim();le.push([P,$])}}ie=""}}const G=ie.trim();if(G){const X=G.indexOf(":");if(X>0){const J=G.slice(0,X).trim(),_e=G.slice(X+1).trim();le.push([J,_e])}}return le}(K).reduce(function(ee,[le,ie]){return ee[le.replace(/(-[a-z])/g,de=>de[1].toUpperCase())]=re(ie,k,le),ee},{}):AO.indexOf(Y)!==-1?re(K,k,Y):(K.match(FO)&&(K=K.slice(1,K.length-1)),K==="true"||K!=="false"&&K)}(y,M,O,r.sanitizer);typeof S=="string"&&(Sh.test(S)||Th.test(S))&&(z[R]=l(S.trim()))}else N!=="style"&&(z[ky[N]||N]=!0);return z},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||xw,r.slugify=r.slugify||Ki,r.namedCodesToUnicode=r.namedCodesToUnicode?Qr({},Gy,r.namedCodesToUnicode):Gy,r.createElement=r.createElement||I.createElement;const f=[],h={},d={[ue.blockQuote]:{match:qn(nv),order:1,parse(y,x,T){const[,z,N]=y[0].replace(CO,"").match(NO);return{alert:z,children:x(N,T)}},render(y,x,T){const z={key:T.key};return y.alert&&(z.className="markdown-alert-"+r.slugify(y.alert.toLowerCase(),Ki),y.children.unshift({attrs:{},children:[{type:ue.text,text:y.alert}],noInnerParse:!0,type:ue.htmlBlock,tag:"header"})),i("blockquote",z,x(y.children,T))}},[ue.breakLine]:{match:$i(DO),order:1,parse:Af,render:(y,x,T)=>i("br",{key:T.key})},[ue.breakThematic]:{match:qn(MO),order:1,parse:Af,render:(y,x,T)=>i("hr",{key:T.key})},[ue.codeBlock]:{match:qn(av),order:0,parse:y=>({lang:void 0,text:ss(y[0].replace(/^ {4}/gm,"")).replace(qy,"$1")}),render:(y,x,T)=>i("pre",{key:T.key},i("code",Qr({},y.attrs,{className:y.lang?`lang-${y.lang}`:""}),y.text))},[ue.codeFenced]:{match:qn(rv),order:0,parse:y=>({attrs:u("code",y[3]||""),lang:y[2]||void 0,text:y[4],type:ue.codeBlock})},[ue.codeInline]:{match:br(BO),order:3,parse:y=>({text:y[2].replace(qy,"$1")}),render:(y,x,T)=>i("code",{key:T.key},y.text)},[ue.footnote]:{match:qn(HO),order:0,parse:y=>(f.push({footnote:y[2],identifier:y[1]}),{}),render:Of},[ue.footnoteReference]:{match:_r(LO),order:1,parse:y=>({target:`#${r.slugify(y[1],Ki)}`,text:y[1]}),render:(y,x,T)=>i("a",{key:T.key,href:r.sanitizer(y.target,"a","href")},i("sup",{key:T.key},y.text))},[ue.gfmTask]:{match:_r(GO),order:1,parse:y=>({completed:y[1].toLowerCase()==="x"}),render:(y,x,T)=>i("input",{checked:y.completed,key:T.key,readOnly:!0,type:"checkbox"})},[ue.heading]:{match:qn(r.enforceAtxHeadings?sv:iv),order:1,parse:(y,x,T)=>({children:ro(x,y[2],T),id:r.slugify(y[2],Ki),level:y[1].length}),render:(y,x,T)=>i(`h${y.level}`,{id:y.id,key:T.key},x(y.children,T))},[ue.headingSetext]:{match:qn(lv),order:0,parse:(y,x,T)=>({children:ro(x,y[1],T),level:y[2]==="="?1:2,type:ue.heading})},[ue.htmlBlock]:{match:$i(Sh),order:1,parse(y,x,T){const[,z]=y[3].match(cw),N=new RegExp(`^${z}`,"gm"),U=y[3].replace(N,""),M=(O=U,bw.some(K=>K.test(O))?Ow:ro);var O;const R=y[1].toLowerCase(),S=xO.indexOf(R)!==-1,k=(S?R:y[1]).trim(),Y={attrs:u(k,y[2]),noInnerParse:S,tag:k};return T.inAnchor=T.inAnchor||R==="a",S?Y.text=y[3]:Y.children=M(x,U,T),T.inAnchor=!1,Y},render:(y,x,T)=>i(y.tag,Qr({key:T.key},y.attrs),y.text||(y.children?x(y.children,T):""))},[ue.htmlSelfClosing]:{match:$i(Th),order:1,parse(y){const x=y[1].trim();return{attrs:u(x,y[2]||""),tag:x}},render:(y,x,T)=>i(y.tag,Qr({},y.attrs,{key:T.key}))},[ue.htmlComment]:{match:$i(ov),order:1,parse:()=>({}),render:Of},[ue.image]:{match:br(_w),order:1,parse:y=>({alt:y[1],target:Py(y[2]),title:y[3]}),render:(y,x,T)=>i("img",{key:T.key,alt:y.alt||void 0,title:y.title||void 0,src:r.sanitizer(y.target,"img","src")})},[ue.link]:{match:_r(yw),order:3,parse:(y,x,T)=>({children:Aw(x,y[1],T),target:Py(y[2]),title:y[3]}),render:(y,x,T)=>i("a",{key:T.key,href:r.sanitizer(y.target,"a","href"),title:y.title},x(y.children,T))},[ue.linkAngleBraceStyleDetector]:{match:_r(YO),order:0,parse:y=>({children:[{text:y[1],type:ue.text}],target:y[1],type:ue.link})},[ue.linkBareUrlDetector]:{match:Ia((y,x)=>x.inAnchor||r.disableAutoLink?null:_r(VO)(y,x)),order:0,parse:y=>({children:[{text:y[1],type:ue.text}],target:y[1],title:void 0,type:ue.link})},[ue.linkMailtoDetector]:{match:_r(PO),order:0,parse(y){let x=y[1],T=y[1];return wO.test(T)||(T="mailto:"+T),{children:[{text:x.replace("mailto:",""),type:ue.text}],target:T,type:ue.link}}},[ue.orderedList]:Iy(i,1),[ue.unorderedList]:Iy(i,2),[ue.newlineCoalescer]:{match:qn(jO),order:3,parse:Af,render:()=>`
|
|
104
|
+
`},[ue.paragraph]:{match:Ia(Sw),order:3,parse:xf,render:(y,x,T)=>i("p",{key:T.key},x(y.children,T))},[ue.ref]:{match:_r(XO),order:0,parse:y=>(h[y[1]]={target:y[2],title:y[4]},{}),render:Of},[ue.refImage]:{match:br(QO),order:0,parse:y=>({alt:y[1]||void 0,ref:y[2]}),render:(y,x,T)=>h[y.ref]?i("img",{key:T.key,alt:y.alt,src:r.sanitizer(h[y.ref].target,"img","src"),title:h[y.ref].title}):null},[ue.refLink]:{match:_r(KO),order:0,parse:(y,x,T)=>({children:x(y[1],T),fallbackChildren:y[0],ref:y[2]}),render:(y,x,T)=>h[y.ref]?i("a",{key:T.key,href:r.sanitizer(h[y.ref].target,"a","href"),title:h[y.ref].title},x(y.children,T)):i("span",{key:T.key},y.fallbackChildren)},[ue.table]:{match:qn(uv),order:1,parse:Ew,render(y,x,T){const z=y;return i("table",{key:T.key},i("thead",null,i("tr",null,z.header.map(function(N,U){return i("th",{key:U,style:Vy(z,U)},x(N,T))}))),i("tbody",null,z.cells.map(function(N,U){return i("tr",{key:U},N.map(function(M,O){return i("td",{key:O,style:Vy(z,O)},x(M,T))}))})))}},[ue.text]:{match:$i(ow),order:4,parse:y=>({text:y[0].replace(qO,(x,T)=>r.namedCodesToUnicode[T]?r.namedCodesToUnicode[T]:x)}),render:y=>y.text},[ue.textBolded]:{match:br(rw),order:2,parse:(y,x,T)=>({children:x(y[2],T)}),render:(y,x,T)=>i("strong",{key:T.key},x(y.children,T))},[ue.textEmphasized]:{match:br(aw),order:3,parse:(y,x,T)=>({children:x(y[2],T)}),render:(y,x,T)=>i("em",{key:T.key},x(y.children,T))},[ue.textEscaped]:{match:br(lw),order:1,parse:y=>({text:y[1],type:ue.text})},[ue.textMarked]:{match:br(iw),order:3,parse:xf,render:(y,x,T)=>i("mark",{key:T.key},x(y.children,T))},[ue.textStrikethroughed]:{match:br(sw),order:3,parse:xf,render:(y,x,T)=>i("del",{key:T.key},x(y.children,T))}};r.disableParsingRawHTML===!0&&(delete d[ue.htmlBlock],delete d[ue.htmlSelfClosing]);const m=function(y){let x=Object.keys(y);function T(z,N){let U,M,O=[],R="",S="";for(N.prevCapture=N.prevCapture||"";z;){let k=0;for(;k<x.length;){if(R=x[k],U=y[R],N.inline&&!U.match.inline){k++;continue}const Y=U.match(z,N);if(Y){S=Y[0],N.prevCapture+=S,z=z.substring(S.length),M=U.parse(Y,T,N),M.type==null&&(M.type=R),O.push(M);break}k++}}return N.prevCapture="",O}return x.sort(function(z,N){let U=y[z].order,M=y[N].order;return U!==M?U-M:z<N?-1:1}),function(z,N){return T(function(U){return U.replace(UO,`
|
|
105
|
+
`).replace(zO,"").replace(JO," ")}(z),N)}}(d),g=(_=function(y,x){return function(T,z,N){const U=y[T.type].render;return x?x(()=>U(T,z,N),T,z,N):U(T,z,N)}}(d,r.renderRule),function y(x,T={}){if(Array.isArray(x)){const z=T.key,N=[];let U=!1;for(let M=0;M<x.length;M++){T.key=M;const O=y(x[M],T),R=typeof O=="string";R&&U?N[N.length-1]+=O:O!==null&&N.push(O),U=R}return T.key=z,N}return _(x,y,T)});var _;const E=l(n);return f.length?i("div",null,E,i("footer",{key:"footer"},f.map(function(y){return i("div",{id:r.slugify(y.identifier,Ki),key:y.identifier},y.identifier,g(m(y.footnote,{inline:!0})))}))):E}const vn=n=>{let{children:r="",options:i}=n,l=function(u,f){if(u==null)return{};var h,d,m={},g=Object.keys(u);for(d=0;d<g.length;d++)f.indexOf(h=g[d])>=0||(m[h]=u[h]);return m}(n,TO);return I.cloneElement(Rw(r,i),l)},Cw="_generalConditionsContainer_55hjg_1",Nw="_generalConditions_55hjg_1",Dw="_generalConditionsHeader_55hjg_15",Mw="_generalConditionsBody_55hjg_26",Bw="_generalConditionsAccept_55hjg_35",Ji={generalConditionsContainer:Cw,generalConditions:Nw,generalConditionsHeader:Dw,generalConditionsBody:Mw,generalConditionsAccept:Bw},jw=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:b.jsx("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"})}),Uw=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:b.jsx("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"})}),Hw="general-conditions.header",Lw="general-conditions.body",Yy="general-conditions.accept-conditions-note",zw=()=>{const n=et(),[r,i]=I.useState(!1),l=()=>i(!r),u=d=>{d.key==="ArrowDown"||d.key==="ArrowRight"?i(!0):d.key==="ArrowUp"||d.key==="ArrowLeft"||d.key==="Escape"?i(!1):(d.key==="Enter"||d.key==="Space"||d.key===" ")&&l()},f=n(Hw),h=n(Yy);return b.jsxs("div",{className:Z(Ji.generalConditionsContainer,"chat__generalConditions"),children:[!!(f!=null&&f.length)&&b.jsxs("div",{className:Ji.generalConditions,children:[b.jsxs("div",{role:"button",onClick:l,onKeyDown:u,tabIndex:0,className:Z(Ji.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[b.jsx(vn,{children:f}),r?b.jsx(Uw,{}):b.jsx(jw,{})]}),b.jsx("div",{className:Z(Ji.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&b.jsx(vn,{children:n(Lw)||""})})]}),!!(h!=null&&h.length)&&b.jsx("div",{className:Z(Ji.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:b.jsx(vn,{children:n(Yy)||""})})]})},kw="_message_59o8c_1",Gw="_messageBot_59o8c_9",qw="_messageBotLast_59o8c_19",Iw="_avatar_59o8c_19",Fw="_messageBotFirst_59o8c_24",Vw="_messageBotAnimated_59o8c_37",Pw="_messageGuest_59o8c_48",Yw="_messageGuestFirst_59o8c_54",Zw="_messageGuestLast_59o8c_60",Xw="_botAvatar_59o8c_74",Qw="_agentAvatar_59o8c_78",Kw="_bubble_59o8c_82",$w="_bubbleContent_59o8c_88",Jw="_bubbleLeft_59o8c_102",Ww="_leftText_59o8c_113",eR="_bubbleRight_59o8c_120",tR="_rightText_59o8c_130",nR="_sourceInfoReference_59o8c_162",rR="_sourceInfoReferenceActive_59o8c_176",me={message:kw,messageBot:Gw,messageBotLast:qw,avatar:Iw,messageBotFirst:Fw,messageBotAnimated:Vw,messageGuest:Pw,messageGuestFirst:Yw,messageGuestLast:Zw,botAvatar:Xw,agentAvatar:Qw,bubble:Kw,bubbleContent:$w,bubbleLeft:Jw,leftText:Ww,bubbleRight:eR,rightText:tR,sourceInfoReference:nR,sourceInfoReferenceActive:rR},aR="_botMessageActions_1dl7x_1",iR="_alwaysVisible_1dl7x_22",sR="_reported_1dl7x_29",lR="_action_1dl7x_33",vr={botMessageActions:aR,alwaysVisible:iR,reported:sR,action:lR},oR=({alwaysVisible:n,senderType:r,reaction:i,botMessageRef:l,onReaction:u})=>{const f=et(),[h,d]=I.useState(!1),m=_=>()=>u(_),g=I.useCallback(async()=>{if(l.current)try{d(!0);const _=l.current.innerHTML,E=l.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([_],{type:"text/html"}),"text/plain":new Blob([E],{type:"text/plain"})})]),await new Promise(y=>setTimeout(y,1500))}finally{d(!1)}},[l]);return b.jsxs("div",{className:Z(vr.botMessageActions,n&&vr.alwaysVisible,i&&vr.reported),children:[r===po.BOT&&b.jsx("button",{className:Z(vr.action,i==="GOOD"&&vr.reported,"tooltip--top-right"),tabIndex:0,"aria-label":f(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":f(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:m(i==="GOOD"?null:"GOOD"),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="GOOD"?b.jsx("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"}):b.jsx("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"})})}),r===po.BOT&&b.jsx("button",{className:Z(vr.action,i==="BAD"&&vr.reported,"tooltip--top-right"),tabIndex:0,"aria-label":f(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":f(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:m(i==="BAD"?null:"BAD"),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="BAD"?b.jsx("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"}):b.jsx("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"})})}),b.jsx("button",{className:Z(vr.action,"tooltip--top-right"),tabIndex:0,"aria-label":f("bot-bubble.copy"),"data-title":f("bot-bubble.copy"),onClick:g,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?b.jsx("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"}):b.jsx("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"})})})]})},bv=I.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,children:f,onReaction:h},d)=>{const m=et(),g=I.useRef(null),_=n.sender.type===Ee.UserType.BOT;return b.jsxs("li",{ref:d,className:Z(me.message,me.messageBot,i&&me.lastMessage,l&&me.messageBotFirst,u&&me.messageBotLast,"chat__bubbleContainer",r&&me.messageBotAnimated,r&&"chat__bubbleContainer--animated",_?"chat__botBubbleContainer":"chat__agentBubbleContainer",l&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[b.jsx("img",{className:Z(me.avatar,_?me.botAvatar:me.agentAvatar,"chat__avatar",_?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:_?"Bot":"Agent",referrerPolicy:"no-referrer"}),b.jsx("div",{ref:g,className:Z(me.bubble,me.bubbleLeft,"chat__bubble",_?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(_?"bot-bubble.label":"agent-bubble.label"),children:b.jsx("div",{className:Z(me.leftText),children:f})}),h&&b.jsx(oR,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:g,onReaction:h})]})}),uR="_sourceList_1n31h_1",cR="_source_1n31h_1",fR="_label_1n31h_37",Rf={sourceList:uR,source:cR,label:fR},vv=n=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:b.jsx("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"})}),Ev=n=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:b.jsx("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"})}),Sv=n=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:b.jsx("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"})}),Tv=n=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:b.jsx("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"})}),hR=({type:n,...r})=>{switch(n){case"WEBSITE":return b.jsx(Tv,{...r});case"PDF":return b.jsx(Sv,{...r});case"DOCX":return b.jsx(vv,{...r});default:return b.jsx(Ev,{...r})}},id=({sources:n,onLinkClick:r})=>{const i=et(),l=f=>()=>{r(f.url)},u=f=>h=>{(h.key==="Enter"||h.key===" ")&&r(f.url)};return n.length?b.jsx("ul",{className:Rf.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(f=>b.jsx("li",{className:Rf.source,children:b.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:l(f),onKeyDown:u(f),children:[b.jsx(hR,{type:f.type,"aria-hidden":"true"}),b.jsx("div",{className:Rf.label,children:f.label})]})},f.url))}):null},dR="_button_3ui4g_1",mR="_buttonDefault_3ui4g_13",pR="_buttonPrimary_3ui4g_28",ls={button:dR,buttonDefault:mR,buttonPrimary:pR},Co=({className:n,children:r,...i})=>b.jsx("button",{className:Z(ls.button,n),type:"button",...i,children:r}),gR="_title_b904h_1",yR="_subtitle_b904h_6",_R="_buttons_b904h_11",bR="_button_b904h_11",vR="_imageContainer_b904h_34",ER="_image_b904h_34",SR="_video_container_b904h_49",TR="_video_b904h_49",xR="_only_b904h_63",Ot={title:gR,subtitle:yR,buttons:_R,button:bR,imageContainer:vR,image:ER,video_container:SR,video:TR,only:xR},AR=({buttons:n,onButtonClick:r})=>b.jsx("div",{className:Z(Ot.buttons,"chat__bubbleButtons"),children:n.map((i,l)=>b.jsx(Co,{className:Z(Ot.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},l))});var Pl={},Yl={},Zl={},Zy;function OR(){if(Zy)return Zl;Zy=1,Object.defineProperty(Zl,"__esModule",{value:!0});var n=Fa(),r=i(n);function i(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 Zl.default=function(l,u,f){return r.createElement("a",{href:l,key:f},u)},Zl}var Xl={},Xy;function wR(){return Xy||(Xy=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=function(n){return n}),Xl}var Ql={},Cf,Qy;function RR(){return Qy||(Qy=1,Cf=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Cf}var Nf,Ky;function CR(){return Ky||(Ky=1,Nf=/[\0-\x1F\x7F-\x9F]/),Nf}var Df,$y;function NR(){return $y||($y=1,Df=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Df}var Mf,Jy;function DR(){return Jy||(Jy=1,Mf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),Mf}var Bf,Wy;function MR(){return Wy||(Wy=1,Bf=function(n){var r={};r.src_Any=RR().source,r.src_Cc=CR().source,r.src_Z=NR().source,r.src_P=DR().source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|");var i="[><|]";return r.src_pseudo_letter="(?:(?!"+i+"|"+r.src_ZPCc+")"+r.src_Any+")",r.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]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+i+"|"+r.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+r.src_ZCc+"|[.]).|"+(n&&n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+r.src_ZCc+").|\\!(?!"+r.src_ZCc+"|[!]).|\\?(?!"+r.src_ZCc+"|[?]).)+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}),Bf}var jf,e_;function BR(){if(e_)return jf;e_=1;function n(O){var R=Array.prototype.slice.call(arguments,1);return R.forEach(function(S){S&&Object.keys(S).forEach(function(k){O[k]=S[k]})}),O}function r(O){return Object.prototype.toString.call(O)}function i(O){return r(O)==="[object String]"}function l(O){return r(O)==="[object Object]"}function u(O){return r(O)==="[object RegExp]"}function f(O){return r(O)==="[object Function]"}function h(O){return O.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function m(O){return Object.keys(O||{}).reduce(function(R,S){return R||d.hasOwnProperty(S)},!1)}var g={"http:":{validate:function(O,R,S){var k=O.slice(R);return S.re.http||(S.re.http=new RegExp("^\\/\\/"+S.re.src_auth+S.re.src_host_port_strict+S.re.src_path,"i")),S.re.http.test(k)?k.match(S.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(O,R,S){var k=O.slice(R);return S.re.no_http||(S.re.no_http=new RegExp("^"+S.re.src_auth+"(?:localhost|(?:(?:"+S.re.src_domain+")\\.)+"+S.re.src_domain_root+")"+S.re.src_port+S.re.src_host_terminator+S.re.src_path,"i")),S.re.no_http.test(k)?R>=3&&O[R-3]===":"||R>=3&&O[R-3]==="/"?0:k.match(S.re.no_http)[0].length:0}},"mailto:":{validate:function(O,R,S){var k=O.slice(R);return S.re.mailto||(S.re.mailto=new RegExp("^"+S.re.src_email_name+"@"+S.re.src_host_strict,"i")),S.re.mailto.test(k)?k.match(S.re.mailto)[0].length:0}}},_="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(O){O.__index__=-1,O.__text_cache__=""}function x(O){return function(R,S){var k=R.slice(S);return O.test(k)?k.match(O)[0].length:0}}function T(){return function(O,R){R.normalize(O)}}function z(O){var R=O.re=MR()(O.__opts__),S=O.__tlds__.slice();O.onCompile(),O.__tlds_replaced__||S.push(_),S.push(R.src_xn),R.src_tlds=S.join("|");function k(ee){return ee.replace("%TLDS%",R.src_tlds)}R.email_fuzzy=RegExp(k(R.tpl_email_fuzzy),"i"),R.link_fuzzy=RegExp(k(R.tpl_link_fuzzy),"i"),R.link_no_ip_fuzzy=RegExp(k(R.tpl_link_no_ip_fuzzy),"i"),R.host_fuzzy_test=RegExp(k(R.tpl_host_fuzzy_test),"i");var Y=[];O.__compiled__={};function K(ee,le){throw new Error('(LinkifyIt) Invalid schema "'+ee+'": '+le)}Object.keys(O.__schemas__).forEach(function(ee){var le=O.__schemas__[ee];if(le!==null){var ie={validate:null,link:null};if(O.__compiled__[ee]=ie,l(le)){u(le.validate)?ie.validate=x(le.validate):f(le.validate)?ie.validate=le.validate:K(ee,le),f(le.normalize)?ie.normalize=le.normalize:le.normalize?K(ee,le):ie.normalize=T();return}if(i(le)){Y.push(ee);return}K(ee,le)}}),Y.forEach(function(ee){O.__compiled__[O.__schemas__[ee]]&&(O.__compiled__[ee].validate=O.__compiled__[O.__schemas__[ee]].validate,O.__compiled__[ee].normalize=O.__compiled__[O.__schemas__[ee]].normalize)}),O.__compiled__[""]={validate:null,normalize:T()};var re=Object.keys(O.__compiled__).filter(function(ee){return ee.length>0&&O.__compiled__[ee]}).map(h).join("|");O.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+R.src_ZPCc+"))("+re+")","i"),O.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+R.src_ZPCc+"))("+re+")","ig"),O.re.pretest=RegExp("("+O.re.schema_test.source+")|("+O.re.host_fuzzy_test.source+")|@","i"),y(O)}function N(O,R){var S=O.__index__,k=O.__last_index__,Y=O.__text_cache__.slice(S,k);this.schema=O.__schema__.toLowerCase(),this.index=S+R,this.lastIndex=k+R,this.raw=Y,this.text=Y,this.url=Y}function U(O,R){var S=new N(O,R);return O.__compiled__[S.schema].normalize(S,O),S}function M(O,R){if(!(this instanceof M))return new M(O,R);R||m(O)&&(R=O,O={}),this.__opts__=n({},d,R),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},g,O),this.__compiled__={},this.__tlds__=E,this.__tlds_replaced__=!1,this.re={},z(this)}return M.prototype.add=function(R,S){return this.__schemas__[R]=S,z(this),this},M.prototype.set=function(R){return this.__opts__=n(this.__opts__,R),this},M.prototype.test=function(R){if(this.__text_cache__=R,this.__index__=-1,!R.length)return!1;var S,k,Y,K,re,ee,le,ie,de;if(this.re.schema_test.test(R)){for(le=this.re.schema_search,le.lastIndex=0;(S=le.exec(R))!==null;)if(K=this.testSchemaAt(R,S[2],le.lastIndex),K){this.__schema__=S[2],this.__index__=S.index+S[1].length,this.__last_index__=S.index+S[0].length+K;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(ie=R.search(this.re.host_fuzzy_test),ie>=0&&(this.__index__<0||ie<this.__index__)&&(k=R.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(re=k.index+k[1].length,(this.__index__<0||re<this.__index__)&&(this.__schema__="",this.__index__=re,this.__last_index__=k.index+k[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(de=R.indexOf("@"),de>=0&&(Y=R.match(this.re.email_fuzzy))!==null&&(re=Y.index+Y[1].length,ee=Y.index+Y[0].length,(this.__index__<0||re<this.__index__||re===this.__index__&&ee>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=re,this.__last_index__=ee))),this.__index__>=0},M.prototype.pretest=function(R){return this.re.pretest.test(R)},M.prototype.testSchemaAt=function(R,S,k){return this.__compiled__[S.toLowerCase()]?this.__compiled__[S.toLowerCase()].validate(R,k,this):0},M.prototype.match=function(R){var S=0,k=[];this.__index__>=0&&this.__text_cache__===R&&(k.push(U(this,S)),S=this.__last_index__);for(var Y=S?R.slice(S):R;this.test(Y);)k.push(U(this,S)),Y=Y.slice(this.__last_index__),S+=this.__last_index__;return k.length?k:null},M.prototype.tlds=function(R,S){return R=Array.isArray(R)?R:[R],S?(this.__tlds__=this.__tlds__.concat(R).sort().filter(function(k,Y,K){return k!==K[Y-1]}).reverse(),z(this),this):(this.__tlds__=R.slice(),this.__tlds_replaced__=!0,z(this),this)},M.prototype.normalize=function(R){R.schema||(R.url="http://"+R.url),R.schema==="mailto:"&&!/^mailto:/i.test(R.url)&&(R.url="mailto:"+R.url)},M.prototype.onCompile=function(){},jf=M,jf}const jR=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 t_;function UR(){if(t_)return Ql;t_=1,Object.defineProperty(Ql,"__esModule",{value:!0});var n=BR(),r=u(n),i=jR,l=u(i);function u(h){return h&&h.__esModule?h:{default:h}}var f=new r.default;return f.tlds(l.default),Ql.default=function(h){return f.match(h)},Ql}var Kl={},n_;function HR(){return n_||(n_=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.default=function(n){return n}),Kl}var r_;function LR(){if(r_)return Yl;r_=1,Object.defineProperty(Yl,"__esModule",{value:!0});var n=function(){function U(M,O){for(var R=0;R<O.length;R++){var S=O[R];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(M,S.key,S)}}return function(M,O,R){return O&&U(M.prototype,O),R&&U(M,R),M}}(),r=Fa(),i=y(r),l=OR(),u=E(l),f=wR(),h=E(f),d=UR(),m=E(d),g=HR(),_=E(g);function E(U){return U&&U.__esModule?U:{default:U}}function y(U){if(U&&U.__esModule)return U;var M={};if(U!=null)for(var O in U)Object.prototype.hasOwnProperty.call(U,O)&&(M[O]=U[O]);return M.default=U,M}function x(U,M){if(!(U instanceof M))throw new TypeError("Cannot call a class as a function")}function T(U,M){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:U}function z(U,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);U.prototype=Object.create(M&&M.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(U,M):U.__proto__=M)}var N=function(U){z(M,U);function M(){return x(this,M),T(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return n(M,[{key:"parseString",value:function(R){var S=this;if(R==="")return R;var k=this.props.matchDecorator(R);if(!k)return R;var Y=[],K=0;return k.forEach(function(re,ee){re.index>K&&Y.push(R.substring(K,re.index));var le=S.props.hrefDecorator(re.url),ie=S.props.textDecorator(re.text),de=S.props.componentDecorator(le,ie,ee);Y.push(de),K=re.lastIndex}),R.length>K&&Y.push(R.substring(K)),Y.length===1?Y[0]:Y}},{key:"parse",value:function(R){var S=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof R=="string"?this.parseString(R):i.isValidElement(R)&&R.type!=="a"&&R.type!=="button"?i.cloneElement(R,{key:k},this.parse(R.props.children)):Array.isArray(R)?R.map(function(Y,K){return S.parse(Y,K)}):R}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),M}(i.Component);return N.defaultProps={componentDecorator:u.default,hrefDecorator:h.default,matchDecorator:m.default,textDecorator:_.default},Yl.default=N,Yl}var a_;function zR(){if(a_)return Pl;a_=1,Object.defineProperty(Pl,"__esModule",{value:!0});var n=LR(),r=i(n);function i(l){return l&&l.__esModule?l:{default:l}}return Pl.default=r.default,Pl}var kR=zR();const GR=yo(kR),qR="_text_gp0s0_1",IR="_command_gp0s0_5",i_={text:qR,command:IR},xv=({text:n,commands:r=[],onLinkClick:i})=>{const l=d=>m=>(m.preventDefault(),d&&i(d),!1),u=(d,m,g)=>b.jsx("a",{onClick:l(d),role:"button",children:m},g),f=r.find(d=>n.startsWith(`/${d}`)),h=f?n.slice(f.length+1):n;return b.jsxs("div",{children:[f&&b.jsxs("code",{className:i_.command,children:["/",f]}),h.split(`
|
|
106
|
+
`).map((d,m)=>b.jsxs("span",{className:i_.text,children:[b.jsx(GR,{componentDecorator:u,children:d}),b.jsx("br",{})]},m))]})},FR=({subtitle:n,onLinkClick:r})=>n?b.jsx("div",{className:Ot.subtitle,children:b.jsx(xv,{text:n,onLinkClick:r})}):null,s_="newtab#",Av=({markdown:n,markdownOptions:r={},onLinkClick:i})=>{const l=f=>h=>(h.preventDefault(),f&&i(f),!1),u=({title:f,href:h,children:d})=>h.indexOf(s_)===0?b.jsx("a",{href:h.slice(s_.length),title:f,target:"_blank",rel:"noopener noreferrer",children:d}):b.jsx("a",{onClick:l(h),title:f,href:h,children:d});return b.jsx(vn,{options:{...r,overrides:{a:u}},children:n})},VR=({text:n,onLinkClick:r})=>n?b.jsx("div",{children:b.jsx(Av,{markdown:n,onLinkClick:r})}):null,PR=({title:n})=>n?b.jsx("h1",{className:Ot.title,children:n}):null,YR=({title:n,text:r,subtitle:i,buttons:l,onButtonClick:u,onLinkClick:f})=>(n==null?void 0:n.length)||(r==null?void 0:r.length)||(i==null?void 0:i.length)||(l==null?void 0:l.length)?b.jsxs("div",{className:Z(me.bubbleContent),children:[b.jsx(PR,{title:n}),b.jsx(VR,{text:r,onLinkClick:f}),b.jsx(FR,{subtitle:i,onLinkClick:f}),b.jsx(AR,{buttons:l,onButtonClick:u})]}):null,ZR=({alt:n,imageUrl:r,itemUrl:i,hasBody:l})=>r?i?i.indexOf("youtube.com")>-1?b.jsx("div",{className:Ot.video_container,children:b.jsx("iframe",{className:Z(Ot.video,{[Ot.only]:!l}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):b.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:b.jsx("div",{className:Ot.imageContainer,children:b.jsx("img",{className:Z(Ot.image,{[Ot.only]:!l}),src:r,alt:n})})}):b.jsx("div",{className:Ot.imageContainer,children:b.jsx("img",{className:Z(Ot.image,{[Ot.only]:!l}),src:r,alt:n})}):null,XR=({title:n,text:r,subtitle:i,imageUrl:l,itemUrl:u,buttons:f,sources:h,onButtonClick:d,onLinkClick:m})=>{const g=!!(n!=null&&n.length)||!!(r!=null&&r.length)||!!(i!=null&&i.length)||!!(f!=null&&f.length);return b.jsxs("div",{className:Z(Ot.detailMessage),children:[b.jsx(ZR,{hasBody:g,imageUrl:l,itemUrl:u,alt:n||i}),g&&b.jsx(YR,{title:n,text:r,subtitle:i,buttons:f,onLinkClick:m,onButtonClick:d}),b.jsx(id,{sources:h,onLinkClick:m})]})},QR=I.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},l)=>{const u=et();return b.jsx("li",{ref:l,className:Z(me.message,me.messageGuest,n&&me.messageGuestFirst,r&&me.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:b.jsx("div",{className:Z(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:b.jsx("div",{className:Z(me.rightText),children:i})})})}),KR="_markdown_nw7vg_1",Ov={markdown:KR},$l="source-info-reference",$R=({markdown:n,sources:r,onLinkClick:i})=>{const l=Pa(),u=JR(),f=kt(m=>{const g=m.chat.sourceInfos;if((g==null?void 0:g.type)==="loaded"||(g==null?void 0:g.type)==="loading")return g.chunkId}),h=m=>g=>{const _=g.key;(_==="ArrowDown"||_==="ArrowRight"||_==="Enter"||_===" "||_==="Space")&&(g.stopPropagation(),l(Hy(m)))},d=m=>()=>{l(Hy(m))};return I.useLayoutEffect(()=>{document.querySelectorAll(`.${$l}`).forEach(m=>{var E,y,x,T;const g=m.previousSibling;g&&g.nodeType===Node.TEXT_NODE&&((E=g.textContent)!=null&&E.endsWith(" "))&&((y=g.textContent)!=null&&y.trim().length)&&m.classList.add(`${$l}--before-space`);const _=m.nextSibling;_&&_.nodeType===Node.TEXT_NODE&&((x=_.textContent)!=null&&x.startsWith(" "))&&((T=_.textContent)!=null&&T.trim().length)&&m.classList.add(`${$l}--after-space`)})},[n]),b.jsxs("div",{className:me.bubbleContent,children:[b.jsx("div",{className:Ov.markdown,children:b.jsx(Av,{markdown:n,onLinkClick:i,markdownOptions:{renderRule(m,g,_,E){if(g.type===ue.footnoteReference){const y=g.text===f;return b.jsx("span",{className:Z(me.sourceInfoReference,y&&me.sourceInfoReferenceActive,$l),children:b.jsx("a",{type:"button",tabIndex:0,onClick:d(g.text),onKeyDown:h(g.text),children:u(g.text)})},E.key)}return m()}}})}),b.jsx(id,{sources:r,onLinkClick:i})]})},JR=()=>{const n=[];return i=>{const l=n.indexOf(i);return l>-1?l+1:(n.push(i),n.length)}},WR=({text:n,commands:r,sources:i,onLinkClick:l})=>b.jsxs("div",{className:me.bubbleContent,children:[b.jsx(xv,{text:n,commands:r,onLinkClick:l}),b.jsx(id,{sources:i,onLinkClick:l})]}),eC=I.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:f,onButtonClick:h,onLinkClick:d},m)=>{const g=tC(n,r,h,d);switch(n.sender.type){case Ee.UserType.GUEST:return b.jsx(QR,{ref:m,isFirstMessageBySender:l,isLastMessageBySender:u,children:g});default:{const _=E=>f(n._id,E);return b.jsx(bv,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:_,children:g})}}}),tC=(n,r,i,l)=>{switch(n.type){case Ee.MessageTypeEnum.TEXT:{const u=n;return b.jsx(WR,{text:u.text,commands:r,sources:n.sources||[],onLinkClick:l})}case Ee.MessageTypeEnum.DETAIL:{const u=n;return b.jsx(XR,{title:u.title,text:u.text,subtitle:u.subtitle,imageUrl:u.imageUrl,itemUrl:u.itemUrl,buttons:u.buttons,sources:n.sources||[],onButtonClick:i,onLinkClick:l})}case Ee.MessageTypeEnum.MARKDOWN:{const u=n;return b.jsx($R,{markdown:u.markdown,sources:u.sources||[],onLinkClick:l})}}},nC=(n,r)=>n.message._id===r.message._id&&n.message.reaction===r.message.reaction&&n.isLastMessage===r.isLastMessage&&n.isFirstMessageBySender===r.isFirstMessageBySender&&n.isLastMessageBySender===r.isLastMessageBySender,rC=V_.memo(eC,nC),aC="_ticontainer_xg0dn_1",iC="_tiblock_xg0dn_5",sC="_tidot_xg0dn_12",Wi={ticontainer:aC,tiblock:iC,tidot:sC},lC=({isTyping:n=!1})=>b.jsx("div",{className:Wi.ticontainer,children:b.jsx("div",{className:Wi.tiblock,children:n?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:Z(Wi.tidot,"chat__typingIndicator")}),b.jsx("div",{className:Z(Wi.tidot,"chat__typingIndicator")}),b.jsx("div",{className:Z(Wi.tidot,"chat__typingIndicator")})]}):null})}),oC=Object.assign({_id:"typing-indicator"},new Ee.TextMessage("",new Ee.BotUser)),uC=({messages:n,isBotTyping:r,commands:i,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:f})=>{const h=I.useRef(0),d=I.useRef(!0),m=I.useRef(null),g=I.useRef(null),_=I.useRef(null),E=kt(T=>T.settings.enableGeneralConditions);I.useLayoutEffect(()=>{if(n.length&&m.current&&(h.current<n.length||r)){if(g.current){const T=g.current.offsetTop;m.current.scrollTop=T}else if(_.current){const T=_.current.offsetTop;m.current.scrollTop=T}d.current&&(d.current=!1),h.current=n.length}},[n,d,r]);let y;const x=n.length;return b.jsxs("div",{ref:m,className:Z(Ly.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&d.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&b.jsx(zw,{}),b.jsxs("ul",{className:Ly.messages,children:[n.map((T,z)=>{const N=cC(T,y),U=fC(T,z,n,r);y=T.sender.type;const M=z+1===x;return b.jsx(rC,{ref:M?_:null,message:T,commands:i,isLastMessage:M,isFirstMessageBySender:N,isLastMessageBySender:U,onButtonClick:u,onLinkClick:f,onReaction:l},M&&!r?"last":T._id)}),r&&b.jsx(bv,{ref:g,message:oC,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:y!==Ee.UserType.BOT,isLastMessageBySender:!0,children:b.jsx(lC,{isTyping:!0})},"last")]})]})},cC=(n,r)=>!r||r!==n.sender.type,fC=(n,r,i,l)=>{var d;const u=n.sender.type,f=i.length;return r+1===f?!(u===Ee.UserType.BOT&&l):u!==((d=i.at(r+1))==null?void 0:d.sender.type)},hC="_bottomSheet_jp8dl_1",dC="_bottomSheetOpen_jp8dl_15",mC="_bottomSheetClose_jp8dl_20",Pn={bottomSheet:hC,bottomSheetOpen:dC,bottomSheetClose:mC},pC="_container_xc2nx_1",l_={container:pC},gC=({contentUrl:n})=>{const r=kt(f=>f.connection.sessionId),[i,l]=I.useState(!1);I.useEffect(()=>{l(f=>f||!!n)},[n]);const u=I.useMemo(()=>{if(n&&r){const f=new URL(n,document.baseURI);return f.searchParams.set("sessionId",r),f.toString()}else return},[n,r]);return b.jsx("div",{className:Z(l_.container,Pn.bottomSheet,{[Pn.bottomSheetOpen]:!!n,[Pn.bottomSheetClose]:i&&!n}),children:u&&b.jsx("iframe",{title:"Drawer",src:u,className:l_.iframe})})},yC="_container_tr4tn_1",_C={container:yC},bC=({title:n,href:r,children:i})=>b.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),vC=()=>{const r=et()("powered-by");return r&&r.length?b.jsx("div",{className:Z(_C.container,"chat__poweredBy"),children:b.jsx(vn,{options:{overrides:{a:bC}},children:r})}):null},o_=({className:n,children:r,...i})=>b.jsx(Co,{className:Z(ls.buttonDefault,n),type:"button",...i,children:r}),os=({className:n,children:r,...i})=>b.jsx(Co,{className:Z(ls.buttonPrimary,n),...i,children:r}),EC="_container_h23mk_1",SC="_formContainer_h23mk_17",TC="_emailInput_h23mk_22",xC="_description_h23mk_52",AC="_actions_h23mk_57",OC="_validationError_h23mk_67",wC="_submitted_h23mk_74",In={container:EC,formContainer:SC,emailInput:TC,description:xC,actions:AC,validationError:OC,submitted:wC},RC=({visible:n,enableTranscriptExportPdf:r,enableTranscriptExportEmail:i,onEmailExport:l,onPdfExport:u,onClose:f})=>{const h=et(),[d,m]=I.useState(void 0),[g,_]=I.useState(!1),[E,y]=I.useState(!1),[x,T]=I.useState(void 0),z=I.useRef(null);I.useEffect(()=>{var O;n?((O=z.current)==null||O.focus(),_(!1),y(!1),m(n)):d===!0&&m(!1)},[n,d]);const N=O=>{O.preventDefault(),x&&x.length>0&&(l(x),_(!0),setTimeout(f,3*1e3))},U=O=>{const R=O.target.value.trim(),S=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);T(S?R:"")},M=()=>{y(!0),u(),setTimeout(f,3*1e3)};return b.jsxs("div",{className:Z(In.container,Pn.bottomSheet,{[Pn.bottomSheetOpen]:d===!0,[Pn.bottomSheetClose]:d===!1}),children:[r&&b.jsxs(b.Fragment,{children:[b.jsx("h2",{children:h("export-transcript.pdf.title")}),b.jsx(vn,{className:In.description,children:h("export-transcript.pdf.description")||""}),b.jsxs("div",{className:In.actions,children:[b.jsx(o_,{onClick:f,children:h("export-transcript.pdf.cancel")}),b.jsx(os,{onClick:M,disabled:E,children:h("export-transcript.pdf.download")})]})]}),i&&b.jsxs(b.Fragment,{children:[b.jsx("h2",{children:h("export-transcript.email.title")}),b.jsx(vn,{className:In.description,children:h("export-transcript.email.description")||""}),b.jsxs("form",{onSubmit:N,className:In.formContainer,children:[b.jsxs("div",{children:[b.jsx("input",{disabled:g,ref:z,type:"email",placeholder:h("export-transcript.email.placeholder"),className:In.emailInput,onChange:U}),(x==null?void 0:x.length)===0?b.jsx("div",{className:In.validationError,children:h("export-transcript.email.invalid")}):null]}),b.jsxs("div",{className:In.actions,children:[b.jsx(o_,{onClick:f,children:h("export-transcript.email.cancel")}),b.jsx(os,{type:"submit",disabled:g||x===void 0||x.length===0,children:h("export-transcript.email.send")})]})]}),g&&b.jsx("div",{className:In.submitted,children:h("export-transcript.email.success")})]})]})},CC="_inputContainer_fi5ao_1",NC={inputContainer:CC},DC="_blockUserInput_pot9c_1",MC={blockUserInput:DC},BC=({visible:n})=>{const r=et();return n?b.jsx("div",{className:Z(MC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},jC="_commandsDropdown_5ytuv_1",UC="_commands_5ytuv_1",HC="_command_5ytuv_1",LC="_commandActive_5ytuv_46",zC="_commandsSelections_5ytuv_55",ns={commandsDropdown:jC,commands:UC,command:HC,commandActive:LC,commandsSelections:zC},kC=(n,r)=>{I.useEffect(()=>{const i=l=>{n.current&&!n.current.contains(l.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,r])},GC=(n,r,i,l,u)=>{I.useEffect(()=>{const f=h=>{if(n.length)switch(h.key){case"Enter":i(n[r]);break;case"ArrowUp":l(d=>d>0?d-1:n.length-1);break;case"ArrowDown":l(d=>d<n.length-1?d+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,r,i,l,u])},qC=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:l})=>{const u=I.useRef(null),f=et(),[h,d]=I.useState([]),[m,g]=I.useState(u_(r)),[_,E]=I.useState(0),y=x=>i(`/${x}`);return kC(u,()=>d([])),GC(h,_,y,E,d),I.useEffect(()=>{g(u_(r))},[r]),I.useEffect(()=>{const x=n.length||0;x===0||x>m||!n.startsWith("/")?d([]):d(r.filter(IC(n))),E(0)},[r,n,m]),I.useEffect(()=>{l(!!h.length)},[h,l]),h.length?b.jsx("div",{ref:u,className:ns.commandsDropdown,children:b.jsx("ul",{className:ns.commands,role:"listbox",children:h.map((x,T)=>b.jsxs("li",{className:Z([ns.command,_===T&&ns.commandActive]),role:"option",onClick:()=>y(x),onMouseOver:()=>E(T),children:[b.jsxs("h1",{children:["/",x]}),b.jsx("p",{children:f(`commands.${x}`)})]},x))})}):null},u_=n=>Math.max(...n.map(r=>r.length+1)),IC=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},c_=3,FC=({commands:n,onSelectCommand:r})=>{const i=et(),[l,u]=I.useState(!1),f=g=>()=>{r(`/${g}`),u(!1)},h=()=>{u(!0)},d=()=>{u(!1)},m=l?n:n.slice(0,c_);return b.jsxs("div",{className:ns.commandsSelections,children:[m.map(g=>b.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${g}`),"data-title":i(`commands.${g}`),tabIndex:0,onClick:f(g),children:["/",g]},g)),m.length<n.length?b.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-more.action")},"show-more"):m.length>c_?b.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-less.action")},"show-less"):null]})},VC="_callToActionContainer_bkfcm_1",PC="_callToActionTitle_bkfcm_23",YC="_rateOverlay_bkfcm_30",ZC="_body_bkfcm_52",XC="_footer_bkfcm_60",QC="_actions_bkfcm_73",KC="_bubbles_bkfcm_101",$C="_stars_bkfcm_203",JC="_starsSmall_bkfcm_215",WC="_starsLarge_bkfcm_219",e3="_star_bkfcm_203",t3="_starReadonly_bkfcm_236",n3="_starIcon_bkfcm_246",r3="_starsDescriptionContainer_bkfcm_264",a3="_starsDescription_bkfcm_264",vt={callToActionContainer:VC,callToActionTitle:PC,rateOverlay:YC,body:ZC,footer:XC,actions:QC,bubbles:KC,stars:$C,starsSmall:JC,starsLarge:WC,star:e3,starReadonly:t3,starIcon:n3,starsDescriptionContainer:r3,starsDescription:a3},i3=({value:n,index:r,count:i,readonly:l,onHover:u,onClick:f})=>{const h=d=>{f&&d.key==="Enter"&&f()};return b.jsx("li",{className:Z(vt.star,{[vt.starReadonly]:l},"chat__conversationRating__star"),children:b.jsx("div",{role:"radio","aria-checked":n>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:h,onClick:f,children:b.jsx("span",{role:"img","aria-label":"Star",className:Z(vt.starIcon),children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.jsx("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"})})})})})},f_=5,wv=({value:n,size:r,readonly:i=!1,onChange:l})=>{const[u,f]=I.useState(void 0),h=()=>{f(void 0)},d=g=>()=>{if(!i){const _=g+1;f(_)}},m=g=>()=>{l&&!i&&(l(g===0&&n===1?0:g+1),f(void 0))};return b.jsx("ul",{tabIndex:0,role:"radiogroup",className:Z(vt.stars,{[vt.starsSmall]:r==="small",[vt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:h,children:Array(f_).fill(0).map((g,_)=>b.jsx(i3,{value:u===void 0?n:u,index:_,count:f_,readonly:i,onHover:d(_),onClick:m(_)},_))})},s3=({visible:n,onRate:r})=>{const i=et();return n?b.jsxs("div",{className:Z(vt.callToActionContainer,"chat__conversationRating__callToAction"),children:[b.jsx("div",{className:Z(vt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),b.jsx(wv,{value:0,size:"small",onChange:r})]}):null},Uf=({isFirstMessageBySender:n,isLastMessageBySender:r,children:i})=>b.jsxs("div",{className:Z(me.message,me.messageBot,n&&me.messageBotFirst,r&&me.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[b.jsx("img",{className:Z(me.avatar,me.botAvatar),src:"bot.svg",alt:"Bot"}),b.jsx("div",{className:Z(me.bubble,me.bubbleLeft,"chat__bubble","chat__botBubble"),children:b.jsx("div",{className:Z(me.leftText,me.bubbleContent),children:i})})]}),l3=({children:n})=>b.jsx("div",{className:Z(me.message,me.messageGuest,me.messageGuestFirst,me.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:b.jsx("div",{className:Z(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),children:b.jsx("div",{className:Z(me.rightText,me.bubbleContent),children:n})})}),o3=({visible:n,rating:r,onRate:i,onClose:l})=>{const u=et(),[f,h]=I.useState(r),[d,m]=I.useState(void 0),[g,_]=I.useState(void 0),[E,y]=I.useState({submitted:!1,feedback:""}),[x,T]=I.useState(!1),z=I.useRef(null);I.useEffect(()=>{n?(y({submitted:!1,feedback:""}),_(n)):g===!0&&_(!1)},[n,g]),I.useEffect(()=>{h(r)},[r]),I.useEffect(()=>{const U=u(`conversation-rating.overlay.bot-message.rate-feedback.value-${f}`);m(U!=null&&U.length?U:void 0)},[f,u]),I.useEffect(()=>{E.submitted?setTimeout(()=>T(!0),E.feedback.length?500:0):T(!1)},[E]);const N=U=>{var O,R;U.preventDefault();const M=((R=(O=z.current)==null?void 0:O.value)==null?void 0:R.trim())||"";i(f,M),y({submitted:!0,feedback:M})};return b.jsx("div",{className:Z(vt.rateOverlay,Pn.bottomSheet,"chat__conversationRating__overlay",{[Pn.bottomSheetOpen]:g===!0,[Pn.bottomSheetClose]:g===!1}),children:b.jsxs("form",{onSubmit:N,children:[b.jsxs("div",{className:Z(vt.body,"chat__conversationRating__overlay__body"),children:[b.jsx("div",{}),b.jsx("div",{className:Z(vt.bubbles),children:n&&d&&b.jsxs(b.Fragment,{children:[b.jsxs(Uf,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[b.jsx("h2",{children:u("conversation-rating.overlay.title")}),b.jsxs("div",{className:Z(vt.starsDescriptionContainer),children:[b.jsx(wv,{value:f,size:"large",readonly:E.submitted,onChange:h}),b.jsxs("div",{className:Z(vt.starsDescription),children:[b.jsx("div",{children:u("conversation-rating.overlay.star.very-bad")}),b.jsx("div",{children:u("conversation-rating.overlay.star.very-good")})]})]})]}),b.jsx(Uf,{isFirstMessageBySender:!1,isLastMessageBySender:!x||!!E.feedback.length,children:b.jsx("div",{children:d})}),!!E.feedback.length&&b.jsx(l3,{children:E.feedback}),x&&b.jsx(Uf,{isFirstMessageBySender:!!E.feedback.length,isLastMessageBySender:!0,children:b.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),b.jsxs("div",{className:Z(vt.footer,"chat__conversationRating__overlay__footer"),children:[!E.submitted&&b.jsx("input",{ref:z,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),b.jsx("div",{className:Z(vt.actions,"chat__conversationRating__overlay__footer__actions"),children:E.submitted?b.jsx(os,{type:"button",onClick:l,children:u("conversation-rating.overlay.action.close")}):b.jsx(os,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},u3=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:l,setShowRatingOverlay:u,onRate:f})=>{const[h,d]=I.useState(0),m=E=>{d(E),u(!0)},g=()=>u(!1),_=!r&&i>=1;return n?b.jsxs(b.Fragment,{children:[b.jsx(s3,{visible:_,onRate:m}),b.jsx(o3,{visible:l,rating:h,onRate:f,onClose:g})]}):null},c3=I.memo(u3),f3="_inputWrapper_e3h44_1",h3="_withOpenCommands_e3h44_14",d3="_messageInputWrapper_e3h44_20",m3="_messageInput_e3h44_20",p3="_buttons_e3h44_44",g3="_button_e3h44_44",Pr={inputWrapper:f3,withOpenCommands:h3,messageInputWrapper:d3,messageInput:m3,buttons:p3,button:g3},y3="_audioRecorder_g845f_1",_3="_audioButton_g845f_6",b3="_recorderIcon_g845f_37",v3="_spinning_g845f_60",Yr={audioRecorder:y3,audioButton:_3,recorderIcon:b3,spinning:v3},h_=2048,go=16e3;class E3 extends V_.Component{constructor(i){super(i);Ce(this,"audioInput",null);Ce(this,"volume",null);Ce(this,"leftchannel",[]);Ce(this,"recorder",null);Ce(this,"recordingLength",0);Ce(this,"sampleRate",null);Ce(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(i){this.mediaStream=i,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(i)}initRecording(i){const l=window.AudioContext||window.webkitAudioContext,u=new l;this.sampleRate=u.sampleRate,this.volume=u.createGain(),this.audioInput=u.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=u.createScriptProcessor(h_,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(u.destination)}processRecordingInput(i){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const l=i.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(l)),this.recordingLength+=h_}}handleClickSubmitAudio(){const i=T3(this.leftchannel,this.recordingLength),l=x3(i,this.sampleRate||0),u=S3(l);this.props.onAudioRecorded(u),this.handleClickStopAudio()}handleClickStopAudio(){var i,l,u,f;this.setState({recordingState:"none"}),(i=this.audioInput)==null||i.disconnect(),(l=this.volume)==null||l.disconnect(),(u=this.recorder)==null||u.disconnect(),this.mediaStream&&((f=this.mediaStream)==null||f.getAudioTracks().forEach(h=>{h.stop()}))}render(){return b.jsxs("div",{className:Yr.audioRecorder,children:[this.state.recordingState==="none"&&b.jsx("button",{className:Z(Yr.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:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.jsx("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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&b.jsxs("svg",{className:Yr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.jsx("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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&b.jsxs("div",{className:Yr.audioRecorder,children:[b.jsx("button",{className:Z(Yr.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.jsx("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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),b.jsx("div",{className:Yr.recorderIcon}),b.jsx("button",{className:Z(Yr.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const S3=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);Jl(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Jl(i,8,"WAVE"),Jl(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,go,!0),i.setUint32(28,go*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Jl(i,36,"data"),i.setUint32(40,n.length*2,!0);const l=n.length;let u=44;const f=1;for(let h=0;h<l;h++)i.setInt16(u,n[h]*(32767*f),!0),u+=2;return new Blob([i],{type:"audio/wav"})},Jl=(n,r,i)=>{for(let l=0;l<i.length;l++)n.setUint8(r+l,i.charCodeAt(l))},T3=(n,r)=>{const i=new Float32Array(r);let l=0;const u=n.length;for(let f=0;f<u;f++){const h=n[f];i.set(h,l),l+=h.length}return i},x3=(n,r)=>{if(go===r)return n;const i=r/go,l=Math.round(n.length/i),u=new Float32Array(l);let f=0,h=0;for(;f<u.length;){const d=Math.round((f+1)*i);let m=0,g=0;for(let _=h;_<d&&_<n.length;_++)m+=n[_],g++;u[f]=m/g,f++,h=d}return u},A3=({disabled:n,textInput:r,commandsVisible:i,onTextInput:l,onTextInputSubmit:u,onAudioRecorded:f,onOpenTranscriptExportModal:h})=>{const d=et(),m=I.useRef(null),{enableTranscriptExportPdf:g,enableTranscriptExportEmail:_,enableSpeechSupport:E}=kt(N=>N.settings);I.useEffect(()=>{var N;(N=m.current)==null||N.focus()},[r]);const y=()=>{const N=m.current;N&&r.trim().length>=1&&u(r.trim())&&(N.value="",N.style.height="",N.focus())},x=N=>{N.preventDefault(),y()},T=N=>{const U=N.target.value;l(U),N.target.style.height="";const{scrollHeight:M}=N.target;N.target.style.height=`${M>150?150:M}px`},z=N=>{N.code==="Enter"&&!N.shiftKey?(N.repeat||y(),N.preventDefault()):i&&(N.code==="ArrowUp"||N.code==="ArrowDown")&&N.preventDefault()};return b.jsxs("form",{className:Z(Pr.inputWrapper,i&&Pr.withOpenCommands,"chat__textInput"),onSubmit:x,children:[b.jsx("div",{className:Pr.messageInputWrapper,children:b.jsx("textarea",{id:"user_input",ref:m,className:Pr.messageInput,tabIndex:0,placeholder:d("message-input-placeholder"),value:r,onChange:T,onKeyDown:z,"aria-label":d("message-input-label"),"aria-controls":"command-list","aria-haspopup":"listbox"})}),b.jsxs("div",{className:Z(Pr.buttons,"chat__buttons"),children:[!r.length&&(g||_)&&b.jsx("button",{type:"button",className:Z(Pr.button,"chat__button"),"aria-label":d("message-input.actions.export-transcript.label"),"data-title":d("message-input.actions.export-transcript.label"),tabIndex:0,onClick:h,children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.jsx("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"})})}),r.length||!E||navigator.mediaDevices===void 0?b.jsx("button",{className:Z(Pr.button,"chat__button"),type:"submit","aria-label":d("message-input.actions.submit.label"),"data-title":d("message-input.actions.submit.label"),tabIndex:0,disabled:n,children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.jsx("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"})})}):E&&navigator.mediaDevices!==void 0&&b.jsx(E3,{translate:d,onAudioRecorded:f})]})]})},O3="_quickReplies_83npe_1",w3="_quickReply_83npe_9",d_={quickReplies:O3,quickReply:w3},R3=({quickReplies:n,onQuickReplyClick:r})=>n.length?b.jsx("div",{className:Z(d_.quickReplies,"chat__quickReplies"),children:n.map(i=>b.jsx(Co,{tabIndex:0,className:Z(d_.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,m_=5e3,C3=1e3,N3=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:l,showRatingOverlay:u,commands:f,setShowRatingOverlay:h,onTextInput:d,onRate:m,onQuickReplyClick:g,onAudioRecorded:_,onOpenTranscriptExportModal:E})=>{const[y,x]=I.useState(""),[T,z]=I.useState(!1),[N,U]=I.useState(!1),M=I.useRef(0),O=I.useRef(0);I.useEffect(()=>{if(T&&!n){const k=M.current?Date.now()-M.current:0;k>m_?z(!1):setTimeout(()=>{z(!1)},m_-k)}},[T,n]),I.useEffect(()=>{T&&(M.current=Date.now())},[T]);const R=k=>{const Y=Date.now()-O.current<C3;return N?!1:n||Y?(z(!0),!1):(d(k),x(""),O.current=Date.now(),!0)},S=k=>{x(k+" ")};return b.jsxs("div",{className:Z(NC.inputContainer),children:[b.jsx(R3,{quickReplies:r,onQuickReplyClick:g}),b.jsx(BC,{visible:T}),!T&&b.jsx(c3,{conversationRating:i,numberOfMessagesFromGuest:l,onRate:m,showRatingOverlay:u,setShowRatingOverlay:h}),!!(f!=null&&f.length)&&b.jsx(qC,{text:y,commands:f,onSelectCommand:S,onVisibilityChange:U}),b.jsx(A3,{textInput:y,disabled:T,commandsVisible:N,onTextInput:x,onTextInputSubmit:R,onOpenTranscriptExportModal:E,onAudioRecorded:_}),!!(f!=null&&f.length)&&b.jsx(FC,{commands:f,onSelectCommand:x})]})},D3=({clientName:n,messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:f,onMessageFromUser:h,onRate:d,onQuickReplyClick:m,onButtonClick:g,onLinkClick:_,onAudioRecorded:E,onTranscriptExport:y,onPdfExport:x,onTranscriptItemReaction:T})=>{const z=Pa(),N=kt(ee=>ee.connection.connectionState),{enableTranscriptExportPdf:U,enableTranscriptExportEmail:M,commands:O}=kt(ee=>ee.settings),[R,S]=I.useState(!1),[k,Y]=I.useState(!1),K=U||M,re=r.filter(ee=>ee.sender.type===po.GUEST).length;return I.useEffect(()=>{if(N===Kr.CONNECTED){const ee=vo.parse(window.location.search);z(tv(n,ee))}},[n,N,z]),b.jsxs("div",{className:Tf.container,children:[b.jsxs("div",{className:Z([Tf.chatcontent,(R||k)&&Tf.accessabilityHidden]),children:[b.jsx(uC,{messages:r,isBotTyping:l,commands:O,onButtonClick:g,onLinkClick:_,onTranscriptItemReaction:T}),b.jsx(N3,{isBotTyping:l,quickReplies:l?[]:i,numberOfMessagesFromGuest:re,conversationRating:R?{enabled:!1}:f,showRatingOverlay:k,setShowRatingOverlay:Y,commands:O,onRate:d,onQuickReplyClick:m,onTextInput:h,onAudioRecorded:E,onOpenTranscriptExportModal:()=>S(!R)}),b.jsx(vC,{})]}),K&&b.jsx(RC,{enableTranscriptExportPdf:U,enableTranscriptExportEmail:M,visible:R,onEmailExport:y,onPdfExport:x,onClose:()=>S(!1)}),b.jsx(gC,{contentUrl:u})]})},M3=n=>{const{messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:f}=n.chat;return{messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:f}},B3=n=>({onRestartChat:(r,i)=>n(wo(r,i)),onMessageFromUser:r=>n(Bb(r)),onRate:(r,i)=>n(dA(r,i)),onAudioRecorded:r=>n(oA(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(Mb(r)),onNluEvent:r=>n(kb(r)),onButtonClick:r=>n(pA(r)),onLinkClick:r=>n(gA(r)),onTranscriptExport:r=>n(cA(r)),onPdfExport:()=>n(fA()),onTranscriptItemReaction:(r,i)=>n(Ee.Actions.transcriptItemGuestReaction(r,i||null))}),j3=RS(M3,B3)(D3),Rv=()=>U3(window.location.pathname),U3=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},Cv=()=>I.useMemo(()=>Rv(),[]),Nv=()=>{const[n,r]=I.useState(!1);return I.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},sd=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},H3=({onClick:n})=>{const r=et();return Nv()?b.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:sd(n),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.jsx("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"})})}):null},L3=()=>{const n=et(),r=Nv(),i=kt(u=>u.settings.enableStandaloneView),l=()=>{window.open(window.location.href,"_blank")};return r&&i?b.jsx("button",{className:"tooltip--bottom-left","aria-label":n("header.expand-chat"),"data-title":n("header.expand-chat"),tabIndex:0,onClick:l,onKeyDown:sd(l),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.jsx("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"})})}):null},z3="_header_1hky6_1",k3="_logoContainer_1hky6_13",G3="_logo_1hky6_13",q3="_actions_1hky6_27",Wl={header:z3,logoContainer:k3,logo:G3,actions:q3},I3=({onClick:n})=>{const r=et();return b.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.restart-chat"),"data-title":r("header.restart-chat"),tabIndex:0,onClick:n,onKeyDown:sd(n),children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[b.jsx("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"}),b.jsx("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"})]})})},p_=({className:n,withActions:r=!0,...i})=>{const l=Pa(),u=Cv(),f=()=>{const d=vo.parse(window.location.search);l(wo(u,d))},h=()=>{l(lO())};return b.jsxs("div",{className:Z([Wl.header,n]),...i,children:[b.jsx("div",{className:Wl.logoContainer,children:b.jsx("div",{className:Wl.logo})}),b.jsxs("div",{className:Wl.actions,children:[r&&b.jsx(I3,{onClick:f}),b.jsx(L3,{}),b.jsx(H3,{onClick:h})]})]})},F3="_chatwindow_6v6ob_1",V3="_chatwindowWithAside_6v6ob_46",g_={chatwindow:F3,chatwindowWithAside:V3},P3="_sourceInfos_1878a_1",Y3="_sourceDetails_1878a_16",Z3="_sourceHeader_1878a_23",X3="_sourceHeaderIcon_1878a_43",Q3="_openSourceButton_1878a_47",K3="_closeSourceInfosButton_1878a_70",$3="_sourceContent_1878a_85",J3="_loadingSourceInfos_1878a_109",W3="_loading_1878a_109",e6="_loadingError_1878a_123",Tn={sourceInfos:P3,sourceDetails:Y3,sourceHeader:Z3,sourceHeaderIcon:X3,openSourceButton:Q3,closeSourceInfosButton:K3,sourceContent:$3,loadingSourceInfos:J3,loading:W3,loadingError:e6},t6=({onClick:n})=>{const r=et();return b.jsx("button",{className:Z(Tn.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:n,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.jsx("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"})})})},n6=n=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:b.jsx("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"})}),r6=({type:n,...r})=>{switch(n){case"WEBSITE":return b.jsx(Tv,{...r});case"PDF":return b.jsx(Sv,{...r});case"DOCX":return b.jsx(vv,{...r});case"TEXT":return b.jsx(n6,{...r});default:return b.jsx(Ev,{...r})}},a6=({sourceInfos:n,onClose:r})=>b.jsxs("div",{className:Tn.sourceHeader,children:[b.jsx("div",{className:Tn.sourceHeaderIcon,children:n&&b.jsx(r6,{type:n.knowledgeBaseType})}),b.jsx("div",{children:n&&b.jsx("h1",{children:n.title})}),b.jsx(t6,{onClick:r})]}),i6=({title:n,href:r,children:i})=>b.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),s6=({className:n,children:r,...i})=>b.jsx("a",{className:Z(ls.button,ls.buttonPrimary,n),type:"button",...i,children:r}),l6=({label:n,url:r})=>b.jsxs(s6,{className:Tn.openSourceButton,href:r,target:"_blank",children:[b.jsx("p",{children:n}),b.jsx("div",{children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:b.jsx("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"})})})]}),o6=({sourceInfos:n})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:Z(Tn.sourceContent,Ov.markdown),children:b.jsx(vn,{options:{overrides:{a:i6}},children:n.content})}),b.jsx(l6,{label:n.title,url:n.url})]}),u6=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,c6=()=>{const n=et();return b.jsxs("div",{className:Tn.loadingError,children:[b.jsx("h1",{children:n("source-infos.error.title")}),b.jsx("img",{src:u6,title:n("source-infos.error.title")}),b.jsx("p",{children:n("source-infos.error.info")})]})},f6=()=>b.jsx("div",{className:Tn.loadingSourceInfos,children:b.jsx("svg",{className:Tn.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.jsx("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"})})}),h6=()=>{const n=Pa(),r=kt(l=>l.chat.sourceInfos),i=()=>{n(uO())};return r?b.jsxs("div",{className:Tn.sourceInfos,children:[b.jsx("div",{className:Tn.sourceDetails,children:b.jsx(a6,{sourceInfos:r.type==="loaded"?r:void 0,onClose:i})}),r.type==="loading"?b.jsx(f6,{}):r.type==="loading-error"?b.jsx(c6,{}):b.jsx(o6,{sourceInfos:r})]}):null},d6="_container_114wy_1",m6="_body_114wy_7",p6="_intro_114wy_14",g6="_footer_114wy_39",y6="_footnote_114wy_43",_6="_containerWithFootnote_114wy_58",b6="_startChatButton_114wy_73",v6="_formFields_114wy_77",E6="_formField_114wy_77",S6="_radio_114wy_89",T6="_checkbox_114wy_96",x6="_input_114wy_104",A6="_inputLabel_114wy_138",O6="_selectWrapper_114wy_142",w6="_select_114wy_142",R6="_selectLabel_114wy_188",ht={container:d6,body:m6,intro:p6,footer:g6,footnote:y6,containerWithFootnote:_6,startChatButton:b6,formFields:v6,formField:E6,radio:S6,checkbox:T6,input:x6,inputLabel:A6,selectWrapper:O6,select:w6,selectLabel:R6},C6=({name:n,label:r,defaultValue:i,required:l,onChange:u})=>{const f=h=>{u(h.currentTarget.checked?"true":"false")};return b.jsxs("label",{className:Z(ht.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[b.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:l,onChange:f}),b.jsx("div",{children:r})]})},N6=({type:n,name:r,label:i,defaultValue:l,placeholder:u,required:f,multiple:h,min:d,max:m,pattern:g,onChange:_})=>{const E=y=>{_(y.target.value)};return b.jsxs("label",{className:Z(ht.input,"chat__startScreen__input"),htmlFor:r,children:[b.jsx("div",{className:Z(ht.inputLabel),children:i}),b.jsx("input",{type:n,id:r,name:r,defaultValue:l,placeholder:u,required:f,multiple:h,min:d,max:m,pattern:g,onChange:E})]})},D6=({name:n,value:r,label:i,defaultChecked:l,required:u,onChange:f})=>{const h=`${n}-${r}`,d=m=>{f(m.target.value)};return b.jsxs("label",{className:Z(ht.radio,"chat__startScreen__radio"),htmlFor:h,children:[b.jsx("input",{id:h,type:"radio",name:n,value:r,defaultChecked:l,required:u,onChange:d}),b.jsx("span",{className:Z(ht.label),children:i})]})},M6=({name:n,label:r,defaultValue:i,required:l,multiple:u,options:f,onChange:h})=>{const d=m=>{h(m.target.value)};return b.jsxs("label",{className:Z(ht.select,"chat__startScreen__select"),htmlFor:n,children:[b.jsx("div",{className:Z(ht.selectLabel),children:r}),b.jsx("div",{className:Z(ht.selectWrapper),children:b.jsx("select",{id:n,name:n,defaultValue:i,required:l,multiple:u,onChange:d,children:Object.entries(f||{}).map(([m,g])=>b.jsx("option",{value:m,selected:g===i,children:g}))})})]})},B6="start-screen.intro",j6="start-screen.start-chat",U6="start-screen.footnote",on="start-screen.form",y_=`${on}.fields`,H6=()=>{const n=et(),r=Pa(),[i,l]=I.useState({}),u=()=>{const E=Object.entries(i).reduce((y,[x,T])=>({...y,[x]:T.value}),{});r(aO(E))},f=n(B6),h=n(j6),d=n(U6),m=I.useMemo(()=>{var E;return((E=n(y_))==null?void 0:E.split(";").map(y=>y.trim()))??[]},[n(y_)]);I.useEffect(()=>{m.length&&Object.keys(i).length===0&&l(m.reduce((E,y)=>({...E,[y]:L6(y,n)}),{}))},[n,m,i]);const g=E=>{E.preventDefault(),u()},_=E=>y=>{l(x=>({...x,[E]:{...x[E],value:y}}))};return b.jsxs("form",{onSubmit:g,className:Z(ht.container,d&&ht.containerWithFootnote,"chat__startScreen"),children:[b.jsxs("div",{className:Z(ht.body,"chat__startScreen__body"),children:[f&&b.jsx("div",{className:Z(ht.intro,"chat__startScreen__intro"),children:b.jsx(vn,{options:{overrides:{a:__}},children:f})}),b.jsx("div",{className:Z(ht.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:E,name:y,label:x,placeholder:T,defaultValue:z,options:N,required:U,multiple:M,min:O,max:R,pattern:S})=>b.jsx("div",{className:Z(ht.formField,"chat__startScreen__field"),children:(()=>{switch(E){case"radio":return b.jsxs(b.Fragment,{children:[b.jsx("div",{children:x}),Object.entries(N||{}).map(([k,Y])=>b.jsx(D6,{name:y,value:k,label:Y,defaultChecked:k===z,required:U,onChange:_(y)}))]});case"checkbox":return b.jsx(C6,{name:y,label:x,defaultValue:z,required:U,onChange:_(y)});case"select":return b.jsx(M6,{name:y,label:x,defaultValue:z,required:U,multiple:M,options:N,onChange:_(y)});default:return b.jsx(N6,{type:E,name:y,label:x,placeholder:T,defaultValue:z,required:U,multiple:M,min:O,max:R,pattern:S,onChange:_(y)})}})()},y))})]}),b.jsxs("div",{className:Z(ht.footer,"chat__startScreen__footer"),children:[b.jsx(os,{type:"submit",className:ht.startChatButton,children:h}),d&&b.jsx("div",{className:ht.footnote,children:b.jsx(vn,{options:{overrides:{a:__}},children:d})})]})]})},__=({title:n,href:r,children:i})=>b.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),L6=(n,r)=>{const i=r(`${on}.${n}.type`)||"text",l=r(`${on}.${n}.required`)==="true",u=r(`${on}.${n}.multiple`)==="true",f=r(`${on}.${n}.placeholder`),h=r(`${on}.${n}.label`)||"",d=r(`${on}.${n}.defaultValue`),m=r(`${on}.${n}.min`),g=r(`${on}.${n}.max`),_=r(`${on}.${n}.pattern`),E=k6(r(`${on}.${n}.options`));return{name:n,label:h,placeholder:f,value:z6(i,d,E)||"",defaultValue:d,options:E,type:i,required:l,multiple:u,min:m,max:g,pattern:_}},z6=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",k6=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[l,u]=i.split(":").map(f=>f.trim());return{...r,[l]:u}},{}),G6=()=>{const n=bo();I.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},ka={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"},q6=({clientName:n})=>{G6();const r=Pa(),i=kt(_=>_.intl.messages),l=et(),u=kt(_=>_.settings.enableStartScreen),f=kt(_=>_.startScreen.startScreenStatus),[h,d]=I.useState(void 0);I.useEffect(()=>{const _=vo.parse(window.location.search);_.cssClassName&&d(_.cssClassName);const E=y=>{switch(y.data.type){case ka.TRIGGER_ACTION:r(y.data.action);break;case ka.TRIGGER_STORY:r(kb(y.data.story));break;case ka.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case ka.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case ka.CHAT_MESSAGE_FROM_GUEST:r(Bb(y.data.text));break;case ka.RESTART_CHAT:r(wo(n,_));break}};return r(fO(n,_)),window.addEventListener("message",y=>E(y),!1),()=>window.removeEventListener("message",E)},[n,r]),I.useEffect(()=>{const _=l("page.title");_&&document&&(document.title=_)},[i,l]);const m=u===void 0,g=u===!1||f==="HIDDEN";return b.jsx("div",{className:Z(g_.chatwindow,g&&g_.chatwindowWithAside,"chat__chatwindow",h),children:m?null:g?b.jsxs(b.Fragment,{children:[b.jsx("header",{children:b.jsx(p_,{})}),b.jsx("main",{children:b.jsx(j3,{clientName:n})}),b.jsx("aside",{children:b.jsx(h6,{})})]}):b.jsxs(b.Fragment,{children:[b.jsx("header",{children:b.jsx(p_,{withActions:!1})}),b.jsx("main",{children:b.jsx(H6,{})})]})})},I6=1024,F6=()=>{const n=Cv(),r=kt(f=>f.intl.locale),i=kt(f=>f.intl.messages),[l,u]=I.useState(b_());return I.useEffect(()=>{const f=()=>{u(b_())};return window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]),b.jsx(px,{locale:r,messages:i,children:b.jsx("div",{className:Z([yx.app,l?"chat__large":"chat__small"]),children:b.jsx(q6,{clientName:n})})})},b_=()=>window.innerWidth>=I6;var Hf,v_;function ld(){if(v_)return Hf;v_=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return Hf=n,Hf}var Lf,E_;function V6(){if(E_)return Lf;E_=1;var n=typeof Ol=="object"&&Ol&&Ol.Object===Object&&Ol;return Lf=n,Lf}var zf,S_;function Dv(){if(S_)return zf;S_=1;var n=V6(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return zf=i,zf}var kf,T_;function P6(){if(T_)return kf;T_=1;var n=Dv(),r=function(){return n.Date.now()};return kf=r,kf}var Gf,x_;function Y6(){if(x_)return Gf;x_=1;var n=/\s/;function r(i){for(var l=i.length;l--&&n.test(i.charAt(l)););return l}return Gf=r,Gf}var qf,A_;function Z6(){if(A_)return qf;A_=1;var n=Y6(),r=/^\s+/;function i(l){return l&&l.slice(0,n(l)+1).replace(r,"")}return qf=i,qf}var If,O_;function Mv(){if(O_)return If;O_=1;var n=Dv(),r=n.Symbol;return If=r,If}var Ff,w_;function X6(){if(w_)return Ff;w_=1;var n=Mv(),r=Object.prototype,i=r.hasOwnProperty,l=r.toString,u=n?n.toStringTag:void 0;function f(h){var d=i.call(h,u),m=h[u];try{h[u]=void 0;var g=!0}catch{}var _=l.call(h);return g&&(d?h[u]=m:delete h[u]),_}return Ff=f,Ff}var Vf,R_;function Q6(){if(R_)return Vf;R_=1;var n=Object.prototype,r=n.toString;function i(l){return r.call(l)}return Vf=i,Vf}var Pf,C_;function K6(){if(C_)return Pf;C_=1;var n=Mv(),r=X6(),i=Q6(),l="[object Null]",u="[object Undefined]",f=n?n.toStringTag:void 0;function h(d){return d==null?d===void 0?u:l:f&&f in Object(d)?r(d):i(d)}return Pf=h,Pf}var Yf,N_;function $6(){if(N_)return Yf;N_=1;function n(r){return r!=null&&typeof r=="object"}return Yf=n,Yf}var Zf,D_;function J6(){if(D_)return Zf;D_=1;var n=K6(),r=$6(),i="[object Symbol]";function l(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Zf=l,Zf}var Xf,M_;function W6(){if(M_)return Xf;M_=1;var n=Z6(),r=ld(),i=J6(),l=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return l;if(r(g)){var _=typeof g.valueOf=="function"?g.valueOf():g;g=r(_)?_+"":_}if(typeof g!="string")return g===0?g:+g;g=n(g);var E=f.test(g);return E||h.test(g)?d(g.slice(2),E?2:8):u.test(g)?l:+g}return Xf=m,Xf}var Qf,B_;function e4(){if(B_)return Qf;B_=1;var n=ld(),r=P6(),i=W6(),l="Expected a function",u=Math.max,f=Math.min;function h(d,m,g){var _,E,y,x,T,z,N=0,U=!1,M=!1,O=!0;if(typeof d!="function")throw new TypeError(l);m=i(m)||0,n(g)&&(U=!!g.leading,M="maxWait"in g,y=M?u(i(g.maxWait)||0,m):y,O="trailing"in g?!!g.trailing:O);function R(de){var Fe=_,Te=E;return _=E=void 0,N=de,x=d.apply(Te,Fe),x}function S(de){return N=de,T=setTimeout(K,m),U?R(de):x}function k(de){var Fe=de-z,Te=de-N,G=m-Fe;return M?f(G,y-Te):G}function Y(de){var Fe=de-z,Te=de-N;return z===void 0||Fe>=m||Fe<0||M&&Te>=y}function K(){var de=r();if(Y(de))return re(de);T=setTimeout(K,k(de))}function re(de){return T=void 0,O&&_?R(de):(_=E=void 0,x)}function ee(){T!==void 0&&clearTimeout(T),N=0,_=z=E=T=void 0}function le(){return T===void 0?x:re(r())}function ie(){var de=r(),Fe=Y(de);if(_=arguments,E=this,z=de,Fe){if(T===void 0)return S(z);if(M)return clearTimeout(T),T=setTimeout(K,m),R(z)}return T===void 0&&(T=setTimeout(K,m)),x}return ie.cancel=ee,ie.flush=le,ie}return Qf=h,Qf}var Kf,j_;function t4(){if(j_)return Kf;j_=1;var n=e4(),r=ld(),i="Expected a function";function l(u,f,h){var d=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(h)&&(d="leading"in h?!!h.leading:d,m="trailing"in h?!!h.trailing:m),n(u,f,{leading:d,maxWait:f,trailing:m})}return Kf=l,Kf}var n4=t4();const r4=yo(n4);function a4(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function i4(n){return n}function s4(n,r){r=r||{};const i=r.delimiter||".",l=r.maxDepth,u=r.transformKey||i4,f={};function h(d,m,g){g=g||1,Object.keys(d).forEach(function(_){const E=d[_],y=r.safe&&Array.isArray(E),x=Object.prototype.toString.call(E),T=a4(E),z=x==="[object Object]"||x==="[object Array]",N=m?m+i+u(_):u(_);if(!y&&!T&&z&&Object.keys(E).length&&(!r.maxDepth||g<l))return h(E,N,g+1);f[N]=E})}return h(n),f}const Bv={"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:
|
|
107
|
+
|
|
108
|
+
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
109
|
+
- 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.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},l4={"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:
|
|
110
|
+
|
|
111
|
+
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
112
|
+
- 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.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},o4={"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:
|
|
113
|
+
|
|
114
|
+
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
115
|
+
- 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.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.","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"},u4={"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:
|
|
116
|
+
|
|
117
|
+
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
118
|
+
- 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.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","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"},c4=["de","en","fr","it"],jv={locale:"de",messages:Bv},f4=(n,r)=>{if(c4.includes(n)){const i=h4(n),l=s4(r);return{...i,...l}}return r},h4=n=>{switch(n.toString()){case"en":return l4;case"fr":return o4;case"it":return u4;default:return Bv}},d4=(n=m4,r)=>{switch(r.type){case Jh:return Object.assign({},n,{connectionState:Kr.CONNECTING});case Wh:return Object.assign({},n,{connectionState:Kr.CONNECTED});case ed:return Object.assign({},n,{connectionState:Kr.DISCONNECTED});case td:return Object.assign({},n,{connectionState:Kr.RECONNECTED});case nd:return Object.assign({},n,{sessionId:r.sessionId});case Ao:return Object.assign({},n,{sessionId:r.payload.sessionId,userId:r.payload.userId});case Oo:return Object.assign({},n,{sessionId:void 0});default:return n}},m4={connectionState:Kr.DISCONNECTED,sessionId:void 0,userId:void 0},p4=(n=H_,r)=>{switch(r.type){case ev:return H_;case Ao:return Zr({type:"webclient.chat.started"}),n;case Oo:return Zr({type:"webclient.chat.ended"}),n;case Ee.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Ee.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Ee.ActionTypes.MESSAGE_FROM_GUEST:case Ee.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return U_(n,r.message);case Ee.ActionTypes.MESSAGE_TO_GUEST:{Zr(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),l=n.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:l?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case qh:{const i=r.messages,l=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:(l==null?void 0:l.quickReplies)||[]})}case Gh:return Zr(r.message),n;case Ee.ActionTypes.EVENT_TO_GUEST:return Zr(r.event),n;case Ee.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:r.payload.parameters.contentUrl});case Ee.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Ee.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:r.payload.locale});case Hb:return Zr(r),n;case Lb:return Zr(r),n;case Fh:{const i=new Ee.TextMessage(r.transcription,new Ee.GuestUser),l=Object.assign({},i,{_id:ph()});return U_(n,l)}case Ee.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(l=>l._id===r.payload.actionId?Object.assign({},l,{reaction:r.payload.reaction}):l);return Object.assign({},n,{messages:i})}case Vh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},n,{conversationRating:i})}case Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:r.payload};return Object.assign({},n,{conversationRating:i})}case Ph:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Ub:return{...n,sourceInfos:{type:"loading-error"}};case jb:return{...n,sourceInfos:{type:"loaded",chunkId:r.payload.chunkId,knowledgeBaseType:r.payload.knowledgeBaseType,title:r.payload.title,content:r.payload.content,url:r.payload.url}};case Yh:return{...n,sourceInfos:void 0};default:return n}},U_=(n,r)=>{const i=n.messages[n.messages.length-1],l=(i==null?void 0:i.text)===r.text;return i&&i.sender.type===r.sender.type&&l?n:Object.assign({},n,{messages:n.messages.concat([r]),quickReplies:[]})},Zr=n=>{var r;g4()?(r=window.top)==null||r.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},g4=()=>typeof window<"u"&&window.self!==window.top,H_={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},Uv=Kh({name:"intl",initialState:jv,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:y4}=Uv.actions,_4=Uv.reducer,b4={enableStartScreen:!1,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},Hv=Kh({name:"settings",initialState:b4,reducers:{setSettings(n,r){n.enableStartScreen=r.payload.enableStartScreen,n.enableStandaloneView=r.payload.enableStandaloneView,n.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,n.enableGeneralConditions=r.payload.enableGeneralConditions,n.enableSpeechSupport=r.payload.enableSpeechSupport,n.commands=r.payload.commands}}}),{setSettings:v4}=Hv.actions,E4=Hv.reducer,S4=Ib({settings:E4,chat:p4,startScreen:sO,connection:d4,intl:_4}),T4="bubble-chat",Lv="state-last-saved-at",zv="state",x4=n=>{try{if(!w4())return;const r=L_(n,Lv);if(O4(r))return;{const i=L_(n,zv);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},A4=(n,r)=>{try{const i=JSON.stringify(r);z_(n,zv,i);const l=new Date().toISOString();z_(n,Lv,l)}catch(i){console.error(i)}},O4=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},w4=()=>typeof localStorage<"u",L_=(n,r)=>{const i=kv(n,r);return localStorage.getItem(i)},z_=(n,r,i)=>{const l=kv(n,r);return localStorage.setItem(l,i)},kv=(n,r)=>`${T4}-${n}-${r}`,xn=Object.create(null);xn.open="0";xn.close="1";xn.ping="2";xn.pong="3";xn.message="4";xn.upgrade="5";xn.noop="6";const ao=Object.create(null);Object.keys(xn).forEach(n=>{ao[xn[n]]=n});const xh={type:"error",data:"parser error"},Gv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",qv=typeof ArrayBuffer=="function",Iv=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,od=({type:n,data:r},i,l)=>Gv&&r instanceof Blob?i?l(r):k_(r,l):qv&&(r instanceof ArrayBuffer||Iv(r))?i?l(r):k_(new Blob([r]),l):l(xn[n]+(r||"")),k_=(n,r)=>{const i=new FileReader;return i.onload=function(){const l=i.result.split(",")[1];r("b"+(l||""))},i.readAsDataURL(n)};function G_(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let $f;function R4(n,r){if(Gv&&n.data instanceof Blob)return n.data.arrayBuffer().then(G_).then(r);if(qv&&(n.data instanceof ArrayBuffer||Iv(n.data)))return r(G_(n.data));od(n,!1,i=>{$f||($f=new TextEncoder),r($f.encode(i))})}const q_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<q_.length;n++)rs[q_.charCodeAt(n)]=n;const C4=n=>{let r=n.length*.75,i=n.length,l,u=0,f,h,d,m;n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--);const g=new ArrayBuffer(r),_=new Uint8Array(g);for(l=0;l<i;l+=4)f=rs[n.charCodeAt(l)],h=rs[n.charCodeAt(l+1)],d=rs[n.charCodeAt(l+2)],m=rs[n.charCodeAt(l+3)],_[u++]=f<<2|h>>4,_[u++]=(h&15)<<4|d>>2,_[u++]=(d&3)<<6|m&63;return g},N4=typeof ArrayBuffer=="function",ud=(n,r)=>{if(typeof n!="string")return{type:"message",data:Fv(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:D4(n.substring(1),r)}:ao[i]?n.length>1?{type:ao[i],data:n.substring(1)}:{type:ao[i]}:xh},D4=(n,r)=>{if(N4){const i=C4(n);return Fv(i,r)}else return{base64:!0,data:n}},Fv=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Vv="",M4=(n,r)=>{const i=n.length,l=new Array(i);let u=0;n.forEach((f,h)=>{od(f,!1,d=>{l[h]=d,++u===i&&r(l.join(Vv))})})},B4=(n,r)=>{const i=n.split(Vv),l=[];for(let u=0;u<i.length;u++){const f=ud(i[u],r);if(l.push(f),f.type==="error")break}return l};function j4(){return new TransformStream({transform(n,r){R4(n,i=>{const l=i.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),r.enqueue(u),r.enqueue(i)})}})}let Jf;function eo(n){return n.reduce((r,i)=>r+i.length,0)}function to(n,r){if(n[0].length===r)return n.shift();const i=new Uint8Array(r);let l=0;for(let u=0;u<r;u++)i[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)),i}function U4(n,r){Jf||(Jf=new TextDecoder);const i=[];let l=0,u=-1,f=!1;return new TransformStream({transform(h,d){for(i.push(h);;){if(l===0){if(eo(i)<1)break;const m=to(i,1);f=(m[0]&128)===128,u=m[0]&127,u<126?l=3:u===126?l=1:l=2}else if(l===1){if(eo(i)<2)break;const m=to(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),l=3}else if(l===2){if(eo(i)<8)break;const m=to(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),_=g.getUint32(0);if(_>Math.pow(2,21)-1){d.enqueue(xh);break}u=_*Math.pow(2,32)+g.getUint32(4),l=3}else{if(eo(i)<u)break;const m=to(i,u);d.enqueue(ud(f?m:Jf.decode(m),r)),l=0}if(u===0||u>n){d.enqueue(xh);break}}}})}const Pv=4;function We(n){if(n)return H4(n)}function H4(n){for(var r in We.prototype)n[r]=We.prototype[r];return n}We.prototype.on=We.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};We.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};We.prototype.off=We.prototype.removeListener=We.prototype.removeAllListeners=We.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var l,u=0;u<i.length;u++)if(l=i[u],l===r||l.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};We.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+n],l=1;l<arguments.length;l++)r[l-1]=arguments[l];if(i){i=i.slice(0);for(var l=0,u=i.length;l<u;++l)i[l].apply(this,r)}return this};We.prototype.emitReserved=We.prototype.emit;We.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};We.prototype.hasListeners=function(n){return!!this.listeners(n).length};const No=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),Jt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),L4="arraybuffer";function Yv(n,...r){return r.reduce((i,l)=>(n.hasOwnProperty(l)&&(i[l]=n[l]),i),{})}const z4=Jt.setTimeout,k4=Jt.clearTimeout;function Do(n,r){r.useNativeTimers?(n.setTimeoutFn=z4.bind(Jt),n.clearTimeoutFn=k4.bind(Jt)):(n.setTimeoutFn=Jt.setTimeout.bind(Jt),n.clearTimeoutFn=Jt.clearTimeout.bind(Jt))}const G4=1.33;function q4(n){return typeof n=="string"?I4(n):Math.ceil((n.byteLength||n.size)*G4)}function I4(n){let r=0,i=0;for(let l=0,u=n.length;l<u;l++)r=n.charCodeAt(l),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(l++,i+=4);return i}function Zv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function F4(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function V4(n){let r={},i=n.split("&");for(let l=0,u=i.length;l<u;l++){let f=i[l].split("=");r[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return r}class P4 extends Error{constructor(r,i,l){super(r),this.description=i,this.context=l,this.type="TransportError"}}class cd extends We{constructor(r){super(),this.writable=!1,Do(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,l){return super.emitReserved("error",new P4(r,i,l)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=ud(r,this.socket.binaryType);this.onPacket(i)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,i={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const i=F4(r);return i.length?"?"+i:""}}class Y4 extends cd{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const i=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||i()})),this.writable||(l++,this.once("drain",function(){--l||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=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)};B4(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,M4(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=Zv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let Xv=!1;try{Xv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Z4=Xv;function X4(){}class Q4 extends Y4{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let l=location.port;l||(l=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||l!==r.port}}doWrite(r,i){const l=this.request({method:"POST",data:r});l.on("success",i),l.on("error",(u,f)=>{this.onError("xhr post error",u,f)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,l)=>{this.onError("xhr poll error",i,l)}),this.pollXhr=r}}class En extends We{constructor(r,i,l){super(),this.createRequest=r,Do(this,l),this._opts=l,this._method=l.method||"GET",this._uri=i,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var r;const i=Yv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(i);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{}(r=this._opts.cookieJar)===null||r===void 0||r.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=En.requestsCount++,En.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=X4,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete En.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}En.requestsCount=0;En.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",I_);else if(typeof addEventListener=="function"){const n="onpagehide"in Jt?"pagehide":"unload";addEventListener(n,I_,!1)}}function I_(){for(let n in En.requests)En.requests.hasOwnProperty(n)&&En.requests[n].abort()}const K4=function(){const n=Qv({xdomain:!1});return n&&n.responseType!==null}();class $4 extends Q4{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=K4&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new En(Qv,this.uri(),r)}}function Qv(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||Z4))return new XMLHttpRequest}catch{}if(!r)try{return new Jt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Kv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class J4 extends cd{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,l=Kv?{}:Yv(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(r,i,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=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const l=r[i],u=i===r.length-1;od(l,this.supportsBinary,f=>{try{this.doWrite(l,f)}catch{}u&&No(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=Zv()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const Wf=Jt.WebSocket||Jt.MozWebSocket;class W4 extends J4{createSocket(r,i,l){return Kv?new Wf(r,i,l):i?new Wf(r,i):new Wf(r)}doWrite(r,i){this.ws.send(i)}}class eN extends cd{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=U4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=r.readable.pipeThrough(i).getReader(),u=j4();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const f=()=>{l.read().then(({done:d,value:m})=>{d||(this.onPacket(m),f())}).catch(d=>{})};f();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this._writer.write(h).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const l=r[i],u=i===r.length-1;this._writer.write(l).then(()=>{u&&No(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const tN={websocket:W4,webtransport:eN,polling:$4},nN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ah(n){if(n.length>8e3)throw"URI too long";const r=n,i=n.indexOf("["),l=n.indexOf("]");i!=-1&&l!=-1&&(n=n.substring(0,i)+n.substring(i,l).replace(/:/g,";")+n.substring(l,n.length));let u=nN.exec(n||""),f={},h=14;for(;h--;)f[rN[h]]=u[h]||"";return i!=-1&&l!=-1&&(f.source=r,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=aN(f,f.path),f.queryKey=iN(f,f.query),f}function aN(n,r){const i=/\/{2,9}/g,l=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&l.splice(0,1),r.slice(-1)=="/"&&l.splice(l.length-1,1),l}function iN(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,f){u&&(i[u]=f)}),i}const Oh=typeof addEventListener=="function"&&typeof removeEventListener=="function",io=[];Oh&&addEventListener("offline",()=>{io.forEach(n=>n())},!1);class Er extends We{constructor(r,i){if(super(),this.binaryType=L4,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const l=Ah(r);i.hostname=l.host,i.secure=l.protocol==="https"||l.protocol==="wss",i.port=l.port,l.query&&(i.query=l.query)}else i.host&&(i.hostname=Ah(i.host).host);Do(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.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},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=V4(this.opts.query)),Oh&&(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"})},io.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=Pv,i.transport=r,this.id&&(i.sid=this.id);const l=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&Er.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Er.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),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 r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let l=0;l<this.writeBuffer.length;l++){const u=this.writeBuffer[l].data;if(u&&(i+=q4(u)),l>0&&i>this._maxPayload)return this.writeBuffer.slice(0,l);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,No(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,l){return this._sendPacket("message",r,i,l),this}send(r,i,l){return this._sendPacket("message",r,i,l),this}_sendPacket(r,i,l,u){if(typeof i=="function"&&(u=i,i=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:r,data:i,options:l};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},l=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():r()}):this.upgrading?l():r()),this}_onError(r){if(Er.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){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(),Oh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=io.indexOf(this._offlineEventListener);l!==-1&&io.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}Er.protocol=Pv;class sN extends Er{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),l=!1;Er.priorWebsocketSuccess=!1;const u=()=>{l||(i.send([{type:"ping",data:"probe"}]),i.once("packet",E=>{if(!l)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Er.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(_(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const y=new Error("probe error");y.transport=i.name,this.emitReserved("upgradeError",y)}}))};function f(){l||(l=!0,_(),i.close(),i=null)}const h=E=>{const y=new Error("probe error: "+E);y.transport=i.name,f(),this.emitReserved("upgradeError",y)};function d(){h("transport closed")}function m(){h("socket closed")}function g(E){i&&E.name!==i.name&&f()}const _=()=>{i.removeListener("open",u),i.removeListener("error",h),i.removeListener("close",d),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",h),i.once("close",d),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{l||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let l=0;l<r.length;l++)~this.transports.indexOf(r[l])&&i.push(r[l]);return i}}let lN=class extends sN{constructor(r,i={}){const l=typeof r=="object"?r:i;(!l.transports||l.transports&&typeof l.transports[0]=="string")&&(l.transports=(l.transports||["polling","websocket","webtransport"]).map(u=>tN[u]).filter(u=>!!u)),super(r,l)}};function oN(n,r="",i){let l=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),l=Ah(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+r,l.href=l.protocol+"://"+f+(i&&i.port===l.port?"":":"+l.port),l}const uN=typeof ArrayBuffer=="function",cN=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,$v=Object.prototype.toString,fN=typeof Blob=="function"||typeof Blob<"u"&&$v.call(Blob)==="[object BlobConstructor]",hN=typeof File=="function"||typeof File<"u"&&$v.call(File)==="[object FileConstructor]";function fd(n){return uN&&(n instanceof ArrayBuffer||cN(n))||fN&&n instanceof Blob||hN&&n instanceof File}function so(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)if(so(n[i]))return!0;return!1}if(fd(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return so(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&so(n[i]))return!0;return!1}function dN(n){const r=[],i=n.data,l=n;return l.data=wh(i,r),l.attachments=r.length,{packet:l,buffers:r}}function wh(n,r){if(!n)return n;if(fd(n)){const i={_placeholder:!0,num:r.length};return r.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let l=0;l<n.length;l++)i[l]=wh(n[l],r);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=wh(n[l],r));return i}return n}function mN(n,r){return n.data=Rh(n.data,r),delete n.attachments,n}function Rh(n,r){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<r.length)return r[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=Rh(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Rh(n[i],r));return n}const pN=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],gN=5;var Ae;(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"})(Ae||(Ae={}));class yN{constructor(r){this.replacer=r}encode(r){return(r.type===Ae.EVENT||r.type===Ae.ACK)&&so(r)?this.encodeAsBinary({type:r.type===Ae.EVENT?Ae.BINARY_EVENT:Ae.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===Ae.BINARY_EVENT||r.type===Ae.BINARY_ACK)&&(i+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(i+=r.nsp+","),r.id!=null&&(i+=r.id),r.data!=null&&(i+=JSON.stringify(r.data,this.replacer)),i}encodeAsBinary(r){const i=dN(r),l=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(l),u}}function F_(n){return Object.prototype.toString.call(n)==="[object Object]"}class hd extends We{constructor(r){super(),this.reviver=r}add(r){let i;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(r);const l=i.type===Ae.BINARY_EVENT;l||i.type===Ae.BINARY_ACK?(i.type=l?Ae.EVENT:Ae.ACK,this.reconstructor=new _N(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(fd(r)||r.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(r),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let i=0;const l={type:Number(r.charAt(0))};if(Ae[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Ae.BINARY_EVENT||l.type===Ae.BINARY_ACK){const f=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const h=r.substring(f,i);if(h!=Number(h)||r.charAt(i)!=="-")throw new Error("Illegal attachments");l.attachments=Number(h)}if(r.charAt(i+1)==="/"){const f=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););l.nsp=r.substring(f,i)}else l.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const f=i+1;for(;++i;){const h=r.charAt(i);if(h==null||Number(h)!=h){--i;break}if(i===r.length)break}l.id=Number(r.substring(f,i+1))}if(r.charAt(++i)){const f=this.tryParse(r.substr(i));if(hd.isPayloadValid(l.type,f))l.data=f;else throw new Error("invalid payload")}return l}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case Ae.CONNECT:return F_(i);case Ae.DISCONNECT:return i===void 0;case Ae.CONNECT_ERROR:return typeof i=="string"||F_(i);case Ae.EVENT:case Ae.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&pN.indexOf(i[0])===-1);case Ae.ACK:case Ae.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class _N{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const i=mN(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const bN=Object.freeze(Object.defineProperty({__proto__:null,Decoder:hd,Encoder:yN,get PacketType(){return Ae},protocol:gN},Symbol.toStringTag,{value:"Module"}));function un(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const vN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Jv extends We{constructor(r,i,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=r,this.nsp=i,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 r=this.io;this.subs=[un(r,"open",this.onopen.bind(this)),un(r,"packet",this.onpacket.bind(this)),un(r,"error",this.onerror.bind(this)),un(r,"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(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...i){var l,u,f;if(vN.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(i.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const h={type:Ae.EVENT,data:i};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const _=this.ids++,E=i.pop();this._registerAckCallback(_,E),h.id=_}const d=(u=(l=this.io.engine)===null||l===void 0?void 0:l.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!d||(m?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(r,i){var l;const u=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===r&&this.sendBuffer.splice(d,1);i.call(this,new Error("operation has timed out"))},u),h=(...d)=>{this.io.clearTimeoutFn(f),i.apply(this,d)};h.withError=!0,this.acks[r]=h}emitWithAck(r,...i){return new Promise((l,u)=>{const f=(h,d)=>h?u(h):l(d);f.withError=!0,i.push(f),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...f)=>l!==this._queue[0]?void 0:(u!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...f)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ae.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(l=>String(l.id)===r)){const l=this.acks[r];delete this.acks[r],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ae.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.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 Ae.EVENT:case Ae.BINARY_EVENT:this.onevent(r);break;case Ae.ACK:case Ae.BINARY_ACK:this.onack(r);break;case Ae.DISCONNECT:this.ondisconnect();break;case Ae.CONNECT_ERROR:this.destroy();const l=new Error(r.data.message);l.data=r.data.data,this.emitReserved("connect_error",l);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const l of i)l.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let l=!1;return function(...u){l||(l=!0,i.packet({type:Ae.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ae.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let l=0;l<i.length;l++)if(r===i[l])return i.splice(l,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const i=this._anyOutgoingListeners;for(let l=0;l<i.length;l++)if(r===i[l])return i.splice(l,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const l of i)l.apply(this,r.data)}}}function Ya(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}Ya.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*n);n=(Math.floor(r*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};Ya.prototype.reset=function(){this.attempts=0};Ya.prototype.setMin=function(n){this.ms=n};Ya.prototype.setMax=function(n){this.max=n};Ya.prototype.setJitter=function(n){this.jitter=n};class Ch extends We{constructor(r,i){var l;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Do(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((l=i.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new Ya({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||bN;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new lN(this.uri,this.opts);const i=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=un(i,"open",function(){l.onopen(),r&&r()}),f=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),r?r(d):this.maybeReconnectOnOpen()},h=un(i,"error",f);if(this._timeout!==!1){const d=this._timeout,m=this.setTimeoutFn(()=>{u(),f(new Error("timeout")),i.close()},d);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(h),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(un(r,"ping",this.onping.bind(this)),un(r,"data",this.ondata.bind(this)),un(r,"error",this.onerror.bind(this)),un(r,"close",this.onclose.bind(this)),un(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){No(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let l=this.nsps[r];return l?this._autoConnect&&!l.active&&l.connect():(l=new Jv(this,r,i),this.nsps[r]=l),l}_destroy(r){const i=Object.keys(this.nsps);for(const l of i)if(this.nsps[l].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let l=0;l<i.length;l++)this.engine.write(i[l],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const es={};function lo(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=oN(n,r.path||"/socket.io"),l=i.source,u=i.id,f=i.path,h=es[u]&&f in es[u].nsps,d=r.forceNew||r["force new connection"]||r.multiplex===!1||h;let m;return d?m=new Ch(l,r):(es[u]||(es[u]=new Ch(l,r)),m=es[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(lo,{Manager:Ch,Socket:Jv,io:lo,connect:lo});const EN=[Ee.ActionTypes.MESSAGE_TO_GUEST,Ee.ActionTypes.EVENT_TO_GUEST,Ee.ActionTypes.TYPING_ON,Ee.ActionTypes.TYPING_OFF,Ee.ActionTypes.RESTART_CHAT_REQUEST,...cO,...lA,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],SN=({dispatch:n,getState:r})=>i=>{let l=null;return u=>{const f=i(u);if(u.type===$h){l!=null&&l.disconnect(),n(dO());const h=`/chat?${vo.stringify(u.querystrings)}`;l=lo(`/${u.clientName}${h}`),l.on("action",n),l.on("connect",()=>n(mO())),l.on("disconnect",()=>n(pO())),l.on("reconnect",()=>n(gO())),l.on("set-translations",(d,m)=>{n(y4({language:d,messages:f4(d,m)}))}),l.on("set-settings",d=>{n(v4(d))}),l.on("enable-conversation-rating",d=>n(hA(d))),l.on("speech-transcription",d=>n(uA(d))),l.on("restore-client-state",d=>{n(hO(d.sessionId)),n(mA(d.messages))}),l.on("expand-window",({devices:d,initial:m=!1})=>{n({type:Hb,devices:d,initial:m})}),l.on("restart-chat",()=>{n(wo(u.clientName,u.querystrings))})}else if(u.type===Ao)l==null||l.emit("start-chat",u.payload);else if(u.type===Oo)l==null||l.emit("terminate-session",u.payload);else if(u.type===sA)l==null||l.emit("get-started",JSON.stringify(u));else if(u.type===Ih)l==null||l.emit("audio-message",u.buffer);else if(u.type===Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST)l==null||l.emit("conversation-rating",u.payload);else if(u.type===zb){const{connection:{sessionId:h}}=r();window.location.href=`/transcript-pdf/${h}`}else EN.indexOf(u.type)===-1&&u.meta===void 0&&l&&l.emit("action",JSON.stringify(u));return f}},Wv=Rv(),TN={...x4(Wv),intl:jv},Nh=PA({middleware:n=>n().concat(SN),reducer:S4,preloadedState:TN});Nh.subscribe(r4(()=>{const n=Nh.getState();A4(Wv,{connection:n.connection,startScreen:n.startScreen})},1e3));const xN=document.getElementById("root"),AN=B2.createRoot(xN);AN.render(b.jsx(NS,{store:Nh,children:b.jsx(F6,{})}));
|
|
119
|
+
//# sourceMappingURL=index-CU-Wqato.js.map
|