@botfabrik/engine-webclient 4.86.1 → 4.86.3
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.
|
@@ -6,7 +6,7 @@ var i2=Object.defineProperty;var s2=(n,r,i)=>r in n?i2(n,r,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Qp;function l2(){if(Qp)return Fi;Qp=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 Fi.Fragment=r,Fi.jsx=i,Fi.jsxs=i,Fi}var Kp;function o2(){return Kp||(Kp=1,Gc.exports=l2()),Gc.exports}var
|
|
9
|
+
*/var Qp;function l2(){if(Qp)return Fi;Qp=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 Fi.Fragment=r,Fi.jsx=i,Fi.jsxs=i,Fi}var Kp;function o2(){return Kp||(Kp=1,Gc.exports=l2()),Gc.exports}var _=o2(),qc={exports:{}},Vi={},Ic={exports:{}},Fc={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var i2=Object.defineProperty;var s2=(n,r,i)=>r in n?i2(n,r,{enumerable:!0,config
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var $p;function u2(){return $p||($p=1,function(n){function r(G,X){var J=G.length;G.push(X);e:for(;0<J;){var
|
|
17
|
+
*/var $p;function u2(){return $p||($p=1,function(n){function r(G,X){var J=G.length;G.push(X);e:for(;0<J;){var be=J-1>>>1,w=G[be];if(0<u(w,X))G[be]=X,G[J]=w,J=be;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 be=0,w=G.length,P=w>>>1;be<P;){var $=2*(be+1)-1,Q=G[$],ae=$+1,Se=G[ae];if(0>u(Q,J))ae<w&&0>u(Se,Q)?(G[be]=Se,G[ae]=J,be=ae):(G[be]=Q,G[$]=J,be=$);else if(ae<w&&0>u(Se,J))G[be]=Se,G[ae]=J,be=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=[],b=1,S=null,y=3,x=!1,T=!1,z=!1,N=!1,H=typeof setTimeout=="function"?setTimeout:null,D=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 E(G){if(z=!1,R(G),!T)if(i(m)!==null)T=!0,U||(U=!0,ie());else{var X=i(g);X!==null&&Te(E,X.startTime-G)}}var U=!1,Y=-1,K=5,re=-1;function ee(){return N?!0:!(n.unstable_now()-re<K)}function le(){if(N=!1,U){var G=n.unstable_now();re=G;var X=!0;try{e:{T=!1,z&&(z=!1,D(Y),Y=-1),x=!0;var J=y;try{t:{for(R(G),S=i(m);S!==null&&!(S.expirationTime>G&&ee());){var be=S.callback;if(typeof be=="function"){S.callback=null,y=S.priorityLevel;var w=be(S.expirationTime<=G);if(G=n.unstable_now(),typeof w=="function"){S.callback=w,R(G),X=!0;break t}S===i(m)&&l(m),R(G)}else l(m);S=i(m)}if(S!==null)X=!0;else{var P=i(g);P!==null&&Te(E,P.startTime-G),X=!1}}break e}finally{S=null,y=J,x=!1}X=void 0}}finally{X?ie():U=!1}}}var ie;if(typeof O=="function")ie=function(){O(le)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,Ie=de.port2;de.port1.onmessage=le,ie=function(){Ie.postMessage(null)}}else ie=function(){H(le,0)};function Te(G,X){Y=H(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 be=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?be+J:be):J=be,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:b++,callback:X,priorityLevel:G,startTime:J,expirationTime:w,sortIndex:-1},J>be?(G.sortIndex=J,r(g,G),i(m)===null&&G===i(g)&&(z?(D(Y),Y=-1):z=!0,Te(E,J-be))):(G.sortIndex=w,r(m,G),T||x||(T=!0,U||(U=!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}}}}(Fc)),Fc}var Jp;function c2(){return Jp||(Jp=1,Ic.exports=u2()),Ic.exports}var Vc={exports:{}},pe={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var i2=Object.defineProperty;var s2=(n,r,i)=>r in n?i2(n,r,{enumerable:!0,config
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Wp;function f2(){if(Wp)return pe;Wp=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"),
|
|
25
|
+
*/var Wp;function f2(){if(Wp)return pe;Wp=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"),b=Symbol.for("react.lazy"),S=Symbol.iterator;function y(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||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 H(){}H.prototype=N.prototype;function D(w,P,$){this.props=w,this.context=P,this.refs=z,this.updater=$||x}var O=D.prototype=new H;O.constructor=D,T(O,N.prototype),O.isPureReactComponent=!0;var R=Array.isArray,E={H:null,A:null,T:null,S:null,V:null},U=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 Ie(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 b: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(Ot){return Ot})):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 ht=Q===""?".":Q+":";if(R(w))for(var ze=0;ze<w.length;ze++)Q=w[ze],Se=ht+ie(Q,ze),ce+=Te(Q,P,$,Se,ae);else if(ze=y(w),typeof ze=="function")for(w=ze.call(w),ze=0;!(Q=w.next()).done;)Q=Q.value,Se=ht+ie(Q,ze++),ce+=Te(Q,P,$,Se,ae);else if(Se==="object"){if(typeof w.then=="function")return Te(Ie(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 be(){}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=D,pe.StrictMode=l,pe.Suspense=m,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,pe.__COMPILER_RUNTIME={__proto__:null,c:function(w){return E.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)!U.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 ht=Array(ce),ze=0;ze<ce;ze++)ht[ze]=arguments[ze+2];Q.children=ht}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)U.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 ht=Array(ce),ze=0;ze<ce;ze++)ht[ze]=arguments[ze+2];ae.children=ht}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:b,_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=E.T,$={};E.T=$;try{var Q=w(),ae=E.S;ae!==null&&ae($,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(be,J)}catch(Se){J(Se)}finally{E.T=P}},pe.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},pe.use=function(w){return E.H.use(w)},pe.useActionState=function(w,P,$){return E.H.useActionState(w,P,$)},pe.useCallback=function(w,P){return E.H.useCallback(w,P)},pe.useContext=function(w){return E.H.useContext(w)},pe.useDebugValue=function(){},pe.useDeferredValue=function(w,P){return E.H.useDeferredValue(w,P)},pe.useEffect=function(w,P,$){var Q=E.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 E.H.useId()},pe.useImperativeHandle=function(w,P,$){return E.H.useImperativeHandle(w,P,$)},pe.useInsertionEffect=function(w,P){return E.H.useInsertionEffect(w,P)},pe.useLayoutEffect=function(w,P){return E.H.useLayoutEffect(w,P)},pe.useMemo=function(w,P){return E.H.useMemo(w,P)},pe.useOptimistic=function(w,P){return E.H.useOptimistic(w,P)},pe.useReducer=function(w,P,$){return E.H.useReducer(w,P,$)},pe.useRef=function(w){return E.H.useRef(w)},pe.useState=function(w){return E.H.useState(w)},pe.useSyncExternalStore=function(w,P,$){return E.H.useSyncExternalStore(w,P,$)},pe.useTransition=function(){return E.H.useTransition()},pe.version="19.1.0",pe}var eg;function qa(){return eg||(eg=1,Vc.exports=f2()),Vc.exports}var Pc={exports:{}},gt={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@ var i2=Object.defineProperty;var s2=(n,r,i)=>r in n?i2(n,r,{enumerable:!0,config
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var tg;function h2(){if(tg)return gt;tg=1;var n=qa();function r(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var
|
|
33
|
+
*/var tg;function h2(){if(tg)return gt;tg=1;var n=qa();function r(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}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,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:m,containerInfo:g,implementation:b}}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 gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,gt.createPortal=function(m,g){var b=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,b)},gt.flushSync=function(m){var g=h.T,b=l.p;try{if(h.T=null,l.p=2,m)return m()}finally{h.T=g,l.p=b,l.d.f()}},gt.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))},gt.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},gt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var b=g.as,S=d(b,g.crossOrigin),y=typeof g.integrity=="string"?g.integrity:void 0,x=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?l.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:y,fetchPriority:x}):b==="script"&&l.d.X(m,{crossOrigin:S,integrity:y,fetchPriority:x,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},gt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=d(g.as,g.crossOrigin);l.d.M(m,{crossOrigin:b,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)},gt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,S=d(b,g.crossOrigin);l.d.L(m,b,{crossOrigin:S,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})}},gt.preloadModule=function(m,g){if(typeof m=="string")if(g){var b=d(g.as,g.crossOrigin);l.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else l.d.m(m)},gt.requestFormReset=function(m){l.d.r(m)},gt.unstable_batchedUpdates=function(m,g){return m(g)},gt.useFormState=function(m,g,b){return h.H.useFormState(m,g,b)},gt.useFormStatus=function(){return h.H.useHostTransitionStatus()},gt.version="19.1.0",gt}var ng;function d2(){if(ng)return Pc.exports;ng=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=h2(),Pc.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,15 +38,15 @@ var i2=Object.defineProperty;var s2=(n,r,i)=>r in n?i2(n,r,{enumerable:!0,config
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var rg;function m2(){if(rg)return Vi;rg=1;var n=c2(),r=qa(),i=d2();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,S=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"),H=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),O=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),U=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 Ie(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 E:return"Suspense";case U: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 D: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:Ie(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return Ie(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),ht=P(null);function ze(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)?Tp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Tp(t),e=xp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ae),Q(ae,e)}function Ot(){$(ae),$(Se),$(ce)}function Sr(e){e.memoizedState!==null&&Q(ht,e);var t=ae.current,a=xp(t,e.type);t!==a&&(Q(Se,e),Q(ae,a))}function Pa(e){Se.current===e&&($(ae),$(Se)),ht.current===e&&($(ht),zi._currentValue=J)}var dt=Object.prototype.hasOwnProperty,xn=n.unstable_scheduleCallback,wo=n.unstable_cancelCallback,Lv=n.unstable_shouldYield,zv=n.unstable_requestPaint,cn=n.unstable_now,kv=n.unstable_getCurrentPriorityLevel,rd=n.unstable_ImmediatePriority,ad=n.unstable_UserBlockingPriority,us=n.unstable_NormalPriority,Gv=n.unstable_LowPriority,id=n.unstable_IdlePriority,qv=n.log,Iv=n.unstable_setDisableYieldValue,Ya=null,Rt=null;function Zn(e){if(typeof qv=="function"&&Iv(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Ya,e)}catch{}}var wt=Math.clz32?Math.clz32:Pv,Fv=Math.log,Vv=Math.LN2;function Pv(e){return e>>>=0,e===0?32:31-(Fv(e)/Vv|0)|0}var cs=256,fs=4194304;function Tr(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 hs(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=Tr(s):(p&=v,p!==0?o=Tr(p):a||(a=v&~e,a!==0&&(o=Tr(a))))):(v=s&~c,v!==0?o=Tr(v):p!==0?o=Tr(p):a||(a=s&~e,a!==0&&(o=Tr(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 Za(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yv(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 sd(){var e=cs;return cs<<=1,(cs&4194048)===0&&(cs=256),e}function ld(){var e=fs;return fs<<=1,(fs&62914560)===0&&(fs=4194304),e}function Co(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Xa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zv(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-wt(a),V=1<<q;v[q]=0,A[q]=-1;var L=j[q];if(L!==null)for(j[q]=null,q=0;q<L.length;q++){var k=L[q];k!==null&&(k.lane&=-536870913)}a&=~V}s!==0&&od(e,s,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function od(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-wt(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&4194090}function ud(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-wt(a),o=1<<s;o&t|e[s]&t&&(e[s]|=t),a&=~o}}function No(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 Do(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cd(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Fp(e.type))}function Xv(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var Xn=Math.random().toString(36).slice(2),mt="__reactFiber$"+Xn,vt="__reactProps$"+Xn,Jr="__reactContainer$"+Xn,Mo="__reactEvents$"+Xn,Qv="__reactListeners$"+Xn,Kv="__reactHandles$"+Xn,fd="__reactResources$"+Xn,Qa="__reactMarker$"+Xn;function Bo(e){delete e[mt],delete e[vt],delete e[Mo],delete e[Qv],delete e[Kv]}function Wr(e){var t=e[mt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Jr]||a[mt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=wp(e);e!==null;){if(a=e[mt])return a;e=wp(e)}return t}e=a,a=e.parentNode}return null}function ea(e){if(e=e[mt]||e[Jr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ka(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function ta(e){var t=e[fd];return t||(t=e[fd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Qa]=!0}var hd=new Set,dd={};function xr(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(dd[e]=t,e=0;e<t.length;e++)hd.add(t[e])}var $v=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]*$"),md={},pd={};function Jv(e){return dt.call(pd,e)?!0:dt.call(md,e)?!1:$v.test(e)?pd[e]=!0:(md[e]=!0,!1)}function ds(e,t,a){if(Jv(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 ms(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 An(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 jo,gd;function ra(e){if(jo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);jo=t&&t[1]||"",gd=-1<a.stack.indexOf(`
|
|
41
|
+
*/var rg;function m2(){if(rg)return Vi;rg=1;var n=c2(),r=qa(),i=d2();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 b=Object.assign,S=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"),H=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),O=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),U=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 Ie(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 E:return"Suspense";case U: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 D: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:Ie(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return Ie(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},be=[],w=-1;function P(e){return{current:e}}function $(e){0>w||(e.current=be[w],be[w]=null,w--)}function Q(e,t){w++,be[w]=e.current,e.current=t}var ae=P(null),Se=P(null),ce=P(null),ht=P(null);function ze(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)?Tp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Tp(t),e=xp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ae),Q(ae,e)}function Ot(){$(ae),$(Se),$(ce)}function Sr(e){e.memoizedState!==null&&Q(ht,e);var t=ae.current,a=xp(t,e.type);t!==a&&(Q(Se,e),Q(ae,a))}function Pa(e){Se.current===e&&($(ae),$(Se)),ht.current===e&&($(ht),zi._currentValue=J)}var dt=Object.prototype.hasOwnProperty,xn=n.unstable_scheduleCallback,wo=n.unstable_cancelCallback,Lv=n.unstable_shouldYield,zv=n.unstable_requestPaint,cn=n.unstable_now,kv=n.unstable_getCurrentPriorityLevel,rd=n.unstable_ImmediatePriority,ad=n.unstable_UserBlockingPriority,us=n.unstable_NormalPriority,Gv=n.unstable_LowPriority,id=n.unstable_IdlePriority,qv=n.log,Iv=n.unstable_setDisableYieldValue,Ya=null,Rt=null;function Zn(e){if(typeof qv=="function"&&Iv(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Ya,e)}catch{}}var wt=Math.clz32?Math.clz32:Pv,Fv=Math.log,Vv=Math.LN2;function Pv(e){return e>>>=0,e===0?32:31-(Fv(e)/Vv|0)|0}var cs=256,fs=4194304;function Tr(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 hs(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=Tr(s):(p&=v,p!==0?o=Tr(p):a||(a=v&~e,a!==0&&(o=Tr(a))))):(v=s&~c,v!==0?o=Tr(v):p!==0?o=Tr(p):a||(a=s&~e,a!==0&&(o=Tr(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 Za(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yv(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 sd(){var e=cs;return cs<<=1,(cs&4194048)===0&&(cs=256),e}function ld(){var e=fs;return fs<<=1,(fs&62914560)===0&&(fs=4194304),e}function Co(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Xa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zv(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-wt(a),V=1<<q;v[q]=0,A[q]=-1;var L=j[q];if(L!==null)for(j[q]=null,q=0;q<L.length;q++){var k=L[q];k!==null&&(k.lane&=-536870913)}a&=~V}s!==0&&od(e,s,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function od(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-wt(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&4194090}function ud(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-wt(a),o=1<<s;o&t|e[s]&t&&(e[s]|=t),a&=~o}}function No(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 Do(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cd(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Fp(e.type))}function Xv(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var Xn=Math.random().toString(36).slice(2),mt="__reactFiber$"+Xn,vt="__reactProps$"+Xn,Jr="__reactContainer$"+Xn,Mo="__reactEvents$"+Xn,Qv="__reactListeners$"+Xn,Kv="__reactHandles$"+Xn,fd="__reactResources$"+Xn,Qa="__reactMarker$"+Xn;function Bo(e){delete e[mt],delete e[vt],delete e[Mo],delete e[Qv],delete e[Kv]}function Wr(e){var t=e[mt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Jr]||a[mt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=wp(e);e!==null;){if(a=e[mt])return a;e=wp(e)}return t}e=a,a=e.parentNode}return null}function ea(e){if(e=e[mt]||e[Jr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ka(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function ta(e){var t=e[fd];return t||(t=e[fd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Qa]=!0}var hd=new Set,dd={};function xr(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(dd[e]=t,e=0;e<t.length;e++)hd.add(t[e])}var $v=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]*$"),md={},pd={};function Jv(e){return dt.call(pd,e)?!0:dt.call(md,e)?!1:$v.test(e)?pd[e]=!0:(md[e]=!0,!1)}function ds(e,t,a){if(Jv(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 ms(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 An(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 jo,gd;function ra(e){if(jo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);jo=t&&t[1]||"",gd=-1<a.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
43
|
`+jo+e+gd}var Uo=!1;function Ho(e,t){if(!e||Uo)return"";Uo=!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(k){var L=k}Reflect.construct(e,[],V)}else{try{V.call()}catch(k){L=k}e.call(V.prototype)}}else{try{throw Error()}catch(k){L=k}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(k){if(k&&L&&typeof k.stack=="string")return[k.stack,L.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
44
|
`),j=v.split(`
|
|
45
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
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{Uo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ra(a):""}function Wv(e){switch(e.tag){case 26:case 27:case 5:return ra(e.type);case 16:return ra("Lazy");case 13:return ra("Suspense");case 19:return ra("SuspenseList");case 0:case 15:return Ho(e.type,!1);case 11:return Ho(e.type.render,!1);case 1:return Ho(e.type,!0);case 31:return ra("Activity");default:return""}}function yd(e){try{var t="";do t+=Wv(e),e=e.return;while(e);return t}catch(a){return`
|
|
47
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 _d(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function e1(e){var t=_d(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 ps(e){e._valueTracker||(e._valueTracker=e1(e))}function bd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=_d(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function gs(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 t1=/[\n"\\]/g;function Vt(e){return e.replace(t1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lo(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?zo(e,p,Ft(t)):a!=null?zo(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 vd(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 zo(e,t,a){t==="number"&&gs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function aa(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 Ed(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 Sd(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 ia(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var n1=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 Td(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||n1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function xd(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&&Td(e,o,s)}else for(var c in t)t.hasOwnProperty(c)&&Td(e,c,t[c])}function ko(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 r1=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"]]),a1=/^[\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 ys(e){return a1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Go=null;function qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,la=null;function Ad(e){var t=ea(e);if(t&&(e=t.stateNode)){var a=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lo(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[vt]||null;if(!o)throw Error(l(90));Lo(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&&bd(s)}break e;case"textarea":Ed(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&aa(e,!!a.multiple,t,!1)}}}var Io=!1;function Od(e,t,a){if(Io)return e(t,a);Io=!0;try{var s=e(t);return s}finally{if(Io=!1,(sa!==null||la!==null)&&(nl(),sa&&(t=sa,e=la,la=sa=null,Ad(t),e)))for(t=0;t<e.length;t++)Ad(e[t])}}function $a(e,t){var a=e.stateNode;if(a===null)return null;var s=a[vt]||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 On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fo=!1;if(On)try{var Ja={};Object.defineProperty(Ja,"passive",{get:function(){Fo=!0}}),window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Fo=!1}var Qn=null,Vo=null,_s=null;function Rd(){if(_s)return _s;var e,t=Vo,a=t.length,s,o="value"in Qn?Qn.value:Qn.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 _s=o.slice(e,1<s?1-s:void 0)}function bs(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 vs(){return!0}function wd(){return!1}function Et(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)?vs:wd,this.isPropagationStopped=wd,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=vs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=vs)},persist:function(){},isPersistent:vs}),t}var Ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=Et(Ar),Wa=_({},Ar,{view:0,detail:0}),i1=Et(Wa),Po,Yo,ei,Ss=_({},Wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xo,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!==ei&&(ei&&e.type==="mousemove"?(Po=e.screenX-ei.screenX,Yo=e.screenY-ei.screenY):Yo=Po=0,ei=e),Po)},movementY:function(e){return"movementY"in e?e.movementY:Yo}}),Cd=Et(Ss),s1=_({},Ss,{dataTransfer:0}),l1=Et(s1),o1=_({},Wa,{relatedTarget:0}),Zo=Et(o1),u1=_({},Ar,{animationName:0,elapsedTime:0,pseudoElement:0}),c1=Et(u1),f1=_({},Ar,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),h1=Et(f1),d1=_({},Ar,{data:0}),Nd=Et(d1),m1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p1={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"},g1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=g1[e])?!!t[e]:!1}function Xo(){return y1}var _1=_({},Wa,{key:function(e){if(e.key){var t=m1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?p1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xo,charCode:function(e){return e.type==="keypress"?bs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),b1=Et(_1),v1=_({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dd=Et(v1),E1=_({},Wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xo}),S1=Et(E1),T1=_({},Ar,{propertyName:0,elapsedTime:0,pseudoElement:0}),x1=Et(T1),A1=_({},Ss,{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}),O1=Et(A1),R1=_({},Ar,{newState:0,oldState:0}),w1=Et(R1),C1=[9,13,27,32],Qo=On&&"CompositionEvent"in window,ti=null;On&&"documentMode"in document&&(ti=document.documentMode);var N1=On&&"TextEvent"in window&&!ti,Md=On&&(!Qo||ti&&8<ti&&11>=ti),Bd=" ",jd=!1;function Ud(e,t){switch(e){case"keyup":return C1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oa=!1;function D1(e,t){switch(e){case"compositionend":return Hd(t);case"keypress":return t.which!==32?null:(jd=!0,Bd);case"textInput":return e=t.data,e===Bd&&jd?null:e;default:return null}}function M1(e,t){if(oa)return e==="compositionend"||!Qo&&Ud(e,t)?(e=Rd(),_s=Vo=Qn=null,oa=!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 Md&&t.locale!=="ko"?null:t.data;default:return null}}var B1={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 Ld(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!B1[e.type]:t==="textarea"}function zd(e,t,a,s){sa?la?la.push(s):la=[s]:sa=s,t=ol(t,"onChange"),0<t.length&&(a=new Es("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ni=null,ri=null;function j1(e){_p(e,0)}function Ts(e){var t=Ka(e);if(bd(t))return e}function kd(e,t){if(e==="change")return t}var Gd=!1;if(On){var Ko;if(On){var $o="oninput"in document;if(!$o){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),$o=typeof qd.oninput=="function"}Ko=$o}else Ko=!1;Gd=Ko&&(!document.documentMode||9<document.documentMode)}function Id(){ni&&(ni.detachEvent("onpropertychange",Fd),ri=ni=null)}function Fd(e){if(e.propertyName==="value"&&Ts(ri)){var t=[];zd(t,ri,e,qo(e)),Od(j1,t)}}function U1(e,t,a){e==="focusin"?(Id(),ni=t,ri=a,ni.attachEvent("onpropertychange",Fd)):e==="focusout"&&Id()}function H1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(ri)}function L1(e,t){if(e==="click")return Ts(t)}function z1(e,t){if(e==="input"||e==="change")return Ts(t)}function k1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:k1;function ai(e,t){if(Ct(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(!dt.call(t,o)||!Ct(e[o],t[o]))return!1}return!0}function Vd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pd(e,t){var a=Vd(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=Vd(a)}}function Yd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gs(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=gs(e.document)}return t}function Jo(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 G1=On&&"documentMode"in document&&11>=document.documentMode,ua=null,Wo=null,ii=null,eu=!1;function Xd(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;eu||ua==null||ua!==gs(s)||(s=ua,"selectionStart"in s&&Jo(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}),ii&&ai(ii,s)||(ii=s,s=ol(Wo,"onSelect"),0<s.length&&(t=new Es("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=ua)))}function Or(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ca={animationend:Or("Animation","AnimationEnd"),animationiteration:Or("Animation","AnimationIteration"),animationstart:Or("Animation","AnimationStart"),transitionrun:Or("Transition","TransitionRun"),transitionstart:Or("Transition","TransitionStart"),transitioncancel:Or("Transition","TransitionCancel"),transitionend:Or("Transition","TransitionEnd")},tu={},Qd={};On&&(Qd=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function Rr(e){if(tu[e])return tu[e];if(!ca[e])return e;var t=ca[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Qd)return tu[e]=t[a];return e}var Kd=Rr("animationend"),$d=Rr("animationiteration"),Jd=Rr("animationstart"),q1=Rr("transitionrun"),I1=Rr("transitionstart"),F1=Rr("transitioncancel"),Wd=Rr("transitionend"),em=new Map,nu="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(" ");nu.push("scrollEnd");function tn(e,t){em.set(e,t),xr(t,[e])}var tm=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var a=tm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:yd(t)},tm.set(e,t),t)}return{value:e,source:t,stack:yd(t)}}var Yt=[],fa=0,ru=0;function xs(){for(var e=fa,t=ru=fa=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&&nm(a,o,c)}}function As(e,t,a,s){Yt[fa++]=e,Yt[fa++]=t,Yt[fa++]=a,Yt[fa++]=s,ru|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function au(e,t,a,s){return As(e,t,a,s),Os(e)}function ha(e,t){return As(e,null,null,t),Os(e)}function nm(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-wt(a),e=c.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=a|536870912),c):null}function Os(e){if(50<Ni)throw Ni=0,cc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var da={};function V1(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 Nt(e,t,a,s){return new V1(e,t,a,s)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rn(e,t){var a=e.alternate;return a===null?(a=Nt(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 rm(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 Rs(e,t,a,s,o,c){var p=0;if(s=e,typeof e=="function")iu(e)&&(p=1);else if(typeof e=="string")p=YE(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=Nt(31,a,t,o),e.elementType=re,e.lanes=c,e;case T:return wr(a.children,o,c,t);case z:p=8,o|=24;break;case N:return e=Nt(12,a,t,o|2),e.elementType=N,e.lanes=c,e;case E:return e=Nt(13,a,t,o),e.elementType=E,e.lanes=c,e;case U:return e=Nt(19,a,t,o),e.elementType=U,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:case O:p=10;break e;case D: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=Nt(p,a,t,o),t.elementType=e,t.type=s,t.lanes=c,t}function wr(e,t,a,s){return e=Nt(7,e,s,t),e.lanes=a,e}function su(e,t,a){return e=Nt(6,e,null,t),e.lanes=a,e}function lu(e,t,a){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ma=[],pa=0,ws=null,Cs=0,Zt=[],Xt=0,Cr=null,wn=1,Cn="";function Nr(e,t){ma[pa++]=Cs,ma[pa++]=ws,ws=e,Cs=t}function am(e,t,a){Zt[Xt++]=wn,Zt[Xt++]=Cn,Zt[Xt++]=Cr,Cr=e;var s=wn;e=Cn;var o=32-wt(s)-1;s&=~(1<<o),a+=1;var c=32-wt(t)+o;if(30<c){var p=o-o%5;c=(s&(1<<p)-1).toString(32),s>>=p,o-=p,wn=1<<32-wt(t)+o|a<<o|s,Cn=c+e}else wn=1<<c|a<<o|s,Cn=e}function ou(e){e.return!==null&&(Nr(e,1),am(e,1,0))}function uu(e){for(;e===ws;)ws=ma[--pa],ma[pa]=null,Cs=ma[--pa],ma[pa]=null;for(;e===Cr;)Cr=Zt[--Xt],Zt[Xt]=null,Cn=Zt[--Xt],Zt[Xt]=null,wn=Zt[--Xt],Zt[Xt]=null}var yt=null,Pe=null,Ne=!1,Dr=null,fn=!1,cu=Error(l(519));function Mr(e){var t=Error(l(418,""));throw oi(Pt(t,e)),cu}function im(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[mt]=e,t[vt]=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<Mi.length;a++)ve(Mi[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),vd(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),ps(t);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Sd(t,s.value,s.defaultValue,s.children),ps(t)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||Sp(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=ul),t=!0):t=!1,t||Mr(e)}function sm(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 13:fn=!1;return;case 27:case 3:fn=!0;return;default:yt=yt.return}}function si(e){if(e!==yt)return!1;if(!Ne)return sm(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")||Oc(e.type,e.memoizedProps)),a=!a),a&&Pe&&Mr(e),sm(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){Pe=rn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Pe=null}}else t===27?(t=Pe,fr(e.type)?(e=Nc,Nc=null,Pe=e):Pe=t):Pe=yt?rn(e.stateNode.nextSibling):null;return!0}function li(){Pe=yt=null,Ne=!1}function lm(){var e=Dr;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Dr=null),e}function oi(e){Dr===null?Dr=[e]:Dr.push(e)}var fu=P(null),Br=null,Nn=null;function Kn(e,t,a){Q(fu,t._currentValue),t._currentValue=a}function Dn(e){e._currentValue=fu.current,$(fu)}function hu(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 du(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),hu(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),hu(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 ui(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;Ct(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===ht.current){if(p=o.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(zi):e=[zi])}o=o.return}e!==null&&du(t,e,a,s),t.flags|=262144}function Ns(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jr(e){Br=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return om(Br,e)}function Ds(e,t){return Br===null&&jr(e),om(e,t)}function om(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Nn===null){if(e===null)throw Error(l(308));Nn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nn=Nn.next=t;return a}var P1=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()})}},Y1=n.unstable_scheduleCallback,Z1=n.unstable_NormalPriority,et={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mu(){return{controller:new P1,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&Y1(Z1,function(){e.controller.abort()})}var fi=null,pu=0,ga=0,ya=null;function X1(e,t){if(fi===null){var a=fi=[];pu=0,ga=yc(),ya={status:"pending",value:void 0,then:function(s){a.push(s)}}}return pu++,t.then(um,um),t}function um(){if(--pu===0&&fi!==null){ya!==null&&(ya.status="fulfilled");var e=fi;fi=null,ga=0,ya=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Q1(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 cm=G.S;G.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&X1(e,t),cm!==null&&cm(e,t)};var Ur=P(null);function gu(){var e=Ur.current;return e!==null?e:ke.pooledCache}function Ms(e,t){t===null?Q(Ur,Ur.current):Q(Ur,t.pool)}function fm(){var e=gu();return e===null?null:{parent:et._currentValue,pool:e}}var hi=Error(l(460)),hm=Error(l(474)),Bs=Error(l(542)),yu={then:function(){}};function dm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function js(){}function mm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(js,js),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gm(e),e;default:if(typeof t.status=="string")t.then(js,js);else{if(e=ke,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,gm(e),e}throw di=t,hi}}var di=null;function pm(){if(di===null)throw Error(l(459));var e=di;return di=null,e}function gm(e){if(e===hi||e===Bs)throw Error(l(483))}var $n=!1;function _u(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(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 Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(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=Os(e),nm(e,null,a),t}return As(e,s,t,a),Os(e)}function mi(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,ud(e,a)}}function vu(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 Eu=!1;function pi(){if(Eu){var e=ya;if(e!==null)throw e}}function gi(e,t,a,s){Eu=!1;var o=e.updateQueue;$n=!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 L=v.lane&-536870913,k=L!==v.lane;if(k?(Oe&L)===L:(s&L)===L){L!==0&&L===ga&&(Eu=!0),q!==null&&(q=q.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var fe=e,se=v;L=t;var He=a;switch(se.tag){case 1:if(fe=se.payload,typeof fe=="function"){V=fe.call(He,V,L);break e}V=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=se.payload,L=typeof fe=="function"?fe.call(He,V,L):fe,L==null)break e;V=_({},V,L);break e;case 2:$n=!0}}L=v.callback,L!==null&&(e.flags|=64,k&&(e.flags|=8192),k=o.callbacks,k===null?o.callbacks=[L]:k.push(L))}else k={lane:L,tag:v.tag,payload:v.payload,callback:v.callback,next:null},q===null?(j=q=k,A=V):q=q.next=k,p|=L;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;k=v,v=k.next,k.next=null,o.lastBaseUpdate=k,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),lr|=p,e.lanes=p,e.memoizedState=V}}function ym(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function _m(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ym(a[e],t)}var _a=P(null),Us=P(0);function bm(e,t){e=zn,Q(Us,e),Q(_a,t),zn=e|t.baseLanes}function Su(){Q(Us,zn),Q(_a,_a.current)}function Tu(){zn=Us.current,$(_a),$(Us)}var er=0,ge=null,je=null,Qe=null,Hs=!1,ba=!1,Hr=!1,Ls=0,yi=0,va=null,K1=0;function Ze(){throw Error(l(321))}function xu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function Au(e,t,a,s,o,c){return er=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?n0:r0,Hr=!1,c=a(s,o),Hr=!1,ba&&(c=Em(t,a,s,o)),vm(e),c}function vm(e){G.H=Fs;var t=je!==null&&je.next!==null;if(er=0,Qe=je=ge=null,Hs=!1,yi=0,va=null,t)throw Error(l(300));e===null||rt||(e=e.dependencies,e!==null&&Ns(e)&&(rt=!0))}function Em(e,t,a,s){ge=e;var o=0;do{if(ba&&(va=null),yi=0,ba=!1,25<=o)throw Error(l(301));if(o+=1,Qe=je=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=rE,c=t(a,s)}while(ba);return c}function $1(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?_i(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(ge.flags|=1024),t}function Ou(){var e=Ls!==0;return Ls=0,e}function Ru(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function wu(e){if(Hs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hs=!1}er=0,Qe=je=ge=null,ba=!1,yi=Ls=0,va=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ke(){if(je===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Qe===null?ge.memoizedState:Qe.next;if(t!==null)Qe=t,je=e;else{if(e===null)throw ge.alternate===null?Error(l(467)):Error(l(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _i(e){var t=yi;return yi+=1,va===null&&(va=[]),e=mm(va,e,t),t=ge,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?n0:r0),e}function zs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return _i(e);if(e.$$typeof===O)return pt(e)}throw Error(l(438,String(e)))}function Nu(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=Cu(),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 Mn(e,t){return typeof t=="function"?t(e):t}function ks(e){var t=Ke();return Du(t,je,e)}function Du(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:(er&V)===V){var L=j.revertLane;if(L===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),V===ga&&(q=!0);else if((er&L)===L){j=j.next,L===ga&&(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|=L,lr|=L;V=j.action,Hr&&a(c,V),c=j.hasEagerState?j.eagerState:a(c,V)}else L={lane:V,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},A===null?(v=A=L,p=c):A=A.next=L,ge.lanes|=V,lr|=V;j=j.next}while(j!==null&&j!==t);if(A===null?p=c:A.next=v,!Ct(c,e.memoizedState)&&(rt=!0,q&&(a=ya,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 Mu(e){var t=Ke(),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);Ct(c,t.memoizedState)||(rt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,s]}function Sm(e,t,a){var s=ge,o=Ke(),c=Ne;if(c){if(a===void 0)throw Error(l(407));a=a()}else a=t();var p=!Ct((je||o).memoizedState,a);p&&(o.memoizedState=a,rt=!0),o=o.queue;var v=Am.bind(null,s,o,e);if(bi(2048,8,v,[e]),o.getSnapshot!==t||p||Qe!==null&&Qe.memoizedState.tag&1){if(s.flags|=2048,Ea(9,Gs(),xm.bind(null,s,o,a,t),null),ke===null)throw Error(l(349));c||(er&124)!==0||Tm(s,t,a)}return a}function Tm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=Cu(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function xm(e,t,a,s){t.value=a,t.getSnapshot=s,Om(t)&&Rm(e)}function Am(e,t,a){return a(function(){Om(t)&&Rm(e)})}function Om(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function Rm(e){var t=ha(e,2);t!==null&&Ut(t,e,2)}function Bu(e){var t=St();if(typeof e=="function"){var a=e;if(e=a(),Hr){Zn(!0);try{a()}finally{Zn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function wm(e,t,a,s){return e.baseState=a,Du(e,je,typeof s=="function"?s:Mn)}function J1(e,t,a,s,o){if(Is(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,Cm(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Cm(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),Nm(e,t,v)}catch(j){ju(e,t,j)}finally{G.T=c}}else try{c=a(o,s),Nm(e,t,c)}catch(j){ju(e,t,j)}}function Nm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Dm(e,t,s)},function(s){return ju(e,t,s)}):Dm(e,t,a)}function Dm(e,t,a){t.status="fulfilled",t.value=a,Mm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Cm(e,a)))}function ju(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,Mm(t),t=t.next;while(t!==s)}e.action=null}function Mm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Bm(e,t){return t}function jm(e,t){if(Ne){var a=ke.formState;if(a!==null){e:{var s=ge;if(Ne){if(Pe){t:{for(var o=Pe,c=fn;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){Pe=rn(o.nextSibling),s=o.data==="F!";break e}}Mr(s)}s=!1}s&&(t=a[0])}}return a=St(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bm,lastRenderedState:t},a.queue=s,a=Wm.bind(null,ge,s),s.dispatch=a,s=Bu(!1),c=ku.bind(null,ge,!1,s.queue),s=St(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,a=J1.bind(null,ge,o,c,a),o.dispatch=a,s.memoizedState=e,[t,a,!1]}function Um(e){var t=Ke();return Hm(t,je,e)}function Hm(e,t,a){if(t=Du(e,t,Bm)[0],e=ks(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=_i(t)}catch(p){throw p===hi?Bs:p}else s=t;t=Ke();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,Ea(9,Gs(),W1.bind(null,o,a),null)),[s,c,e]}function W1(e,t){e.action=t}function Lm(e){var t=Ke(),a=je;if(a!==null)return Hm(t,a,e);Ke(),t=t.memoizedState,a=Ke();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function Ea(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Cu(),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 Gs(){return{destroy:void 0,resource:void 0}}function zm(){return Ke().memoizedState}function qs(e,t,a,s){var o=St();s=s===void 0?null:s,ge.flags|=e,o.memoizedState=Ea(1|t,Gs(),a,s)}function bi(e,t,a,s){var o=Ke();s=s===void 0?null:s;var c=o.memoizedState.inst;je!==null&&s!==null&&xu(s,je.memoizedState.deps)?o.memoizedState=Ea(t,c,a,s):(ge.flags|=e,o.memoizedState=Ea(1|t,c,a,s))}function km(e,t){qs(8390656,8,e,t)}function Gm(e,t){bi(2048,8,e,t)}function qm(e,t){return bi(4,2,e,t)}function Im(e,t){return bi(4,4,e,t)}function Fm(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 Vm(e,t,a){a=a!=null?a.concat([e]):null,bi(4,4,Fm.bind(null,t,e),a)}function Uu(){}function Pm(e,t){var a=Ke();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&xu(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function Ym(e,t){var a=Ke();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&xu(t,s[1]))return s[0];if(s=e(),Hr){Zn(!0);try{e()}finally{Zn(!1)}}return a.memoizedState=[s,t],s}function Hu(e,t,a){return a===void 0||(er&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Q0(),ge.lanes|=e,lr|=e,a)}function Zm(e,t,a,s){return Ct(a,t)?a:_a.current!==null?(e=Hu(e,a,s),Ct(e,t)||(rt=!0),e):(er&42)===0?(rt=!0,e.memoizedState=a):(e=Q0(),ge.lanes|=e,lr|=e,t)}function Xm(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,ku(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=Q1(A,s);vi(e,t,q,jt(e))}else vi(e,t,s,jt(e))}catch(V){vi(e,t,{then:function(){},status:"rejected",reason:V},jt())}finally{X.p=c,G.T=p}}function eE(){}function Lu(e,t,a,s){if(e.tag!==5)throw Error(l(476));var o=Qm(e).queue;Xm(e,o,t,J,a===null?eE:function(){return Km(e),a(s)})}function Qm(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:Mn,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Km(e){var t=Qm(e).next.queue;vi(e,t,{},jt())}function zu(){return pt(zi)}function $m(){return Ke().memoizedState}function Jm(){return Ke().memoizedState}function tE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=jt();e=Jn(a);var s=Wn(t,e,a);s!==null&&(Ut(s,t,a),mi(s,t,a)),t={cache:mu()},e.payload=t;return}t=t.return}}function nE(e,t,a){var s=jt();a={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Is(e)?e0(t,a):(a=au(e,t,a,s),a!==null&&(Ut(a,e,s),t0(a,t,s)))}function Wm(e,t,a){var s=jt();vi(e,t,a,s)}function vi(e,t,a,s){var o={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Is(e))e0(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,Ct(v,p))return As(e,t,o,0),ke===null&&xs(),!1}catch{}finally{}if(a=au(e,t,o,s),a!==null)return Ut(a,e,s),t0(a,t,s),!0}return!1}function ku(e,t,a,s){if(s={lane:2,revertLane:yc(),action:s,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(l(479))}else t=au(e,a,s,2),t!==null&&Ut(t,e,2)}function Is(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function e0(e,t){ba=Hs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function t0(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,ud(e,a)}}var Fs={readContext:pt,use:zs,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze},n0={readContext:pt,use:zs,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:km,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,qs(4194308,4,Fm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return qs(4194308,4,e,t)},useInsertionEffect:function(e,t){qs(4,2,e,t)},useMemo:function(e,t){var a=St();t=t===void 0?null:t;var s=e();if(Hr){Zn(!0);try{e()}finally{Zn(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=St();if(a!==void 0){var o=a(t);if(Hr){Zn(!0);try{a(t)}finally{Zn(!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=nE.bind(null,ge,e),[s.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:function(e){e=Bu(e);var t=e.queue,a=Wm.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Uu,useDeferredValue:function(e,t){var a=St();return Hu(a,e,t)},useTransition:function(){var e=Bu(!1);return e=Xm.bind(null,ge,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=ge,o=St();if(Ne){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),ke===null)throw Error(l(349));(Oe&124)!==0||Tm(s,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,km(Am.bind(null,s,c,e),[e]),s.flags|=2048,Ea(9,Gs(),xm.bind(null,s,c,a,t),null),a},useId:function(){var e=St(),t=ke.identifierPrefix;if(Ne){var a=Cn,s=wn;a=(s&~(1<<32-wt(s)-1)).toString(32)+a,t="«"+t+"R"+a,a=Ls++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=K1++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:zu,useFormState:jm,useActionState:jm,useOptimistic:function(e){var t=St();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ku.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:Nu,useCacheRefresh:function(){return St().memoizedState=tE.bind(null,ge)}},r0={readContext:pt,use:zs,useCallback:Pm,useContext:pt,useEffect:Gm,useImperativeHandle:Vm,useInsertionEffect:qm,useLayoutEffect:Im,useMemo:Ym,useReducer:ks,useRef:zm,useState:function(){return ks(Mn)},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Ke();return Zm(a,je.memoizedState,e,t)},useTransition:function(){var e=ks(Mn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:_i(e),t]},useSyncExternalStore:Sm,useId:$m,useHostTransitionStatus:zu,useFormState:Um,useActionState:Um,useOptimistic:function(e,t){var a=Ke();return wm(a,je,e,t)},useMemoCache:Nu,useCacheRefresh:Jm},rE={readContext:pt,use:zs,useCallback:Pm,useContext:pt,useEffect:Gm,useImperativeHandle:Vm,useInsertionEffect:qm,useLayoutEffect:Im,useMemo:Ym,useReducer:Mu,useRef:zm,useState:function(){return Mu(Mn)},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Ke();return je===null?Hu(a,e,t):Zm(a,je.memoizedState,e,t)},useTransition:function(){var e=Mu(Mn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:_i(e),t]},useSyncExternalStore:Sm,useId:$m,useHostTransitionStatus:zu,useFormState:Lm,useActionState:Lm,useOptimistic:function(e,t){var a=Ke();return je!==null?wm(a,je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Nu,useCacheRefresh:Jm},Sa=null,Ei=0;function Vs(e){var t=Ei;return Ei+=1,Sa===null&&(Sa=[]),mm(Sa,e,t)}function Si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ps(e,t){throw t.$$typeof===S?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function a0(e){var t=e._init;return t(e._payload)}function i0(e){function t(M,C){if(e){var B=M.deletions;B===null?(M.deletions=[C],M.flags|=16):B.push(C)}}function a(M,C){if(!e)return null;for(;C!==null;)t(M,C),C=C.sibling;return null}function s(M){for(var C=new Map;M!==null;)M.key!==null?C.set(M.key,M):C.set(M.index,M),M=M.sibling;return C}function o(M,C){return M=Rn(M,C),M.index=0,M.sibling=null,M}function c(M,C,B){return M.index=B,e?(B=M.alternate,B!==null?(B=B.index,B<C?(M.flags|=67108866,C):B):(M.flags|=67108866,C)):(M.flags|=1048576,C)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,C,B,F){return C===null||C.tag!==6?(C=su(B,M.mode,F),C.return=M,C):(C=o(C,B),C.return=M,C)}function A(M,C,B,F){var W=B.type;return W===T?q(M,C,B.props.children,F,B.key):C!==null&&(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&a0(W)===C.type)?(C=o(C,B.props),Si(C,B),C.return=M,C):(C=Rs(B.type,B.key,B.props,null,M.mode,F),Si(C,B),C.return=M,C)}function j(M,C,B,F){return C===null||C.tag!==4||C.stateNode.containerInfo!==B.containerInfo||C.stateNode.implementation!==B.implementation?(C=lu(B,M.mode,F),C.return=M,C):(C=o(C,B.children||[]),C.return=M,C)}function q(M,C,B,F,W){return C===null||C.tag!==7?(C=wr(B,M.mode,F,W),C.return=M,C):(C=o(C,B),C.return=M,C)}function V(M,C,B){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=su(""+C,M.mode,B),C.return=M,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case y:return B=Rs(C.type,C.key,C.props,null,M.mode,B),Si(B,C),B.return=M,B;case x:return C=lu(C,M.mode,B),C.return=M,C;case K:var F=C._init;return C=F(C._payload),V(M,C,B)}if(Te(C)||ie(C))return C=wr(C,M.mode,B,null),C.return=M,C;if(typeof C.then=="function")return V(M,Vs(C),B);if(C.$$typeof===O)return V(M,Ds(M,C),B);Ps(M,C)}return null}function L(M,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(M,C,""+B,F);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case y:return B.key===W?A(M,C,B,F):null;case x:return B.key===W?j(M,C,B,F):null;case K:return W=B._init,B=W(B._payload),L(M,C,B,F)}if(Te(B)||ie(B))return W!==null?null:q(M,C,B,F,null);if(typeof B.then=="function")return L(M,C,Vs(B),F);if(B.$$typeof===O)return L(M,C,Ds(M,B),F);Ps(M,B)}return null}function k(M,C,B,F,W){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return M=M.get(B)||null,v(C,M,""+F,W);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case y:return M=M.get(F.key===null?B:F.key)||null,A(C,M,F,W);case x:return M=M.get(F.key===null?B:F.key)||null,j(C,M,F,W);case K:var ye=F._init;return F=ye(F._payload),k(M,C,B,F,W)}if(Te(F)||ie(F))return M=M.get(B)||null,q(C,M,F,W,null);if(typeof F.then=="function")return k(M,C,B,Vs(F),W);if(F.$$typeof===O)return k(M,C,B,Ds(C,F),W);Ps(C,F)}return null}function fe(M,C,B,F){for(var W=null,ye=null,ne=C,oe=C=0,it=null;ne!==null&&oe<B.length;oe++){ne.index>oe?(it=ne,ne=null):it=ne.sibling;var we=L(M,ne,B[oe],F);if(we===null){ne===null&&(ne=it);break}e&&ne&&we.alternate===null&&t(M,ne),C=c(we,C,oe),ye===null?W=we:ye.sibling=we,ye=we,ne=it}if(oe===B.length)return a(M,ne),Ne&&Nr(M,oe),W;if(ne===null){for(;oe<B.length;oe++)ne=V(M,B[oe],F),ne!==null&&(C=c(ne,C,oe),ye===null?W=ne:ye.sibling=ne,ye=ne);return Ne&&Nr(M,oe),W}for(ne=s(ne);oe<B.length;oe++)it=k(ne,M,oe,B[oe],F),it!==null&&(e&&it.alternate!==null&&ne.delete(it.key===null?oe:it.key),C=c(it,C,oe),ye===null?W=it:ye.sibling=it,ye=it);return e&&ne.forEach(function(gr){return t(M,gr)}),Ne&&Nr(M,oe),W}function se(M,C,B,F){if(B==null)throw Error(l(151));for(var W=null,ye=null,ne=C,oe=C=0,it=null,we=B.next();ne!==null&&!we.done;oe++,we=B.next()){ne.index>oe?(it=ne,ne=null):it=ne.sibling;var gr=L(M,ne,we.value,F);if(gr===null){ne===null&&(ne=it);break}e&&ne&&gr.alternate===null&&t(M,ne),C=c(gr,C,oe),ye===null?W=gr:ye.sibling=gr,ye=gr,ne=it}if(we.done)return a(M,ne),Ne&&Nr(M,oe),W;if(ne===null){for(;!we.done;oe++,we=B.next())we=V(M,we.value,F),we!==null&&(C=c(we,C,oe),ye===null?W=we:ye.sibling=we,ye=we);return Ne&&Nr(M,oe),W}for(ne=s(ne);!we.done;oe++,we=B.next())we=k(ne,M,oe,we.value,F),we!==null&&(e&&we.alternate!==null&&ne.delete(we.key===null?oe:we.key),C=c(we,C,oe),ye===null?W=we:ye.sibling=we,ye=we);return e&&ne.forEach(function(a2){return t(M,a2)}),Ne&&Nr(M,oe),W}function He(M,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(M,C.sibling),F=o(C,B.props.children),F.return=M,M=F;break e}}else if(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&a0(W)===C.type){a(M,C.sibling),F=o(C,B.props),Si(F,B),F.return=M,M=F;break e}a(M,C);break}else t(M,C);C=C.sibling}B.type===T?(F=wr(B.props.children,M.mode,F,B.key),F.return=M,M=F):(F=Rs(B.type,B.key,B.props,null,M.mode,F),Si(F,B),F.return=M,M=F)}return p(M);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(M,C.sibling),F=o(C,B.children||[]),F.return=M,M=F;break e}else{a(M,C);break}else t(M,C);C=C.sibling}F=lu(B,M.mode,F),F.return=M,M=F}return p(M);case K:return W=B._init,B=W(B._payload),He(M,C,B,F)}if(Te(B))return fe(M,C,B,F);if(ie(B)){if(W=ie(B),typeof W!="function")throw Error(l(150));return B=W.call(B),se(M,C,B,F)}if(typeof B.then=="function")return He(M,C,Vs(B),F);if(B.$$typeof===O)return He(M,C,Ds(M,B),F);Ps(M,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,C!==null&&C.tag===6?(a(M,C.sibling),F=o(C,B),F.return=M,M=F):(a(M,C),F=su(B,M.mode,F),F.return=M,M=F),p(M)):a(M,C)}return function(M,C,B,F){try{Ei=0;var W=He(M,C,B,F);return Sa=null,W}catch(ne){if(ne===hi||ne===Bs)throw ne;var ye=Nt(29,ne,null,M.mode);return ye.lanes=F,ye.return=M,ye}finally{}}}var Ta=i0(!0),s0=i0(!1),Qt=P(null),hn=null;function tr(e){var t=e.alternate;Q(tt,tt.current&1),Q(Qt,e),hn===null&&(t===null||_a.current!==null||t.memoizedState!==null)&&(hn=e)}function l0(e){if(e.tag===22){if(Q(tt,tt.current),Q(Qt,e),hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(hn=e)}}else nr()}function nr(){Q(tt,tt.current),Q(Qt,Qt.current)}function Bn(e){$(Qt),hn===e&&(hn=null),$(tt)}var tt=P(0);function Ys(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==="$?"||Cc(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 Gu(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 qu={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=jt(),o=Jn(s);o.payload=t,a!=null&&(o.callback=a),t=Wn(e,o,s),t!==null&&(Ut(t,e,s),mi(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=jt(),o=Jn(s);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Wn(e,o,s),t!==null&&(Ut(t,e,s),mi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=jt(),s=Jn(a);s.tag=2,t!=null&&(s.callback=t),t=Wn(e,s,a),t!==null&&(Ut(t,e,a),mi(t,e,a))}};function o0(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?!ai(a,s)||!ai(o,c):!0}function u0(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&&qu.enqueueReplaceState(t,t.state,null)}function Lr(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 Zs=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 c0(e){Zs(e)}function f0(e){console.error(e)}function h0(e){Zs(e)}function Xs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function d0(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 Iu(e,t,a){return a=Jn(a),a.tag=3,a.payload={element:null},a.callback=function(){Xs(e,t)},a}function m0(e){return e=Jn(e),e.tag=3,e}function p0(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(){d0(t,a,s)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){d0(t,a,s),typeof o!="function"&&(or===null?or=new Set([this]):or.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})})}function aE(e,t,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&ui(t,a,o,!0),a=Qt.current,a!==null){switch(a.tag){case 13:return hn===null?hc():a.alternate===null&&Ye===0&&(Ye=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===yu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),mc(e,s,o)),!1;case 22:return a.flags|=65536,s===yu?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)),mc(e,s,o)),!1}throw Error(l(435,a.tag))}return mc(e,s,o),hc(),!1}if(Ne)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==cu&&(e=Error(l(422),{cause:s}),oi(Pt(e,a)))):(s!==cu&&(t=Error(l(423),{cause:s}),oi(Pt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Pt(s,a),o=Iu(e.stateNode,s,o),vu(e,o),Ye!==4&&(Ye=2)),!1;var c=Error(l(520),{cause:s});if(c=Pt(c,a),Ci===null?Ci=[c]:Ci.push(c),Ye!==4&&(Ye=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=Iu(a.stateNode,s,e),vu(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"&&(or===null||!or.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=m0(o),p0(o,e,a,s),vu(a,o),!1}a=a.return}while(a!==null);return!1}var g0=Error(l(461)),rt=!1;function st(e,t,a,s){t.child=e===null?s0(t,null,a,s):Ta(t,e.child,a,s)}function y0(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 jr(t),s=Au(e,t,a,p,c,o),v=Ou(),e!==null&&!rt?(Ru(e,t,o),jn(e,t,o)):(Ne&&v&&ou(t),t.flags|=1,st(e,t,s,o),t.child)}function _0(e,t,a,s,o){if(e===null){var c=a.type;return typeof c=="function"&&!iu(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,b0(e,t,c,s,o)):(e=Rs(a.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ku(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:ai,a(p,s)&&e.ref===t.ref)return jn(e,t,o)}return t.flags|=1,e=Rn(c,s),e.ref=t.ref,e.return=t,t.child=e}function b0(e,t,a,s,o){if(e!==null){var c=e.memoizedProps;if(ai(c,s)&&e.ref===t.ref)if(rt=!1,t.pendingProps=s=c,Ku(e,o))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,jn(e,t,o)}return Fu(e,t,a,s,o)}function v0(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 E0(e,t,s,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ms(t,c!==null?c.cachePool:null),c!==null?bm(t,c):Su(),l0(t);else return t.lanes=t.childLanes=536870912,E0(e,t,c!==null?c.baseLanes|a:a,a)}else c!==null?(Ms(t,c.cachePool),bm(t,c),nr(),t.memoizedState=null):(e!==null&&Ms(t,null),Su(),nr());return st(e,t,o,a),t.child}function E0(e,t,a,s){var o=gu();return o=o===null?null:{parent:et._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Ms(t,null),Su(),l0(t),e!==null&&ui(e,t,s,!0),null}function Qs(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 Fu(e,t,a,s,o){return jr(t),a=Au(e,t,a,s,void 0,o),s=Ou(),e!==null&&!rt?(Ru(e,t,o),jn(e,t,o)):(Ne&&s&&ou(t),t.flags|=1,st(e,t,a,o),t.child)}function S0(e,t,a,s,o,c){return jr(t),t.updateQueue=null,a=Em(t,s,a,o),vm(e),s=Ou(),e!==null&&!rt?(Ru(e,t,c),jn(e,t,c)):(Ne&&s&&ou(t),t.flags|=1,st(e,t,a,c),t.child)}function T0(e,t,a,s,o){if(jr(t),t.stateNode===null){var c=da,p=a.contextType;typeof p=="object"&&p!==null&&(c=pt(p)),c=new a(s,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=qu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=s,c.state=t.memoizedState,c.refs={},_u(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?pt(p):da,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Gu(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&&qu.enqueueReplaceState(c,c.state,null),gi(t,s,c,o),pi(),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=Lr(a,v);c.props=A;var j=c.context,q=a.contextType;p=da,typeof q=="object"&&q!==null&&(p=pt(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)&&u0(t,c,s,p),$n=!1;var L=t.memoizedState;c.state=L,gi(t,s,c,o),pi(),j=t.memoizedState,v||L!==j||$n?(typeof V=="function"&&(Gu(t,a,V,s),j=t.memoizedState),(A=$n||o0(t,a,A,s,L,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,bu(e,t),p=t.memoizedProps,q=Lr(a,p),c.props=q,V=t.pendingProps,L=c.context,j=a.contextType,A=da,typeof j=="object"&&j!==null&&(A=pt(j)),v=a.getDerivedStateFromProps,(j=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==V||L!==A)&&u0(t,c,s,A),$n=!1,L=t.memoizedState,c.state=L,gi(t,s,c,o),pi();var k=t.memoizedState;p!==V||L!==k||$n||e!==null&&e.dependencies!==null&&Ns(e.dependencies)?(typeof v=="function"&&(Gu(t,a,v,s),k=t.memoizedState),(q=$n||o0(t,a,q,s,L,k,A)||e!==null&&e.dependencies!==null&&Ns(e.dependencies))?(j||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,k,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,k,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=k),c.props=s,c.state=k,c.context=A,s=q):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),s=!1)}return c=s,Qs(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=Ta(t,e.child,null,o),t.child=Ta(t,null,a,o)):st(e,t,a,o),t.memoizedState=c.state,e=t.child):e=jn(e,t,o),e}function x0(e,t,a,s){return li(),t.flags|=256,st(e,t,a,s),t.child}var Vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pu(e){return{baseLanes:e,cachePool:fm()}}function Yu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Kt),e}function A0(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:(tt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?tr(t):nr(),Ne){var v=Pe,A;if(A=v){e:{for(A=v,v=fn;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:Cr!==null?{id:wn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},A=Nt(18,null,null,0),A.stateNode=v,A.return=t,t.child=A,yt=t,Pe=null,A=!0):A=!1}A||Mr(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Cc(v)?t.lanes=32:t.lanes=536870912,null;Bn(t)}return v=s.children,s=s.fallback,o?(nr(),o=t.mode,v=Ks({mode:"hidden",children:v},o),s=wr(s,o,a,null),v.return=t,s.return=t,v.sibling=s,t.child=v,o=t.child,o.memoizedState=Pu(a),o.childLanes=Yu(e,p,a),t.memoizedState=Vu,s):(tr(t),Zu(t,v))}if(A=e.memoizedState,A!==null&&(v=A.dehydrated,v!==null)){if(c)t.flags&256?(tr(t),t.flags&=-257,t=Xu(e,t,a)):t.memoizedState!==null?(nr(),t.child=e.child,t.flags|=128,t=null):(nr(),o=s.fallback,v=t.mode,s=Ks({mode:"visible",children:s.children},v),o=wr(o,v,a,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,Ta(t,e.child,null,a),s=t.child,s.memoizedState=Pu(a),s.childLanes=Yu(e,p,a),t.memoizedState=Vu,t=o);else if(tr(t),Cc(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var j=p.dgst;p=j,s=Error(l(419)),s.stack="",s.digest=p,oi({value:s,source:null,stack:null}),t=Xu(e,t,a)}else if(rt||ui(e,t,a,!1),p=(a&e.childLanes)!==0,rt||p){if(p=ke,p!==null&&(s=a&-a,s=(s&42)!==0?1:No(s),s=(s&(p.suspendedLanes|a))!==0?0:s,s!==0&&s!==A.retryLane))throw A.retryLane=s,ha(e,s),Ut(p,e,s),g0;v.data==="$?"||hc(),t=Xu(e,t,a)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Pe=rn(v.nextSibling),yt=t,Ne=!0,Dr=null,fn=!1,e!==null&&(Zt[Xt++]=wn,Zt[Xt++]=Cn,Zt[Xt++]=Cr,wn=e.id,Cn=e.overflow,Cr=t),t=Zu(t,s.children),t.flags|=4096);return t}return o?(nr(),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=wr(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=Pu(a):(A=v.cachePool,A!==null?(j=et._currentValue,A=A.parent!==j?{parent:j,pool:j}:A):A=fm(),v={baseLanes:v.baseLanes|a,cachePool:A}),o.memoizedState=v,o.childLanes=Yu(e,p,a),t.memoizedState=Vu,s):(tr(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 Zu(e,t){return t=Ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ks(e,t){return e=Nt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Xu(e,t,a){return Ta(t,e.child,null,a),e=Zu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function O0(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),hu(e.return,t,a)}function Qu(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 R0(e,t,a){var s=t.pendingProps,o=s.revealOrder,c=s.tail;if(st(e,t,s.children,a),s=tt.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&&O0(e,a,t);else if(e.tag===19)O0(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(tt,s),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ys(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Qu(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&&Ys(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Qu(t,!0,a,null,c);break;case"together":Qu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),lr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ui(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 Ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ns(e)))}function iE(e,t,a){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),Kn(t,et,e.memoizedState.cache),li();break;case 27:case 5:Sr(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:Kn(t,t.type,t.memoizedProps.value);break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(tr(t),t.flags|=128,null):(a&t.child.childLanes)!==0?A0(e,t,a):(tr(t),e=jn(e,t,a),e!==null?e.sibling:null);tr(t);break;case 19:var o=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(ui(e,t,a,!1),s=(a&t.childLanes)!==0),o){if(s)return R0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(tt,tt.current),s)break;return null;case 22:case 23:return t.lanes=0,v0(e,t,a);case 24:Kn(t,et,e.memoizedState.cache)}return jn(e,t,a)}function w0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Ku(e,a)&&(t.flags&128)===0)return rt=!1,iE(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Ne&&(t.flags&1048576)!==0&&am(t,Cs,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")iu(s)?(e=Lr(s,e),t.tag=1,t=T0(null,t,s,e,a)):(t.tag=0,t=Fu(null,t,s,e,a));else{if(s!=null){if(o=s.$$typeof,o===R){t.tag=11,t=y0(null,t,s,e,a);break e}else if(o===Y){t.tag=14,t=_0(null,t,s,e,a);break e}}throw t=Ie(s)||s,Error(l(306,t,""))}}return t;case 0:return Fu(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,o=Lr(s,t.pendingProps),T0(e,t,s,o,a);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(l(387));s=t.pendingProps;var c=t.memoizedState;o=c.element,bu(e,t),gi(t,s,null,a);var p=t.memoizedState;if(s=p.cache,Kn(t,et,s),s!==c.cache&&du(t,[et],a,!0),pi(),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=x0(e,t,s,a);break e}else if(s!==o){o=Pt(Error(l(424)),t),oi(o),t=x0(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(Pe=rn(e.firstChild),yt=t,Ne=!0,Dr=null,fn=!0,a=s0(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(li(),s===o){t=jn(e,t,a);break e}st(e,t,s,a)}t=t.child}return t;case 26:return Qs(e,t),e===null?(a=Mp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ne||(a=t.type,e=t.pendingProps,s=cl(ce.current).createElement(a),s[mt]=t,s[vt]=e,ot(s,a,e),nt(s),t.stateNode=s):t.memoizedState=Mp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Sr(t),e===null&&Ne&&(s=t.stateNode=Cp(t.type,t.pendingProps,ce.current),yt=t,fn=!0,o=Pe,fr(t.type)?(Nc=o,Pe=rn(s.firstChild)):Pe=o),st(e,t,t.pendingProps.children,a),Qs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=s=Pe)&&(s=BE(s,t.type,t.pendingProps,fn),s!==null?(t.stateNode=s,yt=t,Pe=rn(s.firstChild),fn=!1,o=!0):o=!1),o||Mr(t)),Sr(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,s=c.children,Oc(o,c)?s=null:p!==null&&Oc(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Au(e,t,$1,null,null,a),zi._currentValue=o),Qs(e,t),st(e,t,s,a),t.child;case 6:return e===null&&Ne&&((e=a=Pe)&&(a=jE(a,t.pendingProps,fn),a!==null?(t.stateNode=a,yt=t,Pe=null,e=!0):e=!1),e||Mr(t)),null;case 13:return A0(e,t,a);case 4:return ze(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Ta(t,null,s,a):st(e,t,s,a),t.child;case 11:return y0(e,t,t.type,t.pendingProps,a);case 7:return st(e,t,t.pendingProps,a),t.child;case 8:return st(e,t,t.pendingProps.children,a),t.child;case 12:return st(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,Kn(t,t.type,s.value),st(e,t,s.children,a),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,jr(t),o=pt(o),s=s(o),t.flags|=1,st(e,t,s,a),t.child;case 14:return _0(e,t,t.type,t.pendingProps,a);case 15:return b0(e,t,t.type,t.pendingProps,a);case 19:return R0(e,t,a);case 31:return s=t.pendingProps,a=t.mode,s={mode:s.mode,children:s.children},e===null?(a=Ks(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 v0(e,t,a);case 24:return jr(t),s=pt(et),e===null?(o=gu(),o===null&&(o=ke,c=mu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:s,cache:o},_u(t),Kn(t,et,o)):((e.lanes&a)!==0&&(bu(e,t),gi(t,null,null,a),pi()),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),Kn(t,et,s)):(s=c.cache,Kn(t,et,s),s!==o.cache&&du(t,[et],a,!0))),st(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Un(e){e.flags|=4}function C0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lp(t)){if(t=Qt.current,t!==null&&((Oe&4194048)===Oe?hn!==null:(Oe&62914560)!==Oe&&(Oe&536870912)===0||t!==hn))throw di=yu,hm;e.flags|=8192}}function $s(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ld():536870912,e.lanes|=t,Ra|=t)}function Ti(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 Fe(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 sE(e,t,a){var s=t.pendingProps;switch(uu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Dn(et),Ot(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(si(t)?Un(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,lm())),Fe(t),null;case 26:return a=t.memoizedState,e===null?(Un(t),a!==null?(Fe(t),C0(t,a)):(Fe(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Un(t),Fe(t),C0(t,a)):(Fe(t),t.flags&=-16777217):(e.memoizedProps!==s&&Un(t),Fe(t),t.flags&=-16777217),null;case 27:Pa(t),a=ce.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Fe(t),null}e=ae.current,si(t)?im(t):(e=Cp(o,s,a),t.stateNode=e,Un(t))}return Fe(t),null;case 5:if(Pa(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Fe(t),null}if(e=ae.current,si(t))im(t);else{switch(o=cl(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[mt]=t,e[vt]=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(ot(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&&Un(t)}}return Fe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(l(166));if(e=ce.current,si(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,o=yt,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[mt]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||Sp(e.nodeValue,a)),e||Mr(t)}else e=cl(e).createTextNode(s),e[mt]=t,t.stateNode=e}return Fe(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=si(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[mt]=t}else li(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),o=!1}else o=lm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Bn(t),t):(Bn(t),null)}if(Bn(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),$s(t,t.updateQueue),Fe(t),null;case 4:return Ot(),e===null&&Ec(t.stateNode.containerInfo),Fe(t),null;case 10:return Dn(t.type),Fe(t),null;case 19:if($(tt),o=t.memoizedState,o===null)return Fe(t),null;if(s=(t.flags&128)!==0,c=o.rendering,c===null)if(s)Ti(o,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ys(e),c!==null){for(t.flags|=128,Ti(o,!1),e=c.updateQueue,t.updateQueue=e,$s(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)rm(a,e),a=a.sibling;return Q(tt,tt.current&1|2),t.child}e=e.sibling}o.tail!==null&&cn()>el&&(t.flags|=128,s=!0,Ti(o,!1),t.lanes=4194304)}else{if(!s)if(e=Ys(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,$s(t,e),Ti(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!Ne)return Fe(t),null}else 2*cn()-o.renderingStartTime>el&&a!==536870912&&(t.flags|=128,s=!0,Ti(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=cn(),t.sibling=null,e=tt.current,Q(tt,s?e&1|2:e&1),t):(Fe(t),null);case 22:case 23:return Bn(t),Tu(),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&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),a=t.updateQueue,a!==null&&$s(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&&$(Ur),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Dn(et),Fe(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function lE(e,t){switch(uu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dn(et),Ot(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pa(t),null;case 13:if(Bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(tt),null;case 4:return Ot(),null;case 10:return Dn(t.type),null;case 22:case 23:return Bn(t),Tu(),e!==null&&$(Ur),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Dn(et),null;case 25:return null;default:return null}}function N0(e,t){switch(uu(t),t.tag){case 3:Dn(et),Ot();break;case 26:case 27:case 5:Pa(t);break;case 4:Ot();break;case 13:Bn(t);break;case 19:$(tt);break;case 10:Dn(t.type);break;case 22:case 23:Bn(t),Tu(),e!==null&&$(Ur);break;case 24:Dn(et)}}function xi(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){Le(t,t.return,v)}}function rr(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){Le(o,A,q)}}}s=s.next}while(s!==c)}}catch(q){Le(t,t.return,q)}}function D0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{_m(t,a)}catch(s){Le(e,e.return,s)}}}function M0(e,t,a){a.props=Lr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){Le(e,t,s)}}function Ai(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){Le(e,t,o)}}function dn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){Le(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){Le(e,t,o)}else a.current=null}function B0(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){Le(e,e.return,o)}}function $u(e,t,a){try{var s=e.stateNode;wE(s,e.type,a,t),s[vt]=t}catch(o){Le(e,e.return,o)}}function j0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fr(e.type)||e.tag===4}function Ju(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||j0(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&&fr(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 Wu(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=ul));else if(s!==4&&(s===27&&fr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Wu(e,t,a),e=e.sibling;e!==null;)Wu(e,t,a),e=e.sibling}function Js(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&&fr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Js(e,t,a),e=e.sibling;e!==null;)Js(e,t,a),e=e.sibling}function U0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ot(t,s,a),t[mt]=e,t[vt]=a}catch(c){Le(e,e.return,c)}}var Hn=!1,Xe=!1,ec=!1,H0=typeof WeakSet=="function"?WeakSet:Set,at=null;function oE(e,t){if(e=e.containerInfo,xc=gl,e=Zd(e),Jo(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,L=null;t:for(;;){for(var k;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),(k=V.firstChild)!==null;)L=V,V=k;for(;;){if(V===e)break t;if(L===a&&++j===o&&(v=p),L===c&&++q===s&&(A=p),(k=V.nextSibling)!==null)break;V=L,L=V.parentNode}V=k}a=v===-1||A===-1?null:{start:v,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ac={focusedElem:e,selectionRange:a},gl=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,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=Lr(a.type,o,a.elementType===a.type);e=s.getSnapshotBeforeUpdate(fe,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(se){Le(a,a.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)wc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wc(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,at=e;break}at=t.return}}function L0(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:ar(e,a),s&4&&xi(5,a);break;case 1:if(ar(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Le(a,a.return,p)}else{var o=Lr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Le(a,a.return,p)}}s&64&&D0(a),s&512&&Ai(a,a.return);break;case 3:if(ar(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{_m(e,t)}catch(p){Le(a,a.return,p)}}break;case 27:t===null&&s&4&&U0(a);case 26:case 5:ar(e,a),t===null&&s&4&&B0(a),s&512&&Ai(a,a.return);break;case 12:ar(e,a);break;case 13:ar(e,a),s&4&&G0(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=yE.bind(null,a),UE(e,a))));break;case 22:if(s=a.memoizedState!==null||Hn,!s){t=t!==null&&t.memoizedState!==null||Xe,o=Hn;var c=Xe;Hn=s,(Xe=t)&&!c?ir(e,a,(a.subtreeFlags&8772)!==0):ar(e,a),Hn=o,Xe=c}break;case 30:break;default:ar(e,a)}}function z0(e){var t=e.alternate;t!==null&&(e.alternate=null,z0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Bo(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 qe=null,Tt=!1;function Ln(e,t,a){for(a=a.child;a!==null;)k0(e,t,a),a=a.sibling}function k0(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Ya,a)}catch{}switch(a.tag){case 26:Xe||dn(a,t),Ln(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||dn(a,t);var s=qe,o=Tt;fr(a.type)&&(qe=a.stateNode,Tt=!1),Ln(e,t,a),ji(a.stateNode),qe=s,Tt=o;break;case 5:Xe||dn(a,t);case 6:if(s=qe,o=Tt,qe=null,Ln(e,t,a),qe=s,Tt=o,qe!==null)if(Tt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(a.stateNode)}catch(c){Le(a,t,c)}else try{qe.removeChild(a.stateNode)}catch(c){Le(a,t,c)}break;case 18:qe!==null&&(Tt?(e=qe,Rp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ii(e)):Rp(qe,a.stateNode));break;case 4:s=qe,o=Tt,qe=a.stateNode.containerInfo,Tt=!0,Ln(e,t,a),qe=s,Tt=o;break;case 0:case 11:case 14:case 15:Xe||rr(2,a,t),Xe||rr(4,a,t),Ln(e,t,a);break;case 1:Xe||(dn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&M0(a,t,s)),Ln(e,t,a);break;case 21:Ln(e,t,a);break;case 22:Xe=(s=Xe)||a.memoizedState!==null,Ln(e,t,a),Xe=s;break;default:Ln(e,t,a)}}function G0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ii(e)}catch(a){Le(t,t.return,a)}}function uE(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new H0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new H0),t;default:throw Error(l(435,e.tag))}}function tc(e,t){var a=uE(e);t.forEach(function(s){var o=_E.bind(null,e,s);a.has(s)||(a.add(s),s.then(o,o))})}function Dt(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(fr(v.type)){qe=v.stateNode,Tt=!1;break e}break;case 5:qe=v.stateNode,Tt=!1;break e;case 3:case 4:qe=v.stateNode.containerInfo,Tt=!0;break e}v=v.return}if(qe===null)throw Error(l(160));k0(c,p,o),qe=null,Tt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)q0(t,e),t=t.sibling}var nn=null;function q0(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Mt(e),s&4&&(rr(3,e,e.return),xi(3,e),rr(5,e,e.return));break;case 1:Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),s&64&&Hn&&(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(Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(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[Qa]||c[mt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(s),o.head.insertBefore(c,o.querySelector("head > title"))),ot(c,s,a),c[mt]=e,nt(c),s=c;break e;case"link":var p=Up("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),ot(c,s,a),o.head.appendChild(c);break;case"meta":if(p=Up("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),ot(c,s,a),o.head.appendChild(c);break;default:throw Error(l(468,s))}c[mt]=e,nt(c),s=c}e.stateNode=s}else Hp(o,e.type,e.stateNode);else e.stateNode=jp(o,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?Hp(o,e.type,e.stateNode):jp(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&$u(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),a!==null&&s&4&&$u(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),e.flags&32){o=e.stateNode;try{ia(o,"")}catch(k){Le(e,e.return,k)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,$u(e,o,a!==null?a.memoizedProps:o)),s&1024&&(ec=!0);break;case 6:if(Dt(t,e),Mt(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(k){Le(e,e.return,k)}}break;case 3:if(dl=null,o=nn,nn=fl(t.containerInfo),Dt(t,e),nn=o,Mt(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Ii(t.containerInfo)}catch(k){Le(e,e.return,k)}ec&&(ec=!1,I0(e));break;case 4:s=nn,nn=fl(e.stateNode.containerInfo),Dt(t,e),Mt(e),nn=s;break;case 12:Dt(t,e),Mt(e);break;case 13:Dt(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(lc=cn()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tc(e,s)));break;case 22:o=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,j=Hn,q=Xe;if(Hn=j||o,Xe=q||A,Dt(t,e),Xe=q,Hn=j,Mt(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||A||Hn||Xe||zr(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,L=V!=null&&V.hasOwnProperty("display")?V.display:null;v.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(k){Le(A,A.return,k)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(k){Le(A,A.return,k)}}}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,tc(e,a))));break;case 19:Dt(t,e),Mt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tc(e,s)));break;case 30:break;case 21:break;default:Dt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(j0(s)){a=s;break}s=s.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var o=a.stateNode,c=Ju(e);Js(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(ia(p,""),a.flags&=-33);var v=Ju(e);Js(e,v,p);break;case 3:case 4:var A=a.stateNode.containerInfo,j=Ju(e);Wu(e,j,A);break;default:throw Error(l(161))}}catch(q){Le(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function I0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;I0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ar(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)L0(e,t.alternate,t),t=t.sibling}function zr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:rr(4,t,t.return),zr(t);break;case 1:dn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&M0(t,t.return,a),zr(t);break;case 27:ji(t.stateNode);case 26:case 5:dn(t,t.return),zr(t);break;case 22:t.memoizedState===null&&zr(t);break;case 30:zr(t);break;default:zr(t)}e=e.sibling}}function ir(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:ir(o,c,a),xi(4,c);break;case 1:if(ir(o,c,a),s=c,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(j){Le(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++)ym(A[o],v)}catch(j){Le(s,s.return,j)}}a&&p&64&&D0(c),Ai(c,c.return);break;case 27:U0(c);case 26:case 5:ir(o,c,a),a&&s===null&&p&4&&B0(c),Ai(c,c.return);break;case 12:ir(o,c,a);break;case 13:ir(o,c,a),a&&p&4&&G0(o,c);break;case 22:c.memoizedState===null&&ir(o,c,a),Ai(c,c.return);break;case 30:break;default:ir(o,c,a)}t=t.sibling}}function nc(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&&ci(a))}function rc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function mn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)F0(e,t,a,s),t=t.sibling}function F0(e,t,a,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:mn(e,t,a,s),o&2048&&xi(9,t);break;case 1:mn(e,t,a,s);break;case 3:mn(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&&ci(e)));break;case 12:if(o&2048){mn(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){Le(t,t.return,A)}}else mn(e,t,a,s);break;case 13:mn(e,t,a,s);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?mn(e,t,a,s):Oi(e,t):c._visibility&2?mn(e,t,a,s):(c._visibility|=2,xa(e,t,a,s,(t.subtreeFlags&10256)!==0)),o&2048&&nc(p,t);break;case 24:mn(e,t,a,s),o&2048&&rc(t.alternate,t);break;default:mn(e,t,a,s)}}function xa(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:xa(c,p,v,A,o),xi(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?xa(c,p,v,A,o):Oi(c,p):(q._visibility|=2,xa(c,p,v,A,o)),o&&j&2048&&nc(p.alternate,p);break;case 24:xa(c,p,v,A,o),o&&j&2048&&rc(p.alternate,p);break;default:xa(c,p,v,A,o)}t=t.sibling}}function Oi(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:Oi(a,s),o&2048&&nc(s.alternate,s);break;case 24:Oi(a,s),o&2048&&rc(s.alternate,s);break;default:Oi(a,s)}t=t.sibling}}var Ri=8192;function Aa(e){if(e.subtreeFlags&Ri)for(e=e.child;e!==null;)V0(e),e=e.sibling}function V0(e){switch(e.tag){case 26:Aa(e),e.flags&Ri&&e.memoizedState!==null&&XE(nn,e.memoizedState,e.memoizedProps);break;case 5:Aa(e);break;case 3:case 4:var t=nn;nn=fl(e.stateNode.containerInfo),Aa(e),nn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ri,Ri=16777216,Aa(e),Ri=t):Aa(e));break;default:Aa(e)}}function P0(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 wi(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];at=s,Z0(s,e)}P0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Y0(e),e=e.sibling}function Y0(e){switch(e.tag){case 0:case 11:case 15:wi(e),e.flags&2048&&rr(9,e,e.return);break;case 3:wi(e);break;case 12:wi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ws(e)):wi(e);break;default:wi(e)}}function Ws(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];at=s,Z0(s,e)}P0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:rr(8,t,t.return),Ws(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ws(t));break;default:Ws(t)}e=e.sibling}}function Z0(e,t){for(;at!==null;){var a=at;switch(a.tag){case 0:case 11:case 15:rr(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:ci(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,at=s;else e:for(a=e;at!==null;){s=at;var o=s.sibling,c=s.return;if(z0(s),s===a){at=null;break e}if(o!==null){o.return=c,at=o;break e}at=c}}}var cE={getCacheForType:function(e){var t=pt(et),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},fE=typeof WeakMap=="function"?WeakMap:Map,Me=0,ke=null,be=null,Oe=0,Be=0,Bt=null,sr=!1,Oa=!1,ac=!1,zn=0,Ye=0,lr=0,kr=0,ic=0,Kt=0,Ra=0,Ci=null,xt=null,sc=!1,lc=0,el=1/0,tl=null,or=null,lt=0,ur=null,wa=null,Ca=0,oc=0,uc=null,X0=null,Ni=0,cc=null;function jt(){if((Me&2)!==0&&Oe!==0)return Oe&-Oe;if(G.T!==null){var e=ga;return e!==0?e:yc()}return cd()}function Q0(){Kt===0&&(Kt=(Oe&536870912)===0||Ne?sd():536870912);var e=Qt.current;return e!==null&&(e.flags|=32),Kt}function Ut(e,t,a){(e===ke&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Na(e,0),cr(e,Oe,Kt,!1)),Xa(e,a),((Me&2)===0||e!==ke)&&(e===ke&&((Me&2)===0&&(kr|=a),Ye===4&&cr(e,Oe,Kt,!1)),pn(e))}function K0(e,t,a){if((Me&6)!==0)throw Error(l(327));var s=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Za(e,t),o=s?mE(e,t):dc(e,t,!0),c=s;do{if(o===0){Oa&&!s&&cr(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!hE(a)){o=dc(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=Ci;var A=v.current.memoizedState.isDehydrated;if(A&&(Na(v,p).flags|=256),p=dc(v,p,!1),p!==2){if(ac&&!A){v.errorRecoveryDisabledLanes|=c,kr|=c,o=4;break e}c=xt,xt=o,c!==null&&(xt===null?xt=c:xt.push.apply(xt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Na(e,0),cr(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:cr(s,t,Kt,!sr);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=lc+300-cn(),10<o)){if(cr(s,t,Kt,!sr),hs(s,0,!0)!==0)break e;s.timeoutHandle=Ap($0.bind(null,s,a,xt,tl,sc,t,Kt,kr,Ra,sr,c,2,-0,0),o);break e}$0(s,a,xt,tl,sc,t,Kt,kr,Ra,sr,c,0,-0,0)}}break}while(!0);pn(e)}function $0(e,t,a,s,o,c,p,v,A,j,q,V,L,k){if(e.timeoutHandle=-1,V=t.subtreeFlags,(V&8192||(V&16785408)===16785408)&&(Li={stylesheets:null,count:0,unsuspend:ZE},V0(t),V=QE(),V!==null)){e.cancelPendingCommit=V(ap.bind(null,e,t,c,a,s,o,p,v,A,q,1,L,k)),cr(e,c,p,!j);return}ap(e,t,c,a,s,o,p,v,A)}function hE(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(!Ct(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 cr(e,t,a,s){t&=~ic,t&=~kr,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var c=31-wt(o),p=1<<c;s[c]=-1,o&=~p}a!==0&&od(e,a,t)}function nl(){return(Me&6)===0?(Di(0),!1):!0}function fc(){if(be!==null){if(Be===0)var e=be.return;else e=be,Nn=Br=null,wu(e),Sa=null,Ei=0,e=be;for(;e!==null;)N0(e.alternate,e),e=e.return;be=null}}function Na(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,NE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),fc(),ke=e,be=a=Rn(e.current,null),Oe=t,Be=0,Bt=null,sr=!1,Oa=Za(e,t),ac=!1,Ra=Kt=ic=kr=lr=Ye=0,xt=Ci=null,sc=!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-wt(s),c=1<<o;t|=e[o],s&=~c}return zn=t,xs(),a}function J0(e,t){ge=null,G.H=Fs,t===hi||t===Bs?(t=pm(),Be=3):t===hm?(t=pm(),Be=4):Be=t===g0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,be===null&&(Ye=1,Xs(e,Pt(t,e.current)))}function W0(){var e=G.H;return G.H=Fs,e===null?Fs:e}function ep(){var e=G.A;return G.A=cE,e}function hc(){Ye=4,sr||(Oe&4194048)!==Oe&&Qt.current!==null||(Oa=!0),(lr&134217727)===0&&(kr&134217727)===0||ke===null||cr(ke,Oe,Kt,!1)}function dc(e,t,a){var s=Me;Me|=2;var o=W0(),c=ep();(ke!==e||Oe!==t)&&(tl=null,Na(e,t)),t=!1;var p=Ye;e:do try{if(Be!==0&&be!==null){var v=be,A=Bt;switch(Be){case 8:fc(),p=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var j=Be;if(Be=0,Bt=null,Da(e,v,A,j),a&&Oa){p=0;break e}break;default:j=Be,Be=0,Bt=null,Da(e,v,A,j)}}dE(),p=Ye;break}catch(q){J0(e,q)}while(!0);return t&&e.shellSuspendCounter++,Nn=Br=null,Me=s,G.H=o,G.A=c,be===null&&(ke=null,Oe=0,xs()),p}function dE(){for(;be!==null;)tp(be)}function mE(e,t){var a=Me;Me|=2;var s=W0(),o=ep();ke!==e||Oe!==t?(tl=null,el=cn()+500,Na(e,t)):Oa=Za(e,t);e:do try{if(Be!==0&&be!==null){t=be;var c=Bt;t:switch(Be){case 1:Be=0,Bt=null,Da(e,t,c,1);break;case 2:case 9:if(dm(c)){Be=0,Bt=null,np(t);break}t=function(){Be!==2&&Be!==9||ke!==e||(Be=7),pn(e)},c.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:dm(c)?(Be=0,Bt=null,np(t)):(Be=0,Bt=null,Da(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||Lp(p)){Be=0,Bt=null;var A=v.sibling;if(A!==null)be=A;else{var j=v.return;j!==null?(be=j,rl(j)):be=null}break t}}Be=0,Bt=null,Da(e,t,c,5);break;case 6:Be=0,Bt=null,Da(e,t,c,6);break;case 8:fc(),Ye=6;break e;default:throw Error(l(462))}}pE();break}catch(q){J0(e,q)}while(!0);return Nn=Br=null,G.H=s,G.A=o,Me=a,be!==null?0:(ke=null,Oe=0,xs(),Ye)}function pE(){for(;be!==null&&!Lv();)tp(be)}function tp(e){var t=w0(e.alternate,e,zn);e.memoizedProps=e.pendingProps,t===null?rl(e):be=t}function np(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=S0(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=S0(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:wu(t);default:N0(a,t),t=be=rm(t,zn),t=w0(a,t,zn)}e.memoizedProps=e.pendingProps,t===null?rl(e):be=t}function Da(e,t,a,s){Nn=Br=null,wu(t),Sa=null,Ei=0;var o=t.return;try{if(aE(e,o,t,a,Oe)){Ye=1,Xs(e,Pt(a,e.current)),be=null;return}}catch(c){if(o!==null)throw be=o,c;Ye=1,Xs(e,Pt(a,e.current)),be=null;return}t.flags&32768?(Ne||s===1?e=!0:Oa||(Oe&536870912)!==0?e=!1:(sr=e=!0,(s===2||s===9||s===3||s===6)&&(s=Qt.current,s!==null&&s.tag===13&&(s.flags|=16384))),rp(t,e)):rl(t)}function rl(e){var t=e;do{if((t.flags&32768)!==0){rp(t,sr);return}e=t.return;var a=sE(t.alternate,t,zn);if(a!==null){be=a;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ye===0&&(Ye=5)}function rp(e,t){do{var a=lE(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);Ye=6,be=null}function ap(e,t,a,s,o,c,p,v,A){e.cancelPendingCommit=null;do al();while(lt!==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|=ru,Zv(e,a,c,p,v,A),e===ke&&(be=ke=null,Oe=0),wa=t,ur=e,Ca=a,oc=c,uc=o,X0=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,bE(us,function(){return up(),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{oE(e,t,a)}finally{Me=p,X.p=o,G.T=s}}lt=1,ip(),sp(),lp()}}function ip(){if(lt===1){lt=0;var e=ur,t=wa,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{q0(t,e);var c=Ac,p=Zd(e.containerInfo),v=c.focusedElem,A=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&Yd(v.ownerDocument.documentElement,v)){if(A!==null&&Jo(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,L=V&&V.defaultView||window;if(L.getSelection){var k=L.getSelection(),fe=v.textContent.length,se=Math.min(A.start,fe),He=A.end===void 0?se:Math.min(A.end,fe);!k.extend&&se>He&&(p=He,He=se,se=p);var M=Pd(v,se),C=Pd(v,He);if(M&&C&&(k.rangeCount!==1||k.anchorNode!==M.node||k.anchorOffset!==M.offset||k.focusNode!==C.node||k.focusOffset!==C.offset)){var B=V.createRange();B.setStart(M.node,M.offset),k.removeAllRanges(),se>He?(k.addRange(B),k.extend(C.node,C.offset)):(B.setEnd(C.node,C.offset),k.addRange(B))}}}}for(V=[],k=v;k=k.parentNode;)k.nodeType===1&&V.push({element:k,left:k.scrollLeft,top:k.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}}gl=!!xc,Ac=xc=null}finally{Me=o,X.p=s,G.T=a}}e.current=t,lt=2}}function sp(){if(lt===2){lt=0;var e=ur,t=wa,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{L0(e,t.alternate,t)}finally{Me=o,X.p=s,G.T=a}}lt=3}}function lp(){if(lt===4||lt===3){lt=0,zv();var e=ur,t=wa,a=Ca,s=X0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,wa=ur=null,op(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(or=null),Do(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Ya,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}}(Ca&3)!==0&&al(),pn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===cc?Ni++:(Ni=0,cc=e):Ni=0,Di(0)}}function op(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function al(e){return ip(),sp(),lp(),up()}function up(){if(lt!==5)return!1;var e=ur,t=oc;oc=0;var a=Do(Ca),s=G.T,o=X.p;try{X.p=32>a?32:a,G.T=null,a=uc,uc=null;var c=ur,p=Ca;if(lt=0,wa=ur=null,Ca=0,(Me&6)!==0)throw Error(l(331));var v=Me;if(Me|=4,Y0(c.current),F0(c,c.current,p,a),Me=v,Di(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Ya,c)}catch{}return!0}finally{X.p=o,G.T=s,op(e,t)}}function cp(e,t,a){t=Pt(a,t),t=Iu(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(Xa(e,2),pn(e))}function Le(e,t,a){if(e.tag===3)cp(e,e,a);else for(;t!==null;){if(t.tag===3){cp(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(or===null||!or.has(s))){e=Pt(a,e),a=m0(2),s=Wn(t,a,2),s!==null&&(p0(a,s,t,e),Xa(s,2),pn(s));break}}t=t.return}}function mc(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new fE;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)||(ac=!0,o.add(a),e=gE.bind(null,e,t,a),t.then(e,e))}function gE(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ke===e&&(Oe&a)===a&&(Ye===4||Ye===3&&(Oe&62914560)===Oe&&300>cn()-lc?(Me&2)===0&&Na(e,0):ic|=a,Ra===Oe&&(Ra=0)),pn(e)}function fp(e,t){t===0&&(t=ld()),e=ha(e,t),e!==null&&(Xa(e,t),pn(e))}function yE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),fp(e,a)}function _E(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),fp(e,a)}function bE(e,t){return xn(e,t)}var il=null,Ma=null,pc=!1,sl=!1,gc=!1,Gr=0;function pn(e){e!==Ma&&e.next===null&&(Ma===null?il=Ma=e:Ma=Ma.next=e),sl=!0,pc||(pc=!0,EE())}function Di(e,t){if(!gc&&sl){gc=!0;do for(var a=!1,s=il;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-wt(42|e)+1)-1,c&=o&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,pp(s,c))}else c=Oe,c=hs(s,s===ke?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Za(s,c)||(a=!0,pp(s,c));s=s.next}while(a);gc=!1}}function vE(){hp()}function hp(){sl=pc=!1;var e=0;Gr!==0&&(CE()&&(e=Gr),Gr=0);for(var t=cn(),a=null,s=il;s!==null;){var o=s.next,c=dp(s,t);c===0?(s.next=null,a===null?il=o:a.next=o,o===null&&(Ma=a)):(a=s,(e!==0||(c&3)!==0)&&(sl=!0)),s=o}Di(e)}function dp(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-wt(c),v=1<<p,A=o[p];A===-1?((v&a)===0||(v&s)!==0)&&(o[p]=Yv(v,t)):A<=t&&(e.expiredLanes|=v),c&=~v}if(t=ke,a=Oe,a=hs(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&&wo(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Za(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&wo(s),Do(a)){case 2:case 8:a=ad;break;case 32:a=us;break;case 268435456:a=id;break;default:a=us}return s=mp.bind(null,e),a=xn(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&wo(s),e.callbackPriority=2,e.callbackNode=null,2}function mp(e,t){if(lt!==0&<!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(al()&&e.callbackNode!==a)return null;var s=Oe;return s=hs(e,e===ke?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(K0(e,s,t),dp(e,cn()),e.callbackNode!=null&&e.callbackNode===a?mp.bind(null,e):null)}function pp(e,t){if(al())return null;K0(e,t,!0)}function EE(){DE(function(){(Me&6)!==0?xn(rd,vE):hp()})}function yc(){return Gr===0&&(Gr=sd()),Gr}function gp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ys(""+e)}function yp(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 SE(e,t,a,s,o){if(t==="submit"&&a&&a.stateNode===o){var c=gp((o[vt]||null).action),p=s.submitter;p&&(t=(t=p[vt]||null)?gp(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new Es("action","action",null,s,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Gr!==0){var A=p?yp(o,p):new FormData(o);Lu(a,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(v.preventDefault(),A=p?yp(o,p):new FormData(o),Lu(a,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var _c=0;_c<nu.length;_c++){var bc=nu[_c],TE=bc.toLowerCase(),xE=bc[0].toUpperCase()+bc.slice(1);tn(TE,"on"+xE)}tn(Kd,"onAnimationEnd"),tn($d,"onAnimationIteration"),tn(Jd,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(q1,"onTransitionRun"),tn(I1,"onTransitionStart"),tn(F1,"onTransitionCancel"),tn(Wd,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xr("onBeforeInput",["compositionend","keypress","textInput","paste"]),xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mi="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(" "),AE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mi));function _p(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){Zs(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){Zs(q)}o.currentTarget=null,c=A}}}}function ve(e,t){var a=t[Mo];a===void 0&&(a=t[Mo]=new Set);var s=e+"__bubble";a.has(s)||(bp(t,e,2,!1),a.add(s))}function vc(e,t,a){var s=0;t&&(s|=4),bp(a,e,s,t)}var ll="_reactListening"+Math.random().toString(36).slice(2);function Ec(e){if(!e[ll]){e[ll]=!0,hd.forEach(function(a){a!=="selectionchange"&&(AE.has(a)||vc(a,!1,e),vc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ll]||(t[ll]=!0,vc("selectionchange",!1,t))}}function bp(e,t,a,s){switch(Fp(t)){case 2:var o=JE;break;case 8:o=WE;break;default:o=Uc}a=o.bind(null,t,a,e),o=void 0,!Fo||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 Sc(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=Wr(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}Od(function(){var j=c,q=qo(a),V=[];e:{var L=em.get(e);if(L!==void 0){var k=Es,fe=e;switch(e){case"keypress":if(bs(a)===0)break e;case"keydown":case"keyup":k=b1;break;case"focusin":fe="focus",k=Zo;break;case"focusout":fe="blur",k=Zo;break;case"beforeblur":case"afterblur":k=Zo;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":k=Cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=l1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=S1;break;case Kd:case $d:case Jd:k=c1;break;case Wd:k=x1;break;case"scroll":case"scrollend":k=i1;break;case"wheel":k=O1;break;case"copy":case"cut":case"paste":k=h1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Dd;break;case"toggle":case"beforetoggle":k=w1}var se=(t&4)!==0,He=!se&&(e==="scroll"||e==="scrollend"),M=se?L!==null?L+"Capture":null:L;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||M===null||(F=$a(C,M),F!=null&&se.push(Bi(C,F,B))),He)break;C=C.return}0<se.length&&(L=new k(L,fe,null,a,q),V.push({event:L,listeners:se}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",L&&a!==Go&&(fe=a.relatedTarget||a.fromElement)&&(Wr(fe)||fe[Jr]))break e;if((k||L)&&(L=q.window===q?q:(L=q.ownerDocument)?L.defaultView||L.parentWindow:window,k?(fe=a.relatedTarget||a.toElement,k=j,fe=fe?Wr(fe):null,fe!==null&&(He=f(fe),se=fe.tag,fe!==He||se!==5&&se!==27&&se!==6)&&(fe=null)):(k=null,fe=j),k!==fe)){if(se=Cd,F="onMouseLeave",M="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(se=Dd,F="onPointerLeave",M="onPointerEnter",C="pointer"),He=k==null?L:Ka(k),B=fe==null?L:Ka(fe),L=new se(F,C+"leave",k,a,q),L.target=He,L.relatedTarget=B,F=null,Wr(q)===j&&(se=new se(M,C+"enter",fe,a,q),se.target=B,se.relatedTarget=He,F=se),He=F,k&&fe)t:{for(se=k,M=fe,C=0,B=se;B;B=Ba(B))C++;for(B=0,F=M;F;F=Ba(F))B++;for(;0<C-B;)se=Ba(se),C--;for(;0<B-C;)M=Ba(M),B--;for(;C--;){if(se===M||M!==null&&se===M.alternate)break t;se=Ba(se),M=Ba(M)}se=null}else se=null;k!==null&&vp(V,L,k,se,!1),fe!==null&&He!==null&&vp(V,He,fe,se,!0)}}e:{if(L=j?Ka(j):window,k=L.nodeName&&L.nodeName.toLowerCase(),k==="select"||k==="input"&&L.type==="file")var W=kd;else if(Ld(L))if(Gd)W=z1;else{W=H1;var ye=U1}else k=L.nodeName,!k||k.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?j&&ko(j.elementType)&&(W=kd):W=L1;if(W&&(W=W(e,j))){zd(V,W,a,q);break e}ye&&ye(e,L,j),e==="focusout"&&j&&L.type==="number"&&j.memoizedProps.value!=null&&zo(L,"number",L.value)}switch(ye=j?Ka(j):window,e){case"focusin":(Ld(ye)||ye.contentEditable==="true")&&(ua=ye,Wo=j,ii=null);break;case"focusout":ii=Wo=ua=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,Xd(V,a,q);break;case"selectionchange":if(G1)break;case"keydown":case"keyup":Xd(V,a,q)}var ne;if(Qo)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 oa?Ud(e,a)&&(oe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(oe="onCompositionStart");oe&&(Md&&a.locale!=="ko"&&(oa||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&oa&&(ne=Rd()):(Qn=q,Vo="value"in Qn?Qn.value:Qn.textContent,oa=!0)),ye=ol(j,oe),0<ye.length&&(oe=new Nd(oe,e,null,a,q),V.push({event:oe,listeners:ye}),ne?oe.data=ne:(ne=Hd(a),ne!==null&&(oe.data=ne)))),(ne=N1?D1(e,a):M1(e,a))&&(oe=ol(j,"onBeforeInput"),0<oe.length&&(ye=new Nd("onBeforeInput","beforeinput",null,a,q),V.push({event:ye,listeners:oe}),ye.data=ne)),SE(V,e,j,a,q)}_p(V,t)})}function Bi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ol(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=$a(e,a),o!=null&&s.unshift(Bi(e,o,c)),o=$a(e,t),o!=null&&s.push(Bi(e,o,c))),e.tag===3)return s;e=e.return}return[]}function Ba(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vp(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=$a(a,c),j!=null&&p.unshift(Bi(a,j,A))):o||(j=$a(a,c),j!=null&&p.push(Bi(a,j,A)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var OE=/\r\n?/g,RE=/\u0000|\uFFFD/g;function Ep(e){return(typeof e=="string"?e:""+e).replace(OE,`
|
|
49
|
-
`).replace(RE,"")}function Sp(e,t){return t=Ep(t),Ep(e)===t}function ul(){}function Ue(e,t,a,s,o,c){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||ia(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&ia(e,""+s);break;case"className":ms(e,"class",s);break;case"tabIndex":ms(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ms(e,a,s);break;case"style":xd(e,s,c);break;case"data":if(t!=="object"){ms(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=ys(""+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"&&Ue(e,t,"name",o.name,o,null),Ue(e,t,"formEncType",o.formEncType,o,null),Ue(e,t,"formMethod",o.formMethod,o,null),Ue(e,t,"formTarget",o.formTarget,o,null)):(Ue(e,t,"encType",o.encType,o,null),Ue(e,t,"method",o.method,o,null),Ue(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=ys(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=ul);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=ys(""+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),ds(e,"popover",s);break;case"xlinkActuate":An(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":An(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":An(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":An(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":An(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":An(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":An(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":An(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":An(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ds(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=r1.get(a)||a,ds(e,a,s))}}function Tc(e,t,a,s,o,c){switch(a){case"style":xd(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"?ia(e,s):(typeof s=="number"||typeof s=="bigint")&&ia(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=ul);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dd.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[vt]||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,""):ds(e,a,s)}}}function ot(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:Ue(e,t,c,p,a,null)}}o&&Ue(e,t,"srcSet",a.srcSet,a,null),s&&Ue(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:Ue(e,t,s,q,a,null)}}vd(e,c,v,A,j,p,o,!1),ps(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:Ue(e,t,o,v,a,null)}t=c,a=p,e.multiple=!!s,t!=null?aa(e,!!s,t,!1):a!=null&&aa(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:Ue(e,t,p,v,a,null)}Sd(e,s,o,c),ps(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:Ue(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<Mi.length;s++)ve(Mi[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:Ue(e,t,j,s,a,null)}return;default:if(ko(t)){for(q in a)a.hasOwnProperty(q)&&(s=a[q],s!==void 0&&Tc(e,t,q,s,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(s=a[v],s!=null&&Ue(e,t,v,s,a,null))}function wE(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(k in a){var V=a[k];if(a.hasOwnProperty(k)&&V!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":A=V;default:s.hasOwnProperty(k)||Ue(e,t,k,null,s,V)}}for(var L in s){var k=s[L];if(V=a[L],s.hasOwnProperty(L)&&(k!=null||V!=null))switch(L){case"type":c=k;break;case"name":o=k;break;case"checked":j=k;break;case"defaultChecked":q=k;break;case"value":p=k;break;case"defaultValue":v=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(l(137,t));break;default:k!==V&&Ue(e,t,L,k,s,V)}}Lo(e,p,v,A,j,q,c,o);return;case"select":k=p=v=L=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":k=A;default:s.hasOwnProperty(c)||Ue(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":L=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==A&&Ue(e,t,o,c,s,A)}t=v,a=p,s=k,L!=null?aa(e,!!a,L,!1):!!s!=!!a&&(t!=null?aa(e,!!a,t,!0):aa(e,!!a,a?[]:"",!1));return;case"textarea":k=L=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:Ue(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":L=o;break;case"defaultValue":k=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&Ue(e,t,p,o,s,c)}Ed(e,L,k);return;case"option":for(var fe in a)if(L=a[fe],a.hasOwnProperty(fe)&&L!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Ue(e,t,fe,null,s,L)}for(A in s)if(L=s[A],k=a[A],s.hasOwnProperty(A)&&L!==k&&(L!=null||k!=null))switch(A){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Ue(e,t,A,L,s,k)}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)L=a[se],a.hasOwnProperty(se)&&L!=null&&!s.hasOwnProperty(se)&&Ue(e,t,se,null,s,L);for(j in s)if(L=s[j],k=a[j],s.hasOwnProperty(j)&&L!==k&&(L!=null||k!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(l(137,t));break;default:Ue(e,t,j,L,s,k)}return;default:if(ko(t)){for(var He in a)L=a[He],a.hasOwnProperty(He)&&L!==void 0&&!s.hasOwnProperty(He)&&Tc(e,t,He,void 0,s,L);for(q in s)L=s[q],k=a[q],!s.hasOwnProperty(q)||L===k||L===void 0&&k===void 0||Tc(e,t,q,L,s,k);return}}for(var M in a)L=a[M],a.hasOwnProperty(M)&&L!=null&&!s.hasOwnProperty(M)&&Ue(e,t,M,null,s,L);for(V in s)L=s[V],k=a[V],!s.hasOwnProperty(V)||L===k||L==null&&k==null||Ue(e,t,V,L,s,k)}var xc=null,Ac=null;function cl(e){return e.nodeType===9?e:e.ownerDocument}function Tp(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 xp(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 Oc(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 Rc=null;function CE(){var e=window.event;return e&&e.type==="popstate"?e===Rc?!1:(Rc=e,!0):(Rc=null,!1)}var Ap=typeof setTimeout=="function"?setTimeout:void 0,NE=typeof clearTimeout=="function"?clearTimeout:void 0,Op=typeof Promise=="function"?Promise:void 0,DE=typeof queueMicrotask=="function"?queueMicrotask:typeof Op<"u"?function(e){return Op.resolve(null).then(e).catch(ME)}:Ap;function ME(e){setTimeout(function(){throw e})}function fr(e){return e==="head"}function Rp(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&&ji(p.documentElement),a&2&&ji(p.body),a&4)for(a=p.head,ji(a),p=a.firstChild;p;){var v=p.nextSibling,A=p.nodeName;p[Qa]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=v}}if(o===0){e.removeChild(c),Ii(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:s=a.charCodeAt(0)-48;else s=0;a=c}while(a);Ii(t)}function wc(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":wc(a),Bo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function BE(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[Qa])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 jE(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 Cc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function UE(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 Nc=null;function wp(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 Cp(e,t,a){switch(t=cl(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 ji(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Bo(e)}var $t=new Map,Np=new Set;function fl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kn=X.d;X.d={f:HE,r:LE,D:zE,C:kE,L:GE,m:qE,X:FE,S:IE,M:VE};function HE(){var e=kn.f(),t=nl();return e||t}function LE(e){var t=ea(e);t!==null&&t.tag===5&&t.type==="form"?Km(t):kn.r(e)}var ja=typeof document>"u"?null:document;function Dp(e,t,a){var s=ja;if(s&&typeof t=="string"&&t){var o=Vt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Np.has(o)||(Np.add(o),e={rel:e,crossOrigin:a,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),ot(t,"link",e),nt(t),s.head.appendChild(t)))}}function zE(e){kn.D(e),Dp("dns-prefetch",e,null)}function kE(e,t){kn.C(e,t),Dp("preconnect",e,t)}function GE(e,t,a){kn.L(e,t,a);var s=ja;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=Ua(e);break;case"script":c=Ha(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(Ui(c))||t==="script"&&s.querySelector(Hi(c))||(t=s.createElement("link"),ot(t,"link",e),nt(t),s.head.appendChild(t)))}}function qE(e,t){kn.m(e,t);var a=ja;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=Ha(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(Hi(c)))return}s=a.createElement("link"),ot(s,"link",e),nt(s),a.head.appendChild(s)}}}function IE(e,t,a){kn.S(e,t,a);var s=ja;if(s&&e){var o=ta(s).hoistableStyles,c=Ua(e);t=t||"default";var p=o.get(c);if(!p){var v={loading:0,preload:null};if(p=s.querySelector(Ui(c)))v.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$t.get(c))&&Dc(e,a);var A=p=s.createElement("link");nt(A),ot(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,hl(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(c,p)}}}function FE(e,t){kn.X(e,t);var a=ja;if(a&&e){var s=ta(a).hoistableScripts,o=Ha(e),c=s.get(o);c||(c=a.querySelector(Hi(o)),c||(e=_({src:e,async:!0},t),(t=$t.get(o))&&Mc(e,t),c=a.createElement("script"),nt(c),ot(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function VE(e,t){kn.M(e,t);var a=ja;if(a&&e){var s=ta(a).hoistableScripts,o=Ha(e),c=s.get(o);c||(c=a.querySelector(Hi(o)),c||(e=_({src:e,async:!0,type:"module"},t),(t=$t.get(o))&&Mc(e,t),c=a.createElement("script"),nt(c),ot(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function Mp(e,t,a,s){var o=(o=ce.current)?fl(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=Ua(a.href),a=ta(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=Ua(a.href);var c=ta(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(Ui(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||PE(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=Ha(a),a=ta(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 Ua(e){return'href="'+Vt(e)+'"'}function Ui(e){return'link[rel="stylesheet"]['+e+"]"}function Bp(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function PE(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}),ot(t,"link",a),nt(t),e.head.appendChild(t))}function Ha(e){return'[src="'+Vt(e)+'"]'}function Hi(e){return"script[async]"+e}function jp(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,nt(s),s;var o=_({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),nt(s),ot(s,"style",o),hl(s,a.precedence,e),t.instance=s;case"stylesheet":o=Ua(a.href);var c=e.querySelector(Ui(o));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;s=Bp(a),(o=$t.get(o))&&Dc(s,o),c=(e.ownerDocument||e).createElement("link"),nt(c);var p=c;return p._p=new Promise(function(v,A){p.onload=v,p.onerror=A}),ot(c,"link",s),t.state.loading|=4,hl(c,a.precedence,e),t.instance=c;case"script":return c=Ha(a.src),(o=e.querySelector(Hi(c)))?(t.instance=o,nt(o),o):(s=a,(o=$t.get(c))&&(s=_({},a),Mc(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),nt(o),ot(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,hl(s,a.precedence,e));return t.instance}function hl(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 Dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var dl=null;function Up(e,t,a){if(dl===null){var s=new Map,o=dl=new Map;o.set(a,s)}else o=dl,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[Qa]||c[mt]||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 Hp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function YE(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 Lp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Li=null;function ZE(){}function XE(e,t,a){if(Li===null)throw Error(l(475));var s=Li;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=Ua(a.href),c=e.querySelector(Ui(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=ml.bind(s),e.then(s,s)),t.state.loading|=4,t.instance=c,nt(c);return}c=e.ownerDocument||e,a=Bp(a),(o=$t.get(o))&&Dc(a,o),c=c.createElement("link"),nt(c);var p=c;p._p=new Promise(function(v,A){p.onload=v,p.onerror=A}),ot(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=ml.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function QE(){if(Li===null)throw Error(l(475));var e=Li;return e.stylesheets&&e.count===0&&Bc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Bc(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 ml(){if(this.count--,this.count===0){if(this.stylesheets)Bc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var pl=null;function Bc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,pl=new Map,t.forEach(KE,e),pl=null,ml.call(e))}function KE(e,t){if(!(t.state.loading&4)){var a=pl.get(e);if(a)var s=a.get(null);else{a=new Map,pl.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=ml.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 zi={$$typeof:O,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function $E(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=Co(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Co(0),this.hiddenUpdates=Co(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 zp(e,t,a,s,o,c,p,v,A,j,q,V){return e=new $E(e,t,a,p,v,A,j,V),t=1,c===!0&&(t|=24),c=Nt(3,null,null,t),e.current=c,c.stateNode=e,t=mu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:t},_u(c),e}function kp(e){return e?(e=da,e):da}function Gp(e,t,a,s,o,c){o=kp(o),s.context===null?s.context=o:s.pendingContext=o,s=Jn(t),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=Wn(e,s,t),a!==null&&(Ut(a,e,t),mi(a,e,t))}function qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function jc(e,t){qp(e,t),(e=e.alternate)&&qp(e,t)}function Ip(e){if(e.tag===13){var t=ha(e,67108864);t!==null&&Ut(t,e,67108864),jc(e,67108864)}}var gl=!0;function JE(e,t,a,s){var o=G.T;G.T=null;var c=X.p;try{X.p=2,Uc(e,t,a,s)}finally{X.p=c,G.T=o}}function WE(e,t,a,s){var o=G.T;G.T=null;var c=X.p;try{X.p=8,Uc(e,t,a,s)}finally{X.p=c,G.T=o}}function Uc(e,t,a,s){if(gl){var o=Hc(s);if(o===null)Sc(e,t,s,yl,a),Vp(e,s);else if(t2(o,e,t,a,s))s.stopPropagation();else if(Vp(e,s),t&4&&-1<e2.indexOf(e)){for(;o!==null;){var c=ea(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=Tr(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var A=1<<31-wt(p);v.entanglements[1]|=A,p&=~A}pn(c),(Me&6)===0&&(el=cn()+500,Di(0))}}break;case 13:v=ha(c,2),v!==null&&Ut(v,c,2),nl(),jc(c,2)}if(c=Hc(s),c===null&&Sc(e,t,s,yl,a),c===o)break;o=c}o!==null&&s.stopPropagation()}else Sc(e,t,s,null,a)}}function Hc(e){return e=qo(e),Lc(e)}var yl=null;function Lc(e){if(yl=null,e=Wr(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 yl=e,null}function Fp(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(kv()){case rd:return 2;case ad:return 8;case us:case Gv:return 32;case id:return 268435456;default:return 32}default:return 32}}var zc=!1,hr=null,dr=null,mr=null,ki=new Map,Gi=new Map,pr=[],e2="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 Vp(e,t){switch(e){case"focusin":case"focusout":hr=null;break;case"dragenter":case"dragleave":dr=null;break;case"mouseover":case"mouseout":mr=null;break;case"pointerover":case"pointerout":ki.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gi.delete(t.pointerId)}}function qi(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=ea(t),t!==null&&Ip(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function t2(e,t,a,s,o){switch(t){case"focusin":return hr=qi(hr,e,t,a,s,o),!0;case"dragenter":return dr=qi(dr,e,t,a,s,o),!0;case"mouseover":return mr=qi(mr,e,t,a,s,o),!0;case"pointerover":var c=o.pointerId;return ki.set(c,qi(ki.get(c)||null,e,t,a,s,o)),!0;case"gotpointercapture":return c=o.pointerId,Gi.set(c,qi(Gi.get(c)||null,e,t,a,s,o)),!0}return!1}function Pp(e){var t=Wr(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,Xv(e.priority,function(){if(a.tag===13){var s=jt();s=No(s);var o=ha(a,s);o!==null&&Ut(o,a,s),jc(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 _l(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Hc(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);Go=s,a.target.dispatchEvent(s),Go=null}else return t=ea(a),t!==null&&Ip(t),e.blockedOn=a,!1;t.shift()}return!0}function Yp(e,t,a){_l(e)&&a.delete(t)}function n2(){zc=!1,hr!==null&&_l(hr)&&(hr=null),dr!==null&&_l(dr)&&(dr=null),mr!==null&&_l(mr)&&(mr=null),ki.forEach(Yp),Gi.forEach(Yp)}function bl(e,t){e.blockedOn===t&&(e.blockedOn=null,zc||(zc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,n2)))}var vl=null;function Zp(e){vl!==e&&(vl=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){vl===e&&(vl=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(Lc(s||a)===null)continue;break}var c=ea(a);c!==null&&(e.splice(t,3),t-=3,Lu(c,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Ii(e){function t(A){return bl(A,e)}hr!==null&&bl(hr,e),dr!==null&&bl(dr,e),mr!==null&&bl(mr,e),ki.forEach(t),Gi.forEach(t);for(var a=0;a<pr.length;a++){var s=pr[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<pr.length&&(a=pr[0],a.blockedOn===null);)Pp(a),a.blockedOn===null&&pr.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[vt]||null;if(typeof c=="function")p||Zp(a);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[vt]||null)v=p.formAction;else if(Lc(o)!==null)continue}else v=p.action;typeof v=="function"?a[s+1]=v:(a.splice(s,3),s-=3),Zp(a)}}}function kc(e){this._internalRoot=e}El.prototype.render=kc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var a=t.current,s=jt();Gp(a,s,e,t,null,null)},El.prototype.unmount=kc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gp(e.current,2,null,e,null,null),nl(),t[Jr]=null}};function El(e){this._internalRoot=e}El.prototype.unstable_scheduleHydration=function(e){if(e){var t=cd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<pr.length&&t!==0&&t<pr[a].priority;a++);pr.splice(a,0,e),a===0&&Pp(e)}};var Xp=r.version;if(Xp!=="19.1.0")throw Error(l(527,Xp,"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 r2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sl.isDisabled&&Sl.supportsFiber)try{Ya=Sl.inject(r2),Rt=Sl}catch{}}return Vi.createRoot=function(e,t){if(!u(e))throw Error(l(299));var a=!1,s="",o=c0,c=f0,p=h0,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=zp(e,1,!1,null,null,a,s,o,c,p,v,null),e[Jr]=t.current,Ec(e),new kc(t)},Vi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(l(299));var s=!1,o="",c=c0,p=f0,v=h0,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=zp(e,1,!0,t,a??null,s,o,c,p,v,A,j),t.context=kp(null),a=t.current,s=jt(),s=No(s),o=Jn(s),o.callback=null,Wn(a,o,s),a=s,t.current.lanes=a,Xa(t,a),pn(t),e[Jr]=t.current,Ec(e),new El(t)},Vi.version="19.1.0",Vi}var ag;function p2(){if(ag)return qc.exports;ag=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=m2(),qc.exports}var g2=p2(),I=qa();const O_=ho(I);var Yc={exports:{}},Zc={};/**
|
|
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 bd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function e1(e){var t=bd(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 ps(e){e._valueTracker||(e._valueTracker=e1(e))}function _d(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=bd(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function gs(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 t1=/[\n"\\]/g;function Vt(e){return e.replace(t1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lo(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?zo(e,p,Ft(t)):a!=null?zo(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 vd(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 zo(e,t,a){t==="number"&&gs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function aa(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 Ed(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 Sd(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 ia(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var n1=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 Td(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||n1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function xd(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&&Td(e,o,s)}else for(var c in t)t.hasOwnProperty(c)&&Td(e,c,t[c])}function ko(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 r1=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"]]),a1=/^[\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 ys(e){return a1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Go=null;function qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,la=null;function Ad(e){var t=ea(e);if(t&&(e=t.stateNode)){var a=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lo(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[vt]||null;if(!o)throw Error(l(90));Lo(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&&_d(s)}break e;case"textarea":Ed(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&aa(e,!!a.multiple,t,!1)}}}var Io=!1;function Od(e,t,a){if(Io)return e(t,a);Io=!0;try{var s=e(t);return s}finally{if(Io=!1,(sa!==null||la!==null)&&(nl(),sa&&(t=sa,e=la,la=sa=null,Ad(t),e)))for(t=0;t<e.length;t++)Ad(e[t])}}function $a(e,t){var a=e.stateNode;if(a===null)return null;var s=a[vt]||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 On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fo=!1;if(On)try{var Ja={};Object.defineProperty(Ja,"passive",{get:function(){Fo=!0}}),window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Fo=!1}var Qn=null,Vo=null,bs=null;function Rd(){if(bs)return bs;var e,t=Vo,a=t.length,s,o="value"in Qn?Qn.value:Qn.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 bs=o.slice(e,1<s?1-s:void 0)}function _s(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 vs(){return!0}function wd(){return!1}function Et(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)?vs:wd,this.isPropagationStopped=wd,this}return b(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=vs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=vs)},persist:function(){},isPersistent:vs}),t}var Ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=Et(Ar),Wa=b({},Ar,{view:0,detail:0}),i1=Et(Wa),Po,Yo,ei,Ss=b({},Wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xo,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!==ei&&(ei&&e.type==="mousemove"?(Po=e.screenX-ei.screenX,Yo=e.screenY-ei.screenY):Yo=Po=0,ei=e),Po)},movementY:function(e){return"movementY"in e?e.movementY:Yo}}),Cd=Et(Ss),s1=b({},Ss,{dataTransfer:0}),l1=Et(s1),o1=b({},Wa,{relatedTarget:0}),Zo=Et(o1),u1=b({},Ar,{animationName:0,elapsedTime:0,pseudoElement:0}),c1=Et(u1),f1=b({},Ar,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),h1=Et(f1),d1=b({},Ar,{data:0}),Nd=Et(d1),m1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p1={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"},g1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=g1[e])?!!t[e]:!1}function Xo(){return y1}var b1=b({},Wa,{key:function(e){if(e.key){var t=m1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_s(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?p1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xo,charCode:function(e){return e.type==="keypress"?_s(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_s(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_1=Et(b1),v1=b({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dd=Et(v1),E1=b({},Wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xo}),S1=Et(E1),T1=b({},Ar,{propertyName:0,elapsedTime:0,pseudoElement:0}),x1=Et(T1),A1=b({},Ss,{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}),O1=Et(A1),R1=b({},Ar,{newState:0,oldState:0}),w1=Et(R1),C1=[9,13,27,32],Qo=On&&"CompositionEvent"in window,ti=null;On&&"documentMode"in document&&(ti=document.documentMode);var N1=On&&"TextEvent"in window&&!ti,Md=On&&(!Qo||ti&&8<ti&&11>=ti),Bd=" ",jd=!1;function Ud(e,t){switch(e){case"keyup":return C1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oa=!1;function D1(e,t){switch(e){case"compositionend":return Hd(t);case"keypress":return t.which!==32?null:(jd=!0,Bd);case"textInput":return e=t.data,e===Bd&&jd?null:e;default:return null}}function M1(e,t){if(oa)return e==="compositionend"||!Qo&&Ud(e,t)?(e=Rd(),bs=Vo=Qn=null,oa=!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 Md&&t.locale!=="ko"?null:t.data;default:return null}}var B1={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 Ld(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!B1[e.type]:t==="textarea"}function zd(e,t,a,s){sa?la?la.push(s):la=[s]:sa=s,t=ol(t,"onChange"),0<t.length&&(a=new Es("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ni=null,ri=null;function j1(e){bp(e,0)}function Ts(e){var t=Ka(e);if(_d(t))return e}function kd(e,t){if(e==="change")return t}var Gd=!1;if(On){var Ko;if(On){var $o="oninput"in document;if(!$o){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),$o=typeof qd.oninput=="function"}Ko=$o}else Ko=!1;Gd=Ko&&(!document.documentMode||9<document.documentMode)}function Id(){ni&&(ni.detachEvent("onpropertychange",Fd),ri=ni=null)}function Fd(e){if(e.propertyName==="value"&&Ts(ri)){var t=[];zd(t,ri,e,qo(e)),Od(j1,t)}}function U1(e,t,a){e==="focusin"?(Id(),ni=t,ri=a,ni.attachEvent("onpropertychange",Fd)):e==="focusout"&&Id()}function H1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(ri)}function L1(e,t){if(e==="click")return Ts(t)}function z1(e,t){if(e==="input"||e==="change")return Ts(t)}function k1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:k1;function ai(e,t){if(Ct(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(!dt.call(t,o)||!Ct(e[o],t[o]))return!1}return!0}function Vd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pd(e,t){var a=Vd(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=Vd(a)}}function Yd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gs(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=gs(e.document)}return t}function Jo(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 G1=On&&"documentMode"in document&&11>=document.documentMode,ua=null,Wo=null,ii=null,eu=!1;function Xd(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;eu||ua==null||ua!==gs(s)||(s=ua,"selectionStart"in s&&Jo(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}),ii&&ai(ii,s)||(ii=s,s=ol(Wo,"onSelect"),0<s.length&&(t=new Es("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=ua)))}function Or(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ca={animationend:Or("Animation","AnimationEnd"),animationiteration:Or("Animation","AnimationIteration"),animationstart:Or("Animation","AnimationStart"),transitionrun:Or("Transition","TransitionRun"),transitionstart:Or("Transition","TransitionStart"),transitioncancel:Or("Transition","TransitionCancel"),transitionend:Or("Transition","TransitionEnd")},tu={},Qd={};On&&(Qd=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function Rr(e){if(tu[e])return tu[e];if(!ca[e])return e;var t=ca[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Qd)return tu[e]=t[a];return e}var Kd=Rr("animationend"),$d=Rr("animationiteration"),Jd=Rr("animationstart"),q1=Rr("transitionrun"),I1=Rr("transitionstart"),F1=Rr("transitioncancel"),Wd=Rr("transitionend"),em=new Map,nu="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(" ");nu.push("scrollEnd");function tn(e,t){em.set(e,t),xr(t,[e])}var tm=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var a=tm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:yd(t)},tm.set(e,t),t)}return{value:e,source:t,stack:yd(t)}}var Yt=[],fa=0,ru=0;function xs(){for(var e=fa,t=ru=fa=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&&nm(a,o,c)}}function As(e,t,a,s){Yt[fa++]=e,Yt[fa++]=t,Yt[fa++]=a,Yt[fa++]=s,ru|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function au(e,t,a,s){return As(e,t,a,s),Os(e)}function ha(e,t){return As(e,null,null,t),Os(e)}function nm(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-wt(a),e=c.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=a|536870912),c):null}function Os(e){if(50<Ni)throw Ni=0,cc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var da={};function V1(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 Nt(e,t,a,s){return new V1(e,t,a,s)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rn(e,t){var a=e.alternate;return a===null?(a=Nt(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 rm(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 Rs(e,t,a,s,o,c){var p=0;if(s=e,typeof e=="function")iu(e)&&(p=1);else if(typeof e=="string")p=YE(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=Nt(31,a,t,o),e.elementType=re,e.lanes=c,e;case T:return wr(a.children,o,c,t);case z:p=8,o|=24;break;case N:return e=Nt(12,a,t,o|2),e.elementType=N,e.lanes=c,e;case E:return e=Nt(13,a,t,o),e.elementType=E,e.lanes=c,e;case U:return e=Nt(19,a,t,o),e.elementType=U,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:case O:p=10;break e;case D: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=Nt(p,a,t,o),t.elementType=e,t.type=s,t.lanes=c,t}function wr(e,t,a,s){return e=Nt(7,e,s,t),e.lanes=a,e}function su(e,t,a){return e=Nt(6,e,null,t),e.lanes=a,e}function lu(e,t,a){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ma=[],pa=0,ws=null,Cs=0,Zt=[],Xt=0,Cr=null,wn=1,Cn="";function Nr(e,t){ma[pa++]=Cs,ma[pa++]=ws,ws=e,Cs=t}function am(e,t,a){Zt[Xt++]=wn,Zt[Xt++]=Cn,Zt[Xt++]=Cr,Cr=e;var s=wn;e=Cn;var o=32-wt(s)-1;s&=~(1<<o),a+=1;var c=32-wt(t)+o;if(30<c){var p=o-o%5;c=(s&(1<<p)-1).toString(32),s>>=p,o-=p,wn=1<<32-wt(t)+o|a<<o|s,Cn=c+e}else wn=1<<c|a<<o|s,Cn=e}function ou(e){e.return!==null&&(Nr(e,1),am(e,1,0))}function uu(e){for(;e===ws;)ws=ma[--pa],ma[pa]=null,Cs=ma[--pa],ma[pa]=null;for(;e===Cr;)Cr=Zt[--Xt],Zt[Xt]=null,Cn=Zt[--Xt],Zt[Xt]=null,wn=Zt[--Xt],Zt[Xt]=null}var yt=null,Pe=null,Ne=!1,Dr=null,fn=!1,cu=Error(l(519));function Mr(e){var t=Error(l(418,""));throw oi(Pt(t,e)),cu}function im(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[mt]=e,t[vt]=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<Mi.length;a++)ve(Mi[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),vd(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),ps(t);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Sd(t,s.value,s.defaultValue,s.children),ps(t)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||Sp(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=ul),t=!0):t=!1,t||Mr(e)}function sm(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 13:fn=!1;return;case 27:case 3:fn=!0;return;default:yt=yt.return}}function si(e){if(e!==yt)return!1;if(!Ne)return sm(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")||Oc(e.type,e.memoizedProps)),a=!a),a&&Pe&&Mr(e),sm(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){Pe=rn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Pe=null}}else t===27?(t=Pe,fr(e.type)?(e=Nc,Nc=null,Pe=e):Pe=t):Pe=yt?rn(e.stateNode.nextSibling):null;return!0}function li(){Pe=yt=null,Ne=!1}function lm(){var e=Dr;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Dr=null),e}function oi(e){Dr===null?Dr=[e]:Dr.push(e)}var fu=P(null),Br=null,Nn=null;function Kn(e,t,a){Q(fu,t._currentValue),t._currentValue=a}function Dn(e){e._currentValue=fu.current,$(fu)}function hu(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 du(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),hu(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),hu(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 ui(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;Ct(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===ht.current){if(p=o.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(zi):e=[zi])}o=o.return}e!==null&&du(t,e,a,s),t.flags|=262144}function Ns(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jr(e){Br=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return om(Br,e)}function Ds(e,t){return Br===null&&jr(e),om(e,t)}function om(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Nn===null){if(e===null)throw Error(l(308));Nn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nn=Nn.next=t;return a}var P1=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()})}},Y1=n.unstable_scheduleCallback,Z1=n.unstable_NormalPriority,et={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mu(){return{controller:new P1,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&Y1(Z1,function(){e.controller.abort()})}var fi=null,pu=0,ga=0,ya=null;function X1(e,t){if(fi===null){var a=fi=[];pu=0,ga=yc(),ya={status:"pending",value:void 0,then:function(s){a.push(s)}}}return pu++,t.then(um,um),t}function um(){if(--pu===0&&fi!==null){ya!==null&&(ya.status="fulfilled");var e=fi;fi=null,ga=0,ya=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Q1(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 cm=G.S;G.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&X1(e,t),cm!==null&&cm(e,t)};var Ur=P(null);function gu(){var e=Ur.current;return e!==null?e:ke.pooledCache}function Ms(e,t){t===null?Q(Ur,Ur.current):Q(Ur,t.pool)}function fm(){var e=gu();return e===null?null:{parent:et._currentValue,pool:e}}var hi=Error(l(460)),hm=Error(l(474)),Bs=Error(l(542)),yu={then:function(){}};function dm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function js(){}function mm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(js,js),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gm(e),e;default:if(typeof t.status=="string")t.then(js,js);else{if(e=ke,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,gm(e),e}throw di=t,hi}}var di=null;function pm(){if(di===null)throw Error(l(459));var e=di;return di=null,e}function gm(e){if(e===hi||e===Bs)throw Error(l(483))}var $n=!1;function bu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _u(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 Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(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=Os(e),nm(e,null,a),t}return As(e,s,t,a),Os(e)}function mi(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,ud(e,a)}}function vu(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 Eu=!1;function pi(){if(Eu){var e=ya;if(e!==null)throw e}}function gi(e,t,a,s){Eu=!1;var o=e.updateQueue;$n=!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 L=v.lane&-536870913,k=L!==v.lane;if(k?(Oe&L)===L:(s&L)===L){L!==0&&L===ga&&(Eu=!0),q!==null&&(q=q.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var fe=e,se=v;L=t;var He=a;switch(se.tag){case 1:if(fe=se.payload,typeof fe=="function"){V=fe.call(He,V,L);break e}V=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=se.payload,L=typeof fe=="function"?fe.call(He,V,L):fe,L==null)break e;V=b({},V,L);break e;case 2:$n=!0}}L=v.callback,L!==null&&(e.flags|=64,k&&(e.flags|=8192),k=o.callbacks,k===null?o.callbacks=[L]:k.push(L))}else k={lane:L,tag:v.tag,payload:v.payload,callback:v.callback,next:null},q===null?(j=q=k,A=V):q=q.next=k,p|=L;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;k=v,v=k.next,k.next=null,o.lastBaseUpdate=k,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),lr|=p,e.lanes=p,e.memoizedState=V}}function ym(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function bm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ym(a[e],t)}var ba=P(null),Us=P(0);function _m(e,t){e=zn,Q(Us,e),Q(ba,t),zn=e|t.baseLanes}function Su(){Q(Us,zn),Q(ba,ba.current)}function Tu(){zn=Us.current,$(ba),$(Us)}var er=0,ge=null,je=null,Qe=null,Hs=!1,_a=!1,Hr=!1,Ls=0,yi=0,va=null,K1=0;function Ze(){throw Error(l(321))}function xu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function Au(e,t,a,s,o,c){return er=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?n0:r0,Hr=!1,c=a(s,o),Hr=!1,_a&&(c=Em(t,a,s,o)),vm(e),c}function vm(e){G.H=Fs;var t=je!==null&&je.next!==null;if(er=0,Qe=je=ge=null,Hs=!1,yi=0,va=null,t)throw Error(l(300));e===null||rt||(e=e.dependencies,e!==null&&Ns(e)&&(rt=!0))}function Em(e,t,a,s){ge=e;var o=0;do{if(_a&&(va=null),yi=0,_a=!1,25<=o)throw Error(l(301));if(o+=1,Qe=je=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=rE,c=t(a,s)}while(_a);return c}function $1(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?bi(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(ge.flags|=1024),t}function Ou(){var e=Ls!==0;return Ls=0,e}function Ru(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function wu(e){if(Hs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hs=!1}er=0,Qe=je=ge=null,_a=!1,yi=Ls=0,va=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ke(){if(je===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Qe===null?ge.memoizedState:Qe.next;if(t!==null)Qe=t,je=e;else{if(e===null)throw ge.alternate===null?Error(l(467)):Error(l(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bi(e){var t=yi;return yi+=1,va===null&&(va=[]),e=mm(va,e,t),t=ge,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?n0:r0),e}function zs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bi(e);if(e.$$typeof===O)return pt(e)}throw Error(l(438,String(e)))}function Nu(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=Cu(),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 Mn(e,t){return typeof t=="function"?t(e):t}function ks(e){var t=Ke();return Du(t,je,e)}function Du(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:(er&V)===V){var L=j.revertLane;if(L===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),V===ga&&(q=!0);else if((er&L)===L){j=j.next,L===ga&&(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|=L,lr|=L;V=j.action,Hr&&a(c,V),c=j.hasEagerState?j.eagerState:a(c,V)}else L={lane:V,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},A===null?(v=A=L,p=c):A=A.next=L,ge.lanes|=V,lr|=V;j=j.next}while(j!==null&&j!==t);if(A===null?p=c:A.next=v,!Ct(c,e.memoizedState)&&(rt=!0,q&&(a=ya,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 Mu(e){var t=Ke(),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);Ct(c,t.memoizedState)||(rt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,s]}function Sm(e,t,a){var s=ge,o=Ke(),c=Ne;if(c){if(a===void 0)throw Error(l(407));a=a()}else a=t();var p=!Ct((je||o).memoizedState,a);p&&(o.memoizedState=a,rt=!0),o=o.queue;var v=Am.bind(null,s,o,e);if(_i(2048,8,v,[e]),o.getSnapshot!==t||p||Qe!==null&&Qe.memoizedState.tag&1){if(s.flags|=2048,Ea(9,Gs(),xm.bind(null,s,o,a,t),null),ke===null)throw Error(l(349));c||(er&124)!==0||Tm(s,t,a)}return a}function Tm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=Cu(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function xm(e,t,a,s){t.value=a,t.getSnapshot=s,Om(t)&&Rm(e)}function Am(e,t,a){return a(function(){Om(t)&&Rm(e)})}function Om(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function Rm(e){var t=ha(e,2);t!==null&&Ut(t,e,2)}function Bu(e){var t=St();if(typeof e=="function"){var a=e;if(e=a(),Hr){Zn(!0);try{a()}finally{Zn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function wm(e,t,a,s){return e.baseState=a,Du(e,je,typeof s=="function"?s:Mn)}function J1(e,t,a,s,o){if(Is(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,Cm(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Cm(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),Nm(e,t,v)}catch(j){ju(e,t,j)}finally{G.T=c}}else try{c=a(o,s),Nm(e,t,c)}catch(j){ju(e,t,j)}}function Nm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Dm(e,t,s)},function(s){return ju(e,t,s)}):Dm(e,t,a)}function Dm(e,t,a){t.status="fulfilled",t.value=a,Mm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Cm(e,a)))}function ju(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,Mm(t),t=t.next;while(t!==s)}e.action=null}function Mm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Bm(e,t){return t}function jm(e,t){if(Ne){var a=ke.formState;if(a!==null){e:{var s=ge;if(Ne){if(Pe){t:{for(var o=Pe,c=fn;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){Pe=rn(o.nextSibling),s=o.data==="F!";break e}}Mr(s)}s=!1}s&&(t=a[0])}}return a=St(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bm,lastRenderedState:t},a.queue=s,a=Wm.bind(null,ge,s),s.dispatch=a,s=Bu(!1),c=ku.bind(null,ge,!1,s.queue),s=St(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,a=J1.bind(null,ge,o,c,a),o.dispatch=a,s.memoizedState=e,[t,a,!1]}function Um(e){var t=Ke();return Hm(t,je,e)}function Hm(e,t,a){if(t=Du(e,t,Bm)[0],e=ks(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=bi(t)}catch(p){throw p===hi?Bs:p}else s=t;t=Ke();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,Ea(9,Gs(),W1.bind(null,o,a),null)),[s,c,e]}function W1(e,t){e.action=t}function Lm(e){var t=Ke(),a=je;if(a!==null)return Hm(t,a,e);Ke(),t=t.memoizedState,a=Ke();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function Ea(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Cu(),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 Gs(){return{destroy:void 0,resource:void 0}}function zm(){return Ke().memoizedState}function qs(e,t,a,s){var o=St();s=s===void 0?null:s,ge.flags|=e,o.memoizedState=Ea(1|t,Gs(),a,s)}function _i(e,t,a,s){var o=Ke();s=s===void 0?null:s;var c=o.memoizedState.inst;je!==null&&s!==null&&xu(s,je.memoizedState.deps)?o.memoizedState=Ea(t,c,a,s):(ge.flags|=e,o.memoizedState=Ea(1|t,c,a,s))}function km(e,t){qs(8390656,8,e,t)}function Gm(e,t){_i(2048,8,e,t)}function qm(e,t){return _i(4,2,e,t)}function Im(e,t){return _i(4,4,e,t)}function Fm(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 Vm(e,t,a){a=a!=null?a.concat([e]):null,_i(4,4,Fm.bind(null,t,e),a)}function Uu(){}function Pm(e,t){var a=Ke();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&xu(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function Ym(e,t){var a=Ke();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&xu(t,s[1]))return s[0];if(s=e(),Hr){Zn(!0);try{e()}finally{Zn(!1)}}return a.memoizedState=[s,t],s}function Hu(e,t,a){return a===void 0||(er&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Q0(),ge.lanes|=e,lr|=e,a)}function Zm(e,t,a,s){return Ct(a,t)?a:ba.current!==null?(e=Hu(e,a,s),Ct(e,t)||(rt=!0),e):(er&42)===0?(rt=!0,e.memoizedState=a):(e=Q0(),ge.lanes|=e,lr|=e,t)}function Xm(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,ku(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=Q1(A,s);vi(e,t,q,jt(e))}else vi(e,t,s,jt(e))}catch(V){vi(e,t,{then:function(){},status:"rejected",reason:V},jt())}finally{X.p=c,G.T=p}}function eE(){}function Lu(e,t,a,s){if(e.tag!==5)throw Error(l(476));var o=Qm(e).queue;Xm(e,o,t,J,a===null?eE:function(){return Km(e),a(s)})}function Qm(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:Mn,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Km(e){var t=Qm(e).next.queue;vi(e,t,{},jt())}function zu(){return pt(zi)}function $m(){return Ke().memoizedState}function Jm(){return Ke().memoizedState}function tE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=jt();e=Jn(a);var s=Wn(t,e,a);s!==null&&(Ut(s,t,a),mi(s,t,a)),t={cache:mu()},e.payload=t;return}t=t.return}}function nE(e,t,a){var s=jt();a={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Is(e)?e0(t,a):(a=au(e,t,a,s),a!==null&&(Ut(a,e,s),t0(a,t,s)))}function Wm(e,t,a){var s=jt();vi(e,t,a,s)}function vi(e,t,a,s){var o={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Is(e))e0(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,Ct(v,p))return As(e,t,o,0),ke===null&&xs(),!1}catch{}finally{}if(a=au(e,t,o,s),a!==null)return Ut(a,e,s),t0(a,t,s),!0}return!1}function ku(e,t,a,s){if(s={lane:2,revertLane:yc(),action:s,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(l(479))}else t=au(e,a,s,2),t!==null&&Ut(t,e,2)}function Is(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function e0(e,t){_a=Hs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function t0(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,ud(e,a)}}var Fs={readContext:pt,use:zs,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze},n0={readContext:pt,use:zs,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:km,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,qs(4194308,4,Fm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return qs(4194308,4,e,t)},useInsertionEffect:function(e,t){qs(4,2,e,t)},useMemo:function(e,t){var a=St();t=t===void 0?null:t;var s=e();if(Hr){Zn(!0);try{e()}finally{Zn(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=St();if(a!==void 0){var o=a(t);if(Hr){Zn(!0);try{a(t)}finally{Zn(!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=nE.bind(null,ge,e),[s.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:function(e){e=Bu(e);var t=e.queue,a=Wm.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Uu,useDeferredValue:function(e,t){var a=St();return Hu(a,e,t)},useTransition:function(){var e=Bu(!1);return e=Xm.bind(null,ge,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=ge,o=St();if(Ne){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),ke===null)throw Error(l(349));(Oe&124)!==0||Tm(s,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,km(Am.bind(null,s,c,e),[e]),s.flags|=2048,Ea(9,Gs(),xm.bind(null,s,c,a,t),null),a},useId:function(){var e=St(),t=ke.identifierPrefix;if(Ne){var a=Cn,s=wn;a=(s&~(1<<32-wt(s)-1)).toString(32)+a,t="«"+t+"R"+a,a=Ls++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=K1++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:zu,useFormState:jm,useActionState:jm,useOptimistic:function(e){var t=St();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ku.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:Nu,useCacheRefresh:function(){return St().memoizedState=tE.bind(null,ge)}},r0={readContext:pt,use:zs,useCallback:Pm,useContext:pt,useEffect:Gm,useImperativeHandle:Vm,useInsertionEffect:qm,useLayoutEffect:Im,useMemo:Ym,useReducer:ks,useRef:zm,useState:function(){return ks(Mn)},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Ke();return Zm(a,je.memoizedState,e,t)},useTransition:function(){var e=ks(Mn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:Sm,useId:$m,useHostTransitionStatus:zu,useFormState:Um,useActionState:Um,useOptimistic:function(e,t){var a=Ke();return wm(a,je,e,t)},useMemoCache:Nu,useCacheRefresh:Jm},rE={readContext:pt,use:zs,useCallback:Pm,useContext:pt,useEffect:Gm,useImperativeHandle:Vm,useInsertionEffect:qm,useLayoutEffect:Im,useMemo:Ym,useReducer:Mu,useRef:zm,useState:function(){return Mu(Mn)},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Ke();return je===null?Hu(a,e,t):Zm(a,je.memoizedState,e,t)},useTransition:function(){var e=Mu(Mn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:Sm,useId:$m,useHostTransitionStatus:zu,useFormState:Lm,useActionState:Lm,useOptimistic:function(e,t){var a=Ke();return je!==null?wm(a,je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Nu,useCacheRefresh:Jm},Sa=null,Ei=0;function Vs(e){var t=Ei;return Ei+=1,Sa===null&&(Sa=[]),mm(Sa,e,t)}function Si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ps(e,t){throw t.$$typeof===S?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function a0(e){var t=e._init;return t(e._payload)}function i0(e){function t(M,C){if(e){var B=M.deletions;B===null?(M.deletions=[C],M.flags|=16):B.push(C)}}function a(M,C){if(!e)return null;for(;C!==null;)t(M,C),C=C.sibling;return null}function s(M){for(var C=new Map;M!==null;)M.key!==null?C.set(M.key,M):C.set(M.index,M),M=M.sibling;return C}function o(M,C){return M=Rn(M,C),M.index=0,M.sibling=null,M}function c(M,C,B){return M.index=B,e?(B=M.alternate,B!==null?(B=B.index,B<C?(M.flags|=67108866,C):B):(M.flags|=67108866,C)):(M.flags|=1048576,C)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,C,B,F){return C===null||C.tag!==6?(C=su(B,M.mode,F),C.return=M,C):(C=o(C,B),C.return=M,C)}function A(M,C,B,F){var W=B.type;return W===T?q(M,C,B.props.children,F,B.key):C!==null&&(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&a0(W)===C.type)?(C=o(C,B.props),Si(C,B),C.return=M,C):(C=Rs(B.type,B.key,B.props,null,M.mode,F),Si(C,B),C.return=M,C)}function j(M,C,B,F){return C===null||C.tag!==4||C.stateNode.containerInfo!==B.containerInfo||C.stateNode.implementation!==B.implementation?(C=lu(B,M.mode,F),C.return=M,C):(C=o(C,B.children||[]),C.return=M,C)}function q(M,C,B,F,W){return C===null||C.tag!==7?(C=wr(B,M.mode,F,W),C.return=M,C):(C=o(C,B),C.return=M,C)}function V(M,C,B){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=su(""+C,M.mode,B),C.return=M,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case y:return B=Rs(C.type,C.key,C.props,null,M.mode,B),Si(B,C),B.return=M,B;case x:return C=lu(C,M.mode,B),C.return=M,C;case K:var F=C._init;return C=F(C._payload),V(M,C,B)}if(Te(C)||ie(C))return C=wr(C,M.mode,B,null),C.return=M,C;if(typeof C.then=="function")return V(M,Vs(C),B);if(C.$$typeof===O)return V(M,Ds(M,C),B);Ps(M,C)}return null}function L(M,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(M,C,""+B,F);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case y:return B.key===W?A(M,C,B,F):null;case x:return B.key===W?j(M,C,B,F):null;case K:return W=B._init,B=W(B._payload),L(M,C,B,F)}if(Te(B)||ie(B))return W!==null?null:q(M,C,B,F,null);if(typeof B.then=="function")return L(M,C,Vs(B),F);if(B.$$typeof===O)return L(M,C,Ds(M,B),F);Ps(M,B)}return null}function k(M,C,B,F,W){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return M=M.get(B)||null,v(C,M,""+F,W);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case y:return M=M.get(F.key===null?B:F.key)||null,A(C,M,F,W);case x:return M=M.get(F.key===null?B:F.key)||null,j(C,M,F,W);case K:var ye=F._init;return F=ye(F._payload),k(M,C,B,F,W)}if(Te(F)||ie(F))return M=M.get(B)||null,q(C,M,F,W,null);if(typeof F.then=="function")return k(M,C,B,Vs(F),W);if(F.$$typeof===O)return k(M,C,B,Ds(C,F),W);Ps(C,F)}return null}function fe(M,C,B,F){for(var W=null,ye=null,ne=C,oe=C=0,it=null;ne!==null&&oe<B.length;oe++){ne.index>oe?(it=ne,ne=null):it=ne.sibling;var we=L(M,ne,B[oe],F);if(we===null){ne===null&&(ne=it);break}e&&ne&&we.alternate===null&&t(M,ne),C=c(we,C,oe),ye===null?W=we:ye.sibling=we,ye=we,ne=it}if(oe===B.length)return a(M,ne),Ne&&Nr(M,oe),W;if(ne===null){for(;oe<B.length;oe++)ne=V(M,B[oe],F),ne!==null&&(C=c(ne,C,oe),ye===null?W=ne:ye.sibling=ne,ye=ne);return Ne&&Nr(M,oe),W}for(ne=s(ne);oe<B.length;oe++)it=k(ne,M,oe,B[oe],F),it!==null&&(e&&it.alternate!==null&&ne.delete(it.key===null?oe:it.key),C=c(it,C,oe),ye===null?W=it:ye.sibling=it,ye=it);return e&&ne.forEach(function(gr){return t(M,gr)}),Ne&&Nr(M,oe),W}function se(M,C,B,F){if(B==null)throw Error(l(151));for(var W=null,ye=null,ne=C,oe=C=0,it=null,we=B.next();ne!==null&&!we.done;oe++,we=B.next()){ne.index>oe?(it=ne,ne=null):it=ne.sibling;var gr=L(M,ne,we.value,F);if(gr===null){ne===null&&(ne=it);break}e&&ne&&gr.alternate===null&&t(M,ne),C=c(gr,C,oe),ye===null?W=gr:ye.sibling=gr,ye=gr,ne=it}if(we.done)return a(M,ne),Ne&&Nr(M,oe),W;if(ne===null){for(;!we.done;oe++,we=B.next())we=V(M,we.value,F),we!==null&&(C=c(we,C,oe),ye===null?W=we:ye.sibling=we,ye=we);return Ne&&Nr(M,oe),W}for(ne=s(ne);!we.done;oe++,we=B.next())we=k(ne,M,oe,we.value,F),we!==null&&(e&&we.alternate!==null&&ne.delete(we.key===null?oe:we.key),C=c(we,C,oe),ye===null?W=we:ye.sibling=we,ye=we);return e&&ne.forEach(function(a2){return t(M,a2)}),Ne&&Nr(M,oe),W}function He(M,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(M,C.sibling),F=o(C,B.props.children),F.return=M,M=F;break e}}else if(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&a0(W)===C.type){a(M,C.sibling),F=o(C,B.props),Si(F,B),F.return=M,M=F;break e}a(M,C);break}else t(M,C);C=C.sibling}B.type===T?(F=wr(B.props.children,M.mode,F,B.key),F.return=M,M=F):(F=Rs(B.type,B.key,B.props,null,M.mode,F),Si(F,B),F.return=M,M=F)}return p(M);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(M,C.sibling),F=o(C,B.children||[]),F.return=M,M=F;break e}else{a(M,C);break}else t(M,C);C=C.sibling}F=lu(B,M.mode,F),F.return=M,M=F}return p(M);case K:return W=B._init,B=W(B._payload),He(M,C,B,F)}if(Te(B))return fe(M,C,B,F);if(ie(B)){if(W=ie(B),typeof W!="function")throw Error(l(150));return B=W.call(B),se(M,C,B,F)}if(typeof B.then=="function")return He(M,C,Vs(B),F);if(B.$$typeof===O)return He(M,C,Ds(M,B),F);Ps(M,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,C!==null&&C.tag===6?(a(M,C.sibling),F=o(C,B),F.return=M,M=F):(a(M,C),F=su(B,M.mode,F),F.return=M,M=F),p(M)):a(M,C)}return function(M,C,B,F){try{Ei=0;var W=He(M,C,B,F);return Sa=null,W}catch(ne){if(ne===hi||ne===Bs)throw ne;var ye=Nt(29,ne,null,M.mode);return ye.lanes=F,ye.return=M,ye}finally{}}}var Ta=i0(!0),s0=i0(!1),Qt=P(null),hn=null;function tr(e){var t=e.alternate;Q(tt,tt.current&1),Q(Qt,e),hn===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(hn=e)}function l0(e){if(e.tag===22){if(Q(tt,tt.current),Q(Qt,e),hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(hn=e)}}else nr()}function nr(){Q(tt,tt.current),Q(Qt,Qt.current)}function Bn(e){$(Qt),hn===e&&(hn=null),$(tt)}var tt=P(0);function Ys(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==="$?"||Cc(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 Gu(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var qu={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=jt(),o=Jn(s);o.payload=t,a!=null&&(o.callback=a),t=Wn(e,o,s),t!==null&&(Ut(t,e,s),mi(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=jt(),o=Jn(s);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Wn(e,o,s),t!==null&&(Ut(t,e,s),mi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=jt(),s=Jn(a);s.tag=2,t!=null&&(s.callback=t),t=Wn(e,s,a),t!==null&&(Ut(t,e,a),mi(t,e,a))}};function o0(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?!ai(a,s)||!ai(o,c):!0}function u0(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&&qu.enqueueReplaceState(t,t.state,null)}function Lr(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=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Zs=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 c0(e){Zs(e)}function f0(e){console.error(e)}function h0(e){Zs(e)}function Xs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function d0(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 Iu(e,t,a){return a=Jn(a),a.tag=3,a.payload={element:null},a.callback=function(){Xs(e,t)},a}function m0(e){return e=Jn(e),e.tag=3,e}function p0(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(){d0(t,a,s)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){d0(t,a,s),typeof o!="function"&&(or===null?or=new Set([this]):or.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})})}function aE(e,t,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&ui(t,a,o,!0),a=Qt.current,a!==null){switch(a.tag){case 13:return hn===null?hc():a.alternate===null&&Ye===0&&(Ye=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===yu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),mc(e,s,o)),!1;case 22:return a.flags|=65536,s===yu?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)),mc(e,s,o)),!1}throw Error(l(435,a.tag))}return mc(e,s,o),hc(),!1}if(Ne)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==cu&&(e=Error(l(422),{cause:s}),oi(Pt(e,a)))):(s!==cu&&(t=Error(l(423),{cause:s}),oi(Pt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Pt(s,a),o=Iu(e.stateNode,s,o),vu(e,o),Ye!==4&&(Ye=2)),!1;var c=Error(l(520),{cause:s});if(c=Pt(c,a),Ci===null?Ci=[c]:Ci.push(c),Ye!==4&&(Ye=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=Iu(a.stateNode,s,e),vu(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"&&(or===null||!or.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=m0(o),p0(o,e,a,s),vu(a,o),!1}a=a.return}while(a!==null);return!1}var g0=Error(l(461)),rt=!1;function st(e,t,a,s){t.child=e===null?s0(t,null,a,s):Ta(t,e.child,a,s)}function y0(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 jr(t),s=Au(e,t,a,p,c,o),v=Ou(),e!==null&&!rt?(Ru(e,t,o),jn(e,t,o)):(Ne&&v&&ou(t),t.flags|=1,st(e,t,s,o),t.child)}function b0(e,t,a,s,o){if(e===null){var c=a.type;return typeof c=="function"&&!iu(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,_0(e,t,c,s,o)):(e=Rs(a.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ku(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:ai,a(p,s)&&e.ref===t.ref)return jn(e,t,o)}return t.flags|=1,e=Rn(c,s),e.ref=t.ref,e.return=t,t.child=e}function _0(e,t,a,s,o){if(e!==null){var c=e.memoizedProps;if(ai(c,s)&&e.ref===t.ref)if(rt=!1,t.pendingProps=s=c,Ku(e,o))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,jn(e,t,o)}return Fu(e,t,a,s,o)}function v0(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 E0(e,t,s,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ms(t,c!==null?c.cachePool:null),c!==null?_m(t,c):Su(),l0(t);else return t.lanes=t.childLanes=536870912,E0(e,t,c!==null?c.baseLanes|a:a,a)}else c!==null?(Ms(t,c.cachePool),_m(t,c),nr(),t.memoizedState=null):(e!==null&&Ms(t,null),Su(),nr());return st(e,t,o,a),t.child}function E0(e,t,a,s){var o=gu();return o=o===null?null:{parent:et._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Ms(t,null),Su(),l0(t),e!==null&&ui(e,t,s,!0),null}function Qs(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 Fu(e,t,a,s,o){return jr(t),a=Au(e,t,a,s,void 0,o),s=Ou(),e!==null&&!rt?(Ru(e,t,o),jn(e,t,o)):(Ne&&s&&ou(t),t.flags|=1,st(e,t,a,o),t.child)}function S0(e,t,a,s,o,c){return jr(t),t.updateQueue=null,a=Em(t,s,a,o),vm(e),s=Ou(),e!==null&&!rt?(Ru(e,t,c),jn(e,t,c)):(Ne&&s&&ou(t),t.flags|=1,st(e,t,a,c),t.child)}function T0(e,t,a,s,o){if(jr(t),t.stateNode===null){var c=da,p=a.contextType;typeof p=="object"&&p!==null&&(c=pt(p)),c=new a(s,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=qu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=s,c.state=t.memoizedState,c.refs={},bu(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?pt(p):da,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Gu(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&&qu.enqueueReplaceState(c,c.state,null),gi(t,s,c,o),pi(),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=Lr(a,v);c.props=A;var j=c.context,q=a.contextType;p=da,typeof q=="object"&&q!==null&&(p=pt(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)&&u0(t,c,s,p),$n=!1;var L=t.memoizedState;c.state=L,gi(t,s,c,o),pi(),j=t.memoizedState,v||L!==j||$n?(typeof V=="function"&&(Gu(t,a,V,s),j=t.memoizedState),(A=$n||o0(t,a,A,s,L,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,_u(e,t),p=t.memoizedProps,q=Lr(a,p),c.props=q,V=t.pendingProps,L=c.context,j=a.contextType,A=da,typeof j=="object"&&j!==null&&(A=pt(j)),v=a.getDerivedStateFromProps,(j=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==V||L!==A)&&u0(t,c,s,A),$n=!1,L=t.memoizedState,c.state=L,gi(t,s,c,o),pi();var k=t.memoizedState;p!==V||L!==k||$n||e!==null&&e.dependencies!==null&&Ns(e.dependencies)?(typeof v=="function"&&(Gu(t,a,v,s),k=t.memoizedState),(q=$n||o0(t,a,q,s,L,k,A)||e!==null&&e.dependencies!==null&&Ns(e.dependencies))?(j||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,k,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,k,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=k),c.props=s,c.state=k,c.context=A,s=q):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),s=!1)}return c=s,Qs(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=Ta(t,e.child,null,o),t.child=Ta(t,null,a,o)):st(e,t,a,o),t.memoizedState=c.state,e=t.child):e=jn(e,t,o),e}function x0(e,t,a,s){return li(),t.flags|=256,st(e,t,a,s),t.child}var Vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pu(e){return{baseLanes:e,cachePool:fm()}}function Yu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Kt),e}function A0(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:(tt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?tr(t):nr(),Ne){var v=Pe,A;if(A=v){e:{for(A=v,v=fn;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:Cr!==null?{id:wn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},A=Nt(18,null,null,0),A.stateNode=v,A.return=t,t.child=A,yt=t,Pe=null,A=!0):A=!1}A||Mr(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Cc(v)?t.lanes=32:t.lanes=536870912,null;Bn(t)}return v=s.children,s=s.fallback,o?(nr(),o=t.mode,v=Ks({mode:"hidden",children:v},o),s=wr(s,o,a,null),v.return=t,s.return=t,v.sibling=s,t.child=v,o=t.child,o.memoizedState=Pu(a),o.childLanes=Yu(e,p,a),t.memoizedState=Vu,s):(tr(t),Zu(t,v))}if(A=e.memoizedState,A!==null&&(v=A.dehydrated,v!==null)){if(c)t.flags&256?(tr(t),t.flags&=-257,t=Xu(e,t,a)):t.memoizedState!==null?(nr(),t.child=e.child,t.flags|=128,t=null):(nr(),o=s.fallback,v=t.mode,s=Ks({mode:"visible",children:s.children},v),o=wr(o,v,a,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,Ta(t,e.child,null,a),s=t.child,s.memoizedState=Pu(a),s.childLanes=Yu(e,p,a),t.memoizedState=Vu,t=o);else if(tr(t),Cc(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var j=p.dgst;p=j,s=Error(l(419)),s.stack="",s.digest=p,oi({value:s,source:null,stack:null}),t=Xu(e,t,a)}else if(rt||ui(e,t,a,!1),p=(a&e.childLanes)!==0,rt||p){if(p=ke,p!==null&&(s=a&-a,s=(s&42)!==0?1:No(s),s=(s&(p.suspendedLanes|a))!==0?0:s,s!==0&&s!==A.retryLane))throw A.retryLane=s,ha(e,s),Ut(p,e,s),g0;v.data==="$?"||hc(),t=Xu(e,t,a)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Pe=rn(v.nextSibling),yt=t,Ne=!0,Dr=null,fn=!1,e!==null&&(Zt[Xt++]=wn,Zt[Xt++]=Cn,Zt[Xt++]=Cr,wn=e.id,Cn=e.overflow,Cr=t),t=Zu(t,s.children),t.flags|=4096);return t}return o?(nr(),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=wr(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=Pu(a):(A=v.cachePool,A!==null?(j=et._currentValue,A=A.parent!==j?{parent:j,pool:j}:A):A=fm(),v={baseLanes:v.baseLanes|a,cachePool:A}),o.memoizedState=v,o.childLanes=Yu(e,p,a),t.memoizedState=Vu,s):(tr(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 Zu(e,t){return t=Ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ks(e,t){return e=Nt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Xu(e,t,a){return Ta(t,e.child,null,a),e=Zu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function O0(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),hu(e.return,t,a)}function Qu(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 R0(e,t,a){var s=t.pendingProps,o=s.revealOrder,c=s.tail;if(st(e,t,s.children,a),s=tt.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&&O0(e,a,t);else if(e.tag===19)O0(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(tt,s),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ys(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Qu(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&&Ys(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Qu(t,!0,a,null,c);break;case"together":Qu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),lr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ui(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 Ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ns(e)))}function iE(e,t,a){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),Kn(t,et,e.memoizedState.cache),li();break;case 27:case 5:Sr(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:Kn(t,t.type,t.memoizedProps.value);break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(tr(t),t.flags|=128,null):(a&t.child.childLanes)!==0?A0(e,t,a):(tr(t),e=jn(e,t,a),e!==null?e.sibling:null);tr(t);break;case 19:var o=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(ui(e,t,a,!1),s=(a&t.childLanes)!==0),o){if(s)return R0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(tt,tt.current),s)break;return null;case 22:case 23:return t.lanes=0,v0(e,t,a);case 24:Kn(t,et,e.memoizedState.cache)}return jn(e,t,a)}function w0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Ku(e,a)&&(t.flags&128)===0)return rt=!1,iE(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Ne&&(t.flags&1048576)!==0&&am(t,Cs,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")iu(s)?(e=Lr(s,e),t.tag=1,t=T0(null,t,s,e,a)):(t.tag=0,t=Fu(null,t,s,e,a));else{if(s!=null){if(o=s.$$typeof,o===R){t.tag=11,t=y0(null,t,s,e,a);break e}else if(o===Y){t.tag=14,t=b0(null,t,s,e,a);break e}}throw t=Ie(s)||s,Error(l(306,t,""))}}return t;case 0:return Fu(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,o=Lr(s,t.pendingProps),T0(e,t,s,o,a);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(l(387));s=t.pendingProps;var c=t.memoizedState;o=c.element,_u(e,t),gi(t,s,null,a);var p=t.memoizedState;if(s=p.cache,Kn(t,et,s),s!==c.cache&&du(t,[et],a,!0),pi(),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=x0(e,t,s,a);break e}else if(s!==o){o=Pt(Error(l(424)),t),oi(o),t=x0(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(Pe=rn(e.firstChild),yt=t,Ne=!0,Dr=null,fn=!0,a=s0(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(li(),s===o){t=jn(e,t,a);break e}st(e,t,s,a)}t=t.child}return t;case 26:return Qs(e,t),e===null?(a=Mp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ne||(a=t.type,e=t.pendingProps,s=cl(ce.current).createElement(a),s[mt]=t,s[vt]=e,ot(s,a,e),nt(s),t.stateNode=s):t.memoizedState=Mp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Sr(t),e===null&&Ne&&(s=t.stateNode=Cp(t.type,t.pendingProps,ce.current),yt=t,fn=!0,o=Pe,fr(t.type)?(Nc=o,Pe=rn(s.firstChild)):Pe=o),st(e,t,t.pendingProps.children,a),Qs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=s=Pe)&&(s=BE(s,t.type,t.pendingProps,fn),s!==null?(t.stateNode=s,yt=t,Pe=rn(s.firstChild),fn=!1,o=!0):o=!1),o||Mr(t)),Sr(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,s=c.children,Oc(o,c)?s=null:p!==null&&Oc(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Au(e,t,$1,null,null,a),zi._currentValue=o),Qs(e,t),st(e,t,s,a),t.child;case 6:return e===null&&Ne&&((e=a=Pe)&&(a=jE(a,t.pendingProps,fn),a!==null?(t.stateNode=a,yt=t,Pe=null,e=!0):e=!1),e||Mr(t)),null;case 13:return A0(e,t,a);case 4:return ze(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Ta(t,null,s,a):st(e,t,s,a),t.child;case 11:return y0(e,t,t.type,t.pendingProps,a);case 7:return st(e,t,t.pendingProps,a),t.child;case 8:return st(e,t,t.pendingProps.children,a),t.child;case 12:return st(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,Kn(t,t.type,s.value),st(e,t,s.children,a),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,jr(t),o=pt(o),s=s(o),t.flags|=1,st(e,t,s,a),t.child;case 14:return b0(e,t,t.type,t.pendingProps,a);case 15:return _0(e,t,t.type,t.pendingProps,a);case 19:return R0(e,t,a);case 31:return s=t.pendingProps,a=t.mode,s={mode:s.mode,children:s.children},e===null?(a=Ks(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 v0(e,t,a);case 24:return jr(t),s=pt(et),e===null?(o=gu(),o===null&&(o=ke,c=mu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:s,cache:o},bu(t),Kn(t,et,o)):((e.lanes&a)!==0&&(_u(e,t),gi(t,null,null,a),pi()),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),Kn(t,et,s)):(s=c.cache,Kn(t,et,s),s!==o.cache&&du(t,[et],a,!0))),st(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Un(e){e.flags|=4}function C0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lp(t)){if(t=Qt.current,t!==null&&((Oe&4194048)===Oe?hn!==null:(Oe&62914560)!==Oe&&(Oe&536870912)===0||t!==hn))throw di=yu,hm;e.flags|=8192}}function $s(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ld():536870912,e.lanes|=t,Ra|=t)}function Ti(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 Fe(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 sE(e,t,a){var s=t.pendingProps;switch(uu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Dn(et),Ot(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(si(t)?Un(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,lm())),Fe(t),null;case 26:return a=t.memoizedState,e===null?(Un(t),a!==null?(Fe(t),C0(t,a)):(Fe(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Un(t),Fe(t),C0(t,a)):(Fe(t),t.flags&=-16777217):(e.memoizedProps!==s&&Un(t),Fe(t),t.flags&=-16777217),null;case 27:Pa(t),a=ce.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Fe(t),null}e=ae.current,si(t)?im(t):(e=Cp(o,s,a),t.stateNode=e,Un(t))}return Fe(t),null;case 5:if(Pa(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Fe(t),null}if(e=ae.current,si(t))im(t);else{switch(o=cl(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[mt]=t,e[vt]=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(ot(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&&Un(t)}}return Fe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(l(166));if(e=ce.current,si(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,o=yt,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[mt]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||Sp(e.nodeValue,a)),e||Mr(t)}else e=cl(e).createTextNode(s),e[mt]=t,t.stateNode=e}return Fe(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=si(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[mt]=t}else li(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),o=!1}else o=lm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Bn(t),t):(Bn(t),null)}if(Bn(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),$s(t,t.updateQueue),Fe(t),null;case 4:return Ot(),e===null&&Ec(t.stateNode.containerInfo),Fe(t),null;case 10:return Dn(t.type),Fe(t),null;case 19:if($(tt),o=t.memoizedState,o===null)return Fe(t),null;if(s=(t.flags&128)!==0,c=o.rendering,c===null)if(s)Ti(o,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ys(e),c!==null){for(t.flags|=128,Ti(o,!1),e=c.updateQueue,t.updateQueue=e,$s(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)rm(a,e),a=a.sibling;return Q(tt,tt.current&1|2),t.child}e=e.sibling}o.tail!==null&&cn()>el&&(t.flags|=128,s=!0,Ti(o,!1),t.lanes=4194304)}else{if(!s)if(e=Ys(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,$s(t,e),Ti(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!Ne)return Fe(t),null}else 2*cn()-o.renderingStartTime>el&&a!==536870912&&(t.flags|=128,s=!0,Ti(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=cn(),t.sibling=null,e=tt.current,Q(tt,s?e&1|2:e&1),t):(Fe(t),null);case 22:case 23:return Bn(t),Tu(),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&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),a=t.updateQueue,a!==null&&$s(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&&$(Ur),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Dn(et),Fe(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function lE(e,t){switch(uu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dn(et),Ot(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pa(t),null;case 13:if(Bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(tt),null;case 4:return Ot(),null;case 10:return Dn(t.type),null;case 22:case 23:return Bn(t),Tu(),e!==null&&$(Ur),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Dn(et),null;case 25:return null;default:return null}}function N0(e,t){switch(uu(t),t.tag){case 3:Dn(et),Ot();break;case 26:case 27:case 5:Pa(t);break;case 4:Ot();break;case 13:Bn(t);break;case 19:$(tt);break;case 10:Dn(t.type);break;case 22:case 23:Bn(t),Tu(),e!==null&&$(Ur);break;case 24:Dn(et)}}function xi(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){Le(t,t.return,v)}}function rr(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){Le(o,A,q)}}}s=s.next}while(s!==c)}}catch(q){Le(t,t.return,q)}}function D0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{bm(t,a)}catch(s){Le(e,e.return,s)}}}function M0(e,t,a){a.props=Lr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){Le(e,t,s)}}function Ai(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){Le(e,t,o)}}function dn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){Le(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){Le(e,t,o)}else a.current=null}function B0(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){Le(e,e.return,o)}}function $u(e,t,a){try{var s=e.stateNode;wE(s,e.type,a,t),s[vt]=t}catch(o){Le(e,e.return,o)}}function j0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fr(e.type)||e.tag===4}function Ju(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||j0(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&&fr(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 Wu(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=ul));else if(s!==4&&(s===27&&fr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Wu(e,t,a),e=e.sibling;e!==null;)Wu(e,t,a),e=e.sibling}function Js(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&&fr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Js(e,t,a),e=e.sibling;e!==null;)Js(e,t,a),e=e.sibling}function U0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ot(t,s,a),t[mt]=e,t[vt]=a}catch(c){Le(e,e.return,c)}}var Hn=!1,Xe=!1,ec=!1,H0=typeof WeakSet=="function"?WeakSet:Set,at=null;function oE(e,t){if(e=e.containerInfo,xc=gl,e=Zd(e),Jo(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,L=null;t:for(;;){for(var k;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),(k=V.firstChild)!==null;)L=V,V=k;for(;;){if(V===e)break t;if(L===a&&++j===o&&(v=p),L===c&&++q===s&&(A=p),(k=V.nextSibling)!==null)break;V=L,L=V.parentNode}V=k}a=v===-1||A===-1?null:{start:v,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ac={focusedElem:e,selectionRange:a},gl=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,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=Lr(a.type,o,a.elementType===a.type);e=s.getSnapshotBeforeUpdate(fe,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(se){Le(a,a.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)wc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wc(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,at=e;break}at=t.return}}function L0(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:ar(e,a),s&4&&xi(5,a);break;case 1:if(ar(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Le(a,a.return,p)}else{var o=Lr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Le(a,a.return,p)}}s&64&&D0(a),s&512&&Ai(a,a.return);break;case 3:if(ar(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{bm(e,t)}catch(p){Le(a,a.return,p)}}break;case 27:t===null&&s&4&&U0(a);case 26:case 5:ar(e,a),t===null&&s&4&&B0(a),s&512&&Ai(a,a.return);break;case 12:ar(e,a);break;case 13:ar(e,a),s&4&&G0(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=yE.bind(null,a),UE(e,a))));break;case 22:if(s=a.memoizedState!==null||Hn,!s){t=t!==null&&t.memoizedState!==null||Xe,o=Hn;var c=Xe;Hn=s,(Xe=t)&&!c?ir(e,a,(a.subtreeFlags&8772)!==0):ar(e,a),Hn=o,Xe=c}break;case 30:break;default:ar(e,a)}}function z0(e){var t=e.alternate;t!==null&&(e.alternate=null,z0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Bo(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 qe=null,Tt=!1;function Ln(e,t,a){for(a=a.child;a!==null;)k0(e,t,a),a=a.sibling}function k0(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Ya,a)}catch{}switch(a.tag){case 26:Xe||dn(a,t),Ln(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||dn(a,t);var s=qe,o=Tt;fr(a.type)&&(qe=a.stateNode,Tt=!1),Ln(e,t,a),ji(a.stateNode),qe=s,Tt=o;break;case 5:Xe||dn(a,t);case 6:if(s=qe,o=Tt,qe=null,Ln(e,t,a),qe=s,Tt=o,qe!==null)if(Tt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(a.stateNode)}catch(c){Le(a,t,c)}else try{qe.removeChild(a.stateNode)}catch(c){Le(a,t,c)}break;case 18:qe!==null&&(Tt?(e=qe,Rp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ii(e)):Rp(qe,a.stateNode));break;case 4:s=qe,o=Tt,qe=a.stateNode.containerInfo,Tt=!0,Ln(e,t,a),qe=s,Tt=o;break;case 0:case 11:case 14:case 15:Xe||rr(2,a,t),Xe||rr(4,a,t),Ln(e,t,a);break;case 1:Xe||(dn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&M0(a,t,s)),Ln(e,t,a);break;case 21:Ln(e,t,a);break;case 22:Xe=(s=Xe)||a.memoizedState!==null,Ln(e,t,a),Xe=s;break;default:Ln(e,t,a)}}function G0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ii(e)}catch(a){Le(t,t.return,a)}}function uE(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new H0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new H0),t;default:throw Error(l(435,e.tag))}}function tc(e,t){var a=uE(e);t.forEach(function(s){var o=bE.bind(null,e,s);a.has(s)||(a.add(s),s.then(o,o))})}function Dt(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(fr(v.type)){qe=v.stateNode,Tt=!1;break e}break;case 5:qe=v.stateNode,Tt=!1;break e;case 3:case 4:qe=v.stateNode.containerInfo,Tt=!0;break e}v=v.return}if(qe===null)throw Error(l(160));k0(c,p,o),qe=null,Tt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)q0(t,e),t=t.sibling}var nn=null;function q0(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Mt(e),s&4&&(rr(3,e,e.return),xi(3,e),rr(5,e,e.return));break;case 1:Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),s&64&&Hn&&(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(Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(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[Qa]||c[mt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(s),o.head.insertBefore(c,o.querySelector("head > title"))),ot(c,s,a),c[mt]=e,nt(c),s=c;break e;case"link":var p=Up("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),ot(c,s,a),o.head.appendChild(c);break;case"meta":if(p=Up("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),ot(c,s,a),o.head.appendChild(c);break;default:throw Error(l(468,s))}c[mt]=e,nt(c),s=c}e.stateNode=s}else Hp(o,e.type,e.stateNode);else e.stateNode=jp(o,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?Hp(o,e.type,e.stateNode):jp(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&$u(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),a!==null&&s&4&&$u(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),e.flags&32){o=e.stateNode;try{ia(o,"")}catch(k){Le(e,e.return,k)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,$u(e,o,a!==null?a.memoizedProps:o)),s&1024&&(ec=!0);break;case 6:if(Dt(t,e),Mt(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(k){Le(e,e.return,k)}}break;case 3:if(dl=null,o=nn,nn=fl(t.containerInfo),Dt(t,e),nn=o,Mt(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Ii(t.containerInfo)}catch(k){Le(e,e.return,k)}ec&&(ec=!1,I0(e));break;case 4:s=nn,nn=fl(e.stateNode.containerInfo),Dt(t,e),Mt(e),nn=s;break;case 12:Dt(t,e),Mt(e);break;case 13:Dt(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(lc=cn()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tc(e,s)));break;case 22:o=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,j=Hn,q=Xe;if(Hn=j||o,Xe=q||A,Dt(t,e),Xe=q,Hn=j,Mt(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||A||Hn||Xe||zr(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,L=V!=null&&V.hasOwnProperty("display")?V.display:null;v.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(k){Le(A,A.return,k)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(k){Le(A,A.return,k)}}}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,tc(e,a))));break;case 19:Dt(t,e),Mt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tc(e,s)));break;case 30:break;case 21:break;default:Dt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(j0(s)){a=s;break}s=s.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var o=a.stateNode,c=Ju(e);Js(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(ia(p,""),a.flags&=-33);var v=Ju(e);Js(e,v,p);break;case 3:case 4:var A=a.stateNode.containerInfo,j=Ju(e);Wu(e,j,A);break;default:throw Error(l(161))}}catch(q){Le(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function I0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;I0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ar(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)L0(e,t.alternate,t),t=t.sibling}function zr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:rr(4,t,t.return),zr(t);break;case 1:dn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&M0(t,t.return,a),zr(t);break;case 27:ji(t.stateNode);case 26:case 5:dn(t,t.return),zr(t);break;case 22:t.memoizedState===null&&zr(t);break;case 30:zr(t);break;default:zr(t)}e=e.sibling}}function ir(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:ir(o,c,a),xi(4,c);break;case 1:if(ir(o,c,a),s=c,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(j){Le(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++)ym(A[o],v)}catch(j){Le(s,s.return,j)}}a&&p&64&&D0(c),Ai(c,c.return);break;case 27:U0(c);case 26:case 5:ir(o,c,a),a&&s===null&&p&4&&B0(c),Ai(c,c.return);break;case 12:ir(o,c,a);break;case 13:ir(o,c,a),a&&p&4&&G0(o,c);break;case 22:c.memoizedState===null&&ir(o,c,a),Ai(c,c.return);break;case 30:break;default:ir(o,c,a)}t=t.sibling}}function nc(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&&ci(a))}function rc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function mn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)F0(e,t,a,s),t=t.sibling}function F0(e,t,a,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:mn(e,t,a,s),o&2048&&xi(9,t);break;case 1:mn(e,t,a,s);break;case 3:mn(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&&ci(e)));break;case 12:if(o&2048){mn(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){Le(t,t.return,A)}}else mn(e,t,a,s);break;case 13:mn(e,t,a,s);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?mn(e,t,a,s):Oi(e,t):c._visibility&2?mn(e,t,a,s):(c._visibility|=2,xa(e,t,a,s,(t.subtreeFlags&10256)!==0)),o&2048&&nc(p,t);break;case 24:mn(e,t,a,s),o&2048&&rc(t.alternate,t);break;default:mn(e,t,a,s)}}function xa(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:xa(c,p,v,A,o),xi(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?xa(c,p,v,A,o):Oi(c,p):(q._visibility|=2,xa(c,p,v,A,o)),o&&j&2048&&nc(p.alternate,p);break;case 24:xa(c,p,v,A,o),o&&j&2048&&rc(p.alternate,p);break;default:xa(c,p,v,A,o)}t=t.sibling}}function Oi(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:Oi(a,s),o&2048&&nc(s.alternate,s);break;case 24:Oi(a,s),o&2048&&rc(s.alternate,s);break;default:Oi(a,s)}t=t.sibling}}var Ri=8192;function Aa(e){if(e.subtreeFlags&Ri)for(e=e.child;e!==null;)V0(e),e=e.sibling}function V0(e){switch(e.tag){case 26:Aa(e),e.flags&Ri&&e.memoizedState!==null&&XE(nn,e.memoizedState,e.memoizedProps);break;case 5:Aa(e);break;case 3:case 4:var t=nn;nn=fl(e.stateNode.containerInfo),Aa(e),nn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ri,Ri=16777216,Aa(e),Ri=t):Aa(e));break;default:Aa(e)}}function P0(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 wi(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];at=s,Z0(s,e)}P0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Y0(e),e=e.sibling}function Y0(e){switch(e.tag){case 0:case 11:case 15:wi(e),e.flags&2048&&rr(9,e,e.return);break;case 3:wi(e);break;case 12:wi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ws(e)):wi(e);break;default:wi(e)}}function Ws(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];at=s,Z0(s,e)}P0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:rr(8,t,t.return),Ws(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ws(t));break;default:Ws(t)}e=e.sibling}}function Z0(e,t){for(;at!==null;){var a=at;switch(a.tag){case 0:case 11:case 15:rr(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:ci(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,at=s;else e:for(a=e;at!==null;){s=at;var o=s.sibling,c=s.return;if(z0(s),s===a){at=null;break e}if(o!==null){o.return=c,at=o;break e}at=c}}}var cE={getCacheForType:function(e){var t=pt(et),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},fE=typeof WeakMap=="function"?WeakMap:Map,Me=0,ke=null,_e=null,Oe=0,Be=0,Bt=null,sr=!1,Oa=!1,ac=!1,zn=0,Ye=0,lr=0,kr=0,ic=0,Kt=0,Ra=0,Ci=null,xt=null,sc=!1,lc=0,el=1/0,tl=null,or=null,lt=0,ur=null,wa=null,Ca=0,oc=0,uc=null,X0=null,Ni=0,cc=null;function jt(){if((Me&2)!==0&&Oe!==0)return Oe&-Oe;if(G.T!==null){var e=ga;return e!==0?e:yc()}return cd()}function Q0(){Kt===0&&(Kt=(Oe&536870912)===0||Ne?sd():536870912);var e=Qt.current;return e!==null&&(e.flags|=32),Kt}function Ut(e,t,a){(e===ke&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Na(e,0),cr(e,Oe,Kt,!1)),Xa(e,a),((Me&2)===0||e!==ke)&&(e===ke&&((Me&2)===0&&(kr|=a),Ye===4&&cr(e,Oe,Kt,!1)),pn(e))}function K0(e,t,a){if((Me&6)!==0)throw Error(l(327));var s=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Za(e,t),o=s?mE(e,t):dc(e,t,!0),c=s;do{if(o===0){Oa&&!s&&cr(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!hE(a)){o=dc(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=Ci;var A=v.current.memoizedState.isDehydrated;if(A&&(Na(v,p).flags|=256),p=dc(v,p,!1),p!==2){if(ac&&!A){v.errorRecoveryDisabledLanes|=c,kr|=c,o=4;break e}c=xt,xt=o,c!==null&&(xt===null?xt=c:xt.push.apply(xt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Na(e,0),cr(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:cr(s,t,Kt,!sr);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=lc+300-cn(),10<o)){if(cr(s,t,Kt,!sr),hs(s,0,!0)!==0)break e;s.timeoutHandle=Ap($0.bind(null,s,a,xt,tl,sc,t,Kt,kr,Ra,sr,c,2,-0,0),o);break e}$0(s,a,xt,tl,sc,t,Kt,kr,Ra,sr,c,0,-0,0)}}break}while(!0);pn(e)}function $0(e,t,a,s,o,c,p,v,A,j,q,V,L,k){if(e.timeoutHandle=-1,V=t.subtreeFlags,(V&8192||(V&16785408)===16785408)&&(Li={stylesheets:null,count:0,unsuspend:ZE},V0(t),V=QE(),V!==null)){e.cancelPendingCommit=V(ap.bind(null,e,t,c,a,s,o,p,v,A,q,1,L,k)),cr(e,c,p,!j);return}ap(e,t,c,a,s,o,p,v,A)}function hE(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(!Ct(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 cr(e,t,a,s){t&=~ic,t&=~kr,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var c=31-wt(o),p=1<<c;s[c]=-1,o&=~p}a!==0&&od(e,a,t)}function nl(){return(Me&6)===0?(Di(0),!1):!0}function fc(){if(_e!==null){if(Be===0)var e=_e.return;else e=_e,Nn=Br=null,wu(e),Sa=null,Ei=0,e=_e;for(;e!==null;)N0(e.alternate,e),e=e.return;_e=null}}function Na(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,NE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),fc(),ke=e,_e=a=Rn(e.current,null),Oe=t,Be=0,Bt=null,sr=!1,Oa=Za(e,t),ac=!1,Ra=Kt=ic=kr=lr=Ye=0,xt=Ci=null,sc=!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-wt(s),c=1<<o;t|=e[o],s&=~c}return zn=t,xs(),a}function J0(e,t){ge=null,G.H=Fs,t===hi||t===Bs?(t=pm(),Be=3):t===hm?(t=pm(),Be=4):Be=t===g0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,_e===null&&(Ye=1,Xs(e,Pt(t,e.current)))}function W0(){var e=G.H;return G.H=Fs,e===null?Fs:e}function ep(){var e=G.A;return G.A=cE,e}function hc(){Ye=4,sr||(Oe&4194048)!==Oe&&Qt.current!==null||(Oa=!0),(lr&134217727)===0&&(kr&134217727)===0||ke===null||cr(ke,Oe,Kt,!1)}function dc(e,t,a){var s=Me;Me|=2;var o=W0(),c=ep();(ke!==e||Oe!==t)&&(tl=null,Na(e,t)),t=!1;var p=Ye;e:do try{if(Be!==0&&_e!==null){var v=_e,A=Bt;switch(Be){case 8:fc(),p=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var j=Be;if(Be=0,Bt=null,Da(e,v,A,j),a&&Oa){p=0;break e}break;default:j=Be,Be=0,Bt=null,Da(e,v,A,j)}}dE(),p=Ye;break}catch(q){J0(e,q)}while(!0);return t&&e.shellSuspendCounter++,Nn=Br=null,Me=s,G.H=o,G.A=c,_e===null&&(ke=null,Oe=0,xs()),p}function dE(){for(;_e!==null;)tp(_e)}function mE(e,t){var a=Me;Me|=2;var s=W0(),o=ep();ke!==e||Oe!==t?(tl=null,el=cn()+500,Na(e,t)):Oa=Za(e,t);e:do try{if(Be!==0&&_e!==null){t=_e;var c=Bt;t:switch(Be){case 1:Be=0,Bt=null,Da(e,t,c,1);break;case 2:case 9:if(dm(c)){Be=0,Bt=null,np(t);break}t=function(){Be!==2&&Be!==9||ke!==e||(Be=7),pn(e)},c.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:dm(c)?(Be=0,Bt=null,np(t)):(Be=0,Bt=null,Da(e,t,c,7));break;case 5:var p=null;switch(_e.tag){case 26:p=_e.memoizedState;case 5:case 27:var v=_e;if(!p||Lp(p)){Be=0,Bt=null;var A=v.sibling;if(A!==null)_e=A;else{var j=v.return;j!==null?(_e=j,rl(j)):_e=null}break t}}Be=0,Bt=null,Da(e,t,c,5);break;case 6:Be=0,Bt=null,Da(e,t,c,6);break;case 8:fc(),Ye=6;break e;default:throw Error(l(462))}}pE();break}catch(q){J0(e,q)}while(!0);return Nn=Br=null,G.H=s,G.A=o,Me=a,_e!==null?0:(ke=null,Oe=0,xs(),Ye)}function pE(){for(;_e!==null&&!Lv();)tp(_e)}function tp(e){var t=w0(e.alternate,e,zn);e.memoizedProps=e.pendingProps,t===null?rl(e):_e=t}function np(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=S0(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=S0(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:wu(t);default:N0(a,t),t=_e=rm(t,zn),t=w0(a,t,zn)}e.memoizedProps=e.pendingProps,t===null?rl(e):_e=t}function Da(e,t,a,s){Nn=Br=null,wu(t),Sa=null,Ei=0;var o=t.return;try{if(aE(e,o,t,a,Oe)){Ye=1,Xs(e,Pt(a,e.current)),_e=null;return}}catch(c){if(o!==null)throw _e=o,c;Ye=1,Xs(e,Pt(a,e.current)),_e=null;return}t.flags&32768?(Ne||s===1?e=!0:Oa||(Oe&536870912)!==0?e=!1:(sr=e=!0,(s===2||s===9||s===3||s===6)&&(s=Qt.current,s!==null&&s.tag===13&&(s.flags|=16384))),rp(t,e)):rl(t)}function rl(e){var t=e;do{if((t.flags&32768)!==0){rp(t,sr);return}e=t.return;var a=sE(t.alternate,t,zn);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);Ye===0&&(Ye=5)}function rp(e,t){do{var a=lE(e.alternate,e);if(a!==null){a.flags&=32767,_e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=a}while(e!==null);Ye=6,_e=null}function ap(e,t,a,s,o,c,p,v,A){e.cancelPendingCommit=null;do al();while(lt!==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|=ru,Zv(e,a,c,p,v,A),e===ke&&(_e=ke=null,Oe=0),wa=t,ur=e,Ca=a,oc=c,uc=o,X0=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,_E(us,function(){return up(),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{oE(e,t,a)}finally{Me=p,X.p=o,G.T=s}}lt=1,ip(),sp(),lp()}}function ip(){if(lt===1){lt=0;var e=ur,t=wa,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{q0(t,e);var c=Ac,p=Zd(e.containerInfo),v=c.focusedElem,A=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&Yd(v.ownerDocument.documentElement,v)){if(A!==null&&Jo(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,L=V&&V.defaultView||window;if(L.getSelection){var k=L.getSelection(),fe=v.textContent.length,se=Math.min(A.start,fe),He=A.end===void 0?se:Math.min(A.end,fe);!k.extend&&se>He&&(p=He,He=se,se=p);var M=Pd(v,se),C=Pd(v,He);if(M&&C&&(k.rangeCount!==1||k.anchorNode!==M.node||k.anchorOffset!==M.offset||k.focusNode!==C.node||k.focusOffset!==C.offset)){var B=V.createRange();B.setStart(M.node,M.offset),k.removeAllRanges(),se>He?(k.addRange(B),k.extend(C.node,C.offset)):(B.setEnd(C.node,C.offset),k.addRange(B))}}}}for(V=[],k=v;k=k.parentNode;)k.nodeType===1&&V.push({element:k,left:k.scrollLeft,top:k.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}}gl=!!xc,Ac=xc=null}finally{Me=o,X.p=s,G.T=a}}e.current=t,lt=2}}function sp(){if(lt===2){lt=0;var e=ur,t=wa,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{L0(e,t.alternate,t)}finally{Me=o,X.p=s,G.T=a}}lt=3}}function lp(){if(lt===4||lt===3){lt=0,zv();var e=ur,t=wa,a=Ca,s=X0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,wa=ur=null,op(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(or=null),Do(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Ya,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}}(Ca&3)!==0&&al(),pn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===cc?Ni++:(Ni=0,cc=e):Ni=0,Di(0)}}function op(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function al(e){return ip(),sp(),lp(),up()}function up(){if(lt!==5)return!1;var e=ur,t=oc;oc=0;var a=Do(Ca),s=G.T,o=X.p;try{X.p=32>a?32:a,G.T=null,a=uc,uc=null;var c=ur,p=Ca;if(lt=0,wa=ur=null,Ca=0,(Me&6)!==0)throw Error(l(331));var v=Me;if(Me|=4,Y0(c.current),F0(c,c.current,p,a),Me=v,Di(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Ya,c)}catch{}return!0}finally{X.p=o,G.T=s,op(e,t)}}function cp(e,t,a){t=Pt(a,t),t=Iu(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(Xa(e,2),pn(e))}function Le(e,t,a){if(e.tag===3)cp(e,e,a);else for(;t!==null;){if(t.tag===3){cp(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(or===null||!or.has(s))){e=Pt(a,e),a=m0(2),s=Wn(t,a,2),s!==null&&(p0(a,s,t,e),Xa(s,2),pn(s));break}}t=t.return}}function mc(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new fE;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)||(ac=!0,o.add(a),e=gE.bind(null,e,t,a),t.then(e,e))}function gE(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ke===e&&(Oe&a)===a&&(Ye===4||Ye===3&&(Oe&62914560)===Oe&&300>cn()-lc?(Me&2)===0&&Na(e,0):ic|=a,Ra===Oe&&(Ra=0)),pn(e)}function fp(e,t){t===0&&(t=ld()),e=ha(e,t),e!==null&&(Xa(e,t),pn(e))}function yE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),fp(e,a)}function bE(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),fp(e,a)}function _E(e,t){return xn(e,t)}var il=null,Ma=null,pc=!1,sl=!1,gc=!1,Gr=0;function pn(e){e!==Ma&&e.next===null&&(Ma===null?il=Ma=e:Ma=Ma.next=e),sl=!0,pc||(pc=!0,EE())}function Di(e,t){if(!gc&&sl){gc=!0;do for(var a=!1,s=il;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-wt(42|e)+1)-1,c&=o&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,pp(s,c))}else c=Oe,c=hs(s,s===ke?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Za(s,c)||(a=!0,pp(s,c));s=s.next}while(a);gc=!1}}function vE(){hp()}function hp(){sl=pc=!1;var e=0;Gr!==0&&(CE()&&(e=Gr),Gr=0);for(var t=cn(),a=null,s=il;s!==null;){var o=s.next,c=dp(s,t);c===0?(s.next=null,a===null?il=o:a.next=o,o===null&&(Ma=a)):(a=s,(e!==0||(c&3)!==0)&&(sl=!0)),s=o}Di(e)}function dp(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-wt(c),v=1<<p,A=o[p];A===-1?((v&a)===0||(v&s)!==0)&&(o[p]=Yv(v,t)):A<=t&&(e.expiredLanes|=v),c&=~v}if(t=ke,a=Oe,a=hs(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&&wo(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Za(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&wo(s),Do(a)){case 2:case 8:a=ad;break;case 32:a=us;break;case 268435456:a=id;break;default:a=us}return s=mp.bind(null,e),a=xn(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&wo(s),e.callbackPriority=2,e.callbackNode=null,2}function mp(e,t){if(lt!==0&<!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(al()&&e.callbackNode!==a)return null;var s=Oe;return s=hs(e,e===ke?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(K0(e,s,t),dp(e,cn()),e.callbackNode!=null&&e.callbackNode===a?mp.bind(null,e):null)}function pp(e,t){if(al())return null;K0(e,t,!0)}function EE(){DE(function(){(Me&6)!==0?xn(rd,vE):hp()})}function yc(){return Gr===0&&(Gr=sd()),Gr}function gp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ys(""+e)}function yp(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 SE(e,t,a,s,o){if(t==="submit"&&a&&a.stateNode===o){var c=gp((o[vt]||null).action),p=s.submitter;p&&(t=(t=p[vt]||null)?gp(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new Es("action","action",null,s,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Gr!==0){var A=p?yp(o,p):new FormData(o);Lu(a,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(v.preventDefault(),A=p?yp(o,p):new FormData(o),Lu(a,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var bc=0;bc<nu.length;bc++){var _c=nu[bc],TE=_c.toLowerCase(),xE=_c[0].toUpperCase()+_c.slice(1);tn(TE,"on"+xE)}tn(Kd,"onAnimationEnd"),tn($d,"onAnimationIteration"),tn(Jd,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(q1,"onTransitionRun"),tn(I1,"onTransitionStart"),tn(F1,"onTransitionCancel"),tn(Wd,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xr("onBeforeInput",["compositionend","keypress","textInput","paste"]),xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mi="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(" "),AE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mi));function bp(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){Zs(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){Zs(q)}o.currentTarget=null,c=A}}}}function ve(e,t){var a=t[Mo];a===void 0&&(a=t[Mo]=new Set);var s=e+"__bubble";a.has(s)||(_p(t,e,2,!1),a.add(s))}function vc(e,t,a){var s=0;t&&(s|=4),_p(a,e,s,t)}var ll="_reactListening"+Math.random().toString(36).slice(2);function Ec(e){if(!e[ll]){e[ll]=!0,hd.forEach(function(a){a!=="selectionchange"&&(AE.has(a)||vc(a,!1,e),vc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ll]||(t[ll]=!0,vc("selectionchange",!1,t))}}function _p(e,t,a,s){switch(Fp(t)){case 2:var o=JE;break;case 8:o=WE;break;default:o=Uc}a=o.bind(null,t,a,e),o=void 0,!Fo||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 Sc(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=Wr(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}Od(function(){var j=c,q=qo(a),V=[];e:{var L=em.get(e);if(L!==void 0){var k=Es,fe=e;switch(e){case"keypress":if(_s(a)===0)break e;case"keydown":case"keyup":k=_1;break;case"focusin":fe="focus",k=Zo;break;case"focusout":fe="blur",k=Zo;break;case"beforeblur":case"afterblur":k=Zo;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":k=Cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=l1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=S1;break;case Kd:case $d:case Jd:k=c1;break;case Wd:k=x1;break;case"scroll":case"scrollend":k=i1;break;case"wheel":k=O1;break;case"copy":case"cut":case"paste":k=h1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Dd;break;case"toggle":case"beforetoggle":k=w1}var se=(t&4)!==0,He=!se&&(e==="scroll"||e==="scrollend"),M=se?L!==null?L+"Capture":null:L;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||M===null||(F=$a(C,M),F!=null&&se.push(Bi(C,F,B))),He)break;C=C.return}0<se.length&&(L=new k(L,fe,null,a,q),V.push({event:L,listeners:se}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",L&&a!==Go&&(fe=a.relatedTarget||a.fromElement)&&(Wr(fe)||fe[Jr]))break e;if((k||L)&&(L=q.window===q?q:(L=q.ownerDocument)?L.defaultView||L.parentWindow:window,k?(fe=a.relatedTarget||a.toElement,k=j,fe=fe?Wr(fe):null,fe!==null&&(He=f(fe),se=fe.tag,fe!==He||se!==5&&se!==27&&se!==6)&&(fe=null)):(k=null,fe=j),k!==fe)){if(se=Cd,F="onMouseLeave",M="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(se=Dd,F="onPointerLeave",M="onPointerEnter",C="pointer"),He=k==null?L:Ka(k),B=fe==null?L:Ka(fe),L=new se(F,C+"leave",k,a,q),L.target=He,L.relatedTarget=B,F=null,Wr(q)===j&&(se=new se(M,C+"enter",fe,a,q),se.target=B,se.relatedTarget=He,F=se),He=F,k&&fe)t:{for(se=k,M=fe,C=0,B=se;B;B=Ba(B))C++;for(B=0,F=M;F;F=Ba(F))B++;for(;0<C-B;)se=Ba(se),C--;for(;0<B-C;)M=Ba(M),B--;for(;C--;){if(se===M||M!==null&&se===M.alternate)break t;se=Ba(se),M=Ba(M)}se=null}else se=null;k!==null&&vp(V,L,k,se,!1),fe!==null&&He!==null&&vp(V,He,fe,se,!0)}}e:{if(L=j?Ka(j):window,k=L.nodeName&&L.nodeName.toLowerCase(),k==="select"||k==="input"&&L.type==="file")var W=kd;else if(Ld(L))if(Gd)W=z1;else{W=H1;var ye=U1}else k=L.nodeName,!k||k.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?j&&ko(j.elementType)&&(W=kd):W=L1;if(W&&(W=W(e,j))){zd(V,W,a,q);break e}ye&&ye(e,L,j),e==="focusout"&&j&&L.type==="number"&&j.memoizedProps.value!=null&&zo(L,"number",L.value)}switch(ye=j?Ka(j):window,e){case"focusin":(Ld(ye)||ye.contentEditable==="true")&&(ua=ye,Wo=j,ii=null);break;case"focusout":ii=Wo=ua=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,Xd(V,a,q);break;case"selectionchange":if(G1)break;case"keydown":case"keyup":Xd(V,a,q)}var ne;if(Qo)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 oa?Ud(e,a)&&(oe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(oe="onCompositionStart");oe&&(Md&&a.locale!=="ko"&&(oa||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&oa&&(ne=Rd()):(Qn=q,Vo="value"in Qn?Qn.value:Qn.textContent,oa=!0)),ye=ol(j,oe),0<ye.length&&(oe=new Nd(oe,e,null,a,q),V.push({event:oe,listeners:ye}),ne?oe.data=ne:(ne=Hd(a),ne!==null&&(oe.data=ne)))),(ne=N1?D1(e,a):M1(e,a))&&(oe=ol(j,"onBeforeInput"),0<oe.length&&(ye=new Nd("onBeforeInput","beforeinput",null,a,q),V.push({event:ye,listeners:oe}),ye.data=ne)),SE(V,e,j,a,q)}bp(V,t)})}function Bi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ol(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=$a(e,a),o!=null&&s.unshift(Bi(e,o,c)),o=$a(e,t),o!=null&&s.push(Bi(e,o,c))),e.tag===3)return s;e=e.return}return[]}function Ba(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vp(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=$a(a,c),j!=null&&p.unshift(Bi(a,j,A))):o||(j=$a(a,c),j!=null&&p.push(Bi(a,j,A)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var OE=/\r\n?/g,RE=/\u0000|\uFFFD/g;function Ep(e){return(typeof e=="string"?e:""+e).replace(OE,`
|
|
49
|
+
`).replace(RE,"")}function Sp(e,t){return t=Ep(t),Ep(e)===t}function ul(){}function Ue(e,t,a,s,o,c){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||ia(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&ia(e,""+s);break;case"className":ms(e,"class",s);break;case"tabIndex":ms(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ms(e,a,s);break;case"style":xd(e,s,c);break;case"data":if(t!=="object"){ms(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=ys(""+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"&&Ue(e,t,"name",o.name,o,null),Ue(e,t,"formEncType",o.formEncType,o,null),Ue(e,t,"formMethod",o.formMethod,o,null),Ue(e,t,"formTarget",o.formTarget,o,null)):(Ue(e,t,"encType",o.encType,o,null),Ue(e,t,"method",o.method,o,null),Ue(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=ys(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=ul);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=ys(""+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),ds(e,"popover",s);break;case"xlinkActuate":An(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":An(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":An(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":An(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":An(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":An(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":An(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":An(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":An(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ds(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=r1.get(a)||a,ds(e,a,s))}}function Tc(e,t,a,s,o,c){switch(a){case"style":xd(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"?ia(e,s):(typeof s=="number"||typeof s=="bigint")&&ia(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=ul);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dd.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[vt]||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,""):ds(e,a,s)}}}function ot(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:Ue(e,t,c,p,a,null)}}o&&Ue(e,t,"srcSet",a.srcSet,a,null),s&&Ue(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:Ue(e,t,s,q,a,null)}}vd(e,c,v,A,j,p,o,!1),ps(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:Ue(e,t,o,v,a,null)}t=c,a=p,e.multiple=!!s,t!=null?aa(e,!!s,t,!1):a!=null&&aa(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:Ue(e,t,p,v,a,null)}Sd(e,s,o,c),ps(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:Ue(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<Mi.length;s++)ve(Mi[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:Ue(e,t,j,s,a,null)}return;default:if(ko(t)){for(q in a)a.hasOwnProperty(q)&&(s=a[q],s!==void 0&&Tc(e,t,q,s,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(s=a[v],s!=null&&Ue(e,t,v,s,a,null))}function wE(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(k in a){var V=a[k];if(a.hasOwnProperty(k)&&V!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":A=V;default:s.hasOwnProperty(k)||Ue(e,t,k,null,s,V)}}for(var L in s){var k=s[L];if(V=a[L],s.hasOwnProperty(L)&&(k!=null||V!=null))switch(L){case"type":c=k;break;case"name":o=k;break;case"checked":j=k;break;case"defaultChecked":q=k;break;case"value":p=k;break;case"defaultValue":v=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(l(137,t));break;default:k!==V&&Ue(e,t,L,k,s,V)}}Lo(e,p,v,A,j,q,c,o);return;case"select":k=p=v=L=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":k=A;default:s.hasOwnProperty(c)||Ue(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":L=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==A&&Ue(e,t,o,c,s,A)}t=v,a=p,s=k,L!=null?aa(e,!!a,L,!1):!!s!=!!a&&(t!=null?aa(e,!!a,t,!0):aa(e,!!a,a?[]:"",!1));return;case"textarea":k=L=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:Ue(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":L=o;break;case"defaultValue":k=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&Ue(e,t,p,o,s,c)}Ed(e,L,k);return;case"option":for(var fe in a)if(L=a[fe],a.hasOwnProperty(fe)&&L!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Ue(e,t,fe,null,s,L)}for(A in s)if(L=s[A],k=a[A],s.hasOwnProperty(A)&&L!==k&&(L!=null||k!=null))switch(A){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Ue(e,t,A,L,s,k)}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)L=a[se],a.hasOwnProperty(se)&&L!=null&&!s.hasOwnProperty(se)&&Ue(e,t,se,null,s,L);for(j in s)if(L=s[j],k=a[j],s.hasOwnProperty(j)&&L!==k&&(L!=null||k!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(l(137,t));break;default:Ue(e,t,j,L,s,k)}return;default:if(ko(t)){for(var He in a)L=a[He],a.hasOwnProperty(He)&&L!==void 0&&!s.hasOwnProperty(He)&&Tc(e,t,He,void 0,s,L);for(q in s)L=s[q],k=a[q],!s.hasOwnProperty(q)||L===k||L===void 0&&k===void 0||Tc(e,t,q,L,s,k);return}}for(var M in a)L=a[M],a.hasOwnProperty(M)&&L!=null&&!s.hasOwnProperty(M)&&Ue(e,t,M,null,s,L);for(V in s)L=s[V],k=a[V],!s.hasOwnProperty(V)||L===k||L==null&&k==null||Ue(e,t,V,L,s,k)}var xc=null,Ac=null;function cl(e){return e.nodeType===9?e:e.ownerDocument}function Tp(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 xp(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 Oc(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 Rc=null;function CE(){var e=window.event;return e&&e.type==="popstate"?e===Rc?!1:(Rc=e,!0):(Rc=null,!1)}var Ap=typeof setTimeout=="function"?setTimeout:void 0,NE=typeof clearTimeout=="function"?clearTimeout:void 0,Op=typeof Promise=="function"?Promise:void 0,DE=typeof queueMicrotask=="function"?queueMicrotask:typeof Op<"u"?function(e){return Op.resolve(null).then(e).catch(ME)}:Ap;function ME(e){setTimeout(function(){throw e})}function fr(e){return e==="head"}function Rp(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&&ji(p.documentElement),a&2&&ji(p.body),a&4)for(a=p.head,ji(a),p=a.firstChild;p;){var v=p.nextSibling,A=p.nodeName;p[Qa]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=v}}if(o===0){e.removeChild(c),Ii(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:s=a.charCodeAt(0)-48;else s=0;a=c}while(a);Ii(t)}function wc(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":wc(a),Bo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function BE(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[Qa])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 jE(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 Cc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function UE(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 Nc=null;function wp(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 Cp(e,t,a){switch(t=cl(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 ji(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Bo(e)}var $t=new Map,Np=new Set;function fl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kn=X.d;X.d={f:HE,r:LE,D:zE,C:kE,L:GE,m:qE,X:FE,S:IE,M:VE};function HE(){var e=kn.f(),t=nl();return e||t}function LE(e){var t=ea(e);t!==null&&t.tag===5&&t.type==="form"?Km(t):kn.r(e)}var ja=typeof document>"u"?null:document;function Dp(e,t,a){var s=ja;if(s&&typeof t=="string"&&t){var o=Vt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Np.has(o)||(Np.add(o),e={rel:e,crossOrigin:a,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),ot(t,"link",e),nt(t),s.head.appendChild(t)))}}function zE(e){kn.D(e),Dp("dns-prefetch",e,null)}function kE(e,t){kn.C(e,t),Dp("preconnect",e,t)}function GE(e,t,a){kn.L(e,t,a);var s=ja;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=Ua(e);break;case"script":c=Ha(e)}$t.has(c)||(e=b({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(Ui(c))||t==="script"&&s.querySelector(Hi(c))||(t=s.createElement("link"),ot(t,"link",e),nt(t),s.head.appendChild(t)))}}function qE(e,t){kn.m(e,t);var a=ja;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=Ha(e)}if(!$t.has(c)&&(e=b({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(Hi(c)))return}s=a.createElement("link"),ot(s,"link",e),nt(s),a.head.appendChild(s)}}}function IE(e,t,a){kn.S(e,t,a);var s=ja;if(s&&e){var o=ta(s).hoistableStyles,c=Ua(e);t=t||"default";var p=o.get(c);if(!p){var v={loading:0,preload:null};if(p=s.querySelector(Ui(c)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$t.get(c))&&Dc(e,a);var A=p=s.createElement("link");nt(A),ot(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,hl(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(c,p)}}}function FE(e,t){kn.X(e,t);var a=ja;if(a&&e){var s=ta(a).hoistableScripts,o=Ha(e),c=s.get(o);c||(c=a.querySelector(Hi(o)),c||(e=b({src:e,async:!0},t),(t=$t.get(o))&&Mc(e,t),c=a.createElement("script"),nt(c),ot(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function VE(e,t){kn.M(e,t);var a=ja;if(a&&e){var s=ta(a).hoistableScripts,o=Ha(e),c=s.get(o);c||(c=a.querySelector(Hi(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=$t.get(o))&&Mc(e,t),c=a.createElement("script"),nt(c),ot(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function Mp(e,t,a,s){var o=(o=ce.current)?fl(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=Ua(a.href),a=ta(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=Ua(a.href);var c=ta(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(Ui(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||PE(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=Ha(a),a=ta(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 Ua(e){return'href="'+Vt(e)+'"'}function Ui(e){return'link[rel="stylesheet"]['+e+"]"}function Bp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function PE(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}),ot(t,"link",a),nt(t),e.head.appendChild(t))}function Ha(e){return'[src="'+Vt(e)+'"]'}function Hi(e){return"script[async]"+e}function jp(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,nt(s),s;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),nt(s),ot(s,"style",o),hl(s,a.precedence,e),t.instance=s;case"stylesheet":o=Ua(a.href);var c=e.querySelector(Ui(o));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;s=Bp(a),(o=$t.get(o))&&Dc(s,o),c=(e.ownerDocument||e).createElement("link"),nt(c);var p=c;return p._p=new Promise(function(v,A){p.onload=v,p.onerror=A}),ot(c,"link",s),t.state.loading|=4,hl(c,a.precedence,e),t.instance=c;case"script":return c=Ha(a.src),(o=e.querySelector(Hi(c)))?(t.instance=o,nt(o),o):(s=a,(o=$t.get(c))&&(s=b({},a),Mc(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),nt(o),ot(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,hl(s,a.precedence,e));return t.instance}function hl(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 Dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var dl=null;function Up(e,t,a){if(dl===null){var s=new Map,o=dl=new Map;o.set(a,s)}else o=dl,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[Qa]||c[mt]||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 Hp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function YE(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 Lp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Li=null;function ZE(){}function XE(e,t,a){if(Li===null)throw Error(l(475));var s=Li;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=Ua(a.href),c=e.querySelector(Ui(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=ml.bind(s),e.then(s,s)),t.state.loading|=4,t.instance=c,nt(c);return}c=e.ownerDocument||e,a=Bp(a),(o=$t.get(o))&&Dc(a,o),c=c.createElement("link"),nt(c);var p=c;p._p=new Promise(function(v,A){p.onload=v,p.onerror=A}),ot(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=ml.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function QE(){if(Li===null)throw Error(l(475));var e=Li;return e.stylesheets&&e.count===0&&Bc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Bc(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 ml(){if(this.count--,this.count===0){if(this.stylesheets)Bc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var pl=null;function Bc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,pl=new Map,t.forEach(KE,e),pl=null,ml.call(e))}function KE(e,t){if(!(t.state.loading&4)){var a=pl.get(e);if(a)var s=a.get(null);else{a=new Map,pl.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=ml.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 zi={$$typeof:O,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function $E(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=Co(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Co(0),this.hiddenUpdates=Co(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 zp(e,t,a,s,o,c,p,v,A,j,q,V){return e=new $E(e,t,a,p,v,A,j,V),t=1,c===!0&&(t|=24),c=Nt(3,null,null,t),e.current=c,c.stateNode=e,t=mu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:t},bu(c),e}function kp(e){return e?(e=da,e):da}function Gp(e,t,a,s,o,c){o=kp(o),s.context===null?s.context=o:s.pendingContext=o,s=Jn(t),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=Wn(e,s,t),a!==null&&(Ut(a,e,t),mi(a,e,t))}function qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function jc(e,t){qp(e,t),(e=e.alternate)&&qp(e,t)}function Ip(e){if(e.tag===13){var t=ha(e,67108864);t!==null&&Ut(t,e,67108864),jc(e,67108864)}}var gl=!0;function JE(e,t,a,s){var o=G.T;G.T=null;var c=X.p;try{X.p=2,Uc(e,t,a,s)}finally{X.p=c,G.T=o}}function WE(e,t,a,s){var o=G.T;G.T=null;var c=X.p;try{X.p=8,Uc(e,t,a,s)}finally{X.p=c,G.T=o}}function Uc(e,t,a,s){if(gl){var o=Hc(s);if(o===null)Sc(e,t,s,yl,a),Vp(e,s);else if(t2(o,e,t,a,s))s.stopPropagation();else if(Vp(e,s),t&4&&-1<e2.indexOf(e)){for(;o!==null;){var c=ea(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=Tr(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var A=1<<31-wt(p);v.entanglements[1]|=A,p&=~A}pn(c),(Me&6)===0&&(el=cn()+500,Di(0))}}break;case 13:v=ha(c,2),v!==null&&Ut(v,c,2),nl(),jc(c,2)}if(c=Hc(s),c===null&&Sc(e,t,s,yl,a),c===o)break;o=c}o!==null&&s.stopPropagation()}else Sc(e,t,s,null,a)}}function Hc(e){return e=qo(e),Lc(e)}var yl=null;function Lc(e){if(yl=null,e=Wr(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 yl=e,null}function Fp(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(kv()){case rd:return 2;case ad:return 8;case us:case Gv:return 32;case id:return 268435456;default:return 32}default:return 32}}var zc=!1,hr=null,dr=null,mr=null,ki=new Map,Gi=new Map,pr=[],e2="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 Vp(e,t){switch(e){case"focusin":case"focusout":hr=null;break;case"dragenter":case"dragleave":dr=null;break;case"mouseover":case"mouseout":mr=null;break;case"pointerover":case"pointerout":ki.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gi.delete(t.pointerId)}}function qi(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=ea(t),t!==null&&Ip(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function t2(e,t,a,s,o){switch(t){case"focusin":return hr=qi(hr,e,t,a,s,o),!0;case"dragenter":return dr=qi(dr,e,t,a,s,o),!0;case"mouseover":return mr=qi(mr,e,t,a,s,o),!0;case"pointerover":var c=o.pointerId;return ki.set(c,qi(ki.get(c)||null,e,t,a,s,o)),!0;case"gotpointercapture":return c=o.pointerId,Gi.set(c,qi(Gi.get(c)||null,e,t,a,s,o)),!0}return!1}function Pp(e){var t=Wr(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,Xv(e.priority,function(){if(a.tag===13){var s=jt();s=No(s);var o=ha(a,s);o!==null&&Ut(o,a,s),jc(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 bl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Hc(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);Go=s,a.target.dispatchEvent(s),Go=null}else return t=ea(a),t!==null&&Ip(t),e.blockedOn=a,!1;t.shift()}return!0}function Yp(e,t,a){bl(e)&&a.delete(t)}function n2(){zc=!1,hr!==null&&bl(hr)&&(hr=null),dr!==null&&bl(dr)&&(dr=null),mr!==null&&bl(mr)&&(mr=null),ki.forEach(Yp),Gi.forEach(Yp)}function _l(e,t){e.blockedOn===t&&(e.blockedOn=null,zc||(zc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,n2)))}var vl=null;function Zp(e){vl!==e&&(vl=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){vl===e&&(vl=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(Lc(s||a)===null)continue;break}var c=ea(a);c!==null&&(e.splice(t,3),t-=3,Lu(c,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Ii(e){function t(A){return _l(A,e)}hr!==null&&_l(hr,e),dr!==null&&_l(dr,e),mr!==null&&_l(mr,e),ki.forEach(t),Gi.forEach(t);for(var a=0;a<pr.length;a++){var s=pr[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<pr.length&&(a=pr[0],a.blockedOn===null);)Pp(a),a.blockedOn===null&&pr.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[vt]||null;if(typeof c=="function")p||Zp(a);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[vt]||null)v=p.formAction;else if(Lc(o)!==null)continue}else v=p.action;typeof v=="function"?a[s+1]=v:(a.splice(s,3),s-=3),Zp(a)}}}function kc(e){this._internalRoot=e}El.prototype.render=kc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var a=t.current,s=jt();Gp(a,s,e,t,null,null)},El.prototype.unmount=kc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gp(e.current,2,null,e,null,null),nl(),t[Jr]=null}};function El(e){this._internalRoot=e}El.prototype.unstable_scheduleHydration=function(e){if(e){var t=cd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<pr.length&&t!==0&&t<pr[a].priority;a++);pr.splice(a,0,e),a===0&&Pp(e)}};var Xp=r.version;if(Xp!=="19.1.0")throw Error(l(527,Xp,"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 r2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sl.isDisabled&&Sl.supportsFiber)try{Ya=Sl.inject(r2),Rt=Sl}catch{}}return Vi.createRoot=function(e,t){if(!u(e))throw Error(l(299));var a=!1,s="",o=c0,c=f0,p=h0,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=zp(e,1,!1,null,null,a,s,o,c,p,v,null),e[Jr]=t.current,Ec(e),new kc(t)},Vi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(l(299));var s=!1,o="",c=c0,p=f0,v=h0,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=zp(e,1,!0,t,a??null,s,o,c,p,v,A,j),t.context=kp(null),a=t.current,s=jt(),s=No(s),o=Jn(s),o.callback=null,Wn(a,o,s),a=s,t.current.lanes=a,Xa(t,a),pn(t),e[Jr]=t.current,Ec(e),new El(t)},Vi.version="19.1.0",Vi}var ag;function p2(){if(ag)return qc.exports;ag=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=m2(),qc.exports}var g2=p2(),I=qa();const Ob=ho(I);var Yc={exports:{}},Zc={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* use-sync-external-store-with-selector.production.js
|
|
52
52
|
*
|
|
@@ -54,17 +54,17 @@ Error generating stack: `+a.message+`
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var ig;function y2(){if(ig)return Zc;ig=1;var n=qa();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 Zc.useSyncExternalStoreWithSelector=function(m,g,
|
|
57
|
+
*/var ig;function y2(){if(ig)return Zc;ig=1;var n=qa();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 Zc.useSyncExternalStoreWithSelector=function(m,g,b,S,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(E){if(!H){if(H=!0,D=E,E=S(E),y!==void 0&&T.hasValue){var U=T.value;if(y(U,E))return O=U}return O=E}if(U=O,i(D,E))return U;var Y=S(E);return y!==void 0&&y(U,Y)?(D=E,U):(D=E,O=Y)}var H=!1,D,O,R=b===void 0?null:b;return[function(){return N(g())},R===null?void 0:function(){return N(R())}]},[g,b,S,y]);var z=l(m,x[0],x[1]);return f(function(){T.hasValue=!0,T.value=z},[z]),d(z),z},Zc}var sg;function b2(){return sg||(sg=1,Yc.exports=y2()),Yc.exports}var _2=b2(),v2=I.version.startsWith("19"),E2=Symbol.for(v2?"react.transitional.element":"react.element"),S2=Symbol.for("react.portal"),T2=Symbol.for("react.fragment"),x2=Symbol.for("react.strict_mode"),A2=Symbol.for("react.profiler"),O2=Symbol.for("react.consumer"),R2=Symbol.for("react.context"),Rb=Symbol.for("react.forward_ref"),w2=Symbol.for("react.suspense"),C2=Symbol.for("react.suspense_list"),Eh=Symbol.for("react.memo"),N2=Symbol.for("react.lazy"),D2=Rb,M2=Eh;function B2(n){if(typeof n=="object"&&n!==null){const{$$typeof:r}=n;switch(r){case E2:switch(n=n.type,n){case T2:case A2:case x2:case w2:case C2:return n;default:switch(n=n&&n.$$typeof,n){case R2:case Rb:case N2:case Eh:return n;case O2:return n;default:return r}}case S2:return r}}}function j2(n){return B2(n)===Eh}function U2(n,r,i,l,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:h}){let d=!1,m,g,b,S,y;function x(D,O){return m=D,g=O,b=n(m,g),S=r(l,g),y=i(b,S,g),d=!0,y}function T(){return b=n(m,g),r.dependsOnOwnProps&&(S=r(l,g)),y=i(b,S,g),y}function z(){return n.dependsOnOwnProps&&(b=n(m,g)),r.dependsOnOwnProps&&(S=r(l,g)),y=i(b,S,g),y}function N(){const D=n(m,g),O=!h(D,b);return b=D,O&&(y=i(b,S,g)),y}function H(D,O){const R=!f(O,g),E=!u(D,m,O,g);return m=D,g=O,R&&E?T():R?z():E?N():y}return function(O,R){return d?H(O,R):x(O,R)}}function H2(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:l,...u}){const f=r(n,u),h=i(n,u),d=l(n,u);return U2(f,h,d,n,u)}function L2(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 Vf(n){return function(i){const l=n(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function lg(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function wb(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=lg(n);let g=f(d,m);return typeof g=="function"&&(f.mapToProps=g,f.dependsOnOwnProps=lg(g),g=f(d,m)),g},f}}function Sh(n,r){return(i,l)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${l.wrappedComponentName}.`)}}function z2(n){return n&&typeof n=="object"?Vf(r=>L2(n,r)):n?typeof n=="function"?wb(n):Sh(n,"mapDispatchToProps"):Vf(r=>({dispatch:r}))}function k2(n){return n?typeof n=="function"?wb(n):Sh(n,"mapStateToProps"):Vf(()=>({}))}function G2(n,r,i){return{...i,...n,...r}}function q2(n){return function(i,{displayName:l,areMergedPropsEqual:u}){let f=!1,h;return function(m,g,b){const S=n(m,g,b);return f?u(S,h)||(h=S):(f=!0,h=S),h}}}function I2(n){return n?typeof n=="function"?q2(n):Sh(n,"mergeProps"):()=>G2}function F2(n){n()}function V2(){let n=null,r=null;return{clear(){n=null,r=null},notify(){F2(()=>{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 og={notify(){},get:()=>[]};function Cb(n,r){let i,l=og,u=0,f=!1;function h(z){b();const N=l.subscribe(z);let H=!1;return()=>{H||(H=!0,N(),S())}}function d(){l.notify()}function m(){T.onStateChange&&T.onStateChange()}function g(){return f}function b(){u++,i||(i=r?r.addNestedSub(m):n.subscribe(m),l=V2())}function S(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=og)}function y(){f||(f=!0,b())}function x(){f&&(f=!1,S())}const T={addNestedSub:h,notifyNestedSubs:d,handleChangeWrapper:m,isSubscribed:g,trySubscribe:y,tryUnsubscribe:x,getListeners:()=>l};return T}var P2=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Y2=P2(),Z2=()=>typeof navigator<"u"&&navigator.product==="ReactNative",X2=Z2(),Q2=()=>Y2||X2?I.useLayoutEffect:I.useEffect,io=Q2();function ug(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function Xc(n,r){if(ug(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])||!ug(n[i[u]],r[i[u]]))return!1;return!0}var K2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},J2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Nb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},W2={[D2]:J2,[M2]:Nb};function cg(n){return j2(n)?Nb:W2[n.$$typeof]||K2}var eS=Object.defineProperty,tS=Object.getOwnPropertyNames,fg=Object.getOwnPropertySymbols,nS=Object.getOwnPropertyDescriptor,rS=Object.getPrototypeOf,hg=Object.prototype;function Pf(n,r){if(typeof r!="string"){if(hg){const f=rS(r);f&&f!==hg&&Pf(n,f)}let i=tS(r);fg&&(i=i.concat(fg(r)));const l=cg(n),u=cg(r);for(let f=0;f<i.length;++f){const h=i[f];if(!$2[h]&&!(u&&u[h])&&!(l&&l[h])){const d=nS(r,h);try{eS(n,h,d)}catch{}}}}return n}var Qc=Symbol.for("react-redux-context"),Kc=typeof globalThis<"u"?globalThis:{};function aS(){if(!I.createContext)return{};const n=Kc[Qc]??(Kc[Qc]=new Map);let r=n.get(I.createContext);return r||(r=I.createContext(null),n.set(I.createContext,r)),r}var Pn=aS(),iS=[null,null];function sS(n,r,i){io(()=>n(...r),i)}function lS(n,r,i,l,u,f){n.current=l,i.current=!1,u.current&&(u.current=null,f())}function oS(n,r,i,l,u,f,h,d,m,g,b){if(!n)return()=>{};let S=!1,y=null;const x=()=>{if(S||!d.current)return;const z=r.getState();let N,H;try{N=l(z,u.current)}catch(D){H=D,y=D}H||(y=null),N===f.current?h.current||g():(f.current=N,m.current=N,h.current=!0,b())};return i.onStateChange=x,i.trySubscribe(),x(),()=>{if(S=!0,i.tryUnsubscribe(),i.onStateChange=null,y)throw y}}function uS(n,r){return n===r}function cS(n,r,i,{pure:l,areStatesEqual:u=uS,areOwnPropsEqual:f=Xc,areStatePropsEqual:h=Xc,areMergedPropsEqual:d=Xc,forwardRef:m=!1,context:g=Pn}={}){const b=g,S=k2(n),y=z2(r),x=I2(i),T=!!n;return N=>{const H=N.displayName||N.name||"Component",D=`Connect(${H})`,O={shouldHandleStateChanges:T,displayName:D,wrappedComponentName:H,WrappedComponent:N,initMapStateToProps:S,initMapDispatchToProps:y,initMergeProps:x,areStatesEqual:u,areStatePropsEqual:h,areOwnPropsEqual:f,areMergedPropsEqual:d};function R(Y){const[K,re,ee]=I.useMemo(()=>{const{reactReduxForwardedRef:dt,...xn}=Y;return[Y.context,dt,xn]},[Y]),le=I.useMemo(()=>{let dt=b;return K!=null&&K.Consumer,dt},[K,b]),ie=I.useContext(le),de=!!Y.store&&!!Y.store.getState&&!!Y.store.dispatch,Ie=!!ie&&!!ie.store,Te=de?Y.store:ie.store,G=Ie?ie.getServerState:Te.getState,X=I.useMemo(()=>H2(Te.dispatch,O),[Te]),[J,be]=I.useMemo(()=>{if(!T)return iS;const dt=Cb(Te,de?void 0:ie.subscription),xn=dt.notifyNestedSubs.bind(dt);return[dt,xn]},[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);io(()=>(Se.current=!0,()=>{Se.current=!1}),[]);const ht=I.useMemo(()=>()=>Q.current&&ee===$.current?Q.current:X(Te.getState(),ee),[Te,ee]),ze=I.useMemo(()=>xn=>J?oS(T,Te,J,X,$,P,ae,Se,Q,be,xn):()=>{},[J]);sS(lS,[$,P,ae,ee,Q,be]);let Ot;try{Ot=I.useSyncExternalStore(ze,ht,G?()=>X(G(),ee):ht)}catch(dt){throw ce.current&&(dt.message+=`
|
|
58
58
|
The error may be correlated with this previous error:
|
|
59
59
|
${ce.current.stack}
|
|
60
60
|
|
|
61
|
-
`),dt}io(()=>{ce.current=void 0,Q.current=void 0,P.current=Ot});const Sr=I.useMemo(()=>I.createElement(N,{...Ot,ref:re}),[re,N,Ot]);return I.useMemo(()=>T?I.createElement(le.Provider,{value:w},Sr):Sr,[le,Sr,w])}const U=I.memo(R);if(U.WrappedComponent=N,U.displayName=R.displayName=D,m){const K=I.forwardRef(function(ee,le){return I.createElement(U,{...ee,reactReduxForwardedRef:le})});return K.displayName=D,K.WrappedComponent=N,Pf(K,N)}return Pf(U,N)}}var fS=cS;function hS(n){const{children:r,context:i,serverState:l,store:u}=n,f=I.useMemo(()=>{const m=
|
|
61
|
+
`),dt}io(()=>{ce.current=void 0,Q.current=void 0,P.current=Ot});const Sr=I.useMemo(()=>I.createElement(N,{...Ot,ref:re}),[re,N,Ot]);return I.useMemo(()=>T?I.createElement(le.Provider,{value:w},Sr):Sr,[le,Sr,w])}const U=I.memo(R);if(U.WrappedComponent=N,U.displayName=R.displayName=D,m){const K=I.forwardRef(function(ee,le){return I.createElement(U,{...ee,reactReduxForwardedRef:le})});return K.displayName=D,K.WrappedComponent=N,Pf(K,N)}return Pf(U,N)}}var fS=cS;function hS(n){const{children:r,context:i,serverState:l,store:u}=n,f=I.useMemo(()=>{const m=Cb(u);return{store:u,subscription:m,getServerState:l?()=>l:void 0}},[u,l]),h=I.useMemo(()=>u.getState(),[u]);io(()=>{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||Pn;return I.createElement(d.Provider,{value:f},r)}var dS=hS;function Th(n=Pn){return function(){return I.useContext(n)}}var Db=Th();function Mb(n=Pn){const r=n===Pn?Db:Th(n),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var mS=Mb();function pS(n=Pn){const r=n===Pn?mS:Mb(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var gS=pS(),yS=(n,r)=>n===r;function bS(n=Pn){const r=n===Pn?Db:Th(n),i=(l,u={})=>{const{equalityFn:f=yS}=typeof u=="function"?{equalityFn:u}:u,h=r(),{store:d,subscription:m,getServerState:g}=h;I.useRef(!0);const b=I.useCallback({[l.name](y){return l(y)}}[l.name],[l]),S=_2.useSyncExternalStoreWithSelector(m.addNestedSub,d.getState,g||d.getState,b,f);return I.useDebugValue(S),S};return Object.assign(i,{withTypes:()=>i}),i}var _S=bS(),$c={exports:{}};/*!
|
|
62
62
|
Copyright (c) 2018 Jed Watson.
|
|
63
63
|
Licensed under the MIT License (MIT), see
|
|
64
64
|
http://jedwatson.github.io/classnames
|
|
65
|
-
*/var dg;function vS(){return dg||(dg=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})()}($c)),$c.exports}var ES=vS();const Z=ho(ES);var Yf=function(n,r){return Yf=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])},Yf(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");Yf(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 mo(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 _n(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 gn(n,r){var i=r&&r.cache?r.cache:wS,l=r&&r.serializer?r.serializer:OS,u=r&&r.strategy?r.strategy:xS;return u(n,{cache:i,serializer:l})}function SS(n){return n==null||typeof n=="number"||typeof n=="boolean"}function TS(n,r,i,l){var u=SS(l)?l:i(l),f=r.get(u);return typeof f>"u"&&(f=n.call(this,l),r.set(u,f)),f}function B_(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 xS(n,r){var i=n.length===1?TS:B_;return j_(n,this,i,r.cache.create(),r.serializer)}function AS(n,r){return j_(n,this,B_,r.cache.create(),r.serializer)}var OS=function(){return JSON.stringify(arguments)},RS=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}(),wS={create:function(){return new RS}},yn={variadic:AS},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 Ge;(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"})(Ge||(Ge={}));var za;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(za||(za={}));function mg(n){return n.type===Ge.literal}function CS(n){return n.type===Ge.argument}function U_(n){return n.type===Ge.number}function H_(n){return n.type===Ge.date}function L_(n){return n.type===Ge.time}function z_(n){return n.type===Ge.select}function k_(n){return n.type===Ge.plural}function NS(n){return n.type===Ge.pound}function G_(n){return n.type===Ge.tag}function q_(n){return!!(n&&typeof n=="object"&&n.type===za.number)}function Zf(n){return!!(n&&typeof n=="object"&&n.type===za.dateTime)}var I_=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,DS=/(?:[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 MS(n){var r={};return n.replace(DS,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 BS=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function jS(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(BS).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 S=_[g];if(S.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:m})}return i}function US(n){return n.replace(/^(.*?)-/,"")}var pg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,F_=/^(@+)?(\+|#+)?[rs]?$/g,HS=/(\*)(0+)|(#+)(0+)|(0+)/g,V_=/^(0+)$/;function gg(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(F_,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 P_(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 LS(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)),!V_.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function yg(n){var r={},i=P_(n);return i||r}function zS(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=US(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),yg(g))},{}));continue;case"engineering":r=te(te(te({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return te(te({},m),yg(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(HS,function(m,g,_,S,y,x){if(g)r.minimumIntegerDigits=_.length;else{if(S&&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(V_.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(pg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(pg,function(m,g,_,S,y,x){return _==="*"?r.minimumFractionDigits=g.length:S&&S[0]==="#"?r.maximumFractionDigits=S.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),gg(f)));continue}if(F_.test(u.stem)){r=te(te({},r),gg(u.stem));continue}var h=P_(u.stem);h&&(r=te(te({},r),h));var d=LS(u.stem);d&&(r=te(te({},r),d))}return r}var xl={"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 kS(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=GS(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 GS(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=xl[l||""]||xl[i||""]||xl["".concat(i,"-001")]||xl["001"];return u[0]}var Jc,qS=new RegExp("^".concat(I_.source,"*")),IS=new RegExp("".concat(I_.source,"*$"));function Re(n,r){return{start:n,end:r}}var FS=!!String.prototype.startsWith&&"_a".startsWith("a",1),VS=!!String.fromCodePoint,PS=!!Object.fromEntries,YS=!!String.prototype.codePointAt,ZS=!!String.prototype.trimStart,XS=!!String.prototype.trimEnd,QS=!!Number.isSafeInteger,KS=QS?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},Xf=!0;try{var $S=Z_("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xf=((Jc=$S.exec("a"))===null||Jc===void 0?void 0:Jc[0])==="a"}catch{Xf=!1}var _g=FS?function(r,i,l){return r.startsWith(i,l)}:function(r,i,l){return r.slice(l,l+i.length)===i},Qf=VS?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},bg=PS?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},Y_=YS?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}},JS=ZS?function(r){return r.trimStart()}:function(r){return r.replace(qS,"")},WS=XS?function(r){return r.trimEnd()}:function(r){return r.replace(IS,"")};function Z_(n,r){return new RegExp(n,r)}var Kf;if(Xf){var vg=Z_("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Kf=function(r,i){var l;vg.lastIndex=i;var u=vg.exec(r);return(l=u[1])!==null&&l!==void 0?l:""}}else Kf=function(r,i){for(var l=[];;){var u=Y_(r,i);if(u===void 0||X_(u)||rT(u))break;l.push(u),i+=u>=65536?2:1}return Qf.apply(void 0,l)};var eT=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:Ge.pound,location:Re(d,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(xe.UNMATCHED_CLOSING_TAG,Re(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&$f(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:Ge.literal,value:"<".concat(u,"/>"),location:Re(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()||!$f(this.char()))return this.error(xe.INVALID_TAG,Re(d,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(xe.UNMATCHED_CLOSING_TAG,Re(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ge.tag,value:u,children:h,location:Re(l,this.clonePosition())},err:null}:this.error(xe.INVALID_TAG,Re(d,this.clonePosition())))}else return this.error(xe.UNCLOSED_TAG,Re(l,this.clonePosition()))}else return this.error(xe.INVALID_TAG,Re(l,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&nT(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=Re(l,this.clonePosition());return{val:{type:Ge.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tT(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 Qf.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(),Qf(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,Re(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(xe.EMPTY_ARGUMENT,Re(l,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(xe.MALFORMED_ARGUMENT,Re(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,Re(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ge.argument,value:u,location:Re(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,Re(l,this.clonePosition())):this.parseArgumentOptions(r,i,u,l);default:return this.error(xe.MALFORMED_ARGUMENT,Re(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),l=Kf(this.message,i),u=i+l.length;this.bumpTo(u);var f=this.clonePosition(),h=Re(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,Re(h,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var _=this.clonePosition(),S=this.parseSimpleArgStyleIfPossible();if(S.err)return S;var y=WS(S.val);if(y.length===0)return this.error(xe.EXPECT_ARGUMENT_STYLE,Re(this.clonePosition(),this.clonePosition()));var x=Re(_,this.clonePosition());g={style:y,styleLocation:x}}var T=this.tryParseArgumentClose(u);if(T.err)return T;var z=Re(u,this.clonePosition());if(g&&_g(g==null?void 0:g.style,"::",0)){var N=JS(g.style.slice(2));if(d==="number"){var S=this.parseNumberSkeletonFromString(N,g.styleLocation);return S.err?S:{val:{type:Ge.number,value:l,location:z,style:S.val},err:null}}else{if(N.length===0)return this.error(xe.EXPECT_DATE_TIME_SKELETON,z);var H=N;this.locale&&(H=kS(N,this.locale));var y={type:za.dateTime,pattern:H,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?MS(H):{}},D=d==="date"?Ge.date:Ge.time;return{val:{type:D,value:l,location:z,style:y},err:null}}}return{val:{type:d==="number"?Ge.number:d==="date"?Ge.date:Ge.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,Re(O,te({},O)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),E=0;if(d!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Re(this.clonePosition(),this.clonePosition()));this.bumpSpace();var S=this.tryParseDecimalInteger(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(S.err)return S;this.bumpSpace(),R=this.parseIdentifierIfPossible(),E=S.val}var U=this.tryParsePluralOrSelectOptions(r,d,i,R);if(U.err)return U;var T=this.tryParseArgumentClose(u);if(T.err)return T;var Y=Re(u,this.clonePosition());return d==="select"?{val:{type:Ge.select,value:l,options:bg(U.val),location:Y},err:null}:{val:{type:Ge.plural,value:l,options:bg(U.val),offset:E,pluralType:d==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(xe.INVALID_ARGUMENT_TYPE,Re(h,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,Re(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,Re(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=jS(r)}catch{return this.error(xe.INVALID_NUMBER_SKELETON,i)}return{val:{type:za.number,tokens:l,location:i,parsedOptions:this.shouldParseSkeletons?zS(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 S=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;_=Re(S,this.clonePosition()),g=this.message.slice(S.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,Re(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:Re(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,Re(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!h?this.error(xe.MISSING_OTHER_CLAUSE,Re(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=Re(u,this.clonePosition());return f?(h*=l,KS(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=Y_(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(_g(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()&&X_(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 $f(n){return n>=97&&n<=122||n>=65&&n<=90}function tT(n){return $f(n)||n===47}function nT(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 X_(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function rT(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 Jf(n){n.forEach(function(r){if(delete r.location,z_(r)||k_(r))for(var i in r.options)delete r.options[i].location,Jf(r.options[i].value);else U_(r)&&q_(r.style)||(H_(r)||L_(r))&&Zf(r.style)?delete r.style.location:G_(r)&&Jf(r.children)})}function aT(n,r){r===void 0&&(r={}),r=te({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new eT(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||Jf(i.val),i.val}var En;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(En||(En={}));var Er=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),Eg=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('", "'),'"'),En.INVALID_VALUE,f)||this}return r}(Er),iT=function(n){Wt(r,n);function r(i,l,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(l),En.INVALID_VALUE,u)||this}return r}(Er),sT=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,'"'),En.MISSING_VALUE,l)||this}return r}(Er),_t;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(_t||(_t={}));function lT(n){return n.length<2?n:n.reduce(function(r,i){var l=r[r.length-1];return!l||l.type!==_t.literal||i.type!==_t.literal?r.push(i):l.value+=i.value,r},[])}function Q_(n){return typeof n=="function"}function Wl(n,r,i,l,u,f,h){if(n.length===1&&mg(n[0]))return[{type:_t.literal,value:n[0].value}];for(var d=[],m=0,g=n;m<g.length;m++){var _=g[m];if(mg(_)){d.push({type:_t.literal,value:_.value});continue}if(NS(_)){typeof f=="number"&&d.push({type:_t.literal,value:i.getNumberFormat(r).format(f)});continue}var S=_.value;if(!(u&&S in u))throw new sT(S,h);var y=u[S];if(CS(_)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),d.push({type:typeof y=="string"?_t.literal:_t.object,value:y});continue}if(H_(_)){var x=typeof _.style=="string"?l.date[_.style]:Zf(_.style)?_.style.parsedOptions:void 0;d.push({type:_t.literal,value:i.getDateTimeFormat(r,x).format(y)});continue}if(L_(_)){var x=typeof _.style=="string"?l.time[_.style]:Zf(_.style)?_.style.parsedOptions:l.time.medium;d.push({type:_t.literal,value:i.getDateTimeFormat(r,x).format(y)});continue}if(U_(_)){var x=typeof _.style=="string"?l.number[_.style]:q_(_.style)?_.style.parsedOptions:void 0;x&&x.scale&&(y=y*(x.scale||1)),d.push({type:_t.literal,value:i.getNumberFormat(r,x).format(y)});continue}if(G_(_)){var T=_.children,z=_.value,N=u[z];if(!Q_(N))throw new iT(z,"function",h);var H=Wl(T,r,i,l,u,f),D=N(H.map(function(E){return E.value}));Array.isArray(D)||(D=[D]),d.push.apply(d,D.map(function(E){return{type:typeof E=="string"?_t.literal:_t.object,value:E}}))}if(z_(_)){var O=_.options[y]||_.options.other;if(!O)throw new Eg(_.value,y,Object.keys(_.options),h);d.push.apply(d,Wl(O.value,r,i,l,u));continue}if(k_(_)){var O=_.options["=".concat(y)];if(!O){if(!Intl.PluralRules)throw new Er(`Intl.PluralRules is not available in this environment.
|
|
65
|
+
*/var dg;function vS(){return dg||(dg=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})()}($c)),$c.exports}var ES=vS();const Z=ho(ES);var Yf=function(n,r){return Yf=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])},Yf(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");Yf(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 mo(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 gn(n,r){var i=r&&r.cache?r.cache:wS,l=r&&r.serializer?r.serializer:OS,u=r&&r.strategy?r.strategy:xS;return u(n,{cache:i,serializer:l})}function SS(n){return n==null||typeof n=="number"||typeof n=="boolean"}function TS(n,r,i,l){var u=SS(l)?l:i(l),f=r.get(u);return typeof f>"u"&&(f=n.call(this,l),r.set(u,f)),f}function Bb(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 jb(n,r,i,l,u){return i.bind(r,n,l,u)}function xS(n,r){var i=n.length===1?TS:Bb;return jb(n,this,i,r.cache.create(),r.serializer)}function AS(n,r){return jb(n,this,Bb,r.cache.create(),r.serializer)}var OS=function(){return JSON.stringify(arguments)},RS=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}(),wS={create:function(){return new RS}},yn={variadic:AS},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 Ge;(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"})(Ge||(Ge={}));var za;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(za||(za={}));function mg(n){return n.type===Ge.literal}function CS(n){return n.type===Ge.argument}function Ub(n){return n.type===Ge.number}function Hb(n){return n.type===Ge.date}function Lb(n){return n.type===Ge.time}function zb(n){return n.type===Ge.select}function kb(n){return n.type===Ge.plural}function NS(n){return n.type===Ge.pound}function Gb(n){return n.type===Ge.tag}function qb(n){return!!(n&&typeof n=="object"&&n.type===za.number)}function Zf(n){return!!(n&&typeof n=="object"&&n.type===za.dateTime)}var Ib=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,DS=/(?:[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 MS(n){var r={};return n.replace(DS,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 BS=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function jS(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(BS).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,b=m;g<b.length;g++){var S=b[g];if(S.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:m})}return i}function US(n){return n.replace(/^(.*?)-/,"")}var pg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Fb=/^(@+)?(\+|#+)?[rs]?$/g,HS=/(\*)(0+)|(#+)(0+)|(0+)/g,Vb=/^(0+)$/;function gg(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(Fb,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 Pb(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 LS(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)),!Vb.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function yg(n){var r={},i=Pb(n);return i||r}function zS(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=US(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),yg(g))},{}));continue;case"engineering":r=te(te(te({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return te(te({},m),yg(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(HS,function(m,g,b,S,y,x){if(g)r.minimumIntegerDigits=b.length;else{if(S&&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(Vb.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(pg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(pg,function(m,g,b,S,y,x){return b==="*"?r.minimumFractionDigits=g.length:S&&S[0]==="#"?r.maximumFractionDigits=S.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),gg(f)));continue}if(Fb.test(u.stem)){r=te(te({},r),gg(u.stem));continue}var h=Pb(u.stem);h&&(r=te(te({},r),h));var d=LS(u.stem);d&&(r=te(te({},r),d))}return r}var xl={"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 kS(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=GS(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 GS(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=xl[l||""]||xl[i||""]||xl["".concat(i,"-001")]||xl["001"];return u[0]}var Jc,qS=new RegExp("^".concat(Ib.source,"*")),IS=new RegExp("".concat(Ib.source,"*$"));function Re(n,r){return{start:n,end:r}}var FS=!!String.prototype.startsWith&&"_a".startsWith("a",1),VS=!!String.fromCodePoint,PS=!!Object.fromEntries,YS=!!String.prototype.codePointAt,ZS=!!String.prototype.trimStart,XS=!!String.prototype.trimEnd,QS=!!Number.isSafeInteger,KS=QS?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},Xf=!0;try{var $S=Zb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xf=((Jc=$S.exec("a"))===null||Jc===void 0?void 0:Jc[0])==="a"}catch{Xf=!1}var bg=FS?function(r,i,l){return r.startsWith(i,l)}:function(r,i,l){return r.slice(l,l+i.length)===i},Qf=VS?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},_g=PS?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},Yb=YS?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}},JS=ZS?function(r){return r.trimStart()}:function(r){return r.replace(qS,"")},WS=XS?function(r){return r.trimEnd()}:function(r){return r.replace(IS,"")};function Zb(n,r){return new RegExp(n,r)}var Kf;if(Xf){var vg=Zb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Kf=function(r,i){var l;vg.lastIndex=i;var u=vg.exec(r);return(l=u[1])!==null&&l!==void 0?l:""}}else Kf=function(r,i){for(var l=[];;){var u=Yb(r,i);if(u===void 0||Xb(u)||rT(u))break;l.push(u),i+=u>=65536?2:1}return Qf.apply(void 0,l)};var eT=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:Ge.pound,location:Re(d,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(xe.UNMATCHED_CLOSING_TAG,Re(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&$f(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:Ge.literal,value:"<".concat(u,"/>"),location:Re(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()||!$f(this.char()))return this.error(xe.INVALID_TAG,Re(d,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(xe.UNMATCHED_CLOSING_TAG,Re(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ge.tag,value:u,children:h,location:Re(l,this.clonePosition())},err:null}:this.error(xe.INVALID_TAG,Re(d,this.clonePosition())))}else return this.error(xe.UNCLOSED_TAG,Re(l,this.clonePosition()))}else return this.error(xe.INVALID_TAG,Re(l,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&nT(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=Re(l,this.clonePosition());return{val:{type:Ge.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tT(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 Qf.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(),Qf(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,Re(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(xe.EMPTY_ARGUMENT,Re(l,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(xe.MALFORMED_ARGUMENT,Re(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,Re(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ge.argument,value:u,location:Re(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,Re(l,this.clonePosition())):this.parseArgumentOptions(r,i,u,l);default:return this.error(xe.MALFORMED_ARGUMENT,Re(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),l=Kf(this.message,i),u=i+l.length;this.bumpTo(u);var f=this.clonePosition(),h=Re(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,Re(h,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var b=this.clonePosition(),S=this.parseSimpleArgStyleIfPossible();if(S.err)return S;var y=WS(S.val);if(y.length===0)return this.error(xe.EXPECT_ARGUMENT_STYLE,Re(this.clonePosition(),this.clonePosition()));var x=Re(b,this.clonePosition());g={style:y,styleLocation:x}}var T=this.tryParseArgumentClose(u);if(T.err)return T;var z=Re(u,this.clonePosition());if(g&&bg(g==null?void 0:g.style,"::",0)){var N=JS(g.style.slice(2));if(d==="number"){var S=this.parseNumberSkeletonFromString(N,g.styleLocation);return S.err?S:{val:{type:Ge.number,value:l,location:z,style:S.val},err:null}}else{if(N.length===0)return this.error(xe.EXPECT_DATE_TIME_SKELETON,z);var H=N;this.locale&&(H=kS(N,this.locale));var y={type:za.dateTime,pattern:H,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?MS(H):{}},D=d==="date"?Ge.date:Ge.time;return{val:{type:D,value:l,location:z,style:y},err:null}}}return{val:{type:d==="number"?Ge.number:d==="date"?Ge.date:Ge.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,Re(O,te({},O)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),E=0;if(d!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Re(this.clonePosition(),this.clonePosition()));this.bumpSpace();var S=this.tryParseDecimalInteger(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(S.err)return S;this.bumpSpace(),R=this.parseIdentifierIfPossible(),E=S.val}var U=this.tryParsePluralOrSelectOptions(r,d,i,R);if(U.err)return U;var T=this.tryParseArgumentClose(u);if(T.err)return T;var Y=Re(u,this.clonePosition());return d==="select"?{val:{type:Ge.select,value:l,options:_g(U.val),location:Y},err:null}:{val:{type:Ge.plural,value:l,options:_g(U.val),offset:E,pluralType:d==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(xe.INVALID_ARGUMENT_TYPE,Re(h,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,Re(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,Re(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=jS(r)}catch{return this.error(xe.INVALID_NUMBER_SKELETON,i)}return{val:{type:za.number,tokens:l,location:i,parsedOptions:this.shouldParseSkeletons?zS(l):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(r,i,l,u){for(var f,h=!1,d=[],m=new Set,g=u.value,b=u.location;;){if(g.length===0){var S=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;b=Re(S,this.clonePosition()),g=this.message.slice(S.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?xe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:xe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,b);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,Re(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:Re(x,this.clonePosition())}]),m.add(g),this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=f.value,b=f.location}return d.length===0?this.error(i==="select"?xe.EXPECT_SELECT_ARGUMENT_SELECTOR:xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Re(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!h?this.error(xe.MISSING_OTHER_CLAUSE,Re(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=Re(u,this.clonePosition());return f?(h*=l,KS(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=Yb(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(bg(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()&&Xb(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 $f(n){return n>=97&&n<=122||n>=65&&n<=90}function tT(n){return $f(n)||n===47}function nT(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 Xb(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function rT(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 Jf(n){n.forEach(function(r){if(delete r.location,zb(r)||kb(r))for(var i in r.options)delete r.options[i].location,Jf(r.options[i].value);else Ub(r)&&qb(r.style)||(Hb(r)||Lb(r))&&Zf(r.style)?delete r.style.location:Gb(r)&&Jf(r.children)})}function aT(n,r){r===void 0&&(r={}),r=te({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new eT(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||Jf(i.val),i.val}var En;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(En||(En={}));var Er=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),Eg=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('", "'),'"'),En.INVALID_VALUE,f)||this}return r}(Er),iT=function(n){Wt(r,n);function r(i,l,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(l),En.INVALID_VALUE,u)||this}return r}(Er),sT=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,'"'),En.MISSING_VALUE,l)||this}return r}(Er),bt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(bt||(bt={}));function lT(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 Qb(n){return typeof n=="function"}function Wl(n,r,i,l,u,f,h){if(n.length===1&&mg(n[0]))return[{type:bt.literal,value:n[0].value}];for(var d=[],m=0,g=n;m<g.length;m++){var b=g[m];if(mg(b)){d.push({type:bt.literal,value:b.value});continue}if(NS(b)){typeof f=="number"&&d.push({type:bt.literal,value:i.getNumberFormat(r).format(f)});continue}var S=b.value;if(!(u&&S in u))throw new sT(S,h);var y=u[S];if(CS(b)){(!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(Hb(b)){var x=typeof b.style=="string"?l.date[b.style]:Zf(b.style)?b.style.parsedOptions:void 0;d.push({type:bt.literal,value:i.getDateTimeFormat(r,x).format(y)});continue}if(Lb(b)){var x=typeof b.style=="string"?l.time[b.style]:Zf(b.style)?b.style.parsedOptions:l.time.medium;d.push({type:bt.literal,value:i.getDateTimeFormat(r,x).format(y)});continue}if(Ub(b)){var x=typeof b.style=="string"?l.number[b.style]:qb(b.style)?b.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(Gb(b)){var T=b.children,z=b.value,N=u[z];if(!Qb(N))throw new iT(z,"function",h);var H=Wl(T,r,i,l,u,f),D=N(H.map(function(E){return E.value}));Array.isArray(D)||(D=[D]),d.push.apply(d,D.map(function(E){return{type:typeof E=="string"?bt.literal:bt.object,value:E}}))}if(zb(b)){var O=b.options[y]||b.options.other;if(!O)throw new Eg(b.value,y,Object.keys(b.options),h);d.push.apply(d,Wl(O.value,r,i,l,u));continue}if(kb(b)){var O=b.options["=".concat(y)];if(!O){if(!Intl.PluralRules)throw new Er(`Intl.PluralRules is not available in this environment.
|
|
66
66
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
-
`,En.MISSING_INTL_API,h);var R=i.getPluralRules(r,{type:
|
|
67
|
+
`,En.MISSING_INTL_API,h);var R=i.getPluralRules(r,{type:b.pluralType}).select(y-(b.offset||0));O=b.options[R]||b.options.other}if(!O)throw new Eg(b.value,y,Object.keys(b.options),h);d.push.apply(d,Wl(O.value,r,i,l,u,y-(b.offset||0)));continue}}return lT(d)}function oT(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 uT(n,r){return r?Object.keys(n).reduce(function(i,l){return i[l]=oT(n[l],r[l]),i},te({},n)):n}function Wc(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function cT(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gn(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:Wc(n.number),strategy:yn.variadic}),getDateTimeFormat:gn(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:Wc(n.dateTime),strategy:yn.variadic}),getPluralRules:gn(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:Wc(n.pluralRules),strategy:yn.variadic})}}var Kb=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 b=g.reduce(function(S,y){return!S.length||y.type!==bt.literal||typeof S[S.length-1]!="string"?S.push(y.value):S[S.length-1]+=y.value,S},[]);return b.length<=1?b[0]||"":b},this.formatToParts=function(m){return Wl(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=mo(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=uT(n.formats,l),this.formatters=u&&u.formatters||cT(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=aT,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}(),Qr;(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"})(Qr||(Qr={}));var ss=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
68
|
`).concat(h?`
|
|
69
69
|
`.concat(h.message,`
|
|
70
70
|
`).concat(h.stack):""))||this,f.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(f,r),f}return r}(Error),fT=function(n){Wt(r,n);function r(i,l){return n.call(this,Qr.UNSUPPORTED_FORMATTER,i,l)||this}return r}(ss),hT=function(n){Wt(r,n);function r(i,l){return n.call(this,Qr.INVALID_CONFIG,i,l)||this}return r}(ss),Sg=function(n){Wt(r,n);function r(i,l){return n.call(this,Qr.MISSING_DATA,i,l)||this}return r}(ss),en=function(n){Wt(r,n);function r(i,l,u){var f=n.call(this,Qr.FORMAT_ERROR,"".concat(i,`
|
|
@@ -73,37 +73,37 @@ Locale: `).concat(l,`
|
|
|
73
73
|
MessageID: `).concat(u==null?void 0:u.id,`
|
|
74
74
|
Default Message: `).concat(u==null?void 0:u.defaultMessage,`
|
|
75
75
|
Description: `).concat(u==null?void 0:u.description,`
|
|
76
|
-
`),l,f)||this;return h.descriptor=u,h.locale=l,h}return r}(en),dT=function(n){Wt(r,n);function r(i,l){var u=n.call(this,Qr.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}(ss);function mT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Ia(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 pT=function(n){},gT=function(n){},$
|
|
76
|
+
`),l,f)||this;return h.descriptor=u,h.locale=l,h}return r}(en),dT=function(n){Wt(r,n);function r(i,l){var u=n.call(this,Qr.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}(ss);function mT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Ia(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 pT=function(n){},gT=function(n){},$b={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:pT,onWarn:gT};function Jb(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function qr(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function yT(n){n===void 0&&(n=Jb());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,l=Intl.DisplayNames,u=gn(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:qr(n.dateTime),strategy:yn.variadic}),f=gn(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:qr(n.number),strategy:yn.variadic}),h=gn(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:qr(n.pluralRules),strategy:yn.variadic});return{getDateTimeFormat:u,getNumberFormat:f,getMessageFormat:gn(function(d,m,g,b){return new Kb(d,m,g,te({formatters:{getNumberFormat:f,getDateTimeFormat:u,getPluralRules:h}},b||{}))},{cache:qr(n.message),strategy:yn.variadic}),getRelativeTimeFormat:gn(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:qr(n.relativeTime),strategy:yn.variadic}),getPluralRules:h,getListFormat:gn(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:qr(n.list),strategy:yn.variadic}),getDisplayNames:gn(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:qr(n.displayNames),strategy:yn.variadic})}}function xh(n,r,i,l){var u=n&&n[r],f;if(u&&(f=u[i]),f)return f;l(new fT("No ".concat(r," format named: ").concat(i)))}function Al(n,r){return Object.keys(n).reduce(function(i,l){return i[l]=te({timeZone:r},n[l]),i},{})}function Tg(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 xg(n,r){if(!r)return n;var i=Kb.formats;return te(te(te({},i),n),{date:Tg(Al(i.date,r),Al(n.date||{},r)),time:Tg(Al(i.time,r),Al(n.time||{},r))})}var Wf=function(n,r,i,l,u){var f=n.locale,h=n.formats,d=n.messages,m=n.defaultLocale,g=n.defaultFormats,b=n.fallbackOnEmptyString,S=n.onError,y=n.timeZone,x=n.defaultRichTextElements;i===void 0&&(i={id:""});var T=i.id,z=i.defaultMessage;mT(!!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),H=d&&Object.prototype.hasOwnProperty.call(d,N)&&d[N];if(Array.isArray(H)&&H.length===1&&H[0].type===Ge.literal)return H[0].value;if(!l&&H&&typeof H=="string"&&!x)return H.replace(/'\{(.*?)\}'/gi,"{$1}");if(l=te(te({},x),l||{}),h=xg(h,y),g=xg(g,y),!H){if(b===!1&&H==="")return H;if((!z||f&&f.toLowerCase()!==m.toLowerCase())&&S(new dT(i,f)),z)try{var D=r.getMessageFormat(z,m,g,u);return D.format(l)}catch(O){return S(new ef('Error formatting default message for: "'.concat(N,'", rendering default message verbatim'),f,i,O)),typeof z=="string"?z:N}return N}try{var D=r.getMessageFormat(H,f,h,te({formatters:r},u||{}));return D.format(l)}catch(O){S(new ef('Error formatting message: "'.concat(N,'", using ').concat(z?"default message":"id"," as fallback."),f,i,O))}if(z)try{var D=r.getMessageFormat(z,m,g,u);return D.format(l)}catch(O){S(new ef('Error formatting the default message for: "'.concat(N,'", rendering message verbatim'),f,i,O))}return typeof H=="string"?H:typeof z=="string"?z:N},bT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ls(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&&xh(f,r,m,h)),b=Ia(l,bT,g);return r==="time"&&!b.hour&&!b.minute&&!b.second&&!b.timeStyle&&!b.dateStyle&&(b=te(te({},b),{hour:"numeric",minute:"numeric"})),i(u,b)}function _T(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 ls(n,"date",r,h).format(d)}catch(m){n.onError(new en("Error formatting date.",n.locale,m))}return String(d)}function vT(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 ls(n,"time",r,h).format(d)}catch(m){n.onError(new en("Error formatting time.",n.locale,m))}return String(d)}function ET(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 ls(n,"dateTimeRange",r,d).formatRange(m,g)}catch(b){n.onError(new en("Error formatting date time range.",n.locale,b))}return String(m)}function ST(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 ls(n,"date",r,h).formatToParts(d)}catch(m){n.onError(new en("Error formatting date.",n.locale,m))}return[]}function TT(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 ls(n,"time",r,h).formatToParts(d)}catch(m){n.onError(new en("Error formatting time.",n.locale,m))}return[]}var xT=["style","type","fallback","languageDisplay"];function AT(n,r,i,l){var u=n.locale,f=n.onError,h=Intl.DisplayNames;h||f(new Er(`Intl.DisplayNames is not available in this environment.
|
|
77
77
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
-
`,En.MISSING_INTL_API));var d=Ia(l,xT);try{return r(u,d).of(i)}catch(m){f(new en("Error formatting display name.",u,m))}}var OT=["type","style"],Ag=Date.now();function RT(n){return"".concat(Ag,"_").concat(n,"_").concat(Ag)}function wT(n,r,i,l){l===void 0&&(l={});var u=
|
|
78
|
+
`,En.MISSING_INTL_API));var d=Ia(l,xT);try{return r(u,d).of(i)}catch(m){f(new en("Error formatting display name.",u,m))}}var OT=["type","style"],Ag=Date.now();function RT(n){return"".concat(Ag,"_").concat(n,"_").concat(Ag)}function wT(n,r,i,l){l===void 0&&(l={});var u=Wb(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 Wb(n,r,i,l){var u=n.locale,f=n.onError;l===void 0&&(l={});var h=Intl.ListFormat;h||f(new Er(`Intl.ListFormat is not available in this environment.
|
|
79
79
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
-
`,En.MISSING_INTL_API));var d=Ia(l,OT);try{var m={},g=i.map(function(
|
|
80
|
+
`,En.MISSING_INTL_API));var d=Ia(l,OT);try{var m={},g=i.map(function(b,S){if(typeof b=="object"){var y=RT(S);return m[y]=b,y}return String(b)});return r(u,d).formatToParts(g).map(function(b){return b.type==="literal"?b:te(te({},b),{value:m[b.value]||b.value})})}catch(b){f(new en("Error formatting list.",u,b))}return i}var CT=["type"];function NT(n,r,i,l){var u=n.locale,f=n.onError;l===void 0&&(l={}),Intl.PluralRules||f(new Er(`Intl.PluralRules is not available in this environment.
|
|
81
81
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
82
|
`,En.MISSING_INTL_API));var h=Ia(l,CT);try{return r(u,h).select(i)}catch(d){f(new en("Error formatting plural.",u,d))}return"other"}var DT=["numeric","style"];function MT(n,r,i){var l=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var h=i.format,d=!!h&&xh(u,"relative",h,f)||{},m=Ia(i,DT,d);return r(l,m)}function BT(n,r,i,l,u){u===void 0&&(u={}),l||(l="second");var f=Intl.RelativeTimeFormat;f||n.onError(new Er(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
83
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
-
`,En.MISSING_INTL_API));try{return MT(n,r,u).format(i,l)}catch(h){n.onError(new en("Error formatting relative time.",n.locale,h))}return String(i)}var jT=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function
|
|
84
|
+
`,En.MISSING_INTL_API));try{return MT(n,r,u).format(i,l)}catch(h){n.onError(new en("Error formatting relative time.",n.locale,h))}return String(i)}var jT=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function e_(n,r,i){var l=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var h=i.format,d=h&&xh(u,"number",h,f)||{},m=Ia(i,jT,d);return r(l,m)}function UT(n,r,i,l){l===void 0&&(l={});try{return e_(n,r,l).format(i)}catch(u){n.onError(new en("Error formatting number.",n.locale,u))}return String(i)}function HT(n,r,i,l){l===void 0&&(l={});try{return e_(n,r,l).formatToParts(i)}catch(u){n.onError(new en("Error formatting number.",n.locale,u))}return[]}function LT(n){var r=n?n[Object.keys(n)[0]]:void 0;return typeof r=="string"}function zT(n){n.onWarn&&n.defaultRichTextElements&<(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
85
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 kT(n,r){var i=yT(r),l=te(te({},$
|
|
86
|
+
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function kT(n,r){var i=yT(r),l=te(te({},$b),n),u=l.locale,f=l.defaultLocale,h=l.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&h?h(new Sg('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 Sg('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 hT('"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"),zT(l),te(te({},l),{formatters:i,formatNumber:UT.bind(null,l,i.getNumberFormat),formatNumberToParts:HT.bind(null,l,i.getNumberFormat),formatRelativeTime:BT.bind(null,l,i.getRelativeTimeFormat),formatDate:_T.bind(null,l,i.getDateTimeFormat),formatDateToParts:ST.bind(null,l,i.getDateTimeFormat),formatTime:vT.bind(null,l,i.getDateTimeFormat),formatDateTimeRange:ET.bind(null,l,i.getDateTimeFormat),formatTimeToParts:TT.bind(null,l,i.getDateTimeFormat),formatPlural:NT.bind(null,l,i.getPluralRules),formatMessage:Wf.bind(null,l,i),$t:Wf.bind(null,l,i),formatList:wT.bind(null,l,i.getListFormat),formatListToParts:Wb.bind(null,l,i.getListFormat),formatDisplayName:AT.bind(null,l,i.getDisplayNames)})}function GT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function t_(n){GT(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var n_=te(te({},$b),{textComponent:I.Fragment}),qT={key:42},IT=function(n){return I.isValidElement(n)?I.createElement(I.Fragment,qT,n):n},FT=function(n){var r;return(r=I.Children.map(n,IT))!==null&&r!==void 0?r:[]};function VT(n){return function(r){return n(I.Children.toArray(r))}}function PT(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 tf={exports:{}},De={};/** @license React v16.13.1
|
|
87
87
|
* react-is.production.min.js
|
|
88
88
|
*
|
|
89
89
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the MIT license found in the
|
|
92
92
|
* LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/var Og;function YT(){if(Og)return De;Og=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,S=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,H=n?Symbol.for("react.responder"):60118,D=n?Symbol.for("react.scope"):60119;function O(E){if(typeof E=="object"&&E!==null){var U=E.$$typeof;switch(U){case r:switch(E=E.type,E){case m:case g:case l:case f:case u:case S:return E;default:switch(E=E&&E.$$typeof,E){case d:case _:case T:case x:case h:return E;default:return U}}case i:return U}}}function R(E){return O(E)===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=S,De.isAsyncMode=function(E){return R(E)||O(E)===m},De.isConcurrentMode=R,De.isContextConsumer=function(E){return O(E)===d},De.isContextProvider=function(E){return O(E)===h},De.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===r},De.isForwardRef=function(E){return O(E)===_},De.isFragment=function(E){return O(E)===l},De.isLazy=function(E){return O(E)===T},De.isMemo=function(E){return O(E)===x},De.isPortal=function(E){return O(E)===i},De.isProfiler=function(E){return O(E)===f},De.isStrictMode=function(E){return O(E)===u},De.isSuspense=function(E){return O(E)===S},De.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===l||E===g||E===f||E===u||E===S||E===y||typeof E=="object"&&E!==null&&(E.$$typeof===T||E.$$typeof===x||E.$$typeof===h||E.$$typeof===d||E.$$typeof===_||E.$$typeof===N||E.$$typeof===H||E.$$typeof===D||E.$$typeof===z)},De.typeOf=O,De}var Rg;function ZT(){return Rg||(Rg=1,tf.exports=YT()),tf.exports}var nf,wg;function XT(){if(wg)return nf;wg=1;var n=ZT(),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,S=Object.getPrototypeOf,y=Object.prototype;function x(T,z,N){if(typeof z!="string"){if(y){var H=S(z);H&&H!==y&&x(T,H,N)}var D=m(z);g&&(D=D.concat(g(z)));for(var O=h(T),R=h(z),E=0;E<D.length;++E){var U=D[E];if(!i[U]&&!(N&&N[U])&&!(R&&R[U])&&!(O&&O[U])){var Y=_(z,U);try{d(T,U,Y)}catch{}}}}return T}return nf=x,nf}XT();var Ah=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=I.createContext(null)):I.createContext(null);Ah.Consumer;var QT=Ah.Provider,KT=QT,$T=Ah;function po(){var n=I.useContext($T);return tb(n),n}var eh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(eh||(eh={}));var th;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(th||(th={}));function rb(n){var r=function(i){var l=po(),u=i.value,f=i.children,h=mo(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=th[n],r}function os(n){var r=function(i){var l=po(),u=i.value,f=i.children,h=mo(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=eh[n],r}function ab(n){return n&&Object.keys(n).reduce(function(r,i){var l=n[i];return r[i]=Q_(l)?VT(l):l,r},{})}var Cg=function(n,r,i,l){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var h=ab(l),d=Wf.apply(void 0,_n([n,r,i,h],u,!1));return Array.isArray(d)?FT(d):d},Ng=function(n,r){var i=n.defaultRichTextElements,l=mo(n,["defaultRichTextElements"]),u=ab(i),f=kT(te(te(te({},nb),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:Cg.bind(null,h,f.formatters),$t:Cg.bind(null,h,f.formatters)})};function rf(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 JT=function(n){Wt(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=J_(),i.state={cache:i.cache,intl:Ng(rf(i.props),i.cache),prevConfig:rf(i.props)},i}return r.getDerivedStateFromProps=function(i,l){var u=l.prevConfig,f=l.cache,h=rf(i);return PT(u,h)?null:{intl:Ng(h,f),prevConfig:h}},r.prototype.render=function(){return tb(this.state.intl),I.createElement(KT,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=nb,r}(I.PureComponent);os("formatDate");os("formatTime");os("formatNumber");os("formatList");os("formatDisplayName");rb("formatDate");rb("formatTime");const WT="_app_1rj0t_1",ex={app:WT},Fa=gS,kt=bS,ib="%[a-f0-9]{2}",Dg=new RegExp("("+ib+")|([^%]+?)","gi"),Mg=new RegExp("("+ib+")+","gi");function nh(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([],nh(i),nh(l))}function tx(n){try{return decodeURIComponent(n)}catch{let r=n.match(Dg)||[];for(let i=1;i<r.length;i++)n=nh(r,i).join(""),r=n.match(Dg)||[];return n}}function nx(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=Mg.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=tx(i[0]);u!==i[0]&&(r[i[0]]=u)}i=Mg.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 rx(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return nx(n)}}function ax(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 sb(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 ix=n=>n==null,sx=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),rh=Symbol("encodeFragmentIdentifier");function lx(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,[$e(r,n),"[",u,"]"].join("")]:[...i,[$e(r,n),"[",$e(u,n),"]=",$e(l,n)].join("")]};case"bracket":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[$e(r,n),"[]"].join("")]:[...i,[$e(r,n),"[]=",$e(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,[$e(r,n),":list="].join("")]:[...i,[$e(r,n),":list=",$e(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?[[$e(i,n),r,$e(u,n)].join("")]:[[l,$e(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,$e(r,n)]:[...i,[$e(r,n),"=",$e(l,n)].join("")]}}function ox(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&&In(l,n).includes(n.arrayFormatSeparator);l=h?In(l,n):l;const d=f||h?l.split(n.arrayFormatSeparator).map(m=>In(m,n)):l===null?l:In(l,n);u[i]=d};case"bracket-separator":return(i,l,u)=>{const f=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!f){u[i]=l&&In(l,n);return}const h=l===null?[]:In(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 lb(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $e(n,r){return r.encode?r.strict?sx(n):encodeURIComponent(n):n}function In(n,r){return r.decode?rx(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 ub(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function ux(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function Bg(n,r,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):r.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""||r.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Oh(n){n=ub(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function Rh(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},lb(r.arrayFormatSeparator);const i=ox(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]=sb(f,"=");h===void 0&&(h=f),d=d===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?d:In(d,r),i(In(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]=Bg(d,r,m)}else typeof f=="object"&&f!==null&&r.types[u]==="string"?l[u]=Object.values(f).join(r.arrayFormatSeparator):l[u]=Bg(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 cb(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},lb(r.arrayFormatSeparator);const i=h=>r.skipNull&&ix(n[h])||r.skipEmptyString&&n[h]==="",l=lx(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?$e(h,r):Array.isArray(d)?d.length===0&&r.arrayFormat==="bracket-separator"?$e(h,r)+"[]":d.reduce(l(h),[]).join("&"):$e(h,r)+"="+$e(d,r)}).filter(h=>h.length>0).join("&")}function fb(n,r){var u;r={decode:!0,...r};let[i,l]=sb(n,"#");return i===void 0&&(i=n),{url:((u=i==null?void 0:i.split("?"))==null?void 0:u[0])??"",query:Rh(Oh(n),r),...r&&r.parseFragmentIdentifier&&l?{fragmentIdentifier:In(l,r)}:{}}}function hb(n,r){r={encode:!0,strict:!0,[rh]:!0,...r};const i=ub(n.url).split("?")[0]||"",l=Oh(n.url),u={...Rh(l,{sort:!1}),...n.query};let f=cb(u,r);f&&(f=`?${f}`);let h=ux(n.url);if(typeof n.fragmentIdentifier=="string"){const d=new URL(i);d.hash=n.fragmentIdentifier,h=r[rh]?d.hash:`#${n.fragmentIdentifier}`}return`${i}${f}${h}`}function db(n,r,i){i={parseFragmentIdentifier:!0,[rh]:!1,...i};const{url:l,query:u,fragmentIdentifier:f}=fb(n,i);return hb({url:l,query:ax(u,r),fragmentIdentifier:f},i)}function cx(n,r,i){const l=Array.isArray(r)?u=>!r.includes(u):(u,f)=>!r(u,f);return db(n,l,i)}const go=Object.freeze(Object.defineProperty({__proto__:null,exclude:cx,extract:Oh,parse:Rh,parseUrl:fb,pick:db,stringify:cb,stringifyUrl:hb},Symbol.toStringTag,{value:"Module"}));var an={},Ht={},he={},jg;function It(){return jg||(jg=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 af={},Ug;function fx(){return Ug||(Ug=1,Object.defineProperty(af,"__esModule",{value:!0})),af}var Ol={},Hg;function hx(){if(Hg)return Ol;Hg=1,Object.defineProperty(Ol,"__esModule",{value:!0});const n=It(),r=()=>({type:n.DRAWER_CLOSE});return Ol.default=r,Ol}var Rl={},Lg;function dx(){if(Lg)return Rl;Lg=1,Object.defineProperty(Rl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:l}});return Rl.default=r,Rl}var wl={},zg;function mx(){if(zg)return wl;zg=1,Object.defineProperty(wl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return wl.default=r,wl}var Cl={},kg;function px(){if(kg)return Cl;kg=1,Object.defineProperty(Cl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Cl.default=r,Cl}var Nl={},Gg;function gx(){if(Gg)return Nl;Gg=1,Object.defineProperty(Nl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:l}});return Nl.default=r,Nl}var Dl={},qg;function yx(){if(qg)return Dl;qg=1,Object.defineProperty(Dl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Dl.default=r,Dl}var Ml={},Ve={},Ig;function wh(){if(Ig)return Ve;Ig=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.getStringRepresentationFromMessage=Ve.MessageTypeEnum=Ve.AudioMessage=Ve.FileMessage=Ve.ImageMessage=Ve.VideoMessage=Ve.MarkdownMessage=Ve.DetailMessage=Ve.TextMessage=Ve.Message=void 0;class n{constructor(S,y,x=[],T=[]){Ce(this,"type");Ce(this,"sender");Ce(this,"sources");Ce(this,"quickReplies");this.type=S,this.sender=y,this.sources=x,this.quickReplies=T}addQuickReply(S,y){this.quickReplies.push({label:S,payload:y})}}Ve.Message=n;class r extends n{constructor(y,x,T=[],z=[]){super(m.TEXT,x,T,z);Ce(this,"text");this.text=y}}Ve.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)}}Ve.DetailMessage=i;class l extends n{constructor(y,x,T=[],z=[]){super(m.MARKDOWN,x,T,z);Ce(this,"markdown");this.markdown=y}}Ve.MarkdownMessage=l;class u extends n{constructor(y,x){super(m.VIDEO,x);Ce(this,"url");this.url=y}}Ve.VideoMessage=u;class f extends n{constructor(y,x){super(m.IMAGE,x);Ce(this,"url");this.url=y}}Ve.ImageMessage=f;class h extends n{constructor(y,x){super(m.FILE,x);Ce(this,"url");this.url=y}}Ve.FileMessage=h;class d extends n{constructor(y,x){super(m.AUDIO,x);Ce(this,"url");this.url=y}}Ve.AudioMessage=d;var m;(function(_){_.TEXT="TEXT",_.DETAIL="DETAIL",_.MARKDOWN="MARKDOWN",_.VIDEO="VIDEO",_.IMAGE="IMAGE",_.FILE="FILE",_.AUDIO="AUDIO"})(m||(Ve.MessageTypeEnum=m={}));const g=_=>{switch(_.type){case m.TEXT:return _.text;case m.DETAIL:{const S=_;return`${S.title} // ${S.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 Ve.getStringRepresentationFromMessage=g,Ve}var Lt={},Fg;function Ch(){if(Fg)return Lt;Fg=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 Vg;function _x(){if(Vg)return Ml;Vg=1,Object.defineProperty(Ml,"__esModule",{value:!0});const n=wh(),r=Ch(),i=It(),l=u=>{const f=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:f}};return Ml.default=l,Ml}var Bl={},Pg;function bx(){if(Pg)return Bl;Pg=1,Object.defineProperty(Bl,"__esModule",{value:!0});const n=wh(),r=Ch(),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 Bl.default=l,Bl}var jl={},Yg;function vx(){if(Yg)return jl;Yg=1,Object.defineProperty(jl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return jl.default=r,jl}var Ul={},Zg;function Ex(){if(Zg)return Ul;Zg=1,Object.defineProperty(Ul,"__esModule",{value:!0});const n=It(),r=()=>({type:n.RESTART_CHAT_REQUEST});return Ul.default=r,Ul}var Hl={},Xg;function Sx(){if(Xg)return Hl;Xg=1,Object.defineProperty(Hl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return Hl.default=r,Hl}var Ll={},Qg;function Tx(){if(Qg)return Ll;Qg=1,Object.defineProperty(Ll,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:l}});return Ll.default=r,Ll}var Kg;function $g(){return Kg||(Kg=1,function(n){var r=Ht&&Ht.__createBinding||(Object.create?function(D,O,R,E){E===void 0&&(E=R);var U=Object.getOwnPropertyDescriptor(O,R);(!U||("get"in U?!O.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return O[R]}}),Object.defineProperty(D,E,U)}:function(D,O,R,E){E===void 0&&(E=R),D[E]=O[R]}),i=Ht&&Ht.__setModuleDefault||(Object.create?function(D,O){Object.defineProperty(D,"default",{enumerable:!0,value:O})}:function(D,O){D.default=O}),l=Ht&&Ht.__importStar||function(){var D=function(O){return D=Object.getOwnPropertyNames||function(R){var E=[];for(var U in R)Object.prototype.hasOwnProperty.call(R,U)&&(E[E.length]=U);return E},D(O)};return function(O){if(O&&O.__esModule)return O;var R={};if(O!=null)for(var E=D(O),U=0;U<E.length;U++)E[U]!=="default"&&r(R,O,E[U]);return i(R,O),R}}(),u=Ht&&Ht.__exportStar||function(D,O){for(var R in D)R!=="default"&&!Object.prototype.hasOwnProperty.call(O,R)&&r(O,D,R)},f=Ht&&Ht.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(n,"__esModule",{value:!0}),n.transcriptItemGuestReaction=n.sendMessageToGuest=n.restartChatRequest=n.requestNLUEvent=n.receiveTextMessageWithoutAnalysisFromGuest=n.receiveTextMessageFromGuest=n.openDrawer=n.guestLocaleChanged=n.guestDisconnected=n.guestConnected=n.feedbackFromGuestResponse=n.closeDrawer=n.ActionTypes=void 0,n.ActionTypes=l(It()),u(fx(),n);const h=f(hx());n.closeDrawer=h.default;const d=f(dx());n.feedbackFromGuestResponse=d.default;const m=f(mx());n.guestConnected=m.default;const g=f(px());n.guestDisconnected=g.default;const _=f(gx());n.guestLocaleChanged=_.default;const S=f(yx());n.openDrawer=S.default;const y=f(_x());n.receiveTextMessageFromGuest=y.default;const x=f(bx());n.receiveTextMessageWithoutAnalysisFromGuest=x.default;const T=f(vx());n.requestNLUEvent=T.default;const z=f(Ex());n.restartChatRequest=z.default;const N=f(Sx());n.sendMessageToGuest=N.default;const H=f(Tx());n.transcriptItemGuestReaction=H.default}(Ht)),Ht}var zt={},sf={},Jg;function xx(){return Jg||(Jg=1,Object.defineProperty(sf,"__esModule",{value:!0})),sf}var Pi={},Wg;function Ax(){if(Wg)return Pi;Wg=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.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.")}}return Pi.NullableKnowledgeBaseAdapter=n,Pi}var ey;function Ox(){if(ey)return zt;ey=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(xx());const l=Ax();return zt.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},zt}var Ir={},lf={},ty;function Rx(){return ty||(ty=1,Object.defineProperty(lf,"__esModule",{value:!0})),lf}var sn={},ny;function wx(){if(ny)return sn;ny=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.ButtonTypeEnum=sn.PostbackButton=sn.UrlButton=sn.Button=void 0;class n{constructor(f,h){Ce(this,"title");Ce(this,"type");this.title=f,this.type=h}}sn.Button=n;class r extends n{constructor(h,d){super(h,l.WEB_URL);Ce(this,"url");this.url=d}}sn.UrlButton=r;class i extends n{constructor(h,d){super(h,l.POSTBACK);Ce(this,"payload");this.payload=d}}sn.PostbackButton=i;var l;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(l||(sn.ButtonTypeEnum=l={})),sn}var of={},ry;function Cx(){return ry||(ry=1,Object.defineProperty(of,"__esModule",{value:!0})),of}var Yi={},ay;function Nx(){if(ay)return Yi;ay=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(Yi.SatisfactionEnum=n={})),Yi}var iy;function sy(){return iy||(iy=1,function(n){var r=Ir&&Ir.__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=Ir&&Ir.__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(Rx(),n),i(wx(),n),i(Cx(),n),i(Nx(),n),i(wh(),n),i(Ch(),n)}(Ir)),Ir}var ly;function Dx(){return ly||(ly=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=n.Actions=void 0,l($g(),n),n.Actions=u($g()),n.CMS=u(Ox()),l(sy(),n),n.Model=u(sy())}(an)),an}var Ee=Dx();const mb=n=>r=>(n.payload.type!==Ee.ActionTypes.MESSAGE_FROM_GUEST&&r(Ee.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),pb=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.receiveTextMessageFromGuest(n))},Nh="MESSAGE_TO_PARENT_PAGE",Dh="RESTORE_PREVIOUS_CHAT_MESSAGES",Mh="AUDIO_MESSAGE_FROM_USER",Mx="EXPORT_TRANSCRIPT",Bh="RECEIVE_SPEECH_TRANSCRIPTION",jh="ENABLE_CONVERSATION_RATING",gb="LOAD_SOURCE_INFOS_RESPONSE",yb="LOAD_SOURCE_INFOS_ERROR",Uh="LOAD_SOURCE_INFOS_REQUEST",Hh="CLOSE_SOURCE_INFOS",Bx="webclient.get.started",_b="webclient.window.expand",bb="webclient.window.close",vb="webclient.transcript.pdf.download",jx=[Nh,Dh,Mh,Mx,Bh,jh,Uh,Hh],Ux=n=>({type:Mh,buffer:n}),Hx=n=>({type:Bh,transcription:n}),Lx=n=>({type:Ee.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),zx=()=>({type:vb}),kx=({rating:n})=>({type:jh,payload:{rating:n}}),Gx=(n,r)=>({type:Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),Eb=n=>Ee.requestNLUEvent(n),qx=n=>({type:Dh,messages:n}),Ix=n=>{switch(n.type){case Ee.ButtonTypeEnum.WEB_URL:return Sb(n.url);case Ee.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},Fx=n=>Sb(n),Sb=n=>({type:Nh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function zl(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 Vx={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 ah(n,r){function i(u,f,h){if(!(typeof document>"u")){h=zl({},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,"",zl({},f,{expires:-1}))},withAttributes:function(u){return ah(this.converter,zl({},this.attributes,u))},withConverter:function(u){return ah(zl({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var kl=ah(Vx,{path:"/"});const ut=[];for(let n=0;n<256;++n)ut.push((n+256).toString(16).slice(1));function Px(n,r=0){return(ut[n[r+0]]+ut[n[r+1]]+ut[n[r+2]]+ut[n[r+3]]+"-"+ut[n[r+4]]+ut[n[r+5]]+"-"+ut[n[r+6]]+ut[n[r+7]]+"-"+ut[n[r+8]]+ut[n[r+9]]+"-"+ut[n[r+10]]+ut[n[r+11]]+ut[n[r+12]]+ut[n[r+13]]+ut[n[r+14]]+ut[n[r+15]]).toLowerCase()}let uf;const Yx=new Uint8Array(16);function Zx(){if(!uf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");uf=crypto.getRandomValues.bind(crypto)}return uf(Yx)}const Xx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),oy={randomUUID:Xx};function ih(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))??Zx();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,Px(l)}function ct(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 Qx=typeof Symbol=="function"&&Symbol.observable||"@@observable",uy=Qx,cf=()=>Math.random().toString(36).substring(7).split("").join("."),Kx={INIT:`@@redux/INIT${cf()}`,REPLACE:`@@redux/REPLACE${cf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${cf()}`},so=Kx;function Lh(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 Tb(n,r,i){if(typeof n!="function")throw new Error(ct(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ct(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ct(1));return i(Tb)(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,H)=>{h.set(H,N)}))}function _(){if(m)throw new Error(ct(3));return u}function S(N){if(typeof N!="function")throw new Error(ct(4));if(m)throw new Error(ct(5));let H=!0;g();const D=d++;return h.set(D,N),function(){if(H){if(m)throw new Error(ct(6));H=!1,g(),h.delete(D),f=null}}}function y(N){if(!Lh(N))throw new Error(ct(7));if(typeof N.type>"u")throw new Error(ct(8));if(typeof N.type!="string")throw new Error(ct(17));if(m)throw new Error(ct(9));try{m=!0,u=l(u,N)}finally{m=!1}return(f=h).forEach(D=>{D()}),N}function x(N){if(typeof N!="function")throw new Error(ct(10));l=N,y({type:so.REPLACE})}function T(){const N=S;return{subscribe(H){if(typeof H!="object"||H===null)throw new Error(ct(11));function D(){const R=H;R.next&&R.next(_())}return D(),{unsubscribe:N(D)}},[uy](){return this}}}return y({type:so.INIT}),{dispatch:y,subscribe:S,getState:_,replaceReducer:x,[uy]:T}}function $x(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:so.INIT})>"u")throw new Error(ct(12));if(typeof i(void 0,{type:so.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ct(13))})}function xb(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{$x(i)}catch(f){u=f}return function(h={},d){if(u)throw u;let m=!1;const g={};for(let _=0;_<l.length;_++){const S=l[_],y=i[S],x=h[S],T=y(x,d);if(typeof T>"u")throw d&&d.type,new Error(ct(14));g[S]=T,m=m||T!==x}return m=m||l.length!==Object.keys(h).length,m?g:h}}function lo(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...l)=>r(i(...l)))}function Jx(...n){return r=>(i,l)=>{const u=r(i,l);let f=()=>{throw new Error(ct(15))};const h={getState:u.getState,dispatch:(m,...g)=>f(m,...g)},d=n.map(m=>m(h));return f=lo(...d)(u.dispatch),{...u,dispatch:f}}}function Wx(n){return Lh(n)&&"type"in n&&typeof n.type=="string"}var Ab=Symbol.for("immer-nothing"),cy=Symbol.for("immer-draftable"),Gt=Symbol.for("immer-state");function un(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var ka=Object.getPrototypeOf;function Kr(n){return!!n&&!!n[Gt]}function Yn(n){var r;return n?Ob(n)||Array.isArray(n)||!!n[cy]||!!((r=n.constructor)!=null&&r[cy])||_o(n)||bo(n):!1}var eA=Object.prototype.constructor.toString();function Ob(n){if(!n||typeof n!="object")return!1;const r=ka(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)===eA}function oo(n,r){yo(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,l)=>r(l,i,n))}function yo(n){const r=n[Gt];return r?r.type_:Array.isArray(n)?1:_o(n)?2:bo(n)?3:0}function sh(n,r){return yo(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function Rb(n,r,i){const l=yo(n);l===2?n.set(r,i):l===3?n.add(i):n[r]=i}function tA(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function _o(n){return n instanceof Map}function bo(n){return n instanceof Set}function Yr(n){return n.copy_||n.base_}function lh(n,r){if(_o(n))return new Map(n);if(bo(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=Ob(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(ka(n),l)}else{const l=ka(n);if(l!==null&&i)return{...n};const u=Object.create(l);return Object.assign(u,n)}}function zh(n,r=!1){return vo(n)||Kr(n)||!Yn(n)||(yo(n)>1&&(n.set=n.add=n.clear=n.delete=nA),Object.freeze(n),r&&Object.entries(n).forEach(([i,l])=>zh(l,!0))),n}function nA(){un(2)}function vo(n){return Object.isFrozen(n)}var rA={};function $r(n){const r=rA[n];return r||un(0,n),r}var ts;function wb(){return ts}function aA(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function fy(n,r){r&&($r("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function oh(n){uh(n),n.drafts_.forEach(iA),n.drafts_=null}function uh(n){n===ts&&(ts=n.parent_)}function hy(n){return ts=aA(ts,n)}function iA(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_&&(oh(r),un(4)),Yn(n)&&(n=uo(r,n),r.parent_||co(r,n)),r.patches_&&$r("Patches").generateReplacementPatches_(i[Gt].base_,n,r.patches_,r.inversePatches_)):n=uo(r,i,[]),oh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==Ab?n:void 0}function uo(n,r,i){if(vo(r))return r;const l=r[Gt];if(!l)return oo(r,(u,f)=>my(n,l,r,u,f,i)),r;if(l.scope_!==n)return r;if(!l.modified_)return co(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),oo(f,(d,m)=>my(n,l,u,d,m,i,h)),co(n,u,!1),i&&n.patches_&&$r("Patches").generatePatches_(l,i,n.patches_,n.inversePatches_)}return l.copy_}function my(n,r,i,l,u,f,h){if(Kr(u)){const d=f&&r&&r.type_!==3&&!sh(r.assigned_,l)?f.concat(l):void 0,m=uo(n,u,d);if(Rb(i,l,m),Kr(m))n.canAutoFreeze_=!1;else return}else h&&i.add(u);if(Yn(u)&&!vo(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;uo(n,u),(!r||!r.scope_.parent_)&&typeof l!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,l)&&co(n,u)}}function co(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&zh(r,i)}function sA(n,r){const i=Array.isArray(n),l={type_:i?1:0,scope_:r?r.scope_:wb(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,f=kh;i&&(u=[l],f=ns);const{revoke:h,proxy:d}=Proxy.revocable(u,f);return l.draft_=d,l.revoke_=h,d}var kh={get(n,r){if(r===Gt)return n;const i=Yr(n);if(!sh(i,r))return lA(n,i,r);const l=i[r];return n.finalized_||!Yn(l)?l:l===ff(n.base_,r)?(hf(n),n.copy_[r]=fh(l,n)):l},has(n,r){return r in Yr(n)},ownKeys(n){return Reflect.ownKeys(Yr(n))},set(n,r,i){const l=Cb(Yr(n),r);if(l!=null&&l.set)return l.set.call(n.draft_,i),!0;if(!n.modified_){const u=ff(Yr(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(tA(i,u)&&(i!==void 0||sh(n.base_,r)))return!0;hf(n),ch(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 ff(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,hf(n),ch(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Yr(n),l=Reflect.getOwnPropertyDescriptor(i,r);return l&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:l.enumerable,value:i[r]}},defineProperty(){un(11)},getPrototypeOf(n){return ka(n.base_)},setPrototypeOf(){un(12)}},ns={};oo(kh,(n,r)=>{ns[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});ns.deleteProperty=function(n,r){return ns.set.call(this,n,r,void 0)};ns.set=function(n,r,i){return kh.set.call(this,n[0],r,i,n[0])};function ff(n,r){const i=n[Gt];return(i?Yr(i):n)[r]}function lA(n,r,i){var u;const l=Cb(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(n.draft_):void 0}function Cb(n,r){if(!(r in n))return;let i=ka(n);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=ka(i)}}function ch(n){n.modified_||(n.modified_=!0,n.parent_&&ch(n.parent_))}function hf(n){n.copy_||(n.copy_=lh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var oA=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"&&un(6),l!==void 0&&typeof l!="function"&&un(7);let u;if(Yn(r)){const f=hy(this),h=fh(r,void 0);let d=!0;try{u=i(h),d=!1}finally{d?oh(f):uh(f)}return fy(f,l),dy(u,f)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===Ab&&(u=void 0),this.autoFreeze_&&zh(u,!0),l){const f=[],h=[];$r("Patches").generateReplacementPatches_(r,u,f,h),l(f,h)}return u}else un(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){Yn(n)||un(8),Kr(n)&&(n=uA(n));const r=hy(this),i=fh(n,void 0);return i[Gt].isManual_=!0,uh(r),i}finishDraft(n,r){const i=n&&n[Gt];(!i||!i.isManual_)&&un(9);const{scope_:l}=i;return fy(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=$r("Patches").applyPatches_;return Kr(n)?l(n,r):this.produce(n,u=>l(u,r))}};function fh(n,r){const i=_o(n)?$r("MapSet").proxyMap_(n,r):bo(n)?$r("MapSet").proxySet_(n,r):sA(n,r);return(r?r.scope_:wb()).drafts_.push(i),i}function uA(n){return Kr(n)||un(10,n),Nb(n)}function Nb(n){if(!Yn(n)||vo(n))return n;const r=n[Gt];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=lh(n,r.scope_.immer_.useStrictShallowCopy_)}else i=lh(n,!0);return oo(i,(l,u)=>{Rb(i,l,Nb(u))}),r&&(r.finalized_=!1),i}var qt=new oA,Db=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 Mb(n){return({dispatch:i,getState:l})=>u=>f=>typeof f=="function"?f(i,l,n):u(f)}var cA=Mb(),fA=Mb,hA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?lo:lo.apply(null,arguments)};function py(n,r){function i(...l){if(r){let u=r(...l);if(!u)throw new Error(Fn(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=>Wx(l)&&l.type===n,i}var Bb=class Ji extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Ji.prototype)}static get[Symbol.species](){return Ji}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Ji(...r[0].concat(this)):new Ji(...r.concat(this))}};function gy(n){return Yn(n)?Db(n,()=>{}):n}function Gl(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function dA(n){return typeof n=="boolean"}var mA=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=r??{};let h=new Bb;return i&&(dA(i)?h.push(cA):h.push(fA(i.extraArgument))),h},pA="RTK_autoBatch",yy=n=>r=>{setTimeout(r,n)},gA=(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:yy(10):n.type==="callback"?n.queueNotification:yy(n.timeout),g=()=>{h=!1,f&&(f=!1,d.forEach(_=>_()))};return Object.assign({},l,{subscribe(_){const S=()=>u&&_(),y=l.subscribe(S);return d.add(_),()=>{y(),d.delete(_)}},dispatch(_){var S;try{return u=!((S=_==null?void 0:_.meta)!=null&&S[pA]),f=!u,f&&(h||(h=!0,m(g))),l.dispatch(_)}finally{u=!0}}})},yA=n=>function(i){const{autoBatch:l=!0}=i??{};let u=new Bb(n);return l&&u.push(gA(typeof l=="object"?l:void 0)),u};function _A(n){const r=mA(),{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(Lh(i))d=xb(i);else throw new Error(Fn(1));let m;typeof l=="function"?m=l(r):m=r();let g=lo;u&&(g=hA({trace:!1,...typeof u=="object"&&u}));const _=Jx(...m),S=yA(_);let y=typeof h=="function"?h(S):S();const x=g(...y);return Tb(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(Fn(28));if(d in r)throw new Error(Fn(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 bA(n){return typeof n=="function"}function vA(n,r){let[i,l,u]=jb(r),f;if(bA(n))f=()=>gy(n());else{const d=gy(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((_,S)=>{if(S)if(Kr(_)){const x=S(_,m);return x===void 0?_:x}else{if(Yn(_))return Db(_,y=>S(y,m));{const y=S(_,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 EA=Symbol.for("rtk-slice-createasyncthunk");function SA(n,r){return`${n}/${r}`}function TA({creators:n}={}){var i;const r=(i=n==null?void 0:n.asyncThunk)==null?void 0:i[EA];return function(u){const{name:f,reducerPath:h=f}=u;if(!f)throw new Error(Fn(11));const d=(typeof u.reducers=="function"?u.reducers(AA()):u.reducers)||{},m=Object.keys(d),g={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},_={addCase(R,E){const U=typeof R=="string"?R:R.type;if(!U)throw new Error(Fn(12));if(U in g.sliceCaseReducersByType)throw new Error(Fn(13));return g.sliceCaseReducersByType[U]=E,_},addMatcher(R,E){return g.sliceMatchers.push({matcher:R,reducer:E}),_},exposeAction(R,E){return g.actionCreators[R]=E,_},exposeCaseReducer(R,E){return g.sliceCaseReducersByName[R]=E,_}};m.forEach(R=>{const E=d[R],U={reducerName:R,type:SA(f,R),createNotation:typeof u.reducers=="function"};RA(E)?CA(U,E,_,r):OA(U,E,_)});function S(){const[R={},E=[],U=void 0]=typeof u.extraReducers=="function"?jb(u.extraReducers):[u.extraReducers],Y={...R,...g.sliceCaseReducersByType};return vA(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 E)K.addMatcher(re.matcher,re.reducer);U&&K.addDefaultCase(U)})}const y=R=>R,x=new Map,T=new WeakMap;let z;function N(R,E){return z||(z=S()),z(R,E)}function H(){return z||(z=S()),z.getInitialState()}function D(R,E=!1){function U(K){let re=K[R];return typeof re>"u"&&E&&(re=Gl(T,U,H)),re}function Y(K=y){const re=Gl(x,E,()=>new WeakMap);return Gl(re,K,()=>{const ee={};for(const[le,ie]of Object.entries(u.selectors??{}))ee[le]=xA(ie,K,()=>Gl(T,K,H),E);return ee})}return{reducerPath:R,getSelectors:Y,get selectors(){return Y(U)},selectSlice:U}}const O={name:f,reducer:N,actions:g.actionCreators,caseReducers:g.sliceCaseReducersByName,getInitialState:H,...D(h),injectInto(R,{reducerPath:E,...U}={}){const Y=E??h;return R.inject({reducerPath:Y,reducer:N},U),{...O,...D(Y,!0)}}};return O}}function xA(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 Gh=TA();function AA(){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 OA({type:n,reducerName:r,createNotation:i},l,u){let f,h;if("reducer"in l){if(i&&!wA(l))throw new Error(Fn(17));f=l.reducer,h=l.prepare}else f=l;u.addCase(n,f).exposeCaseReducer(r,f).exposeAction(r,h?py(n,h):py(n))}function RA(n){return n._reducerDefinitionType==="asyncThunk"}function wA(n){return n._reducerDefinitionType==="reducerWithPrepare"}function CA({type:n,reducerName:r},i,l,u){if(!u)throw new Error(Fn(18));const{payloadCreator:f,fulfilled:h,pending:d,rejected:m,settled:g,options:_}=i,S=u(n,f,_);l.exposeAction(r,S),h&&l.addCase(S.fulfilled,h),d&&l.addCase(S.pending,d),m&&l.addCase(S.rejected,m),g&&l.addMatcher(S.settled,g),l.exposeCaseReducer(r,{fulfilled:h||ql,pending:d||ql,rejected:m||ql,settled:g||ql})}function ql(){}function Fn(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 NA={formValues:{}},Ub=Gh({name:"start-screen",initialState:NA,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload}}}),{startChat:DA,showStartScreen:MA}=Ub.actions,BA=Ub.reducer,Hb="RESET_CHAT_STATE",jA=()=>({type:bb}),UA=()=>({type:Hb}),_y=n=>(r,i)=>{const l=i();return r({type:Uh,payload:{chunkId:n}}),fetch(`/cms/public/vector-store/chunks/${n}`,{headers:{"Accept-Language":l.intl.locale}}).then(u=>{if(!u.ok)throw r({type:yb}),new Error(`HTTP error! Status: ${u.status}`);return u.json()}).then(u=>{const f={...u,chunkId:n};r({type:gb,payload:f})})},HA=()=>({type:Hh}),qh="CONNECT",Ih="CONNECTING",Fh="CONNECTED",Vh="DISCONNECTED",Ph="RECONNECTED",Yh="RESTORE_SESSION_ID",Eo="START",So="CLEAR_SESSION_ID",LA=[qh,Ih,Fh,Vh,Ph,Yh],zA=(n,r)=>({type:qh,clientName:n,querystrings:r}),kA=n=>({type:Yh,sessionId:n}),GA=()=>({type:Ih}),qA=()=>({type:Fh}),IA=()=>({type:Vh}),FA=()=>({type:Ph}),Lb=(n,r)=>(i,l)=>{const u=l().connection,f=l().startScreen.formValues;let h=u.sessionId;h===void 0&&(h=ih());let d=u.userId;if(d===void 0){const m=kl.get("bubble-chat-user-id")||kl.get("bubble-chat-userId")||kl.get("bf-webclient-userId");d=m||ih(),kl.set("bubble-chat-user-id",d)}i({type:Eo,payload:{sessionId:h,userId:d,clientName:n,querystrings:{...r,...f}}})},To=(n,r)=>(i,l)=>{const u=l().connection.sessionId||"";if(i(VA(u)),i(UA()),l().settings.enableStartScreen)i(MA());else return i(Lb(n,r))},VA=n=>({type:So,payload:{sessionId:n}}),We=()=>{const n=po();return i=>{const l=n.formatMessage({id:i});return l===i?void 0:l}};var Xr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Xr||{}),zb=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(zb||{});const PA="_container_q2uun_1",YA="_chatcontent_q2uun_6",ZA="_accessabilityHidden_q2uun_12",df={container:PA,chatcontent:YA,accessabilityHidden:ZA},XA="_messageContainer_1m8fy_1",QA="_messages_1m8fy_13",by={messageContainer:XA,messages:QA};function Zr(){return Zr=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},Zr.apply(this,arguments)}const KA=["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 vy;(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"})(vy||(vy={}));const Ey=["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"}),Sy={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},$A=["style","script"],JA=["src","href","data","formAction","srcDoc","action"],WA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,eO=/mailto:/i,tO=/\n{2,}$/,kb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,nO=/^ *> ?/gm,rO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,aO=/^ {2,}\n/,iO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Gb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,qb=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,sO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,lO=/^(?:\n *)*\n/,oO=/\r\n?/g,uO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,cO=/^\[\^([^\]]+)]/,fO=/\f/g,hO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,dO=/^\s*?\[(x|\s)\]/,Ib=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Fb=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Vb=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,hh=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,mO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Pb=/^<!--[\s\S]*?(?:-->)/,pO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,dh=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,gO=/^\{.*\}$/,yO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,_O=/^<([^ >]+@[^ >]+)>/,bO=/^<([^ >]+:\/[^ >]+)>/,vO=/-([a-z])?/gi,Yb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,EO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,SO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,TO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,xO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,AO=/\t/g,OO=/(^ *\||\| *$)/g,RO=/^ *:-+: *$/,wO=/^ *:-+ *$/,CO=/^ *-+: *$/,xo="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",NO=new RegExp(`^([*_])\\1${xo}\\1\\1(?!\\1)`),DO=new RegExp(`^([*_])${xo}\\1(?!\\1)`),MO=new RegExp(`^(==)${xo}\\1`),BO=new RegExp(`^(~~)${xo}\\1`),jO=/^\\([^0-9A-Za-z\s])/,Ty=/\\([^0-9A-Za-z\s])/g,UO=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,HO=/^\n+/,LO=/^([ \t]*)/,zO=/\\([^\\])/g,kO=/(?:^|\n)( *)$/,Zh="(?:\\d+\\.)",Xh="(?:[*+-])";function Zb(n){return"( *)("+(n===1?Zh:Xh)+") +"}const Xb=Zb(1),Qb=Zb(2);function Kb(n){return new RegExp("^"+(n===1?Xb:Qb))}const GO=Kb(1),qO=Kb(2);function $b(n){return new RegExp("^"+(n===1?Xb:Qb)+"[^\\n]*(?:\\n(?!\\1"+(n===1?Zh:Xh)+" )[^\\n]*)*(\\n|$)","gm")}const IO=$b(1),FO=$b(2);function Jb(n){const r=n===1?Zh:Xh;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Wb=Jb(1),ev=Jb(2);function xy(n,r){const i=r===1,l=i?Wb:ev,u=i?IO:FO,f=i?GO:qO;return{match:Ga(function(h,d){const m=kO.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(tO,`
|
|
94
|
-
`).match(u);let S=!1;return{items:
|
|
93
|
+
*/var Og;function YT(){if(Og)return De;Og=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,b=n?Symbol.for("react.forward_ref"):60112,S=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,H=n?Symbol.for("react.responder"):60118,D=n?Symbol.for("react.scope"):60119;function O(E){if(typeof E=="object"&&E!==null){var U=E.$$typeof;switch(U){case r:switch(E=E.type,E){case m:case g:case l:case f:case u:case S:return E;default:switch(E=E&&E.$$typeof,E){case d:case b:case T:case x:case h:return E;default:return U}}case i:return U}}}function R(E){return O(E)===g}return De.AsyncMode=m,De.ConcurrentMode=g,De.ContextConsumer=d,De.ContextProvider=h,De.Element=r,De.ForwardRef=b,De.Fragment=l,De.Lazy=T,De.Memo=x,De.Portal=i,De.Profiler=f,De.StrictMode=u,De.Suspense=S,De.isAsyncMode=function(E){return R(E)||O(E)===m},De.isConcurrentMode=R,De.isContextConsumer=function(E){return O(E)===d},De.isContextProvider=function(E){return O(E)===h},De.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===r},De.isForwardRef=function(E){return O(E)===b},De.isFragment=function(E){return O(E)===l},De.isLazy=function(E){return O(E)===T},De.isMemo=function(E){return O(E)===x},De.isPortal=function(E){return O(E)===i},De.isProfiler=function(E){return O(E)===f},De.isStrictMode=function(E){return O(E)===u},De.isSuspense=function(E){return O(E)===S},De.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===l||E===g||E===f||E===u||E===S||E===y||typeof E=="object"&&E!==null&&(E.$$typeof===T||E.$$typeof===x||E.$$typeof===h||E.$$typeof===d||E.$$typeof===b||E.$$typeof===N||E.$$typeof===H||E.$$typeof===D||E.$$typeof===z)},De.typeOf=O,De}var Rg;function ZT(){return Rg||(Rg=1,tf.exports=YT()),tf.exports}var nf,wg;function XT(){if(wg)return nf;wg=1;var n=ZT(),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,b=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,y=Object.prototype;function x(T,z,N){if(typeof z!="string"){if(y){var H=S(z);H&&H!==y&&x(T,H,N)}var D=m(z);g&&(D=D.concat(g(z)));for(var O=h(T),R=h(z),E=0;E<D.length;++E){var U=D[E];if(!i[U]&&!(N&&N[U])&&!(R&&R[U])&&!(O&&O[U])){var Y=b(z,U);try{d(T,U,Y)}catch{}}}}return T}return nf=x,nf}XT();var Ah=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=I.createContext(null)):I.createContext(null);Ah.Consumer;var QT=Ah.Provider,KT=QT,$T=Ah;function po(){var n=I.useContext($T);return t_(n),n}var eh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(eh||(eh={}));var th;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(th||(th={}));function r_(n){var r=function(i){var l=po(),u=i.value,f=i.children,h=mo(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=th[n],r}function os(n){var r=function(i){var l=po(),u=i.value,f=i.children,h=mo(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=eh[n],r}function a_(n){return n&&Object.keys(n).reduce(function(r,i){var l=n[i];return r[i]=Qb(l)?VT(l):l,r},{})}var Cg=function(n,r,i,l){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var h=a_(l),d=Wf.apply(void 0,bn([n,r,i,h],u,!1));return Array.isArray(d)?FT(d):d},Ng=function(n,r){var i=n.defaultRichTextElements,l=mo(n,["defaultRichTextElements"]),u=a_(i),f=kT(te(te(te({},n_),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:Cg.bind(null,h,f.formatters),$t:Cg.bind(null,h,f.formatters)})};function rf(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 JT=function(n){Wt(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=Jb(),i.state={cache:i.cache,intl:Ng(rf(i.props),i.cache),prevConfig:rf(i.props)},i}return r.getDerivedStateFromProps=function(i,l){var u=l.prevConfig,f=l.cache,h=rf(i);return PT(u,h)?null:{intl:Ng(h,f),prevConfig:h}},r.prototype.render=function(){return t_(this.state.intl),I.createElement(KT,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=n_,r}(I.PureComponent);os("formatDate");os("formatTime");os("formatNumber");os("formatList");os("formatDisplayName");r_("formatDate");r_("formatTime");const WT="_app_1rj0t_1",ex={app:WT},Fa=gS,kt=_S,i_="%[a-f0-9]{2}",Dg=new RegExp("("+i_+")|([^%]+?)","gi"),Mg=new RegExp("("+i_+")+","gi");function nh(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([],nh(i),nh(l))}function tx(n){try{return decodeURIComponent(n)}catch{let r=n.match(Dg)||[];for(let i=1;i<r.length;i++)n=nh(r,i).join(""),r=n.match(Dg)||[];return n}}function nx(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=Mg.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=tx(i[0]);u!==i[0]&&(r[i[0]]=u)}i=Mg.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 rx(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return nx(n)}}function ax(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 s_(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 ix=n=>n==null,sx=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),rh=Symbol("encodeFragmentIdentifier");function lx(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,[$e(r,n),"[",u,"]"].join("")]:[...i,[$e(r,n),"[",$e(u,n),"]=",$e(l,n)].join("")]};case"bracket":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[$e(r,n),"[]"].join("")]:[...i,[$e(r,n),"[]=",$e(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,[$e(r,n),":list="].join("")]:[...i,[$e(r,n),":list=",$e(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?[[$e(i,n),r,$e(u,n)].join("")]:[[l,$e(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,$e(r,n)]:[...i,[$e(r,n),"=",$e(l,n)].join("")]}}function ox(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&&In(l,n).includes(n.arrayFormatSeparator);l=h?In(l,n):l;const d=f||h?l.split(n.arrayFormatSeparator).map(m=>In(m,n)):l===null?l:In(l,n);u[i]=d};case"bracket-separator":return(i,l,u)=>{const f=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!f){u[i]=l&&In(l,n);return}const h=l===null?[]:In(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 l_(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $e(n,r){return r.encode?r.strict?sx(n):encodeURIComponent(n):n}function In(n,r){return r.decode?rx(n):n}function o_(n){return Array.isArray(n)?n.sort():typeof n=="object"?o_(Object.keys(n)).sort((r,i)=>Number(r)-Number(i)).map(r=>n[r]):n}function u_(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function ux(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function Bg(n,r,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):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 Oh(n){n=u_(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function Rh(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},l_(r.arrayFormatSeparator);const i=ox(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]=s_(f,"=");h===void 0&&(h=f),d=d===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?d:In(d,r),i(In(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]=Bg(d,r,m)}else typeof f=="object"&&f!==null&&r.types[u]==="string"?l[u]=Object.values(f).join(r.arrayFormatSeparator):l[u]=Bg(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)?o_(h):h,u},Object.create(null))}function c_(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},l_(r.arrayFormatSeparator);const i=h=>r.skipNull&&ix(n[h])||r.skipEmptyString&&n[h]==="",l=lx(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?$e(h,r):Array.isArray(d)?d.length===0&&r.arrayFormat==="bracket-separator"?$e(h,r)+"[]":d.reduce(l(h),[]).join("&"):$e(h,r)+"="+$e(d,r)}).filter(h=>h.length>0).join("&")}function f_(n,r){var u;r={decode:!0,...r};let[i,l]=s_(n,"#");return i===void 0&&(i=n),{url:((u=i==null?void 0:i.split("?"))==null?void 0:u[0])??"",query:Rh(Oh(n),r),...r&&r.parseFragmentIdentifier&&l?{fragmentIdentifier:In(l,r)}:{}}}function h_(n,r){r={encode:!0,strict:!0,[rh]:!0,...r};const i=u_(n.url).split("?")[0]||"",l=Oh(n.url),u={...Rh(l,{sort:!1}),...n.query};let f=c_(u,r);f&&(f=`?${f}`);let h=ux(n.url);if(typeof n.fragmentIdentifier=="string"){const d=new URL(i);d.hash=n.fragmentIdentifier,h=r[rh]?d.hash:`#${n.fragmentIdentifier}`}return`${i}${f}${h}`}function d_(n,r,i){i={parseFragmentIdentifier:!0,[rh]:!1,...i};const{url:l,query:u,fragmentIdentifier:f}=f_(n,i);return h_({url:l,query:ax(u,r),fragmentIdentifier:f},i)}function cx(n,r,i){const l=Array.isArray(r)?u=>!r.includes(u):(u,f)=>!r(u,f);return d_(n,l,i)}const go=Object.freeze(Object.defineProperty({__proto__:null,exclude:cx,extract:Oh,parse:Rh,parseUrl:f_,pick:d_,stringify:c_,stringifyUrl:h_},Symbol.toStringTag,{value:"Module"}));var an={},Ht={},he={},jg;function It(){return jg||(jg=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 af={},Ug;function fx(){return Ug||(Ug=1,Object.defineProperty(af,"__esModule",{value:!0})),af}var Ol={},Hg;function hx(){if(Hg)return Ol;Hg=1,Object.defineProperty(Ol,"__esModule",{value:!0});const n=It(),r=()=>({type:n.DRAWER_CLOSE});return Ol.default=r,Ol}var Rl={},Lg;function dx(){if(Lg)return Rl;Lg=1,Object.defineProperty(Rl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:l}});return Rl.default=r,Rl}var wl={},zg;function mx(){if(zg)return wl;zg=1,Object.defineProperty(wl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return wl.default=r,wl}var Cl={},kg;function px(){if(kg)return Cl;kg=1,Object.defineProperty(Cl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Cl.default=r,Cl}var Nl={},Gg;function gx(){if(Gg)return Nl;Gg=1,Object.defineProperty(Nl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:l}});return Nl.default=r,Nl}var Dl={},qg;function yx(){if(qg)return Dl;qg=1,Object.defineProperty(Dl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Dl.default=r,Dl}var Ml={},Ve={},Ig;function wh(){if(Ig)return Ve;Ig=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.getStringRepresentationFromMessage=Ve.MessageTypeEnum=Ve.AudioMessage=Ve.FileMessage=Ve.ImageMessage=Ve.VideoMessage=Ve.MarkdownMessage=Ve.DetailMessage=Ve.TextMessage=Ve.Message=void 0;class n{constructor(S,y,x=[],T=[]){Ce(this,"type");Ce(this,"sender");Ce(this,"sources");Ce(this,"quickReplies");this.type=S,this.sender=y,this.sources=x,this.quickReplies=T}addQuickReply(S,y){this.quickReplies.push({label:S,payload:y})}}Ve.Message=n;class r extends n{constructor(y,x,T=[],z=[]){super(m.TEXT,x,T,z);Ce(this,"text");this.text=y}}Ve.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)}}Ve.DetailMessage=i;class l extends n{constructor(y,x,T=[],z=[]){super(m.MARKDOWN,x,T,z);Ce(this,"markdown");this.markdown=y}}Ve.MarkdownMessage=l;class u extends n{constructor(y,x){super(m.VIDEO,x);Ce(this,"url");this.url=y}}Ve.VideoMessage=u;class f extends n{constructor(y,x){super(m.IMAGE,x);Ce(this,"url");this.url=y}}Ve.ImageMessage=f;class h extends n{constructor(y,x){super(m.FILE,x);Ce(this,"url");this.url=y}}Ve.FileMessage=h;class d extends n{constructor(y,x){super(m.AUDIO,x);Ce(this,"url");this.url=y}}Ve.AudioMessage=d;var m;(function(b){b.TEXT="TEXT",b.DETAIL="DETAIL",b.MARKDOWN="MARKDOWN",b.VIDEO="VIDEO",b.IMAGE="IMAGE",b.FILE="FILE",b.AUDIO="AUDIO"})(m||(Ve.MessageTypeEnum=m={}));const g=b=>{switch(b.type){case m.TEXT:return b.text;case m.DETAIL:{const S=b;return`${S.title} // ${S.subtitle}`}case m.MARKDOWN:return b.markdown;case m.VIDEO:return`Video Url: ${b.url}`;case m.IMAGE:return`Image Url: ${b.url}`;case m.FILE:return`File Url: ${b.url}`;case m.AUDIO:return`Audio Url: ${b.url}`;default:throw new Error("Unknown message type "+b.type)}};return Ve.getStringRepresentationFromMessage=g,Ve}var Lt={},Fg;function Ch(){if(Fg)return Lt;Fg=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 Vg;function bx(){if(Vg)return Ml;Vg=1,Object.defineProperty(Ml,"__esModule",{value:!0});const n=wh(),r=Ch(),i=It(),l=u=>{const f=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:f}};return Ml.default=l,Ml}var Bl={},Pg;function _x(){if(Pg)return Bl;Pg=1,Object.defineProperty(Bl,"__esModule",{value:!0});const n=wh(),r=Ch(),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 Bl.default=l,Bl}var jl={},Yg;function vx(){if(Yg)return jl;Yg=1,Object.defineProperty(jl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return jl.default=r,jl}var Ul={},Zg;function Ex(){if(Zg)return Ul;Zg=1,Object.defineProperty(Ul,"__esModule",{value:!0});const n=It(),r=()=>({type:n.RESTART_CHAT_REQUEST});return Ul.default=r,Ul}var Hl={},Xg;function Sx(){if(Xg)return Hl;Xg=1,Object.defineProperty(Hl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return Hl.default=r,Hl}var Ll={},Qg;function Tx(){if(Qg)return Ll;Qg=1,Object.defineProperty(Ll,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:l}});return Ll.default=r,Ll}var Kg;function $g(){return Kg||(Kg=1,function(n){var r=Ht&&Ht.__createBinding||(Object.create?function(D,O,R,E){E===void 0&&(E=R);var U=Object.getOwnPropertyDescriptor(O,R);(!U||("get"in U?!O.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return O[R]}}),Object.defineProperty(D,E,U)}:function(D,O,R,E){E===void 0&&(E=R),D[E]=O[R]}),i=Ht&&Ht.__setModuleDefault||(Object.create?function(D,O){Object.defineProperty(D,"default",{enumerable:!0,value:O})}:function(D,O){D.default=O}),l=Ht&&Ht.__importStar||function(){var D=function(O){return D=Object.getOwnPropertyNames||function(R){var E=[];for(var U in R)Object.prototype.hasOwnProperty.call(R,U)&&(E[E.length]=U);return E},D(O)};return function(O){if(O&&O.__esModule)return O;var R={};if(O!=null)for(var E=D(O),U=0;U<E.length;U++)E[U]!=="default"&&r(R,O,E[U]);return i(R,O),R}}(),u=Ht&&Ht.__exportStar||function(D,O){for(var R in D)R!=="default"&&!Object.prototype.hasOwnProperty.call(O,R)&&r(O,D,R)},f=Ht&&Ht.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(n,"__esModule",{value:!0}),n.transcriptItemGuestReaction=n.sendMessageToGuest=n.restartChatRequest=n.requestNLUEvent=n.receiveTextMessageWithoutAnalysisFromGuest=n.receiveTextMessageFromGuest=n.openDrawer=n.guestLocaleChanged=n.guestDisconnected=n.guestConnected=n.feedbackFromGuestResponse=n.closeDrawer=n.ActionTypes=void 0,n.ActionTypes=l(It()),u(fx(),n);const h=f(hx());n.closeDrawer=h.default;const d=f(dx());n.feedbackFromGuestResponse=d.default;const m=f(mx());n.guestConnected=m.default;const g=f(px());n.guestDisconnected=g.default;const b=f(gx());n.guestLocaleChanged=b.default;const S=f(yx());n.openDrawer=S.default;const y=f(bx());n.receiveTextMessageFromGuest=y.default;const x=f(_x());n.receiveTextMessageWithoutAnalysisFromGuest=x.default;const T=f(vx());n.requestNLUEvent=T.default;const z=f(Ex());n.restartChatRequest=z.default;const N=f(Sx());n.sendMessageToGuest=N.default;const H=f(Tx());n.transcriptItemGuestReaction=H.default}(Ht)),Ht}var zt={},sf={},Jg;function xx(){return Jg||(Jg=1,Object.defineProperty(sf,"__esModule",{value:!0})),sf}var Pi={},Wg;function Ax(){if(Wg)return Pi;Wg=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.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.")}}return Pi.NullableKnowledgeBaseAdapter=n,Pi}var ey;function Ox(){if(ey)return zt;ey=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(xx());const l=Ax();return zt.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},zt}var Ir={},lf={},ty;function Rx(){return ty||(ty=1,Object.defineProperty(lf,"__esModule",{value:!0})),lf}var sn={},ny;function wx(){if(ny)return sn;ny=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.ButtonTypeEnum=sn.PostbackButton=sn.UrlButton=sn.Button=void 0;class n{constructor(f,h){Ce(this,"title");Ce(this,"type");this.title=f,this.type=h}}sn.Button=n;class r extends n{constructor(h,d){super(h,l.WEB_URL);Ce(this,"url");this.url=d}}sn.UrlButton=r;class i extends n{constructor(h,d){super(h,l.POSTBACK);Ce(this,"payload");this.payload=d}}sn.PostbackButton=i;var l;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(l||(sn.ButtonTypeEnum=l={})),sn}var of={},ry;function Cx(){return ry||(ry=1,Object.defineProperty(of,"__esModule",{value:!0})),of}var Yi={},ay;function Nx(){if(ay)return Yi;ay=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(Yi.SatisfactionEnum=n={})),Yi}var iy;function sy(){return iy||(iy=1,function(n){var r=Ir&&Ir.__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=Ir&&Ir.__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(Rx(),n),i(wx(),n),i(Cx(),n),i(Nx(),n),i(wh(),n),i(Ch(),n)}(Ir)),Ir}var ly;function Dx(){return ly||(ly=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=n.Actions=void 0,l($g(),n),n.Actions=u($g()),n.CMS=u(Ox()),l(sy(),n),n.Model=u(sy())}(an)),an}var Ee=Dx();const m_=n=>r=>(n.payload.type!==Ee.ActionTypes.MESSAGE_FROM_GUEST&&r(Ee.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),p_=n=>(r,i)=>{const{quickReplies:l}=i().chat,u=l.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return r(u?m_({...u,label:n}):Ee.receiveTextMessageFromGuest(n))},Nh="MESSAGE_TO_PARENT_PAGE",Dh="RESTORE_PREVIOUS_CHAT_MESSAGES",Mh="AUDIO_MESSAGE_FROM_USER",Mx="EXPORT_TRANSCRIPT",Bh="RECEIVE_SPEECH_TRANSCRIPTION",jh="ENABLE_CONVERSATION_RATING",g_="LOAD_SOURCE_INFOS_RESPONSE",y_="LOAD_SOURCE_INFOS_ERROR",Uh="LOAD_SOURCE_INFOS_REQUEST",Hh="CLOSE_SOURCE_INFOS",Bx="webclient.get.started",b_="webclient.window.expand",__="webclient.window.close",v_="webclient.transcript.pdf.download",jx=[Nh,Dh,Mh,Mx,Bh,jh,Uh,Hh],Ux=n=>({type:Mh,buffer:n}),Hx=n=>({type:Bh,transcription:n}),Lx=n=>({type:Ee.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),zx=()=>({type:v_}),kx=({rating:n})=>({type:jh,payload:{rating:n}}),Gx=(n,r)=>({type:Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),E_=n=>Ee.requestNLUEvent(n),qx=n=>({type:Dh,messages:n}),Ix=n=>{switch(n.type){case Ee.ButtonTypeEnum.WEB_URL:return S_(n.url);case Ee.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},Fx=n=>S_(n),S_=n=>({type:Nh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function zl(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 Vx={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 ah(n,r){function i(u,f,h){if(!(typeof document>"u")){h=zl({},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 b=decodeURIComponent(m[0]);if(h[b]=n.read(g,b),u===b)break}catch{}}return u?h[u]:h}}return Object.create({set:i,get:l,remove:function(u,f){i(u,"",zl({},f,{expires:-1}))},withAttributes:function(u){return ah(this.converter,zl({},this.attributes,u))},withConverter:function(u){return ah(zl({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var kl=ah(Vx,{path:"/"});const ut=[];for(let n=0;n<256;++n)ut.push((n+256).toString(16).slice(1));function Px(n,r=0){return(ut[n[r+0]]+ut[n[r+1]]+ut[n[r+2]]+ut[n[r+3]]+"-"+ut[n[r+4]]+ut[n[r+5]]+"-"+ut[n[r+6]]+ut[n[r+7]]+"-"+ut[n[r+8]]+ut[n[r+9]]+"-"+ut[n[r+10]]+ut[n[r+11]]+ut[n[r+12]]+ut[n[r+13]]+ut[n[r+14]]+ut[n[r+15]]).toLowerCase()}let uf;const Yx=new Uint8Array(16);function Zx(){if(!uf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");uf=crypto.getRandomValues.bind(crypto)}return uf(Yx)}const Xx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),oy={randomUUID:Xx};function ih(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))??Zx();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,Px(l)}function ct(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 Qx=typeof Symbol=="function"&&Symbol.observable||"@@observable",uy=Qx,cf=()=>Math.random().toString(36).substring(7).split("").join("."),Kx={INIT:`@@redux/INIT${cf()}`,REPLACE:`@@redux/REPLACE${cf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${cf()}`},so=Kx;function Lh(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 T_(n,r,i){if(typeof n!="function")throw new Error(ct(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ct(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ct(1));return i(T_)(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,H)=>{h.set(H,N)}))}function b(){if(m)throw new Error(ct(3));return u}function S(N){if(typeof N!="function")throw new Error(ct(4));if(m)throw new Error(ct(5));let H=!0;g();const D=d++;return h.set(D,N),function(){if(H){if(m)throw new Error(ct(6));H=!1,g(),h.delete(D),f=null}}}function y(N){if(!Lh(N))throw new Error(ct(7));if(typeof N.type>"u")throw new Error(ct(8));if(typeof N.type!="string")throw new Error(ct(17));if(m)throw new Error(ct(9));try{m=!0,u=l(u,N)}finally{m=!1}return(f=h).forEach(D=>{D()}),N}function x(N){if(typeof N!="function")throw new Error(ct(10));l=N,y({type:so.REPLACE})}function T(){const N=S;return{subscribe(H){if(typeof H!="object"||H===null)throw new Error(ct(11));function D(){const R=H;R.next&&R.next(b())}return D(),{unsubscribe:N(D)}},[uy](){return this}}}return y({type:so.INIT}),{dispatch:y,subscribe:S,getState:b,replaceReducer:x,[uy]:T}}function $x(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:so.INIT})>"u")throw new Error(ct(12));if(typeof i(void 0,{type:so.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ct(13))})}function x_(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{$x(i)}catch(f){u=f}return function(h={},d){if(u)throw u;let m=!1;const g={};for(let b=0;b<l.length;b++){const S=l[b],y=i[S],x=h[S],T=y(x,d);if(typeof T>"u")throw d&&d.type,new Error(ct(14));g[S]=T,m=m||T!==x}return m=m||l.length!==Object.keys(h).length,m?g:h}}function lo(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...l)=>r(i(...l)))}function Jx(...n){return r=>(i,l)=>{const u=r(i,l);let f=()=>{throw new Error(ct(15))};const h={getState:u.getState,dispatch:(m,...g)=>f(m,...g)},d=n.map(m=>m(h));return f=lo(...d)(u.dispatch),{...u,dispatch:f}}}function Wx(n){return Lh(n)&&"type"in n&&typeof n.type=="string"}var A_=Symbol.for("immer-nothing"),cy=Symbol.for("immer-draftable"),Gt=Symbol.for("immer-state");function un(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var ka=Object.getPrototypeOf;function Kr(n){return!!n&&!!n[Gt]}function Yn(n){var r;return n?O_(n)||Array.isArray(n)||!!n[cy]||!!((r=n.constructor)!=null&&r[cy])||bo(n)||_o(n):!1}var eA=Object.prototype.constructor.toString();function O_(n){if(!n||typeof n!="object")return!1;const r=ka(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)===eA}function oo(n,r){yo(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,l)=>r(l,i,n))}function yo(n){const r=n[Gt];return r?r.type_:Array.isArray(n)?1:bo(n)?2:_o(n)?3:0}function sh(n,r){return yo(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function R_(n,r,i){const l=yo(n);l===2?n.set(r,i):l===3?n.add(i):n[r]=i}function tA(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function bo(n){return n instanceof Map}function _o(n){return n instanceof Set}function Yr(n){return n.copy_||n.base_}function lh(n,r){if(bo(n))return new Map(n);if(_o(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=O_(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(ka(n),l)}else{const l=ka(n);if(l!==null&&i)return{...n};const u=Object.create(l);return Object.assign(u,n)}}function zh(n,r=!1){return vo(n)||Kr(n)||!Yn(n)||(yo(n)>1&&(n.set=n.add=n.clear=n.delete=nA),Object.freeze(n),r&&Object.entries(n).forEach(([i,l])=>zh(l,!0))),n}function nA(){un(2)}function vo(n){return Object.isFrozen(n)}var rA={};function $r(n){const r=rA[n];return r||un(0,n),r}var ts;function w_(){return ts}function aA(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function fy(n,r){r&&($r("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function oh(n){uh(n),n.drafts_.forEach(iA),n.drafts_=null}function uh(n){n===ts&&(ts=n.parent_)}function hy(n){return ts=aA(ts,n)}function iA(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_&&(oh(r),un(4)),Yn(n)&&(n=uo(r,n),r.parent_||co(r,n)),r.patches_&&$r("Patches").generateReplacementPatches_(i[Gt].base_,n,r.patches_,r.inversePatches_)):n=uo(r,i,[]),oh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==A_?n:void 0}function uo(n,r,i){if(vo(r))return r;const l=r[Gt];if(!l)return oo(r,(u,f)=>my(n,l,r,u,f,i)),r;if(l.scope_!==n)return r;if(!l.modified_)return co(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),oo(f,(d,m)=>my(n,l,u,d,m,i,h)),co(n,u,!1),i&&n.patches_&&$r("Patches").generatePatches_(l,i,n.patches_,n.inversePatches_)}return l.copy_}function my(n,r,i,l,u,f,h){if(Kr(u)){const d=f&&r&&r.type_!==3&&!sh(r.assigned_,l)?f.concat(l):void 0,m=uo(n,u,d);if(R_(i,l,m),Kr(m))n.canAutoFreeze_=!1;else return}else h&&i.add(u);if(Yn(u)&&!vo(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;uo(n,u),(!r||!r.scope_.parent_)&&typeof l!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,l)&&co(n,u)}}function co(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&zh(r,i)}function sA(n,r){const i=Array.isArray(n),l={type_:i?1:0,scope_:r?r.scope_:w_(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,f=kh;i&&(u=[l],f=ns);const{revoke:h,proxy:d}=Proxy.revocable(u,f);return l.draft_=d,l.revoke_=h,d}var kh={get(n,r){if(r===Gt)return n;const i=Yr(n);if(!sh(i,r))return lA(n,i,r);const l=i[r];return n.finalized_||!Yn(l)?l:l===ff(n.base_,r)?(hf(n),n.copy_[r]=fh(l,n)):l},has(n,r){return r in Yr(n)},ownKeys(n){return Reflect.ownKeys(Yr(n))},set(n,r,i){const l=C_(Yr(n),r);if(l!=null&&l.set)return l.set.call(n.draft_,i),!0;if(!n.modified_){const u=ff(Yr(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(tA(i,u)&&(i!==void 0||sh(n.base_,r)))return!0;hf(n),ch(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 ff(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,hf(n),ch(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Yr(n),l=Reflect.getOwnPropertyDescriptor(i,r);return l&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:l.enumerable,value:i[r]}},defineProperty(){un(11)},getPrototypeOf(n){return ka(n.base_)},setPrototypeOf(){un(12)}},ns={};oo(kh,(n,r)=>{ns[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});ns.deleteProperty=function(n,r){return ns.set.call(this,n,r,void 0)};ns.set=function(n,r,i){return kh.set.call(this,n[0],r,i,n[0])};function ff(n,r){const i=n[Gt];return(i?Yr(i):n)[r]}function lA(n,r,i){var u;const l=C_(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(n.draft_):void 0}function C_(n,r){if(!(r in n))return;let i=ka(n);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=ka(i)}}function ch(n){n.modified_||(n.modified_=!0,n.parent_&&ch(n.parent_))}function hf(n){n.copy_||(n.copy_=lh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var oA=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,b=>i.call(this,b,...g))}}typeof i!="function"&&un(6),l!==void 0&&typeof l!="function"&&un(7);let u;if(Yn(r)){const f=hy(this),h=fh(r,void 0);let d=!0;try{u=i(h),d=!1}finally{d?oh(f):uh(f)}return fy(f,l),dy(u,f)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===A_&&(u=void 0),this.autoFreeze_&&zh(u,!0),l){const f=[],h=[];$r("Patches").generateReplacementPatches_(r,u,f,h),l(f,h)}return u}else un(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){Yn(n)||un(8),Kr(n)&&(n=uA(n));const r=hy(this),i=fh(n,void 0);return i[Gt].isManual_=!0,uh(r),i}finishDraft(n,r){const i=n&&n[Gt];(!i||!i.isManual_)&&un(9);const{scope_:l}=i;return fy(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=$r("Patches").applyPatches_;return Kr(n)?l(n,r):this.produce(n,u=>l(u,r))}};function fh(n,r){const i=bo(n)?$r("MapSet").proxyMap_(n,r):_o(n)?$r("MapSet").proxySet_(n,r):sA(n,r);return(r?r.scope_:w_()).drafts_.push(i),i}function uA(n){return Kr(n)||un(10,n),N_(n)}function N_(n){if(!Yn(n)||vo(n))return n;const r=n[Gt];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=lh(n,r.scope_.immer_.useStrictShallowCopy_)}else i=lh(n,!0);return oo(i,(l,u)=>{R_(i,l,N_(u))}),r&&(r.finalized_=!1),i}var qt=new oA,D_=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 M_(n){return({dispatch:i,getState:l})=>u=>f=>typeof f=="function"?f(i,l,n):u(f)}var cA=M_(),fA=M_,hA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?lo:lo.apply(null,arguments)};function py(n,r){function i(...l){if(r){let u=r(...l);if(!u)throw new Error(Fn(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=>Wx(l)&&l.type===n,i}var B_=class Ji extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Ji.prototype)}static get[Symbol.species](){return Ji}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Ji(...r[0].concat(this)):new Ji(...r.concat(this))}};function gy(n){return Yn(n)?D_(n,()=>{}):n}function Gl(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function dA(n){return typeof n=="boolean"}var mA=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=r??{};let h=new B_;return i&&(dA(i)?h.push(cA):h.push(fA(i.extraArgument))),h},pA="RTK_autoBatch",yy=n=>r=>{setTimeout(r,n)},gA=(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:yy(10):n.type==="callback"?n.queueNotification:yy(n.timeout),g=()=>{h=!1,f&&(f=!1,d.forEach(b=>b()))};return Object.assign({},l,{subscribe(b){const S=()=>u&&b(),y=l.subscribe(S);return d.add(b),()=>{y(),d.delete(b)}},dispatch(b){var S;try{return u=!((S=b==null?void 0:b.meta)!=null&&S[pA]),f=!u,f&&(h||(h=!0,m(g))),l.dispatch(b)}finally{u=!0}}})},yA=n=>function(i){const{autoBatch:l=!0}=i??{};let u=new B_(n);return l&&u.push(gA(typeof l=="object"?l:void 0)),u};function bA(n){const r=mA(),{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(Lh(i))d=x_(i);else throw new Error(Fn(1));let m;typeof l=="function"?m=l(r):m=r();let g=lo;u&&(g=hA({trace:!1,...typeof u=="object"&&u}));const b=Jx(...m),S=yA(b);let y=typeof h=="function"?h(S):S();const x=g(...y);return T_(d,f,x)}function j_(n){const r={},i=[];let l;const u={addCase(f,h){const d=typeof f=="string"?f:f.type;if(!d)throw new Error(Fn(28));if(d in r)throw new Error(Fn(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 _A(n){return typeof n=="function"}function vA(n,r){let[i,l,u]=j_(r),f;if(_A(n))f=()=>gy(n());else{const d=gy(n);f=()=>d}function h(d=f(),m){let g=[i[m.type],...l.filter(({matcher:b})=>b(m)).map(({reducer:b})=>b)];return g.filter(b=>!!b).length===0&&(g=[u]),g.reduce((b,S)=>{if(S)if(Kr(b)){const x=S(b,m);return x===void 0?b:x}else{if(Yn(b))return D_(b,y=>S(y,m));{const y=S(b,m);if(y===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return b},d)}return h.getInitialState=f,h}var EA=Symbol.for("rtk-slice-createasyncthunk");function SA(n,r){return`${n}/${r}`}function TA({creators:n}={}){var i;const r=(i=n==null?void 0:n.asyncThunk)==null?void 0:i[EA];return function(u){const{name:f,reducerPath:h=f}=u;if(!f)throw new Error(Fn(11));const d=(typeof u.reducers=="function"?u.reducers(AA()):u.reducers)||{},m=Object.keys(d),g={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},b={addCase(R,E){const U=typeof R=="string"?R:R.type;if(!U)throw new Error(Fn(12));if(U in g.sliceCaseReducersByType)throw new Error(Fn(13));return g.sliceCaseReducersByType[U]=E,b},addMatcher(R,E){return g.sliceMatchers.push({matcher:R,reducer:E}),b},exposeAction(R,E){return g.actionCreators[R]=E,b},exposeCaseReducer(R,E){return g.sliceCaseReducersByName[R]=E,b}};m.forEach(R=>{const E=d[R],U={reducerName:R,type:SA(f,R),createNotation:typeof u.reducers=="function"};RA(E)?CA(U,E,b,r):OA(U,E,b)});function S(){const[R={},E=[],U=void 0]=typeof u.extraReducers=="function"?j_(u.extraReducers):[u.extraReducers],Y={...R,...g.sliceCaseReducersByType};return vA(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 E)K.addMatcher(re.matcher,re.reducer);U&&K.addDefaultCase(U)})}const y=R=>R,x=new Map,T=new WeakMap;let z;function N(R,E){return z||(z=S()),z(R,E)}function H(){return z||(z=S()),z.getInitialState()}function D(R,E=!1){function U(K){let re=K[R];return typeof re>"u"&&E&&(re=Gl(T,U,H)),re}function Y(K=y){const re=Gl(x,E,()=>new WeakMap);return Gl(re,K,()=>{const ee={};for(const[le,ie]of Object.entries(u.selectors??{}))ee[le]=xA(ie,K,()=>Gl(T,K,H),E);return ee})}return{reducerPath:R,getSelectors:Y,get selectors(){return Y(U)},selectSlice:U}}const O={name:f,reducer:N,actions:g.actionCreators,caseReducers:g.sliceCaseReducersByName,getInitialState:H,...D(h),injectInto(R,{reducerPath:E,...U}={}){const Y=E??h;return R.inject({reducerPath:Y,reducer:N},U),{...O,...D(Y,!0)}}};return O}}function xA(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 Gh=TA();function AA(){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 OA({type:n,reducerName:r,createNotation:i},l,u){let f,h;if("reducer"in l){if(i&&!wA(l))throw new Error(Fn(17));f=l.reducer,h=l.prepare}else f=l;u.addCase(n,f).exposeCaseReducer(r,f).exposeAction(r,h?py(n,h):py(n))}function RA(n){return n._reducerDefinitionType==="asyncThunk"}function wA(n){return n._reducerDefinitionType==="reducerWithPrepare"}function CA({type:n,reducerName:r},i,l,u){if(!u)throw new Error(Fn(18));const{payloadCreator:f,fulfilled:h,pending:d,rejected:m,settled:g,options:b}=i,S=u(n,f,b);l.exposeAction(r,S),h&&l.addCase(S.fulfilled,h),d&&l.addCase(S.pending,d),m&&l.addCase(S.rejected,m),g&&l.addMatcher(S.settled,g),l.exposeCaseReducer(r,{fulfilled:h||ql,pending:d||ql,rejected:m||ql,settled:g||ql})}function ql(){}function Fn(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 NA={formValues:{}},U_=Gh({name:"start-screen",initialState:NA,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload}}}),{startChat:DA,showStartScreen:MA}=U_.actions,BA=U_.reducer,H_="RESET_CHAT_STATE",jA=()=>({type:__}),UA=()=>({type:H_}),by=n=>(r,i)=>{const l=i();return r({type:Uh,payload:{chunkId:n}}),fetch(`/cms/public/vector-store/chunks/${n}`,{headers:{"Accept-Language":l.intl.locale}}).then(u=>{if(!u.ok)throw r({type:y_}),new Error(`HTTP error! Status: ${u.status}`);return u.json()}).then(u=>{const f={...u,chunkId:n};r({type:g_,payload:f})})},HA=()=>({type:Hh}),qh="CONNECT",Ih="CONNECTING",Fh="CONNECTED",Vh="DISCONNECTED",Ph="RECONNECTED",Yh="RESTORE_SESSION_ID",Eo="START",So="CLEAR_SESSION_ID",LA=[qh,Ih,Fh,Vh,Ph,Yh],zA=(n,r)=>({type:qh,clientName:n,querystrings:r}),kA=n=>({type:Yh,sessionId:n}),GA=()=>({type:Ih}),qA=()=>({type:Fh}),IA=()=>({type:Vh}),FA=()=>({type:Ph}),L_=(n,r)=>(i,l)=>{const u=l().connection,f=l().startScreen.formValues;let h=u.sessionId;h===void 0&&(h=ih());let d=u.userId;if(d===void 0){const m=kl.get("bubble-chat-user-id")||kl.get("bubble-chat-userId")||kl.get("bf-webclient-userId");d=m||ih(),kl.set("bubble-chat-user-id",d)}i({type:Eo,payload:{sessionId:h,userId:d,clientName:n,querystrings:{...r,...f}}})},To=(n,r)=>(i,l)=>{const u=l().connection.sessionId||"";if(i(VA(u)),i(UA()),l().settings.enableStartScreen)i(MA());else return i(L_(n,r))},VA=n=>({type:So,payload:{sessionId:n}}),We=()=>{const n=po();return i=>{const l=n.formatMessage({id:i});return l===i?void 0:l}};var Xr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Xr||{}),z_=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(z_||{});const PA="_container_q2uun_1",YA="_chatcontent_q2uun_6",ZA="_accessabilityHidden_q2uun_12",df={container:PA,chatcontent:YA,accessabilityHidden:ZA},XA="_messageContainer_1m8fy_1",QA="_messages_1m8fy_13",_y={messageContainer:XA,messages:QA};function Zr(){return Zr=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},Zr.apply(this,arguments)}const KA=["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 vy;(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"})(vy||(vy={}));const Ey=["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"}),Sy={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},$A=["style","script"],JA=["src","href","data","formAction","srcDoc","action"],WA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,eO=/mailto:/i,tO=/\n{2,}$/,k_=/^(\s*>[\s\S]*?)(?=\n\n|$)/,nO=/^ *> ?/gm,rO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,aO=/^ {2,}\n/,iO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,G_=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,q_=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,sO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,lO=/^(?:\n *)*\n/,oO=/\r\n?/g,uO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,cO=/^\[\^([^\]]+)]/,fO=/\f/g,hO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,dO=/^\s*?\[(x|\s)\]/,I_=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,F_=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,V_=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,hh=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,mO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,P_=/^<!--[\s\S]*?(?:-->)/,pO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,dh=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,gO=/^\{.*\}$/,yO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,bO=/^<([^ >]+@[^ >]+)>/,_O=/^<([^ >]+:\/[^ >]+)>/,vO=/-([a-z])?/gi,Y_=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,EO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,SO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,TO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,xO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,AO=/\t/g,OO=/(^ *\||\| *$)/g,RO=/^ *:-+: *$/,wO=/^ *:-+ *$/,CO=/^ *-+: *$/,xo="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",NO=new RegExp(`^([*_])\\1${xo}\\1\\1(?!\\1)`),DO=new RegExp(`^([*_])${xo}\\1(?!\\1)`),MO=new RegExp(`^(==)${xo}\\1`),BO=new RegExp(`^(~~)${xo}\\1`),jO=/^\\([^0-9A-Za-z\s])/,Ty=/\\([^0-9A-Za-z\s])/g,UO=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,HO=/^\n+/,LO=/^([ \t]*)/,zO=/\\([^\\])/g,kO=/(?:^|\n)( *)$/,Zh="(?:\\d+\\.)",Xh="(?:[*+-])";function Z_(n){return"( *)("+(n===1?Zh:Xh)+") +"}const X_=Z_(1),Q_=Z_(2);function K_(n){return new RegExp("^"+(n===1?X_:Q_))}const GO=K_(1),qO=K_(2);function $_(n){return new RegExp("^"+(n===1?X_:Q_)+"[^\\n]*(?:\\n(?!\\1"+(n===1?Zh:Xh)+" )[^\\n]*)*(\\n|$)","gm")}const IO=$_(1),FO=$_(2);function J_(n){const r=n===1?Zh:Xh;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const W_=J_(1),ev=J_(2);function xy(n,r){const i=r===1,l=i?W_:ev,u=i?IO:FO,f=i?GO:qO;return{match:Ga(function(h,d){const m=kO.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,b=h[0].replace(tO,`
|
|
94
|
+
`).match(u);let S=!1;return{items:b.map(function(y,x){const T=f.exec(y)[0].length,z=new RegExp("^ {1,"+T+"}","gm"),N=y.replace(z,"").replace(f,""),H=x===b.length-1,D=N.indexOf(`
|
|
95
95
|
|
|
96
96
|
`)!==-1||H&&S;S=D;const O=m.inline,R=m.list;let E;m.list=!0,D?(m.inline=!1,E=rs(N)+`
|
|
97
97
|
|
|
98
|
-
`):(m.inline=!0,E=rs(N));const U=d(E,m);return m.inline=O,m.list=R,U}),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,
|
|
99
|
-
`).map(function(g){return Ay(g,d,m,!0)})}(n[3],r,i):[],f=Ay(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 Oy(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function Ga(n){return n.inline=1,n}function yr(n){return Ga(function(r,i){return i.inline?n.exec(r):null})}function
|
|
98
|
+
`):(m.inline=!0,E=rs(N));const U=d(E,m);return m.inline=O,m.list=R,U}),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,b){return n("li",{key:b},d(g,m))}))}}const VO=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),PO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,tv=[k_,G_,q_,I_,V_,F_,Y_,W_,ev],YO=[...tv,/^[^\n]+(?: \n|\n{2,})/,hh,P_,dh];function rs(n){let r=n.length;for(;r>0&&n[r-1]<=" ";)r--;return n.slice(0,r)}function Zi(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 ZO(n){return CO.test(n)?"right":RO.test(n)?"center":wO.test(n)?"left":null}function Ay(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,b)=>{m.trim()==="|"&&(d(),l)?g!==0&&g!==b.length-1&&f.push([]):h+=m}),d(),i.inTable=u,f}function XO(n,r,i){i.inline=!0;const l=n[2]?n[2].replace(OO,"").split("|").map(ZO):[],u=n[3]?function(h,d,m){return h.trim().split(`
|
|
99
|
+
`).map(function(g){return Ay(g,d,m,!0)})}(n[3],r,i):[],f=Ay(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 Oy(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function Ga(n){return n.inline=1,n}function yr(n){return Ga(function(r,i){return i.inline?n.exec(r):null})}function br(n){return Ga(function(r,i){return i.inline||i.simple?n.exec(r):null})}function Gn(n){return function(r,i){return i.inline||i.simple?null:n.exec(r)}}function Xi(n){return Ga(function(r){return n.exec(r)})}function QO(n,r){if(r.inline||r.simple)return null;let i="";n.split(`
|
|
100
100
|
`).every(u=>(u+=`
|
|
101
101
|
`,!tv.some(f=>f.test(u))&&(i+=u,!!u.trim())));const l=rs(i);return l==""?null:[i,,l]}const KO=/(javascript|vbscript|data(?!:image)):/i;function $O(n){try{const r=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(KO.test(r))return null}catch{return null}return n}function Ry(n){return n.replace(zO,"$1")}function eo(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 JO(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 WO(n,r,i){const l=i.inline||!1;i.inline=!1;const u=n(r,i);return i.inline=l,u}const mf=(n,r,i)=>({children:eo(r,n[2],i)});function pf(){return{}}function gf(){return null}function eR(...n){return n.filter(Boolean).join(" ")}function yf(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 tR(n="",r={}){function i(y,x,...T){const z=yf(r.overrides,`${y}.props`,{});return r.createElement(function(N,H){const D=yf(H,N);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:yf(H,`${N}.component`,N):N}(y,r.overrides),Zr({},x,z,{className:eR(x==null?void 0:x.className,z.className)||void 0}),...T)}function l(y){y=y.replace(hO,"");let x=!1;r.forceInline?x=!0:r.forceBlock||(x=xO.test(y)===!1);const T=g(m(x?y:`${rs(y).replace(HO,"")}
|
|
102
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(WA);return T?T.reduce(function(z,N){const H=N.indexOf("=");if(H!==-1){const D=function(U){return U.indexOf("-")!==-1&&U.match(pO)===null&&(U=U.replace(vO,function(Y,K){return K.toUpperCase()})),U}(N.slice(0,H)).trim(),O=function(U){const Y=U[0];return(Y==='"'||Y==="'")&&U.length>=2&&U[U.length-1]===Y?U.slice(1,-1):U}(N.slice(H+1).trim()),R=Ey[D]||D;if(R==="ref")return z;const E=z[R]=function(U,Y,K,re){return Y==="style"?function(ee){const le=[];let ie="",de=!1,Ie=!1,Te="";if(!ee)return le;for(let X=0;X<ee.length;X++){const J=ee[X];if(J!=='"'&&J!=="'"||de||(Ie?J===Te&&(Ie=!1,Te=""):(Ie=!0,Te=J)),J==="("&&ie.endsWith("url")?de=!0:J===")"&&de&&(de=!1),J!==";"||Ie||de)ie+=J;else{const
|
|
104
|
-
`},[ue.paragraph]:{match:Ga(QO),order:3,parse:mf,render:(y,x,T)=>i("p",{key:T.key},x(y.children,T))},[ue.ref]:{match:yr(EO),order:0,parse:y=>(h[y[1]]={target:y[2],title:y[4]},{}),render:gf},[ue.refImage]:{match:
|
|
105
|
-
`).replace(fO,"").replace(AO," ")}(z),N)}}(d),g=(_=function(y,x){return function(T,z,N){const H=y[T.type].render;return x?x(()=>H(T,z,N),T,z,N):H(T,z,N)}}(d,r.renderRule),function y(x,T={}){if(Array.isArray(x)){const z=T.key,N=[];let H=!1;for(let D=0;D<x.length;D++){T.key=D;const O=y(x[D],T),R=typeof O=="string";R&&H?N[N.length-1]+=O:O!==null&&N.push(O),H=R}return T.key=z,N}return _(x,y,T)});var _;const S=l(n);return f.length?i("div",null,S,i("footer",{key:"footer"},f.map(function(y){return i("div",{id:r.slugify(y.identifier,Zi),key:y.identifier},y.identifier,g(m(y.footnote,{inline:!0})))}))):S}const bn=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,KA);return I.cloneElement(tR(r,i),l)},nR="_generalConditionsContainer_55hjg_1",rR="_generalConditions_55hjg_1",aR="_generalConditionsHeader_55hjg_15",iR="_generalConditionsBody_55hjg_26",sR="_generalConditionsAccept_55hjg_35",Qi={generalConditionsContainer:nR,generalConditions:rR,generalConditionsHeader:aR,generalConditionsBody:iR,generalConditionsAccept:sR},lR=()=>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"})}),oR=()=>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"})}),uR="general-conditions.header",cR="general-conditions.body",wy="general-conditions.accept-conditions-note",fR=()=>{const n=We(),[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(uR),h=n(wy);return b.jsxs("div",{className:Z(Qi.generalConditionsContainer,"chat__generalConditions"),children:[!!(f!=null&&f.length)&&b.jsxs("div",{className:Qi.generalConditions,children:[b.jsxs("div",{role:"button",onClick:l,onKeyDown:u,tabIndex:0,className:Z(Qi.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[b.jsx(bn,{children:f}),r?b.jsx(oR,{}):b.jsx(lR,{})]}),b.jsx("div",{className:Z(Qi.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&b.jsx(bn,{children:n(cR)||""})})]}),!!(h!=null&&h.length)&&b.jsx("div",{className:Z(Qi.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:b.jsx(bn,{children:n(wy)||""})})]})},hR="_message_59o8c_1",dR="_messageBot_59o8c_9",mR="_messageBotLast_59o8c_19",pR="_avatar_59o8c_19",gR="_messageBotFirst_59o8c_24",yR="_messageBotAnimated_59o8c_37",_R="_messageGuest_59o8c_48",bR="_messageGuestFirst_59o8c_54",vR="_messageGuestLast_59o8c_60",ER="_botAvatar_59o8c_74",SR="_agentAvatar_59o8c_78",TR="_bubble_59o8c_82",xR="_bubbleContent_59o8c_88",AR="_bubbleLeft_59o8c_102",OR="_leftText_59o8c_113",RR="_bubbleRight_59o8c_120",wR="_rightText_59o8c_130",CR="_sourceInfoReference_59o8c_162",NR="_sourceInfoReferenceActive_59o8c_176",me={message:hR,messageBot:dR,messageBotLast:mR,avatar:pR,messageBotFirst:gR,messageBotAnimated:yR,messageGuest:_R,messageGuestFirst:bR,messageGuestLast:vR,botAvatar:ER,agentAvatar:SR,bubble:TR,bubbleContent:xR,bubbleLeft:AR,leftText:OR,bubbleRight:RR,rightText:wR,sourceInfoReference:CR,sourceInfoReferenceActive:NR},DR="_botMessageActions_1dl7x_1",MR="_alwaysVisible_1dl7x_22",BR="_reported_1dl7x_29",jR="_action_1dl7x_33",br={botMessageActions:DR,alwaysVisible:MR,reported:BR,action:jR},UR=({alwaysVisible:n,reaction:r,botMessageRef:i,onReaction:l})=>{const u=We(),[f,h]=I.useState(!1),d=g=>()=>l(g),m=I.useCallback(async()=>{if(i.current)try{h(!0);const g=i.current.innerHTML,_=i.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([g],{type:"text/html"}),"text/plain":new Blob([_],{type:"text/plain"})})]),await new Promise(S=>setTimeout(S,1500))}finally{h(!1)}},[i]);return b.jsxs("div",{className:Z(br.botMessageActions,n&&br.alwaysVisible,r&&br.reported),children:[b.jsx("button",{className:Z(br.action,r==="GOOD"&&br.reported,"tooltip--top-right"),tabIndex:0,"aria-label":u(r==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":u(r==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:d(r==="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:r==="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"})})}),b.jsx("button",{className:Z(br.action,r==="BAD"&&br.reported,"tooltip--top-right"),tabIndex:0,"aria-label":u(r==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":u(r==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:d(r==="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:r==="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(br.action,"tooltip--top-right"),tabIndex:0,"aria-label":u("bot-bubble.copy"),"data-title":u("bot-bubble.copy"),onClick:m,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:f?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"})})})]})},nv=I.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,children:f,onReaction:h},d)=>{const m=We(),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(UR,{alwaysVisible:i&&u,reaction:n.reaction,botMessageRef:g,onReaction:h})]})}),HR="_sourceList_1n31h_1",LR="_source_1n31h_1",zR="_label_1n31h_37",_f={sourceList:HR,source:LR,label:zR},rv=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"})}),av=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"})}),iv=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"})}),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:"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"})}),kR=({type:n,...r})=>{switch(n){case"WEBSITE":return b.jsx(sv,{...r});case"PDF":return b.jsx(iv,{...r});case"DOCX":return b.jsx(rv,{...r});default:return b.jsx(av,{...r})}},Qh=({sources:n,onLinkClick:r})=>{const i=We(),l=f=>()=>{r(f.url)},u=f=>h=>{(h.key==="Enter"||h.key===" ")&&r(f.url)};return n.length?b.jsx("ul",{className:_f.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(f=>b.jsx("li",{className:_f.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(kR,{type:f.type,"aria-hidden":"true"}),b.jsx("div",{className:_f.label,children:f.label})]})},f.url))}):null},GR="_button_3ui4g_1",qR="_buttonDefault_3ui4g_13",IR="_buttonPrimary_3ui4g_28",as={button:GR,buttonDefault:qR,buttonPrimary:IR},Ao=({className:n,children:r,...i})=>b.jsx("button",{className:Z(as.button,n),type:"button",...i,children:r}),FR="_title_b904h_1",VR="_subtitle_b904h_6",PR="_buttons_b904h_11",YR="_button_b904h_11",ZR="_imageContainer_b904h_34",XR="_image_b904h_34",QR="_video_container_b904h_49",KR="_video_b904h_49",$R="_only_b904h_63",At={title:FR,subtitle:VR,buttons:PR,button:YR,imageContainer:ZR,image:XR,video_container:QR,video:KR,only:$R},JR=({buttons:n,onButtonClick:r})=>b.jsx("div",{className:Z(At.buttons,"chat__bubbleButtons"),children:n.map((i,l)=>b.jsx(Ao,{className:Z(At.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},l))});var Il={},Fl={},Vl={},Cy;function WR(){if(Cy)return Vl;Cy=1,Object.defineProperty(Vl,"__esModule",{value:!0});var n=qa(),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 Vl.default=function(l,u,f){return r.createElement("a",{href:l,key:f},u)},Vl}var Pl={},Ny;function ew(){return Ny||(Ny=1,Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=function(n){return n}),Pl}var Yl={},bf,Dy;function tw(){return Dy||(Dy=1,bf=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),bf}var vf,My;function nw(){return My||(My=1,vf=/[\0-\x1F\x7F-\x9F]/),vf}var Ef,By;function rw(){return By||(By=1,Ef=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Ef}var Sf,jy;function aw(){return jy||(jy=1,Sf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),Sf}var Tf,Uy;function iw(){return Uy||(Uy=1,Tf=function(n){var r={};r.src_Any=tw().source,r.src_Cc=nw().source,r.src_Z=rw().source,r.src_P=aw().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}),Tf}var xf,Hy;function sw(){if(Hy)return xf;Hy=1;function n(O){var R=Array.prototype.slice.call(arguments,1);return R.forEach(function(E){E&&Object.keys(E).forEach(function(U){O[U]=E[U]})}),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,E){return R||d.hasOwnProperty(E)},!1)}var g={"http:":{validate:function(O,R,E){var U=O.slice(R);return E.re.http||(E.re.http=new RegExp("^\\/\\/"+E.re.src_auth+E.re.src_host_port_strict+E.re.src_path,"i")),E.re.http.test(U)?U.match(E.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(O,R,E){var U=O.slice(R);return E.re.no_http||(E.re.no_http=new RegExp("^"+E.re.src_auth+"(?:localhost|(?:(?:"+E.re.src_domain+")\\.)+"+E.re.src_domain_root+")"+E.re.src_port+E.re.src_host_terminator+E.re.src_path,"i")),E.re.no_http.test(U)?R>=3&&O[R-3]===":"||R>=3&&O[R-3]==="/"?0:U.match(E.re.no_http)[0].length:0}},"mailto:":{validate:function(O,R,E){var U=O.slice(R);return E.re.mailto||(E.re.mailto=new RegExp("^"+E.re.src_email_name+"@"+E.re.src_host_strict,"i")),E.re.mailto.test(U)?U.match(E.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]",S="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,E){var U=R.slice(E);return O.test(U)?U.match(O)[0].length:0}}function T(){return function(O,R){R.normalize(O)}}function z(O){var R=O.re=iw()(O.__opts__),E=O.__tlds__.slice();O.onCompile(),O.__tlds_replaced__||E.push(_),E.push(R.src_xn),R.src_tlds=E.join("|");function U(ee){return ee.replace("%TLDS%",R.src_tlds)}R.email_fuzzy=RegExp(U(R.tpl_email_fuzzy),"i"),R.link_fuzzy=RegExp(U(R.tpl_link_fuzzy),"i"),R.link_no_ip_fuzzy=RegExp(U(R.tpl_link_no_ip_fuzzy),"i"),R.host_fuzzy_test=RegExp(U(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 E=O.__index__,U=O.__last_index__,Y=O.__text_cache__.slice(E,U);this.schema=O.__schema__.toLowerCase(),this.index=E+R,this.lastIndex=U+R,this.raw=Y,this.text=Y,this.url=Y}function H(O,R){var E=new N(O,R);return O.__compiled__[E.schema].normalize(E,O),E}function D(O,R){if(!(this instanceof D))return new D(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__=S,this.__tlds_replaced__=!1,this.re={},z(this)}return D.prototype.add=function(R,E){return this.__schemas__[R]=E,z(this),this},D.prototype.set=function(R){return this.__opts__=n(this.__opts__,R),this},D.prototype.test=function(R){if(this.__text_cache__=R,this.__index__=-1,!R.length)return!1;var E,U,Y,K,re,ee,le,ie,de;if(this.re.schema_test.test(R)){for(le=this.re.schema_search,le.lastIndex=0;(E=le.exec(R))!==null;)if(K=this.testSchemaAt(R,E[2],le.lastIndex),K){this.__schema__=E[2],this.__index__=E.index+E[1].length,this.__last_index__=E.index+E[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__)&&(U=R.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(re=U.index+U[1].length,(this.__index__<0||re<this.__index__)&&(this.__schema__="",this.__index__=re,this.__last_index__=U.index+U[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},D.prototype.pretest=function(R){return this.re.pretest.test(R)},D.prototype.testSchemaAt=function(R,E,U){return this.__compiled__[E.toLowerCase()]?this.__compiled__[E.toLowerCase()].validate(R,U,this):0},D.prototype.match=function(R){var E=0,U=[];this.__index__>=0&&this.__text_cache__===R&&(U.push(H(this,E)),E=this.__last_index__);for(var Y=E?R.slice(E):R;this.test(Y);)U.push(H(this,E)),Y=Y.slice(this.__last_index__),E+=this.__last_index__;return U.length?U:null},D.prototype.tlds=function(R,E){return R=Array.isArray(R)?R:[R],E?(this.__tlds__=this.__tlds__.concat(R).sort().filter(function(U,Y,K){return U!==K[Y-1]}).reverse(),z(this),this):(this.__tlds__=R.slice(),this.__tlds_replaced__=!0,z(this),this)},D.prototype.normalize=function(R){R.schema||(R.url="http://"+R.url),R.schema==="mailto:"&&!/^mailto:/i.test(R.url)&&(R.url="mailto:"+R.url)},D.prototype.onCompile=function(){},xf=D,xf}const lw=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 Ly;function ow(){if(Ly)return Yl;Ly=1,Object.defineProperty(Yl,"__esModule",{value:!0});var n=sw(),r=u(n),i=lw,l=u(i);function u(h){return h&&h.__esModule?h:{default:h}}var f=new r.default;return f.tlds(l.default),Yl.default=function(h){return f.match(h)},Yl}var Zl={},zy;function uw(){return zy||(zy=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.default=function(n){return n}),Zl}var ky;function cw(){if(ky)return Fl;ky=1,Object.defineProperty(Fl,"__esModule",{value:!0});var n=function(){function H(D,O){for(var R=0;R<O.length;R++){var E=O[R];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(D,E.key,E)}}return function(D,O,R){return O&&H(D.prototype,O),R&&H(D,R),D}}(),r=qa(),i=y(r),l=WR(),u=S(l),f=ew(),h=S(f),d=ow(),m=S(d),g=uw(),_=S(g);function S(H){return H&&H.__esModule?H:{default:H}}function y(H){if(H&&H.__esModule)return H;var D={};if(H!=null)for(var O in H)Object.prototype.hasOwnProperty.call(H,O)&&(D[O]=H[O]);return D.default=H,D}function x(H,D){if(!(H instanceof D))throw new TypeError("Cannot call a class as a function")}function T(H,D){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:H}function z(H,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);H.prototype=Object.create(D&&D.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(H,D):H.__proto__=D)}var N=function(H){z(D,H);function D(){return x(this,D),T(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return n(D,[{key:"parseString",value:function(R){var E=this;if(R==="")return R;var U=this.props.matchDecorator(R);if(!U)return R;var Y=[],K=0;return U.forEach(function(re,ee){re.index>K&&Y.push(R.substring(K,re.index));var le=E.props.hrefDecorator(re.url),ie=E.props.textDecorator(re.text),de=E.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 E=this,U=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:U},this.parse(R.props.children)):Array.isArray(R)?R.map(function(Y,K){return E.parse(Y,K)}):R}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),D}(i.Component);return N.defaultProps={componentDecorator:u.default,hrefDecorator:h.default,matchDecorator:m.default,textDecorator:_.default},Fl.default=N,Fl}var Gy;function fw(){if(Gy)return Il;Gy=1,Object.defineProperty(Il,"__esModule",{value:!0});var n=cw(),r=i(n);function i(l){return l&&l.__esModule?l:{default:l}}return Il.default=r.default,Il}var hw=fw();const dw=ho(hw),mw="_text_gp0s0_1",pw="_command_gp0s0_5",qy={text:mw,command:pw},lv=({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:qy.command,children:["/",f]}),h.split(`
|
|
106
|
-
`).map((d,m)=>b.jsxs("span",{className:qy.text,children:[b.jsx(dw,{componentDecorator:u,children:d}),b.jsx("br",{})]},m))]})},gw=({subtitle:n,onLinkClick:r})=>n?b.jsx("div",{className:At.subtitle,children:b.jsx(lv,{text:n,onLinkClick:r})}):null,Iy="newtab#",ov=({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(Iy)===0?b.jsx("a",{href:h.slice(Iy.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(bn,{options:{...r,overrides:{a:u}},children:n})},yw=({text:n,onLinkClick:r})=>n?b.jsx("div",{children:b.jsx(ov,{markdown:n,onLinkClick:r})}):null,_w=({title:n})=>n?b.jsx("h1",{className:At.title,children:n}):null,bw=({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(_w,{title:n}),b.jsx(yw,{text:r,onLinkClick:f}),b.jsx(gw,{subtitle:i,onLinkClick:f}),b.jsx(JR,{buttons:l,onButtonClick:u})]}):null,vw=({alt:n,imageUrl:r,itemUrl:i,hasBody:l})=>r?i?i.indexOf("youtube.com")>-1?b.jsx("div",{className:At.video_container,children:b.jsx("iframe",{className:Z(At.video,{[At.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:At.imageContainer,children:b.jsx("img",{className:Z(At.image,{[At.only]:!l}),src:r,alt:n})})}):b.jsx("div",{className:At.imageContainer,children:b.jsx("img",{className:Z(At.image,{[At.only]:!l}),src:r,alt:n})}):null,Ew=({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(At.detailMessage),children:[b.jsx(vw,{hasBody:g,imageUrl:l,itemUrl:u,alt:n||i}),g&&b.jsx(bw,{title:n,text:r,subtitle:i,buttons:f,onLinkClick:m,onButtonClick:d}),b.jsx(Qh,{sources:h,onLinkClick:m})]})},Sw=I.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},l)=>{const u=We();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})})})}),Tw="_markdown_nw7vg_1",uv={markdown:Tw},Xl="source-info-reference",xw=({markdown:n,sources:r,onLinkClick:i})=>{const l=Fa(),u=Aw(),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(_y(m)))},d=m=>()=>{l(_y(m))};return I.useLayoutEffect(()=>{document.querySelectorAll(`.${Xl}`).forEach(m=>{var S,y,x,T;const g=m.previousSibling;g&&g.nodeType===Node.TEXT_NODE&&((S=g.textContent)!=null&&S.endsWith(" "))&&((y=g.textContent)!=null&&y.trim().length)&&m.classList.add(`${Xl}--before-space`);const _=m.nextSibling;_&&_.nodeType===Node.TEXT_NODE&&((x=_.textContent)!=null&&x.startsWith(" "))&&((T=_.textContent)!=null&&T.trim().length)&&m.classList.add(`${Xl}--after-space`)})},[n]),b.jsxs("div",{className:me.bubbleContent,children:[b.jsx("div",{className:uv.markdown,children:b.jsx(ov,{markdown:n,onLinkClick:i,markdownOptions:{renderRule(m,g,_,S){if(g.type===ue.footnoteReference){const y=g.text===f;return b.jsx("span",{className:Z(me.sourceInfoReference,y&&me.sourceInfoReferenceActive,Xl),children:b.jsx("a",{type:"button",tabIndex:0,onClick:d(g.text),onKeyDown:h(g.text),children:u(g.text)})},S.key)}return m()}}})}),b.jsx(Qh,{sources:r,onLinkClick:i})]})},Aw=()=>{const n=[];return i=>{const l=n.indexOf(i);return l>-1?l+1:(n.push(i),n.length)}},Ow=({text:n,commands:r,sources:i,onLinkClick:l})=>b.jsxs("div",{className:me.bubbleContent,children:[b.jsx(lv,{text:n,commands:r,onLinkClick:l}),b.jsx(Qh,{sources:i,onLinkClick:l})]}),Rw=I.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:f,onButtonClick:h,onLinkClick:d},m)=>{const g=ww(n,r,h,d);switch(n.sender.type){case Ee.UserType.GUEST:return b.jsx(Sw,{ref:m,isFirstMessageBySender:l,isLastMessageBySender:u,children:g});default:{const _=S=>f(n._id,S);return b.jsx(nv,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:_,children:g})}}}),ww=(n,r,i,l)=>{switch(n.type){case Ee.MessageTypeEnum.TEXT:{const u=n;return b.jsx(Ow,{text:u.text,commands:r,sources:n.sources||[],onLinkClick:l})}case Ee.MessageTypeEnum.DETAIL:{const u=n;return b.jsx(Ew,{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(xw,{markdown:u.markdown,sources:u.sources||[],onLinkClick:l})}}},Cw=(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,Nw=O_.memo(Rw,Cw),Dw="_ticontainer_xg0dn_1",Mw="_tiblock_xg0dn_5",Bw="_tidot_xg0dn_12",Ki={ticontainer:Dw,tiblock:Mw,tidot:Bw},jw=({isTyping:n=!1})=>b.jsx("div",{className:Ki.ticontainer,children:b.jsx("div",{className:Ki.tiblock,children:n?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:Z(Ki.tidot,"chat__typingIndicator")}),b.jsx("div",{className:Z(Ki.tidot,"chat__typingIndicator")}),b.jsx("div",{className:Z(Ki.tidot,"chat__typingIndicator")})]}):null})}),Uw=Object.assign({_id:"typing-indicator"},new Ee.TextMessage("",new Ee.BotUser)),Hw=({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),S=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(by.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&d.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[S&&b.jsx(fR,{}),b.jsxs("ul",{className:by.messages,children:[n.map((T,z)=>{const N=Lw(T,y),H=zw(T,z,n,r);y=T.sender.type;const D=z+1===x;return b.jsx(Nw,{ref:D?_:null,message:T,commands:i,isLastMessage:D,isFirstMessageBySender:N,isLastMessageBySender:H,onButtonClick:u,onLinkClick:f,onReaction:l},D&&!r?"last":T._id)}),r&&b.jsx(nv,{ref:g,message:Uw,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:y!==Ee.UserType.BOT,isLastMessageBySender:!0,children:b.jsx(jw,{isTyping:!0})},"last")]})]})},Lw=(n,r)=>!r||r!==n.sender.type,zw=(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)},kw="_bottomSheet_jp8dl_1",Gw="_bottomSheetOpen_jp8dl_15",qw="_bottomSheetClose_jp8dl_20",Vn={bottomSheet:kw,bottomSheetOpen:Gw,bottomSheetClose:qw},Iw="_container_xc2nx_1",Fy={container:Iw},Fw=({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(Fy.container,Vn.bottomSheet,{[Vn.bottomSheetOpen]:!!n,[Vn.bottomSheetClose]:i&&!n}),children:u&&b.jsx("iframe",{title:"Drawer",src:u,className:Fy.iframe})})},Vw="_container_tr4tn_1",Pw={container:Vw},Yw=({title:n,href:r,children:i})=>b.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),Zw=()=>{const r=We()("powered-by");return r&&r.length?b.jsx("div",{className:Z(Pw.container,"chat__poweredBy"),children:b.jsx(bn,{options:{overrides:{a:Yw}},children:r})}):null},Vy=({className:n,children:r,...i})=>b.jsx(Ao,{className:Z(as.buttonDefault,n),type:"button",...i,children:r}),is=({className:n,children:r,...i})=>b.jsx(Ao,{className:Z(as.buttonPrimary,n),...i,children:r}),Xw="_container_h23mk_1",Qw="_formContainer_h23mk_17",Kw="_emailInput_h23mk_22",$w="_description_h23mk_52",Jw="_actions_h23mk_57",Ww="_validationError_h23mk_67",eC="_submitted_h23mk_74",qn={container:Xw,formContainer:Qw,emailInput:Kw,description:$w,actions:Jw,validationError:Ww,submitted:eC},tC=({visible:n,enableTranscriptExportPdf:r,enableTranscriptExportEmail:i,onEmailExport:l,onPdfExport:u,onClose:f})=>{const h=We(),[d,m]=I.useState(void 0),[g,_]=I.useState(!1),[S,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))},H=O=>{const R=O.target.value.trim(),E=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);T(E?R:"")},D=()=>{y(!0),u(),setTimeout(f,3*1e3)};return b.jsxs("div",{className:Z(qn.container,Vn.bottomSheet,{[Vn.bottomSheetOpen]:d===!0,[Vn.bottomSheetClose]:d===!1}),children:[r&&b.jsxs(b.Fragment,{children:[b.jsx("h2",{children:h("export-transcript.pdf.title")}),b.jsx(bn,{className:qn.description,children:h("export-transcript.pdf.description")||""}),b.jsxs("div",{className:qn.actions,children:[b.jsx(Vy,{onClick:f,children:h("export-transcript.pdf.cancel")}),b.jsx(is,{onClick:D,disabled:S,children:h("export-transcript.pdf.download")})]})]}),i&&b.jsxs(b.Fragment,{children:[b.jsx("h2",{children:h("export-transcript.email.title")}),b.jsx(bn,{className:qn.description,children:h("export-transcript.email.description")||""}),b.jsxs("form",{onSubmit:N,className:qn.formContainer,children:[b.jsxs("div",{children:[b.jsx("input",{disabled:g,ref:z,type:"email",placeholder:h("export-transcript.email.placeholder"),className:qn.emailInput,onChange:H}),(x==null?void 0:x.length)===0?b.jsx("div",{className:qn.validationError,children:h("export-transcript.email.invalid")}):null]}),b.jsxs("div",{className:qn.actions,children:[b.jsx(Vy,{onClick:f,children:h("export-transcript.email.cancel")}),b.jsx(is,{type:"submit",disabled:g||x===void 0||x.length===0,children:h("export-transcript.email.send")})]})]}),g&&b.jsx("div",{className:qn.submitted,children:h("export-transcript.email.success")})]})]})},nC="_inputContainer_fi5ao_1",rC={inputContainer:nC},aC="_blockUserInput_pot9c_1",iC={blockUserInput:aC},sC=({visible:n})=>{const r=We();return n?b.jsx("div",{className:Z(iC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},lC="_commandsDropdown_5ytuv_1",oC="_commands_5ytuv_1",uC="_command_5ytuv_1",cC="_commandActive_5ytuv_46",fC="_commandsSelections_5ytuv_55",Wi={commandsDropdown:lC,commands:oC,command:uC,commandActive:cC,commandsSelections:fC},hC=(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])},dC=(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])},mC=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:l})=>{const u=I.useRef(null),f=We(),[h,d]=I.useState([]),[m,g]=I.useState(Py(r)),[_,S]=I.useState(0),y=x=>i(`/${x}`);return hC(u,()=>d([])),dC(h,_,y,S,d),I.useEffect(()=>{g(Py(r))},[r]),I.useEffect(()=>{const x=n.length||0;x===0||x>m||!n.startsWith("/")?d([]):d(r.filter(pC(n))),S(0)},[r,n,m]),I.useEffect(()=>{l(!!h.length)},[h,l]),h.length?b.jsx("div",{ref:u,className:Wi.commandsDropdown,children:b.jsx("ul",{className:Wi.commands,role:"listbox",children:h.map((x,T)=>b.jsxs("li",{className:Z([Wi.command,_===T&&Wi.commandActive]),role:"option",onClick:()=>y(x),onMouseOver:()=>S(T),children:[b.jsxs("h1",{children:["/",x]}),b.jsx("p",{children:f(`commands.${x}`)})]},x))})}):null},Py=n=>Math.max(...n.map(r=>r.length+1)),pC=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},Yy=3,gC=({commands:n,onSelectCommand:r})=>{const i=We(),[l,u]=I.useState(!1),f=g=>()=>{r(`/${g}`),u(!1)},h=()=>{u(!0)},d=()=>{u(!1)},m=l?n:n.slice(0,Yy);return b.jsxs("div",{className:Wi.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>Yy?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]})},yC="_callToActionContainer_bkfcm_1",_C="_callToActionTitle_bkfcm_23",bC="_rateOverlay_bkfcm_30",vC="_body_bkfcm_52",EC="_footer_bkfcm_60",SC="_actions_bkfcm_73",TC="_bubbles_bkfcm_101",xC="_stars_bkfcm_203",AC="_starsSmall_bkfcm_215",OC="_starsLarge_bkfcm_219",RC="_star_bkfcm_203",wC="_starReadonly_bkfcm_236",CC="_starIcon_bkfcm_246",NC="_starsDescriptionContainer_bkfcm_264",DC="_starsDescription_bkfcm_264",bt={callToActionContainer:yC,callToActionTitle:_C,rateOverlay:bC,body:vC,footer:EC,actions:SC,bubbles:TC,stars:xC,starsSmall:AC,starsLarge:OC,star:RC,starReadonly:wC,starIcon:CC,starsDescriptionContainer:NC,starsDescription:DC},MC=({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(bt.star,{[bt.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(bt.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"})})})})})},Zy=5,cv=({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(bt.stars,{[bt.starsSmall]:r==="small",[bt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:h,children:Array(Zy).fill(0).map((g,_)=>b.jsx(MC,{value:u===void 0?n:u,index:_,count:Zy,readonly:i,onHover:d(_),onClick:m(_)},_))})},BC=({visible:n,onRate:r})=>{const i=We();return n?b.jsxs("div",{className:Z(bt.callToActionContainer,"chat__conversationRating__callToAction"),children:[b.jsx("div",{className:Z(bt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),b.jsx(cv,{value:0,size:"small",onChange:r})]}):null},Af=({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})})]}),jC=({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})})}),UC=({visible:n,rating:r,onRate:i,onClose:l})=>{const u=We(),[f,h]=I.useState(r),[d,m]=I.useState(void 0),[g,_]=I.useState(void 0),[S,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 H=u(`conversation-rating.overlay.bot-message.rate-feedback.value-${f}`);m(H!=null&&H.length?H:void 0)},[f,u]),I.useEffect(()=>{S.submitted?setTimeout(()=>T(!0),S.feedback.length?500:0):T(!1)},[S]);const N=H=>{var O,R;H.preventDefault();const D=((R=(O=z.current)==null?void 0:O.value)==null?void 0:R.trim())||"";i(f,D),y({submitted:!0,feedback:D})};return b.jsx("div",{className:Z(bt.rateOverlay,Vn.bottomSheet,"chat__conversationRating__overlay",{[Vn.bottomSheetOpen]:g===!0,[Vn.bottomSheetClose]:g===!1}),children:b.jsxs("form",{onSubmit:N,children:[b.jsxs("div",{className:Z(bt.body,"chat__conversationRating__overlay__body"),children:[b.jsx("div",{}),b.jsx("div",{className:Z(bt.bubbles),children:n&&d&&b.jsxs(b.Fragment,{children:[b.jsxs(Af,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[b.jsx("h2",{children:u("conversation-rating.overlay.title")}),b.jsxs("div",{className:Z(bt.starsDescriptionContainer),children:[b.jsx(cv,{value:f,size:"large",readonly:S.submitted,onChange:h}),b.jsxs("div",{className:Z(bt.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(Af,{isFirstMessageBySender:!1,isLastMessageBySender:!x||!!S.feedback.length,children:b.jsx("div",{children:d})}),!!S.feedback.length&&b.jsx(jC,{children:S.feedback}),x&&b.jsx(Af,{isFirstMessageBySender:!!S.feedback.length,isLastMessageBySender:!0,children:b.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),b.jsxs("div",{className:Z(bt.footer,"chat__conversationRating__overlay__footer"),children:[!S.submitted&&b.jsx("input",{ref:z,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),b.jsx("div",{className:Z(bt.actions,"chat__conversationRating__overlay__footer__actions"),children:S.submitted?b.jsx(is,{type:"button",onClick:l,children:u("conversation-rating.overlay.action.close")}):b.jsx(is,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},HC=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:l,setShowRatingOverlay:u,onRate:f})=>{const[h,d]=I.useState(0),m=S=>{d(S),u(!0)},g=()=>u(!1),_=!r&&i>=1;return n?b.jsxs(b.Fragment,{children:[b.jsx(BC,{visible:_,onRate:m}),b.jsx(UC,{visible:l,rating:h,onRate:f,onClose:g})]}):null},LC=I.memo(HC),zC="_inputWrapper_e3h44_1",kC="_withOpenCommands_e3h44_14",GC="_messageInputWrapper_e3h44_20",qC="_messageInput_e3h44_20",IC="_buttons_e3h44_44",FC="_button_e3h44_44",Fr={inputWrapper:zC,withOpenCommands:kC,messageInputWrapper:GC,messageInput:qC,buttons:IC,button:FC},VC="_audioRecorder_g845f_1",PC="_audioButton_g845f_6",YC="_recorderIcon_g845f_37",ZC="_spinning_g845f_60",Vr={audioRecorder:VC,audioButton:PC,recorderIcon:YC,spinning:ZC},Xy=2048,fo=16e3;class XC extends O_.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(Xy,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+=Xy}}handleClickSubmitAudio(){const i=KC(this.leftchannel,this.recordingLength),l=$C(i,this.sampleRate||0),u=QC(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:Vr.audioRecorder,children:[this.state.recordingState==="none"&&b.jsx("button",{className:Z(Vr.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:Vr.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:Vr.audioRecorder,children:[b.jsx("button",{className:Z(Vr.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:Vr.recorderIcon}),b.jsx("button",{className:Z(Vr.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 QC=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);Ql(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Ql(i,8,"WAVE"),Ql(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,fo,!0),i.setUint32(28,fo*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Ql(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"})},Ql=(n,r,i)=>{for(let l=0;l<i.length;l++)n.setUint8(r+l,i.charCodeAt(l))},KC=(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},$C=(n,r)=>{if(fo===r)return n;const i=r/fo,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},JC=({disabled:n,textInput:r,commandsVisible:i,onTextInput:l,onTextInputSubmit:u,onAudioRecorded:f,onOpenTranscriptExportModal:h})=>{const d=We(),m=I.useRef(null),{enableTranscriptExportPdf:g,enableTranscriptExportEmail:_,enableSpeechSupport:S}=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 H=N.target.value;l(H),N.target.style.height="";const{scrollHeight:D}=N.target;N.target.style.height=`${D>150?150:D}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(Fr.inputWrapper,i&&Fr.withOpenCommands,"chat__textInput"),onSubmit:x,children:[b.jsx("div",{className:Fr.messageInputWrapper,children:b.jsx("textarea",{id:"user_input",ref:m,className:Fr.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(Fr.buttons,"chat__buttons"),children:[!r.length&&(g||_)&&b.jsx("button",{type:"button",className:Z(Fr.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||!S||navigator.mediaDevices===void 0?b.jsx("button",{className:Z(Fr.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"})})}):S&&navigator.mediaDevices!==void 0&&b.jsx(XC,{translate:d,onAudioRecorded:f})]})]})},WC="_quickReplies_83npe_1",e3="_quickReply_83npe_9",Qy={quickReplies:WC,quickReply:e3},t3=({quickReplies:n,onQuickReplyClick:r})=>n.length?b.jsx("div",{className:Z(Qy.quickReplies,"chat__quickReplies"),children:n.map(i=>b.jsx(Ao,{tabIndex:0,className:Z(Qy.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,Ky=5e3,n3=1e3,r3=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:l,showRatingOverlay:u,commands:f,setShowRatingOverlay:h,onTextInput:d,onRate:m,onQuickReplyClick:g,onAudioRecorded:_,onOpenTranscriptExportModal:S})=>{const[y,x]=I.useState(""),[T,z]=I.useState(!1),[N,H]=I.useState(!1),D=I.useRef(0),O=I.useRef(0);I.useEffect(()=>{if(T&&!n){const U=D.current?Date.now()-D.current:0;U>Ky?z(!1):setTimeout(()=>{z(!1)},Ky-U)}},[T,n]),I.useEffect(()=>{T&&(D.current=Date.now())},[T]);const R=U=>{const Y=Date.now()-O.current<n3;return N?!1:n||Y?(z(!0),!1):(d(U),x(""),O.current=Date.now(),!0)},E=U=>{x(U+" ")};return b.jsxs("div",{className:Z(rC.inputContainer),children:[b.jsx(t3,{quickReplies:r,onQuickReplyClick:g}),b.jsx(sC,{visible:T}),!T&&b.jsx(LC,{conversationRating:i,numberOfMessagesFromGuest:l,onRate:m,showRatingOverlay:u,setShowRatingOverlay:h}),!!(f!=null&&f.length)&&b.jsx(mC,{text:y,commands:f,onSelectCommand:E,onVisibilityChange:H}),b.jsx(JC,{textInput:y,disabled:T,commandsVisible:N,onTextInput:x,onTextInputSubmit:R,onOpenTranscriptExportModal:S,onAudioRecorded:_}),!!(f!=null&&f.length)&&b.jsx(gC,{commands:f,onSelectCommand:x})]})},a3=({clientName:n,messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:f,onMessageFromUser:h,onRate:d,onQuickReplyClick:m,onButtonClick:g,onLinkClick:_,onAudioRecorded:S,onTranscriptExport:y,onPdfExport:x,onTranscriptItemReaction:T})=>{const z=Fa(),N=kt(ee=>ee.connection.connectionState),{enableTranscriptExportPdf:H,enableTranscriptExportEmail:D,commands:O}=kt(ee=>ee.settings),[R,E]=I.useState(!1),[U,Y]=I.useState(!1),K=H||D,re=r.filter(ee=>ee.sender.type===zb.GUEST).length;return I.useEffect(()=>{if(N===Xr.CONNECTED){const ee=go.parse(window.location.search);z(Lb(n,ee))}},[n,N,z]),b.jsxs("div",{className:df.container,children:[b.jsxs("div",{className:Z([df.chatcontent,(R||U)&&df.accessabilityHidden]),children:[b.jsx(Hw,{messages:r,isBotTyping:l,commands:O,onButtonClick:g,onLinkClick:_,onTranscriptItemReaction:T}),b.jsx(r3,{isBotTyping:l,quickReplies:l?[]:i,numberOfMessagesFromGuest:re,conversationRating:R?{enabled:!1}:f,showRatingOverlay:U,setShowRatingOverlay:Y,commands:O,onRate:d,onQuickReplyClick:m,onTextInput:h,onAudioRecorded:S,onOpenTranscriptExportModal:()=>E(!R)}),b.jsx(Zw,{})]}),K&&b.jsx(tC,{enableTranscriptExportPdf:H,enableTranscriptExportEmail:D,visible:R,onEmailExport:y,onPdfExport:x,onClose:()=>E(!1)}),b.jsx(Fw,{contentUrl:u})]})},i3=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}},s3=n=>({onRestartChat:(r,i)=>n(To(r,i)),onMessageFromUser:r=>n(pb(r)),onRate:(r,i)=>n(Gx(r,i)),onAudioRecorded:r=>n(Ux(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(mb(r)),onNluEvent:r=>n(Eb(r)),onButtonClick:r=>n(Ix(r)),onLinkClick:r=>n(Fx(r)),onTranscriptExport:r=>n(Lx(r)),onPdfExport:()=>n(zx()),onTranscriptItemReaction:(r,i)=>n(Ee.transcriptItemGuestReaction(r,i||null))}),l3=fS(i3,s3)(a3),fv=()=>o3(window.location.pathname),o3=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},hv=()=>I.useMemo(()=>fv(),[]),dv=()=>{const[n,r]=I.useState(!1);return I.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},Kh=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},u3=({onClick:n})=>{const r=We();return dv()?b.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:Kh(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},c3=()=>{const n=We(),r=dv(),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:Kh(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},f3="_header_1hky6_1",h3="_logoContainer_1hky6_13",d3="_logo_1hky6_13",m3="_actions_1hky6_27",Kl={header:f3,logoContainer:h3,logo:d3,actions:m3},p3=({onClick:n})=>{const r=We();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:Kh(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"})]})})},$y=({className:n,withActions:r=!0,...i})=>{const l=Fa(),u=hv(),f=()=>{const d=go.parse(window.location.search);l(To(u,d))},h=()=>{l(jA())};return b.jsxs("div",{className:Z([Kl.header,n]),...i,children:[b.jsx("div",{className:Kl.logoContainer,children:b.jsx("div",{className:Kl.logo})}),b.jsxs("div",{className:Kl.actions,children:[r&&b.jsx(p3,{onClick:f}),b.jsx(c3,{}),b.jsx(u3,{onClick:h})]})]})},g3="_chatwindow_6v6ob_1",y3="_chatwindowWithAside_6v6ob_46",Jy={chatwindow:g3,chatwindowWithAside:y3},_3="_sourceInfos_1878a_1",b3="_sourceDetails_1878a_16",v3="_sourceHeader_1878a_23",E3="_sourceHeaderIcon_1878a_43",S3="_openSourceButton_1878a_47",T3="_closeSourceInfosButton_1878a_70",x3="_sourceContent_1878a_85",A3="_loadingSourceInfos_1878a_109",O3="_loading_1878a_109",R3="_loadingError_1878a_123",Sn={sourceInfos:_3,sourceDetails:b3,sourceHeader:v3,sourceHeaderIcon:E3,openSourceButton:S3,closeSourceInfosButton:T3,sourceContent:x3,loadingSourceInfos:A3,loading:O3,loadingError:R3},w3=({onClick:n})=>{const r=We();return b.jsx("button",{className:Z(Sn.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"})})})},C3=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"})}),N3=({type:n,...r})=>{switch(n){case"WEBSITE":return b.jsx(sv,{...r});case"PDF":return b.jsx(iv,{...r});case"DOCX":return b.jsx(rv,{...r});case"TEXT":return b.jsx(C3,{...r});default:return b.jsx(av,{...r})}},D3=({sourceInfos:n,onClose:r})=>b.jsxs("div",{className:Sn.sourceHeader,children:[b.jsx("div",{className:Sn.sourceHeaderIcon,children:n&&b.jsx(N3,{type:n.knowledgeBaseType})}),b.jsx("div",{children:n&&b.jsx("h1",{children:n.title})}),b.jsx(w3,{onClick:r})]}),M3=({title:n,href:r,children:i})=>b.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),B3=({className:n,children:r,...i})=>b.jsx("a",{className:Z(as.button,as.buttonPrimary,n),type:"button",...i,children:r}),j3=({label:n,url:r})=>b.jsxs(B3,{className:Sn.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"})})})]}),U3=({sourceInfos:n})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:Z(Sn.sourceContent,uv.markdown),children:b.jsx(bn,{options:{overrides:{a:M3}},children:n.content})}),b.jsx(j3,{label:n.title,url:n.url})]}),H3=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,L3=()=>{const n=We();return b.jsxs("div",{className:Sn.loadingError,children:[b.jsx("h1",{children:n("source-infos.error.title")}),b.jsx("img",{src:H3,title:n("source-infos.error.title")}),b.jsx("p",{children:n("source-infos.error.info")})]})},z3=()=>b.jsx("div",{className:Sn.loadingSourceInfos,children:b.jsx("svg",{className:Sn.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"})})}),k3=()=>{const n=Fa(),r=kt(l=>l.chat.sourceInfos),i=()=>{n(HA())};return r?b.jsxs("div",{className:Sn.sourceInfos,children:[b.jsx("div",{className:Sn.sourceDetails,children:b.jsx(D3,{sourceInfos:r.type==="loaded"?r:void 0,onClose:i})}),r.type==="loading"?b.jsx(z3,{}):r.type==="loading-error"?b.jsx(L3,{}):b.jsx(U3,{sourceInfos:r})]}):null},G3="_container_114wy_1",q3="_body_114wy_7",I3="_intro_114wy_14",F3="_footer_114wy_39",V3="_footnote_114wy_43",P3="_containerWithFootnote_114wy_58",Y3="_startChatButton_114wy_73",Z3="_formFields_114wy_77",X3="_formField_114wy_77",Q3="_radio_114wy_89",K3="_checkbox_114wy_96",$3="_input_114wy_104",J3="_inputLabel_114wy_138",W3="_selectWrapper_114wy_142",e6="_select_114wy_142",t6="_selectLabel_114wy_188",ft={container:G3,body:q3,intro:I3,footer:F3,footnote:V3,containerWithFootnote:P3,startChatButton:Y3,formFields:Z3,formField:X3,radio:Q3,checkbox:K3,input:$3,inputLabel:J3,selectWrapper:W3,select:e6,selectLabel:t6},n6=({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(ft.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})]})},r6=({type:n,name:r,label:i,defaultValue:l,placeholder:u,required:f,multiple:h,min:d,max:m,pattern:g,onChange:_})=>{const S=y=>{_(y.target.value)};return b.jsxs("label",{className:Z(ft.input,"chat__startScreen__input"),htmlFor:r,children:[b.jsx("div",{className:Z(ft.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:S})]})},a6=({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(ft.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(ft.label),children:i})]})},i6=({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(ft.select,"chat__startScreen__select"),htmlFor:n,children:[b.jsx("div",{className:Z(ft.selectLabel),children:r}),b.jsx("div",{className:Z(ft.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}))})})]})},s6="start-screen.intro",l6="start-screen.start-chat",o6="start-screen.footnote",ln="start-screen.form",Wy=`${ln}.fields`,u6=()=>{const n=We(),r=Fa(),[i,l]=I.useState({}),u=()=>{const S=Object.entries(i).reduce((y,[x,T])=>({...y,[x]:T.value}),{});r(DA(S))},f=n(s6),h=n(l6),d=n(o6),m=I.useMemo(()=>{var S;return((S=n(Wy))==null?void 0:S.split(";").map(y=>y.trim()))??[]},[n(Wy)]);I.useEffect(()=>{m.length&&Object.keys(i).length===0&&l(m.reduce((S,y)=>({...S,[y]:c6(y,n)}),{}))},[n,m,i]);const g=S=>{S.preventDefault(),u()},_=S=>y=>{l(x=>({...x,[S]:{...x[S],value:y}}))};return b.jsxs("form",{onSubmit:g,className:Z(ft.container,d&&ft.containerWithFootnote,"chat__startScreen"),children:[b.jsxs("div",{className:Z(ft.body,"chat__startScreen__body"),children:[f&&b.jsx("div",{className:Z(ft.intro,"chat__startScreen__intro"),children:b.jsx(bn,{options:{overrides:{a:e_}},children:f})}),b.jsx("div",{className:Z(ft.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:S,name:y,label:x,placeholder:T,defaultValue:z,options:N,required:H,multiple:D,min:O,max:R,pattern:E})=>b.jsx("div",{className:Z(ft.formField,"chat__startScreen__field"),children:(()=>{switch(S){case"radio":return b.jsxs(b.Fragment,{children:[b.jsx("div",{children:x}),Object.entries(N||{}).map(([U,Y])=>b.jsx(a6,{name:y,value:U,label:Y,defaultChecked:U===z,required:H,onChange:_(y)}))]});case"checkbox":return b.jsx(n6,{name:y,label:x,defaultValue:z,required:H,onChange:_(y)});case"select":return b.jsx(i6,{name:y,label:x,defaultValue:z,required:H,multiple:D,options:N,onChange:_(y)});default:return b.jsx(r6,{type:S,name:y,label:x,placeholder:T,defaultValue:z,required:H,multiple:D,min:O,max:R,pattern:E,onChange:_(y)})}})()},y))})]}),b.jsxs("div",{className:Z(ft.footer,"chat__startScreen__footer"),children:[b.jsx(is,{type:"submit",className:ft.startChatButton,children:h}),d&&b.jsx("div",{className:ft.footnote,children:b.jsx(bn,{options:{overrides:{a:e_}},children:d})})]})]})},e_=({title:n,href:r,children:i})=>b.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),c6=(n,r)=>{const i=r(`${ln}.${n}.type`)||"text",l=r(`${ln}.${n}.required`)==="true",u=r(`${ln}.${n}.multiple`)==="true",f=r(`${ln}.${n}.placeholder`),h=r(`${ln}.${n}.label`)||"",d=r(`${ln}.${n}.defaultValue`),m=r(`${ln}.${n}.min`),g=r(`${ln}.${n}.max`),_=r(`${ln}.${n}.pattern`),S=h6(r(`${ln}.${n}.options`));return{name:n,label:h,placeholder:f,value:f6(i,d,S)||"",defaultValue:d,options:S,type:i,required:l,multiple:u,min:m,max:g,pattern:_}},f6=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",h6=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[l,u]=i.split(":").map(f=>f.trim());return{...r,[l]:u}},{}),d6=()=>{const n=po();I.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},La={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"},m6=({clientName:n})=>{d6();const r=Fa(),i=kt(_=>_.intl.messages),l=We(),u=kt(_=>_.settings.enableStartScreen),f=kt(_=>_.startScreen.startScreenStatus),[h,d]=I.useState(void 0);I.useEffect(()=>{const _=go.parse(window.location.search);_.cssClassName&&d(_.cssClassName);const S=y=>{switch(y.data.type){case La.TRIGGER_ACTION:r(y.data.action);break;case La.TRIGGER_STORY:r(Eb(y.data.story));break;case La.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case La.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case La.CHAT_MESSAGE_FROM_GUEST:r(pb(y.data.text));break;case La.RESTART_CHAT:r(To(n,_));break}};return r(zA(n,_)),window.addEventListener("message",y=>S(y),!1),()=>window.removeEventListener("message",S)},[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(Jy.chatwindow,g&&Jy.chatwindowWithAside,"chat__chatwindow",h),children:m?null:g?b.jsxs(b.Fragment,{children:[b.jsx("header",{children:b.jsx($y,{})}),b.jsx("main",{children:b.jsx(l3,{clientName:n})}),b.jsx("aside",{children:b.jsx(k3,{})})]}):b.jsxs(b.Fragment,{children:[b.jsx("header",{children:b.jsx($y,{withActions:!1})}),b.jsx("main",{children:b.jsx(u6,{})})]})})},p6=1024,g6=()=>{const n=hv(),r=kt(f=>f.intl.locale),i=kt(f=>f.intl.messages),[l,u]=I.useState(t_());return I.useEffect(()=>{const f=()=>{u(t_())};return window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]),b.jsx(JT,{locale:r,messages:i,children:b.jsx("div",{className:Z([ex.app,l?"chat__large":"chat__small"]),children:b.jsx(m6,{clientName:n})})})},t_=()=>window.innerWidth>=p6;var Of,n_;function $h(){if(n_)return Of;n_=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return Of=n,Of}var Rf,r_;function y6(){if(r_)return Rf;r_=1;var n=typeof Tl=="object"&&Tl&&Tl.Object===Object&&Tl;return Rf=n,Rf}var wf,a_;function mv(){if(a_)return wf;a_=1;var n=y6(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return wf=i,wf}var Cf,i_;function _6(){if(i_)return Cf;i_=1;var n=mv(),r=function(){return n.Date.now()};return Cf=r,Cf}var Nf,s_;function b6(){if(s_)return Nf;s_=1;var n=/\s/;function r(i){for(var l=i.length;l--&&n.test(i.charAt(l)););return l}return Nf=r,Nf}var Df,l_;function v6(){if(l_)return Df;l_=1;var n=b6(),r=/^\s+/;function i(l){return l&&l.slice(0,n(l)+1).replace(r,"")}return Df=i,Df}var Mf,o_;function pv(){if(o_)return Mf;o_=1;var n=mv(),r=n.Symbol;return Mf=r,Mf}var Bf,u_;function E6(){if(u_)return Bf;u_=1;var n=pv(),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 Bf=f,Bf}var jf,c_;function S6(){if(c_)return jf;c_=1;var n=Object.prototype,r=n.toString;function i(l){return r.call(l)}return jf=i,jf}var Uf,f_;function T6(){if(f_)return Uf;f_=1;var n=pv(),r=E6(),i=S6(),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 Uf=h,Uf}var Hf,h_;function x6(){if(h_)return Hf;h_=1;function n(r){return r!=null&&typeof r=="object"}return Hf=n,Hf}var Lf,d_;function A6(){if(d_)return Lf;d_=1;var n=T6(),r=x6(),i="[object Symbol]";function l(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Lf=l,Lf}var zf,m_;function O6(){if(m_)return zf;m_=1;var n=v6(),r=$h(),i=A6(),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 S=f.test(g);return S||h.test(g)?d(g.slice(2),S?2:8):u.test(g)?l:+g}return zf=m,zf}var kf,p_;function R6(){if(p_)return kf;p_=1;var n=$h(),r=_6(),i=O6(),l="Expected a function",u=Math.max,f=Math.min;function h(d,m,g){var _,S,y,x,T,z,N=0,H=!1,D=!1,O=!0;if(typeof d!="function")throw new TypeError(l);m=i(m)||0,n(g)&&(H=!!g.leading,D="maxWait"in g,y=D?u(i(g.maxWait)||0,m):y,O="trailing"in g?!!g.trailing:O);function R(de){var Ie=_,Te=S;return _=S=void 0,N=de,x=d.apply(Te,Ie),x}function E(de){return N=de,T=setTimeout(K,m),H?R(de):x}function U(de){var Ie=de-z,Te=de-N,G=m-Ie;return D?f(G,y-Te):G}function Y(de){var Ie=de-z,Te=de-N;return z===void 0||Ie>=m||Ie<0||D&&Te>=y}function K(){var de=r();if(Y(de))return re(de);T=setTimeout(K,U(de))}function re(de){return T=void 0,O&&_?R(de):(_=S=void 0,x)}function ee(){T!==void 0&&clearTimeout(T),N=0,_=z=S=T=void 0}function le(){return T===void 0?x:re(r())}function ie(){var de=r(),Ie=Y(de);if(_=arguments,S=this,z=de,Ie){if(T===void 0)return E(z);if(D)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 kf=h,kf}var Gf,g_;function w6(){if(g_)return Gf;g_=1;var n=R6(),r=$h(),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 Gf=l,Gf}var C6=w6();const N6=ho(C6);function D6(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function M6(n){return n}function B6(n,r){r=r||{};const i=r.delimiter||".",l=r.maxDepth,u=r.transformKey||M6,f={};function h(d,m,g){g=g||1,Object.keys(d).forEach(function(_){const S=d[_],y=r.safe&&Array.isArray(S),x=Object.prototype.toString.call(S),T=D6(S),z=x==="[object Object]"||x==="[object Array]",N=m?m+i+u(_):u(_);if(!y&&!T&&z&&Object.keys(S).length&&(!r.maxDepth||g<l))return h(S,N,g+1);f[N]=S})}return h(n),f}const gv={"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:
|
|
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(WA);return T?T.reduce(function(z,N){const H=N.indexOf("=");if(H!==-1){const D=function(U){return U.indexOf("-")!==-1&&U.match(pO)===null&&(U=U.replace(vO,function(Y,K){return K.toUpperCase()})),U}(N.slice(0,H)).trim(),O=function(U){const Y=U[0];return(Y==='"'||Y==="'")&&U.length>=2&&U[U.length-1]===Y?U.slice(1,-1):U}(N.slice(H+1).trim()),R=Ey[D]||D;if(R==="ref")return z;const E=z[R]=function(U,Y,K,re){return Y==="style"?function(ee){const le=[];let ie="",de=!1,Ie=!1,Te="";if(!ee)return le;for(let X=0;X<ee.length;X++){const J=ee[X];if(J!=='"'&&J!=="'"||de||(Ie?J===Te&&(Ie=!1,Te=""):(Ie=!0,Te=J)),J==="("&&ie.endsWith("url")?de=!0:J===")"&&de&&(de=!1),J!==";"||Ie||de)ie+=J;else{const be=ie.trim();if(be){const w=be.indexOf(":");if(w>0){const P=be.slice(0,w).trim(),$=be.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(),be=G.slice(X+1).trim();le.push([J,be])}}return le}(K).reduce(function(ee,[le,ie]){return ee[le.replace(/(-[a-z])/g,de=>de[1].toUpperCase())]=re(ie,U,le),ee},{}):JA.indexOf(Y)!==-1?re(K,U,Y):(K.match(gO)&&(K=K.slice(1,K.length-1)),K==="true"||K!=="false"&&K)}(y,D,O,r.sanitizer);typeof E=="string"&&(hh.test(E)||dh.test(E))&&(z[R]=l(E.trim()))}else N!=="style"&&(z[Ey[N]||N]=!0);return z},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||$O,r.slugify=r.slugify||Zi,r.namedCodesToUnicode=r.namedCodesToUnicode?Zr({},Sy,r.namedCodesToUnicode):Sy,r.createElement=r.createElement||I.createElement;const f=[],h={},d={[ue.blockQuote]:{match:Gn(k_),order:1,parse(y,x,T){const[,z,N]=y[0].replace(nO,"").match(rO);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(),Zi),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:Xi(aO),order:1,parse:pf,render:(y,x,T)=>i("br",{key:T.key})},[ue.breakThematic]:{match:Gn(iO),order:1,parse:pf,render:(y,x,T)=>i("hr",{key:T.key})},[ue.codeBlock]:{match:Gn(q_),order:0,parse:y=>({lang:void 0,text:rs(y[0].replace(/^ {4}/gm,"")).replace(Ty,"$1")}),render:(y,x,T)=>i("pre",{key:T.key},i("code",Zr({},y.attrs,{className:y.lang?`lang-${y.lang}`:""}),y.text))},[ue.codeFenced]:{match:Gn(G_),order:0,parse:y=>({attrs:u("code",y[3]||""),lang:y[2]||void 0,text:y[4],type:ue.codeBlock})},[ue.codeInline]:{match:br(sO),order:3,parse:y=>({text:y[2].replace(Ty,"$1")}),render:(y,x,T)=>i("code",{key:T.key},y.text)},[ue.footnote]:{match:Gn(uO),order:0,parse:y=>(f.push({footnote:y[2],identifier:y[1]}),{}),render:gf},[ue.footnoteReference]:{match:yr(cO),order:1,parse:y=>({target:`#${r.slugify(y[1],Zi)}`,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:yr(dO),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:Gn(r.enforceAtxHeadings?F_:I_),order:1,parse:(y,x,T)=>({children:eo(x,y[2],T),id:r.slugify(y[2],Zi),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:Gn(V_),order:0,parse:(y,x,T)=>({children:eo(x,y[1],T),level:y[2]==="="?1:2,type:ue.heading})},[ue.htmlBlock]:{match:Xi(hh),order:1,parse(y,x,T){const[,z]=y[3].match(LO),N=new RegExp(`^${z}`,"gm"),H=y[3].replace(N,""),D=(O=H,YO.some(K=>K.test(O))?WO:eo);var O;const R=y[1].toLowerCase(),E=$A.indexOf(R)!==-1,U=(E?R:y[1]).trim(),Y={attrs:u(U,y[2]),noInnerParse:E,tag:U};return T.inAnchor=T.inAnchor||R==="a",E?Y.text=y[3]:Y.children=D(x,H,T),T.inAnchor=!1,Y},render:(y,x,T)=>i(y.tag,Zr({key:T.key},y.attrs),y.text||(y.children?x(y.children,T):""))},[ue.htmlSelfClosing]:{match:Xi(dh),order:1,parse(y){const x=y[1].trim();return{attrs:u(x,y[2]||""),tag:x}},render:(y,x,T)=>i(y.tag,Zr({},y.attrs,{key:T.key}))},[ue.htmlComment]:{match:Xi(P_),order:1,parse:()=>({}),render:gf},[ue.image]:{match:br(PO),order:1,parse:y=>({alt:y[1],target:Ry(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:yr(VO),order:3,parse:(y,x,T)=>({children:JO(x,y[1],T),target:Ry(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:yr(_O),order:0,parse:y=>({children:[{text:y[1],type:ue.text}],target:y[1],type:ue.link})},[ue.linkBareUrlDetector]:{match:Ga((y,x)=>x.inAnchor||r.disableAutoLink?null:yr(yO)(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:yr(bO),order:0,parse(y){let x=y[1],T=y[1];return eO.test(T)||(T="mailto:"+T),{children:[{text:x.replace("mailto:",""),type:ue.text}],target:T,type:ue.link}}},[ue.orderedList]:xy(i,1),[ue.unorderedList]:xy(i,2),[ue.newlineCoalescer]:{match:Gn(lO),order:3,parse:pf,render:()=>`
|
|
104
|
+
`},[ue.paragraph]:{match:Ga(QO),order:3,parse:mf,render:(y,x,T)=>i("p",{key:T.key},x(y.children,T))},[ue.ref]:{match:yr(EO),order:0,parse:y=>(h[y[1]]={target:y[2],title:y[4]},{}),render:gf},[ue.refImage]:{match:br(SO),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:yr(TO),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:Gn(Y_),order:1,parse:XO,render(y,x,T){const z=y;return i("table",{key:T.key},i("thead",null,i("tr",null,z.header.map(function(N,H){return i("th",{key:H,style:Oy(z,H)},x(N,T))}))),i("tbody",null,z.cells.map(function(N,H){return i("tr",{key:H},N.map(function(D,O){return i("td",{key:O,style:Oy(z,O)},x(D,T))}))})))}},[ue.text]:{match:Xi(UO),order:4,parse:y=>({text:y[0].replace(mO,(x,T)=>r.namedCodesToUnicode[T]?r.namedCodesToUnicode[T]:x)}),render:y=>y.text},[ue.textBolded]:{match:br(NO),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(DO),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(jO),order:1,parse:y=>({text:y[1],type:ue.text})},[ue.textMarked]:{match:br(MO),order:3,parse:mf,render:(y,x,T)=>i("mark",{key:T.key},x(y.children,T))},[ue.textStrikethroughed]:{match:br(BO),order:3,parse:mf,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 H,D,O=[],R="",E="";for(N.prevCapture=N.prevCapture||"";z;){let U=0;for(;U<x.length;){if(R=x[U],H=y[R],N.inline&&!H.match.inline){U++;continue}const Y=H.match(z,N);if(Y){E=Y[0],N.prevCapture+=E,z=z.substring(E.length),D=H.parse(Y,T,N),D.type==null&&(D.type=R),O.push(D);break}U++}}return N.prevCapture="",O}return x.sort(function(z,N){let H=y[z].order,D=y[N].order;return H!==D?H-D:z<N?-1:1}),function(z,N){return T(function(H){return H.replace(oO,`
|
|
105
|
+
`).replace(fO,"").replace(AO," ")}(z),N)}}(d),g=(b=function(y,x){return function(T,z,N){const H=y[T.type].render;return x?x(()=>H(T,z,N),T,z,N):H(T,z,N)}}(d,r.renderRule),function y(x,T={}){if(Array.isArray(x)){const z=T.key,N=[];let H=!1;for(let D=0;D<x.length;D++){T.key=D;const O=y(x[D],T),R=typeof O=="string";R&&H?N[N.length-1]+=O:O!==null&&N.push(O),H=R}return T.key=z,N}return b(x,y,T)});var b;const S=l(n);return f.length?i("div",null,S,i("footer",{key:"footer"},f.map(function(y){return i("div",{id:r.slugify(y.identifier,Zi),key:y.identifier},y.identifier,g(m(y.footnote,{inline:!0})))}))):S}const _n=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,KA);return I.cloneElement(tR(r,i),l)},nR="_generalConditionsContainer_55hjg_1",rR="_generalConditions_55hjg_1",aR="_generalConditionsHeader_55hjg_15",iR="_generalConditionsBody_55hjg_26",sR="_generalConditionsAccept_55hjg_35",Qi={generalConditionsContainer:nR,generalConditions:rR,generalConditionsHeader:aR,generalConditionsBody:iR,generalConditionsAccept:sR},lR=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})}),oR=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})}),uR="general-conditions.header",cR="general-conditions.body",wy="general-conditions.accept-conditions-note",fR=()=>{const n=We(),[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(uR),h=n(wy);return _.jsxs("div",{className:Z(Qi.generalConditionsContainer,"chat__generalConditions"),children:[!!(f!=null&&f.length)&&_.jsxs("div",{className:Qi.generalConditions,children:[_.jsxs("div",{role:"button",onClick:l,onKeyDown:u,tabIndex:0,className:Z(Qi.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[_.jsx(_n,{children:f}),r?_.jsx(oR,{}):_.jsx(lR,{})]}),_.jsx("div",{className:Z(Qi.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&_.jsx(_n,{children:n(cR)||""})})]}),!!(h!=null&&h.length)&&_.jsx("div",{className:Z(Qi.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:_.jsx(_n,{children:n(wy)||""})})]})},hR="_message_59o8c_1",dR="_messageBot_59o8c_9",mR="_messageBotLast_59o8c_19",pR="_avatar_59o8c_19",gR="_messageBotFirst_59o8c_24",yR="_messageBotAnimated_59o8c_37",bR="_messageGuest_59o8c_48",_R="_messageGuestFirst_59o8c_54",vR="_messageGuestLast_59o8c_60",ER="_botAvatar_59o8c_74",SR="_agentAvatar_59o8c_78",TR="_bubble_59o8c_82",xR="_bubbleContent_59o8c_88",AR="_bubbleLeft_59o8c_102",OR="_leftText_59o8c_113",RR="_bubbleRight_59o8c_120",wR="_rightText_59o8c_130",CR="_sourceInfoReference_59o8c_162",NR="_sourceInfoReferenceActive_59o8c_176",me={message:hR,messageBot:dR,messageBotLast:mR,avatar:pR,messageBotFirst:gR,messageBotAnimated:yR,messageGuest:bR,messageGuestFirst:_R,messageGuestLast:vR,botAvatar:ER,agentAvatar:SR,bubble:TR,bubbleContent:xR,bubbleLeft:AR,leftText:OR,bubbleRight:RR,rightText:wR,sourceInfoReference:CR,sourceInfoReferenceActive:NR},DR="_botMessageActions_1dl7x_1",MR="_alwaysVisible_1dl7x_22",BR="_reported_1dl7x_29",jR="_action_1dl7x_33",_r={botMessageActions:DR,alwaysVisible:MR,reported:BR,action:jR},UR=({alwaysVisible:n,reaction:r,botMessageRef:i,onReaction:l})=>{const u=We(),[f,h]=I.useState(!1),d=g=>()=>l(g),m=I.useCallback(async()=>{if(i.current)try{h(!0);const g=i.current.innerHTML,b=i.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([g],{type:"text/html"}),"text/plain":new Blob([b],{type:"text/plain"})})]),await new Promise(S=>setTimeout(S,1500))}finally{h(!1)}},[i]);return _.jsxs("div",{className:Z(_r.botMessageActions,n&&_r.alwaysVisible,r&&_r.reported),children:[_.jsx("button",{className:Z(_r.action,r==="GOOD"&&_r.reported,"tooltip--top-right"),tabIndex:0,"aria-label":u(r==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":u(r==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:d(r==="GOOD"?null:"GOOD"),children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:r==="GOOD"?_.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"}):_.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"})})}),_.jsx("button",{className:Z(_r.action,r==="BAD"&&_r.reported,"tooltip--top-right"),tabIndex:0,"aria-label":u(r==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":u(r==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:d(r==="BAD"?null:"BAD"),children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:r==="BAD"?_.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"}):_.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"})})}),_.jsx("button",{className:Z(_r.action,"tooltip--top-right"),tabIndex:0,"aria-label":u("bot-bubble.copy"),"data-title":u("bot-bubble.copy"),onClick:m,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:f?_.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"}):_.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"})})})]})},nv=I.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,children:f,onReaction:h},d)=>{const m=We(),g=I.useRef(null),b=n.sender.type===Ee.UserType.BOT;return _.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",b?"chat__botBubbleContainer":"chat__agentBubbleContainer",l&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[_.jsx("img",{className:Z(me.avatar,b?me.botAvatar:me.agentAvatar,"chat__avatar",b?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:b?"Bot":"Agent",referrerPolicy:"no-referrer"}),_.jsx("div",{ref:g,className:Z(me.bubble,me.bubbleLeft,"chat__bubble",b?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(b?"bot-bubble.label":"agent-bubble.label"),children:_.jsx("div",{className:Z(me.leftText),children:f})}),h&&_.jsx(UR,{alwaysVisible:i&&u,reaction:n.reaction,botMessageRef:g,onReaction:h})]})}),HR="_sourceList_1n31h_1",LR="_source_1n31h_1",zR="_label_1n31h_37",bf={sourceList:HR,source:LR,label:zR},rv=n=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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"})}),av=n=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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"})}),iv=n=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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"})}),sv=n=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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"})}),kR=({type:n,...r})=>{switch(n){case"WEBSITE":return _.jsx(sv,{...r});case"PDF":return _.jsx(iv,{...r});case"DOCX":return _.jsx(rv,{...r});default:return _.jsx(av,{...r})}},Qh=({sources:n,onLinkClick:r})=>{const i=We(),l=f=>()=>{r(f.url)},u=f=>h=>{(h.key==="Enter"||h.key===" ")&&r(f.url)};return n.length?_.jsx("ul",{className:bf.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(f=>_.jsx("li",{className:bf.source,children:_.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:l(f),onKeyDown:u(f),children:[_.jsx(kR,{type:f.type,"aria-hidden":"true"}),_.jsx("div",{className:bf.label,children:f.label})]})},f.url))}):null},GR="_button_3ui4g_1",qR="_buttonDefault_3ui4g_13",IR="_buttonPrimary_3ui4g_28",as={button:GR,buttonDefault:qR,buttonPrimary:IR},Ao=({className:n,children:r,...i})=>_.jsx("button",{className:Z(as.button,n),type:"button",...i,children:r}),FR="_title_b904h_1",VR="_subtitle_b904h_6",PR="_buttons_b904h_11",YR="_button_b904h_11",ZR="_imageContainer_b904h_34",XR="_image_b904h_34",QR="_video_container_b904h_49",KR="_video_b904h_49",$R="_only_b904h_63",At={title:FR,subtitle:VR,buttons:PR,button:YR,imageContainer:ZR,image:XR,video_container:QR,video:KR,only:$R},JR=({buttons:n,onButtonClick:r})=>_.jsx("div",{className:Z(At.buttons,"chat__bubbleButtons"),children:n.map((i,l)=>_.jsx(Ao,{className:Z(At.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},l))});var Il={},Fl={},Vl={},Cy;function WR(){if(Cy)return Vl;Cy=1,Object.defineProperty(Vl,"__esModule",{value:!0});var n=qa(),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 Vl.default=function(l,u,f){return r.createElement("a",{href:l,key:f},u)},Vl}var Pl={},Ny;function ew(){return Ny||(Ny=1,Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=function(n){return n}),Pl}var Yl={},_f,Dy;function tw(){return Dy||(Dy=1,_f=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),_f}var vf,My;function nw(){return My||(My=1,vf=/[\0-\x1F\x7F-\x9F]/),vf}var Ef,By;function rw(){return By||(By=1,Ef=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Ef}var Sf,jy;function aw(){return jy||(jy=1,Sf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),Sf}var Tf,Uy;function iw(){return Uy||(Uy=1,Tf=function(n){var r={};r.src_Any=tw().source,r.src_Cc=nw().source,r.src_Z=rw().source,r.src_P=aw().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}),Tf}var xf,Hy;function sw(){if(Hy)return xf;Hy=1;function n(O){var R=Array.prototype.slice.call(arguments,1);return R.forEach(function(E){E&&Object.keys(E).forEach(function(U){O[U]=E[U]})}),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,E){return R||d.hasOwnProperty(E)},!1)}var g={"http:":{validate:function(O,R,E){var U=O.slice(R);return E.re.http||(E.re.http=new RegExp("^\\/\\/"+E.re.src_auth+E.re.src_host_port_strict+E.re.src_path,"i")),E.re.http.test(U)?U.match(E.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(O,R,E){var U=O.slice(R);return E.re.no_http||(E.re.no_http=new RegExp("^"+E.re.src_auth+"(?:localhost|(?:(?:"+E.re.src_domain+")\\.)+"+E.re.src_domain_root+")"+E.re.src_port+E.re.src_host_terminator+E.re.src_path,"i")),E.re.no_http.test(U)?R>=3&&O[R-3]===":"||R>=3&&O[R-3]==="/"?0:U.match(E.re.no_http)[0].length:0}},"mailto:":{validate:function(O,R,E){var U=O.slice(R);return E.re.mailto||(E.re.mailto=new RegExp("^"+E.re.src_email_name+"@"+E.re.src_host_strict,"i")),E.re.mailto.test(U)?U.match(E.re.mailto)[0].length:0}}},b="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]",S="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,E){var U=R.slice(E);return O.test(U)?U.match(O)[0].length:0}}function T(){return function(O,R){R.normalize(O)}}function z(O){var R=O.re=iw()(O.__opts__),E=O.__tlds__.slice();O.onCompile(),O.__tlds_replaced__||E.push(b),E.push(R.src_xn),R.src_tlds=E.join("|");function U(ee){return ee.replace("%TLDS%",R.src_tlds)}R.email_fuzzy=RegExp(U(R.tpl_email_fuzzy),"i"),R.link_fuzzy=RegExp(U(R.tpl_link_fuzzy),"i"),R.link_no_ip_fuzzy=RegExp(U(R.tpl_link_no_ip_fuzzy),"i"),R.host_fuzzy_test=RegExp(U(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 E=O.__index__,U=O.__last_index__,Y=O.__text_cache__.slice(E,U);this.schema=O.__schema__.toLowerCase(),this.index=E+R,this.lastIndex=U+R,this.raw=Y,this.text=Y,this.url=Y}function H(O,R){var E=new N(O,R);return O.__compiled__[E.schema].normalize(E,O),E}function D(O,R){if(!(this instanceof D))return new D(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__=S,this.__tlds_replaced__=!1,this.re={},z(this)}return D.prototype.add=function(R,E){return this.__schemas__[R]=E,z(this),this},D.prototype.set=function(R){return this.__opts__=n(this.__opts__,R),this},D.prototype.test=function(R){if(this.__text_cache__=R,this.__index__=-1,!R.length)return!1;var E,U,Y,K,re,ee,le,ie,de;if(this.re.schema_test.test(R)){for(le=this.re.schema_search,le.lastIndex=0;(E=le.exec(R))!==null;)if(K=this.testSchemaAt(R,E[2],le.lastIndex),K){this.__schema__=E[2],this.__index__=E.index+E[1].length,this.__last_index__=E.index+E[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__)&&(U=R.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(re=U.index+U[1].length,(this.__index__<0||re<this.__index__)&&(this.__schema__="",this.__index__=re,this.__last_index__=U.index+U[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},D.prototype.pretest=function(R){return this.re.pretest.test(R)},D.prototype.testSchemaAt=function(R,E,U){return this.__compiled__[E.toLowerCase()]?this.__compiled__[E.toLowerCase()].validate(R,U,this):0},D.prototype.match=function(R){var E=0,U=[];this.__index__>=0&&this.__text_cache__===R&&(U.push(H(this,E)),E=this.__last_index__);for(var Y=E?R.slice(E):R;this.test(Y);)U.push(H(this,E)),Y=Y.slice(this.__last_index__),E+=this.__last_index__;return U.length?U:null},D.prototype.tlds=function(R,E){return R=Array.isArray(R)?R:[R],E?(this.__tlds__=this.__tlds__.concat(R).sort().filter(function(U,Y,K){return U!==K[Y-1]}).reverse(),z(this),this):(this.__tlds__=R.slice(),this.__tlds_replaced__=!0,z(this),this)},D.prototype.normalize=function(R){R.schema||(R.url="http://"+R.url),R.schema==="mailto:"&&!/^mailto:/i.test(R.url)&&(R.url="mailto:"+R.url)},D.prototype.onCompile=function(){},xf=D,xf}const lw=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 Ly;function ow(){if(Ly)return Yl;Ly=1,Object.defineProperty(Yl,"__esModule",{value:!0});var n=sw(),r=u(n),i=lw,l=u(i);function u(h){return h&&h.__esModule?h:{default:h}}var f=new r.default;return f.tlds(l.default),Yl.default=function(h){return f.match(h)},Yl}var Zl={},zy;function uw(){return zy||(zy=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.default=function(n){return n}),Zl}var ky;function cw(){if(ky)return Fl;ky=1,Object.defineProperty(Fl,"__esModule",{value:!0});var n=function(){function H(D,O){for(var R=0;R<O.length;R++){var E=O[R];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(D,E.key,E)}}return function(D,O,R){return O&&H(D.prototype,O),R&&H(D,R),D}}(),r=qa(),i=y(r),l=WR(),u=S(l),f=ew(),h=S(f),d=ow(),m=S(d),g=uw(),b=S(g);function S(H){return H&&H.__esModule?H:{default:H}}function y(H){if(H&&H.__esModule)return H;var D={};if(H!=null)for(var O in H)Object.prototype.hasOwnProperty.call(H,O)&&(D[O]=H[O]);return D.default=H,D}function x(H,D){if(!(H instanceof D))throw new TypeError("Cannot call a class as a function")}function T(H,D){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:H}function z(H,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);H.prototype=Object.create(D&&D.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(H,D):H.__proto__=D)}var N=function(H){z(D,H);function D(){return x(this,D),T(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return n(D,[{key:"parseString",value:function(R){var E=this;if(R==="")return R;var U=this.props.matchDecorator(R);if(!U)return R;var Y=[],K=0;return U.forEach(function(re,ee){re.index>K&&Y.push(R.substring(K,re.index));var le=E.props.hrefDecorator(re.url),ie=E.props.textDecorator(re.text),de=E.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 E=this,U=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:U},this.parse(R.props.children)):Array.isArray(R)?R.map(function(Y,K){return E.parse(Y,K)}):R}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),D}(i.Component);return N.defaultProps={componentDecorator:u.default,hrefDecorator:h.default,matchDecorator:m.default,textDecorator:b.default},Fl.default=N,Fl}var Gy;function fw(){if(Gy)return Il;Gy=1,Object.defineProperty(Il,"__esModule",{value:!0});var n=cw(),r=i(n);function i(l){return l&&l.__esModule?l:{default:l}}return Il.default=r.default,Il}var hw=fw();const dw=ho(hw),mw="_text_gp0s0_1",pw="_command_gp0s0_5",qy={text:mw,command:pw},lv=({text:n,commands:r=[],onLinkClick:i})=>{const l=d=>m=>(m.preventDefault(),d&&i(d),!1),u=(d,m,g)=>_.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 _.jsxs("div",{children:[f&&_.jsxs("code",{className:qy.command,children:["/",f]}),h.split(`
|
|
106
|
+
`).map((d,m)=>_.jsxs("span",{className:qy.text,children:[_.jsx(dw,{componentDecorator:u,children:d}),_.jsx("br",{})]},m))]})},gw=({subtitle:n,onLinkClick:r})=>n?_.jsx("div",{className:At.subtitle,children:_.jsx(lv,{text:n,onLinkClick:r})}):null,Iy="newtab#",ov=({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(Iy)===0?_.jsx("a",{href:h.slice(Iy.length),title:f,target:"_blank",rel:"noopener noreferrer",children:d}):_.jsx("a",{onClick:l(h),title:f,href:h,children:d});return _.jsx(_n,{options:{...r,overrides:{a:u}},children:n})},yw=({text:n,onLinkClick:r})=>n?_.jsx("div",{children:_.jsx(ov,{markdown:n,onLinkClick:r})}):null,bw=({title:n})=>n?_.jsx("h1",{className:At.title,children:n}):null,_w=({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)?_.jsxs("div",{className:Z(me.bubbleContent),children:[_.jsx(bw,{title:n}),_.jsx(yw,{text:r,onLinkClick:f}),_.jsx(gw,{subtitle:i,onLinkClick:f}),_.jsx(JR,{buttons:l,onButtonClick:u})]}):null,vw=({alt:n,imageUrl:r,itemUrl:i,hasBody:l})=>r?i?i.indexOf("youtube.com")>-1?_.jsx("div",{className:At.video_container,children:_.jsx("iframe",{className:Z(At.video,{[At.only]:!l}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):_.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:_.jsx("div",{className:At.imageContainer,children:_.jsx("img",{className:Z(At.image,{[At.only]:!l}),src:r,alt:n})})}):_.jsx("div",{className:At.imageContainer,children:_.jsx("img",{className:Z(At.image,{[At.only]:!l}),src:r,alt:n})}):null,Ew=({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 _.jsxs("div",{className:Z(At.detailMessage),children:[_.jsx(vw,{hasBody:g,imageUrl:l,itemUrl:u,alt:n||i}),g&&_.jsx(_w,{title:n,text:r,subtitle:i,buttons:f,onLinkClick:m,onButtonClick:d}),_.jsx(Qh,{sources:h,onLinkClick:m})]})},Sw=I.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},l)=>{const u=We();return _.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:_.jsx("div",{className:Z(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:_.jsx("div",{className:Z(me.rightText),children:i})})})}),Tw="_markdown_nw7vg_1",uv={markdown:Tw},Xl="source-info-reference",xw=({markdown:n,sources:r,onLinkClick:i})=>{const l=Fa(),u=Aw(),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 b=g.key;(b==="ArrowDown"||b==="ArrowRight"||b==="Enter"||b===" "||b==="Space")&&(g.stopPropagation(),l(by(m)))},d=m=>()=>{l(by(m))};return I.useLayoutEffect(()=>{document.querySelectorAll(`.${Xl}`).forEach(m=>{var S,y,x,T;const g=m.previousSibling;g&&g.nodeType===Node.TEXT_NODE&&((S=g.textContent)!=null&&S.endsWith(" "))&&((y=g.textContent)!=null&&y.trim().length)&&m.classList.add(`${Xl}--before-space`);const b=m.nextSibling;b&&b.nodeType===Node.TEXT_NODE&&((x=b.textContent)!=null&&x.startsWith(" "))&&((T=b.textContent)!=null&&T.trim().length)&&m.classList.add(`${Xl}--after-space`)})},[n]),_.jsxs("div",{className:me.bubbleContent,children:[_.jsx("div",{className:uv.markdown,children:_.jsx(ov,{markdown:n,onLinkClick:i,markdownOptions:{renderRule(m,g,b,S){if(g.type===ue.footnoteReference){const y=g.text===f;return _.jsx("span",{className:Z(me.sourceInfoReference,y&&me.sourceInfoReferenceActive,Xl),children:_.jsx("a",{type:"button",tabIndex:0,onClick:d(g.text),onKeyDown:h(g.text),children:u(g.text)})},S.key)}return m()}}})}),_.jsx(Qh,{sources:r,onLinkClick:i})]})},Aw=()=>{const n=[];return i=>{const l=n.indexOf(i);return l>-1?l+1:(n.push(i),n.length)}},Ow=({text:n,commands:r,sources:i,onLinkClick:l})=>_.jsxs("div",{className:me.bubbleContent,children:[_.jsx(lv,{text:n,commands:r,onLinkClick:l}),_.jsx(Qh,{sources:i,onLinkClick:l})]}),Rw=I.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:f,onButtonClick:h,onLinkClick:d},m)=>{const g=ww(n,r,h,d);switch(n.sender.type){case Ee.UserType.GUEST:return _.jsx(Sw,{ref:m,isFirstMessageBySender:l,isLastMessageBySender:u,children:g});default:{const b=S=>f(n._id,S);return _.jsx(nv,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:b,children:g})}}}),ww=(n,r,i,l)=>{switch(n.type){case Ee.MessageTypeEnum.TEXT:{const u=n;return _.jsx(Ow,{text:u.text,commands:r,sources:n.sources||[],onLinkClick:l})}case Ee.MessageTypeEnum.DETAIL:{const u=n;return _.jsx(Ew,{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 _.jsx(xw,{markdown:u.markdown,sources:u.sources||[],onLinkClick:l})}}},Cw=(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,Nw=Ob.memo(Rw,Cw),Dw="_ticontainer_xg0dn_1",Mw="_tiblock_xg0dn_5",Bw="_tidot_xg0dn_12",Ki={ticontainer:Dw,tiblock:Mw,tidot:Bw},jw=({isTyping:n=!1})=>_.jsx("div",{className:Ki.ticontainer,children:_.jsx("div",{className:Ki.tiblock,children:n?_.jsxs(_.Fragment,{children:[_.jsx("div",{className:Z(Ki.tidot,"chat__typingIndicator")}),_.jsx("div",{className:Z(Ki.tidot,"chat__typingIndicator")}),_.jsx("div",{className:Z(Ki.tidot,"chat__typingIndicator")})]}):null})}),Uw=Object.assign({_id:"typing-indicator"},new Ee.TextMessage("",new Ee.BotUser)),Hw=({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),b=I.useRef(null),S=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(b.current){const T=b.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 _.jsxs("div",{ref:m,className:Z(_y.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&d.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[S&&_.jsx(fR,{}),_.jsxs("ul",{className:_y.messages,children:[n.map((T,z)=>{const N=Lw(T,y),H=zw(T,z,n,r);y=T.sender.type;const D=z+1===x;return _.jsx(Nw,{ref:D?b:null,message:T,commands:i,isLastMessage:D,isFirstMessageBySender:N,isLastMessageBySender:H,onButtonClick:u,onLinkClick:f,onReaction:l},D&&!r?"last":T._id)}),r&&_.jsx(nv,{ref:g,message:Uw,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:y!==Ee.UserType.BOT,isLastMessageBySender:!0,children:_.jsx(jw,{isTyping:!0})},"last")]})]})},Lw=(n,r)=>!r||r!==n.sender.type,zw=(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)},kw="_bottomSheet_jp8dl_1",Gw="_bottomSheetOpen_jp8dl_15",qw="_bottomSheetClose_jp8dl_20",Vn={bottomSheet:kw,bottomSheetOpen:Gw,bottomSheetClose:qw},Iw="_container_xc2nx_1",Fy={container:Iw},Fw=({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 _.jsx("div",{className:Z(Fy.container,Vn.bottomSheet,{[Vn.bottomSheetOpen]:!!n,[Vn.bottomSheetClose]:i&&!n}),children:u&&_.jsx("iframe",{title:"Drawer",src:u,className:Fy.iframe})})},Vw="_container_tr4tn_1",Pw={container:Vw},Yw=({title:n,href:r,children:i})=>_.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),Zw=()=>{const r=We()("powered-by");return r&&r.length?_.jsx("div",{className:Z(Pw.container,"chat__poweredBy"),children:_.jsx(_n,{options:{overrides:{a:Yw}},children:r})}):null},Vy=({className:n,children:r,...i})=>_.jsx(Ao,{className:Z(as.buttonDefault,n),type:"button",...i,children:r}),is=({className:n,children:r,...i})=>_.jsx(Ao,{className:Z(as.buttonPrimary,n),...i,children:r}),Xw="_container_h23mk_1",Qw="_formContainer_h23mk_17",Kw="_emailInput_h23mk_22",$w="_description_h23mk_52",Jw="_actions_h23mk_57",Ww="_validationError_h23mk_67",eC="_submitted_h23mk_74",qn={container:Xw,formContainer:Qw,emailInput:Kw,description:$w,actions:Jw,validationError:Ww,submitted:eC},tC=({visible:n,enableTranscriptExportPdf:r,enableTranscriptExportEmail:i,onEmailExport:l,onPdfExport:u,onClose:f})=>{const h=We(),[d,m]=I.useState(void 0),[g,b]=I.useState(!1),[S,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(),b(!1),y(!1),m(n)):d===!0&&m(!1)},[n,d]);const N=O=>{O.preventDefault(),x&&x.length>0&&(l(x),b(!0),setTimeout(f,3*1e3))},H=O=>{const R=O.target.value.trim(),E=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);T(E?R:"")},D=()=>{y(!0),u(),setTimeout(f,3*1e3)};return _.jsxs("div",{className:Z(qn.container,Vn.bottomSheet,{[Vn.bottomSheetOpen]:d===!0,[Vn.bottomSheetClose]:d===!1}),children:[r&&_.jsxs(_.Fragment,{children:[_.jsx("h2",{children:h("export-transcript.pdf.title")}),_.jsx(_n,{className:qn.description,children:h("export-transcript.pdf.description")||""}),_.jsxs("div",{className:qn.actions,children:[_.jsx(Vy,{onClick:f,children:h("export-transcript.pdf.cancel")}),_.jsx(is,{onClick:D,disabled:S,children:h("export-transcript.pdf.download")})]})]}),i&&_.jsxs(_.Fragment,{children:[_.jsx("h2",{children:h("export-transcript.email.title")}),_.jsx(_n,{className:qn.description,children:h("export-transcript.email.description")||""}),_.jsxs("form",{onSubmit:N,className:qn.formContainer,children:[_.jsxs("div",{children:[_.jsx("input",{disabled:g,ref:z,type:"email",placeholder:h("export-transcript.email.placeholder"),className:qn.emailInput,onChange:H}),(x==null?void 0:x.length)===0?_.jsx("div",{className:qn.validationError,children:h("export-transcript.email.invalid")}):null]}),_.jsxs("div",{className:qn.actions,children:[_.jsx(Vy,{onClick:f,children:h("export-transcript.email.cancel")}),_.jsx(is,{type:"submit",disabled:g||x===void 0||x.length===0,children:h("export-transcript.email.send")})]})]}),g&&_.jsx("div",{className:qn.submitted,children:h("export-transcript.email.success")})]})]})},nC="_inputContainer_fi5ao_1",rC={inputContainer:nC},aC="_blockUserInput_pot9c_1",iC={blockUserInput:aC},sC=({visible:n})=>{const r=We();return n?_.jsx("div",{className:Z(iC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},lC="_commandsDropdown_5ytuv_1",oC="_commands_5ytuv_1",uC="_command_5ytuv_1",cC="_commandActive_5ytuv_46",fC="_commandsSelections_5ytuv_55",Wi={commandsDropdown:lC,commands:oC,command:uC,commandActive:cC,commandsSelections:fC},hC=(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])},dC=(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])},mC=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:l})=>{const u=I.useRef(null),f=We(),[h,d]=I.useState([]),[m,g]=I.useState(Py(r)),[b,S]=I.useState(0),y=x=>i(`/${x}`);return hC(u,()=>d([])),dC(h,b,y,S,d),I.useEffect(()=>{g(Py(r))},[r]),I.useEffect(()=>{const x=n.length||0;x===0||x>m||!n.startsWith("/")?d([]):d(r.filter(pC(n))),S(0)},[r,n,m]),I.useEffect(()=>{l(!!h.length)},[h,l]),h.length?_.jsx("div",{ref:u,className:Wi.commandsDropdown,children:_.jsx("ul",{className:Wi.commands,role:"listbox",children:h.map((x,T)=>_.jsxs("li",{className:Z([Wi.command,b===T&&Wi.commandActive]),role:"option",onClick:()=>y(x),onMouseOver:()=>S(T),children:[_.jsxs("h1",{children:["/",x]}),_.jsx("p",{children:f(`commands.${x}`)})]},x))})}):null},Py=n=>Math.max(...n.map(r=>r.length+1)),pC=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},Yy=3,gC=({commands:n,onSelectCommand:r})=>{const i=We(),[l,u]=I.useState(!1),f=g=>()=>{r(`/${g}`),u(!1)},h=()=>{u(!0)},d=()=>{u(!1)},m=l?n:n.slice(0,Yy);return _.jsxs("div",{className:Wi.commandsSelections,children:[m.map(g=>_.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?_.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>Yy?_.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]})},yC="_callToActionContainer_bkfcm_1",bC="_callToActionTitle_bkfcm_23",_C="_rateOverlay_bkfcm_30",vC="_body_bkfcm_52",EC="_footer_bkfcm_60",SC="_actions_bkfcm_73",TC="_bubbles_bkfcm_101",xC="_stars_bkfcm_203",AC="_starsSmall_bkfcm_215",OC="_starsLarge_bkfcm_219",RC="_star_bkfcm_203",wC="_starReadonly_bkfcm_236",CC="_starIcon_bkfcm_246",NC="_starsDescriptionContainer_bkfcm_264",DC="_starsDescription_bkfcm_264",_t={callToActionContainer:yC,callToActionTitle:bC,rateOverlay:_C,body:vC,footer:EC,actions:SC,bubbles:TC,stars:xC,starsSmall:AC,starsLarge:OC,star:RC,starReadonly:wC,starIcon:CC,starsDescriptionContainer:NC,starsDescription:DC},MC=({value:n,index:r,count:i,readonly:l,onHover:u,onClick:f})=>{const h=d=>{f&&d.key==="Enter"&&f()};return _.jsx("li",{className:Z(_t.star,{[_t.starReadonly]:l},"chat__conversationRating__star"),children:_.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:_.jsx("span",{role:"img","aria-label":"Star",className:Z(_t.starIcon),children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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"})})})})})},Zy=5,cv=({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 b=g+1;f(b)}},m=g=>()=>{l&&!i&&(l(g===0&&n===1?0:g+1),f(void 0))};return _.jsx("ul",{tabIndex:0,role:"radiogroup",className:Z(_t.stars,{[_t.starsSmall]:r==="small",[_t.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:h,children:Array(Zy).fill(0).map((g,b)=>_.jsx(MC,{value:u===void 0?n:u,index:b,count:Zy,readonly:i,onHover:d(b),onClick:m(b)},b))})},BC=({visible:n,onRate:r})=>{const i=We();return n?_.jsxs("div",{className:Z(_t.callToActionContainer,"chat__conversationRating__callToAction"),children:[_.jsx("div",{className:Z(_t.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),_.jsx(cv,{value:0,size:"small",onChange:r})]}):null},Af=({isFirstMessageBySender:n,isLastMessageBySender:r,children:i})=>_.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:[_.jsx("img",{className:Z(me.avatar,me.botAvatar),src:"bot.svg",alt:"Bot"}),_.jsx("div",{className:Z(me.bubble,me.bubbleLeft,"chat__bubble","chat__botBubble"),children:_.jsx("div",{className:Z(me.leftText,me.bubbleContent),children:i})})]}),jC=({children:n})=>_.jsx("div",{className:Z(me.message,me.messageGuest,me.messageGuestFirst,me.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:_.jsx("div",{className:Z(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),children:_.jsx("div",{className:Z(me.rightText,me.bubbleContent),children:n})})}),UC=({visible:n,rating:r,onRate:i,onClose:l})=>{const u=We(),[f,h]=I.useState(r),[d,m]=I.useState(void 0),[g,b]=I.useState(void 0),[S,y]=I.useState({submitted:!1,feedback:""}),[x,T]=I.useState(!1),z=I.useRef(null);I.useEffect(()=>{n?(y({submitted:!1,feedback:""}),b(n)):g===!0&&b(!1)},[n,g]),I.useEffect(()=>{h(r)},[r]),I.useEffect(()=>{const H=u(`conversation-rating.overlay.bot-message.rate-feedback.value-${f}`);m(H!=null&&H.length?H:void 0)},[f,u]),I.useEffect(()=>{S.submitted?setTimeout(()=>T(!0),S.feedback.length?500:0):T(!1)},[S]);const N=H=>{var O,R;H.preventDefault();const D=((R=(O=z.current)==null?void 0:O.value)==null?void 0:R.trim())||"";i(f,D),y({submitted:!0,feedback:D})};return _.jsx("div",{className:Z(_t.rateOverlay,Vn.bottomSheet,"chat__conversationRating__overlay",{[Vn.bottomSheetOpen]:g===!0,[Vn.bottomSheetClose]:g===!1}),children:_.jsxs("form",{onSubmit:N,children:[_.jsxs("div",{className:Z(_t.body,"chat__conversationRating__overlay__body"),children:[_.jsx("div",{}),_.jsx("div",{className:Z(_t.bubbles),children:n&&d&&_.jsxs(_.Fragment,{children:[_.jsxs(Af,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[_.jsx("h2",{children:u("conversation-rating.overlay.title")}),_.jsxs("div",{className:Z(_t.starsDescriptionContainer),children:[_.jsx(cv,{value:f,size:"large",readonly:S.submitted,onChange:h}),_.jsxs("div",{className:Z(_t.starsDescription),children:[_.jsx("div",{children:u("conversation-rating.overlay.star.very-bad")}),_.jsx("div",{children:u("conversation-rating.overlay.star.very-good")})]})]})]}),_.jsx(Af,{isFirstMessageBySender:!1,isLastMessageBySender:!x||!!S.feedback.length,children:_.jsx("div",{children:d})}),!!S.feedback.length&&_.jsx(jC,{children:S.feedback}),x&&_.jsx(Af,{isFirstMessageBySender:!!S.feedback.length,isLastMessageBySender:!0,children:_.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),_.jsxs("div",{className:Z(_t.footer,"chat__conversationRating__overlay__footer"),children:[!S.submitted&&_.jsx("input",{ref:z,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),_.jsx("div",{className:Z(_t.actions,"chat__conversationRating__overlay__footer__actions"),children:S.submitted?_.jsx(is,{type:"button",onClick:l,children:u("conversation-rating.overlay.action.close")}):_.jsx(is,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},HC=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:l,setShowRatingOverlay:u,onRate:f})=>{const[h,d]=I.useState(0),m=S=>{d(S),u(!0)},g=()=>u(!1),b=!r&&i>=1;return n?_.jsxs(_.Fragment,{children:[_.jsx(BC,{visible:b,onRate:m}),_.jsx(UC,{visible:l,rating:h,onRate:f,onClose:g})]}):null},LC=I.memo(HC),zC="_inputWrapper_e3h44_1",kC="_withOpenCommands_e3h44_14",GC="_messageInputWrapper_e3h44_20",qC="_messageInput_e3h44_20",IC="_buttons_e3h44_44",FC="_button_e3h44_44",Fr={inputWrapper:zC,withOpenCommands:kC,messageInputWrapper:GC,messageInput:qC,buttons:IC,button:FC},VC="_audioRecorder_g845f_1",PC="_audioButton_g845f_6",YC="_recorderIcon_g845f_37",ZC="_spinning_g845f_60",Vr={audioRecorder:VC,audioButton:PC,recorderIcon:YC,spinning:ZC},Xy=2048,fo=16e3;class XC extends Ob.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(Xy,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+=Xy}}handleClickSubmitAudio(){const i=KC(this.leftchannel,this.recordingLength),l=$C(i,this.sampleRate||0),u=QC(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 _.jsxs("div",{className:Vr.audioRecorder,children:[this.state.recordingState==="none"&&_.jsx("button",{className:Z(Vr.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:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&_.jsxs("svg",{className:Vr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&_.jsxs("div",{className:Vr.audioRecorder,children:[_.jsx("button",{className:Z(Vr.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),_.jsx("div",{className:Vr.recorderIcon}),_.jsx("button",{className:Z(Vr.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),_.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const QC=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);Ql(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Ql(i,8,"WAVE"),Ql(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,fo,!0),i.setUint32(28,fo*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Ql(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"})},Ql=(n,r,i)=>{for(let l=0;l<i.length;l++)n.setUint8(r+l,i.charCodeAt(l))},KC=(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},$C=(n,r)=>{if(fo===r)return n;const i=r/fo,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 b=h;b<d&&b<n.length;b++)m+=n[b],g++;u[f]=m/g,f++,h=d}return u},JC=({disabled:n,textInput:r,commandsVisible:i,onTextInput:l,onTextInputSubmit:u,onAudioRecorded:f,onOpenTranscriptExportModal:h})=>{const d=We(),m=I.useRef(null),{enableTranscriptExportPdf:g,enableTranscriptExportEmail:b,enableSpeechSupport:S}=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 H=N.target.value;l(H),N.target.style.height="";const{scrollHeight:D}=N.target;N.target.style.height=`${D>150?150:D}px`},z=N=>{N.code==="Enter"&&!N.shiftKey?(N.repeat||y(),N.preventDefault()):i&&(N.code==="ArrowUp"||N.code==="ArrowDown")&&N.preventDefault()};return _.jsxs("form",{className:Z(Fr.inputWrapper,i&&Fr.withOpenCommands,"chat__textInput"),onSubmit:x,children:[_.jsx("div",{className:Fr.messageInputWrapper,children:_.jsx("textarea",{id:"user_input",ref:m,className:Fr.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"})}),_.jsxs("div",{className:Z(Fr.buttons,"chat__buttons"),children:[!r.length&&(g||b)&&_.jsx("button",{type:"button",className:Z(Fr.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:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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||!S||navigator.mediaDevices===void 0?_.jsx("button",{className:Z(Fr.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:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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"})})}):S&&navigator.mediaDevices!==void 0&&_.jsx(XC,{translate:d,onAudioRecorded:f})]})]})},WC="_quickReplies_83npe_1",e3="_quickReply_83npe_9",Qy={quickReplies:WC,quickReply:e3},t3=({quickReplies:n,onQuickReplyClick:r})=>n.length?_.jsx("div",{className:Z(Qy.quickReplies,"chat__quickReplies"),children:n.map(i=>_.jsx(Ao,{tabIndex:0,className:Z(Qy.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,Ky=5e3,n3=1e3,r3=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:l,showRatingOverlay:u,commands:f,setShowRatingOverlay:h,onTextInput:d,onRate:m,onQuickReplyClick:g,onAudioRecorded:b,onOpenTranscriptExportModal:S})=>{const[y,x]=I.useState(""),[T,z]=I.useState(!1),[N,H]=I.useState(!1),D=I.useRef(0),O=I.useRef(0);I.useEffect(()=>{if(T&&!n){const U=D.current?Date.now()-D.current:0;U>Ky?z(!1):setTimeout(()=>{z(!1)},Ky-U)}},[T,n]),I.useEffect(()=>{T&&(D.current=Date.now())},[T]);const R=U=>{const Y=Date.now()-O.current<n3;return N?!1:n||Y?(z(!0),!1):(d(U),x(""),O.current=Date.now(),!0)},E=U=>{x(U+" ")};return _.jsxs("div",{className:Z(rC.inputContainer),children:[_.jsx(t3,{quickReplies:r,onQuickReplyClick:g}),_.jsx(sC,{visible:T}),!T&&_.jsx(LC,{conversationRating:i,numberOfMessagesFromGuest:l,onRate:m,showRatingOverlay:u,setShowRatingOverlay:h}),!!(f!=null&&f.length)&&_.jsx(mC,{text:y,commands:f,onSelectCommand:E,onVisibilityChange:H}),_.jsx(JC,{textInput:y,disabled:T,commandsVisible:N,onTextInput:x,onTextInputSubmit:R,onOpenTranscriptExportModal:S,onAudioRecorded:b}),!!(f!=null&&f.length)&&_.jsx(gC,{commands:f,onSelectCommand:x})]})},a3=({clientName:n,messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:f,onMessageFromUser:h,onRate:d,onQuickReplyClick:m,onButtonClick:g,onLinkClick:b,onAudioRecorded:S,onTranscriptExport:y,onPdfExport:x,onTranscriptItemReaction:T})=>{const z=Fa(),N=kt(ee=>ee.connection.connectionState),{enableTranscriptExportPdf:H,enableTranscriptExportEmail:D,commands:O}=kt(ee=>ee.settings),[R,E]=I.useState(!1),[U,Y]=I.useState(!1),K=H||D,re=r.filter(ee=>ee.sender.type===z_.GUEST).length;return I.useEffect(()=>{if(N===Xr.CONNECTED){const ee=go.parse(window.location.search);z(L_(n,ee))}},[n,N,z]),_.jsxs("div",{className:df.container,children:[_.jsxs("div",{className:Z([df.chatcontent,(R||U)&&df.accessabilityHidden]),children:[_.jsx(Hw,{messages:r,isBotTyping:l,commands:O,onButtonClick:g,onLinkClick:b,onTranscriptItemReaction:T}),_.jsx(r3,{isBotTyping:l,quickReplies:l?[]:i,numberOfMessagesFromGuest:re,conversationRating:R?{enabled:!1}:f,showRatingOverlay:U,setShowRatingOverlay:Y,commands:O,onRate:d,onQuickReplyClick:m,onTextInput:h,onAudioRecorded:S,onOpenTranscriptExportModal:()=>E(!R)}),_.jsx(Zw,{})]}),K&&_.jsx(tC,{enableTranscriptExportPdf:H,enableTranscriptExportEmail:D,visible:R,onEmailExport:y,onPdfExport:x,onClose:()=>E(!1)}),_.jsx(Fw,{contentUrl:u})]})},i3=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}},s3=n=>({onRestartChat:(r,i)=>n(To(r,i)),onMessageFromUser:r=>n(p_(r)),onRate:(r,i)=>n(Gx(r,i)),onAudioRecorded:r=>n(Ux(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(m_(r)),onNluEvent:r=>n(E_(r)),onButtonClick:r=>n(Ix(r)),onLinkClick:r=>n(Fx(r)),onTranscriptExport:r=>n(Lx(r)),onPdfExport:()=>n(zx()),onTranscriptItemReaction:(r,i)=>n(Ee.transcriptItemGuestReaction(r,i||null))}),l3=fS(i3,s3)(a3),fv=()=>o3(window.location.pathname),o3=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},hv=()=>I.useMemo(()=>fv(),[]),dv=()=>{const[n,r]=I.useState(!1);return I.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},Kh=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},u3=({onClick:n})=>{const r=We();return dv()?_.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:Kh(n),children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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},c3=()=>{const n=We(),r=dv(),i=kt(u=>u.settings.enableStandaloneView),l=()=>{window.open(window.location.href,"_blank")};return r&&i?_.jsx("button",{className:"tooltip--bottom-left","aria-label":n("header.expand-chat"),"data-title":n("header.expand-chat"),tabIndex:0,onClick:l,onKeyDown:Kh(l),children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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},f3="_header_1hky6_1",h3="_logoContainer_1hky6_13",d3="_logo_1hky6_13",m3="_actions_1hky6_27",Kl={header:f3,logoContainer:h3,logo:d3,actions:m3},p3=({onClick:n})=>{const r=We();return _.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.restart-chat"),"data-title":r("header.restart-chat"),tabIndex:0,onClick:n,onKeyDown:Kh(n),children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[_.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"}),_.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"})]})})},$y=({className:n,withActions:r=!0,...i})=>{const l=Fa(),u=hv(),f=()=>{const d=go.parse(window.location.search);l(To(u,d))},h=()=>{l(jA())};return _.jsxs("div",{className:Z([Kl.header,n]),...i,children:[_.jsx("div",{className:Kl.logoContainer,children:_.jsx("div",{className:Kl.logo})}),_.jsxs("div",{className:Kl.actions,children:[r&&_.jsx(p3,{onClick:f}),_.jsx(c3,{}),_.jsx(u3,{onClick:h})]})]})},g3="_chatwindow_6v6ob_1",y3="_chatwindowWithAside_6v6ob_46",Jy={chatwindow:g3,chatwindowWithAside:y3},b3="_sourceInfos_1878a_1",_3="_sourceDetails_1878a_16",v3="_sourceHeader_1878a_23",E3="_sourceHeaderIcon_1878a_43",S3="_openSourceButton_1878a_47",T3="_closeSourceInfosButton_1878a_70",x3="_sourceContent_1878a_85",A3="_loadingSourceInfos_1878a_109",O3="_loading_1878a_109",R3="_loadingError_1878a_123",Sn={sourceInfos:b3,sourceDetails:_3,sourceHeader:v3,sourceHeaderIcon:E3,openSourceButton:S3,closeSourceInfosButton:T3,sourceContent:x3,loadingSourceInfos:A3,loading:O3,loadingError:R3},w3=({onClick:n})=>{const r=We();return _.jsx("button",{className:Z(Sn.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:n,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})})})},C3=n=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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"})}),N3=({type:n,...r})=>{switch(n){case"WEBSITE":return _.jsx(sv,{...r});case"PDF":return _.jsx(iv,{...r});case"DOCX":return _.jsx(rv,{...r});case"TEXT":return _.jsx(C3,{...r});default:return _.jsx(av,{...r})}},D3=({sourceInfos:n,onClose:r})=>_.jsxs("div",{className:Sn.sourceHeader,children:[_.jsx("div",{className:Sn.sourceHeaderIcon,children:n&&_.jsx(N3,{type:n.knowledgeBaseType})}),_.jsx("div",{children:n&&_.jsx("h1",{children:n.title})}),_.jsx(w3,{onClick:r})]}),M3=({title:n,href:r,children:i})=>_.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),B3=({className:n,children:r,...i})=>_.jsx("a",{className:Z(as.button,as.buttonPrimary,n),type:"button",...i,children:r}),j3=({label:n,url:r})=>_.jsxs(B3,{className:Sn.openSourceButton,href:r,target:"_blank",children:[_.jsx("p",{children:n}),_.jsx("div",{children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:_.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"})})})]}),U3=({sourceInfos:n})=>_.jsxs(_.Fragment,{children:[_.jsx("div",{className:Z(Sn.sourceContent,uv.markdown),children:_.jsx(_n,{options:{overrides:{a:M3}},children:n.content})}),_.jsx(j3,{label:n.title,url:n.url})]}),H3=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,L3=()=>{const n=We();return _.jsxs("div",{className:Sn.loadingError,children:[_.jsx("h1",{children:n("source-infos.error.title")}),_.jsx("img",{src:H3,title:n("source-infos.error.title")}),_.jsx("p",{children:n("source-infos.error.info")})]})},z3=()=>_.jsx("div",{className:Sn.loadingSourceInfos,children:_.jsx("svg",{className:Sn.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})})}),k3=()=>{const n=Fa(),r=kt(l=>l.chat.sourceInfos),i=()=>{n(HA())};return r?_.jsxs("div",{className:Sn.sourceInfos,children:[_.jsx("div",{className:Sn.sourceDetails,children:_.jsx(D3,{sourceInfos:r.type==="loaded"?r:void 0,onClose:i})}),r.type==="loading"?_.jsx(z3,{}):r.type==="loading-error"?_.jsx(L3,{}):_.jsx(U3,{sourceInfos:r})]}):null},G3="_container_114wy_1",q3="_body_114wy_7",I3="_intro_114wy_14",F3="_footer_114wy_39",V3="_footnote_114wy_43",P3="_containerWithFootnote_114wy_58",Y3="_startChatButton_114wy_73",Z3="_formFields_114wy_77",X3="_formField_114wy_77",Q3="_radio_114wy_89",K3="_checkbox_114wy_96",$3="_input_114wy_104",J3="_inputLabel_114wy_138",W3="_selectWrapper_114wy_142",e6="_select_114wy_142",t6="_selectLabel_114wy_188",ft={container:G3,body:q3,intro:I3,footer:F3,footnote:V3,containerWithFootnote:P3,startChatButton:Y3,formFields:Z3,formField:X3,radio:Q3,checkbox:K3,input:$3,inputLabel:J3,selectWrapper:W3,select:e6,selectLabel:t6},n6=({name:n,label:r,defaultValue:i,required:l,onChange:u})=>{const f=h=>{u(h.currentTarget.checked?"true":"false")};return _.jsxs("label",{className:Z(ft.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[_.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:l,onChange:f}),_.jsx("div",{children:r})]})},r6=({type:n,name:r,label:i,defaultValue:l,placeholder:u,required:f,multiple:h,min:d,max:m,pattern:g,onChange:b})=>{const S=y=>{b(y.target.value)};return _.jsxs("label",{className:Z(ft.input,"chat__startScreen__input"),htmlFor:r,children:[_.jsx("div",{className:Z(ft.inputLabel),children:i}),_.jsx("input",{type:n,id:r,name:r,defaultValue:l,placeholder:u,required:f,multiple:h,min:d,max:m,pattern:g,onChange:S})]})},a6=({name:n,value:r,label:i,defaultChecked:l,required:u,onChange:f})=>{const h=`${n}-${r}`,d=m=>{f(m.target.value)};return _.jsxs("label",{className:Z(ft.radio,"chat__startScreen__radio"),htmlFor:h,children:[_.jsx("input",{id:h,type:"radio",name:n,value:r,defaultChecked:l,required:u,onChange:d}),_.jsx("span",{className:Z(ft.label),children:i})]})},i6=({name:n,label:r,defaultValue:i,required:l,multiple:u,options:f,onChange:h})=>{const d=m=>{h(m.target.value)};return _.jsxs("label",{className:Z(ft.select,"chat__startScreen__select"),htmlFor:n,children:[_.jsx("div",{className:Z(ft.selectLabel),children:r}),_.jsx("div",{className:Z(ft.selectWrapper),children:_.jsx("select",{id:n,name:n,defaultValue:i,required:l,multiple:u,onChange:d,children:Object.entries(f||{}).map(([m,g])=>_.jsx("option",{value:m,selected:g===i,children:g}))})})]})},s6="start-screen.intro",l6="start-screen.start-chat",o6="start-screen.footnote",ln="start-screen.form",Wy=`${ln}.fields`,u6=()=>{const n=We(),r=Fa(),[i,l]=I.useState({}),u=()=>{const S=Object.entries(i).reduce((y,[x,T])=>({...y,[x]:T.value}),{});r(DA(S))},f=n(s6),h=n(l6),d=n(o6),m=I.useMemo(()=>{var S;return((S=n(Wy))==null?void 0:S.split(";").map(y=>y.trim()))??[]},[n(Wy)]);I.useEffect(()=>{m.length&&Object.keys(i).length===0&&l(m.reduce((S,y)=>({...S,[y]:c6(y,n)}),{}))},[n,m,i]);const g=S=>{S.preventDefault(),u()},b=S=>y=>{l(x=>({...x,[S]:{...x[S],value:y}}))};return _.jsxs("form",{onSubmit:g,className:Z(ft.container,d&&ft.containerWithFootnote,"chat__startScreen"),children:[_.jsxs("div",{className:Z(ft.body,"chat__startScreen__body"),children:[f&&_.jsx("div",{className:Z(ft.intro,"chat__startScreen__intro"),children:_.jsx(_n,{options:{overrides:{a:eb}},children:f})}),_.jsx("div",{className:Z(ft.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:S,name:y,label:x,placeholder:T,defaultValue:z,options:N,required:H,multiple:D,min:O,max:R,pattern:E})=>_.jsx("div",{className:Z(ft.formField,"chat__startScreen__field"),children:(()=>{switch(S){case"radio":return _.jsxs(_.Fragment,{children:[_.jsx("div",{children:x}),Object.entries(N||{}).map(([U,Y])=>_.jsx(a6,{name:y,value:U,label:Y,defaultChecked:U===z,required:H,onChange:b(y)}))]});case"checkbox":return _.jsx(n6,{name:y,label:x,defaultValue:z,required:H,onChange:b(y)});case"select":return _.jsx(i6,{name:y,label:x,defaultValue:z,required:H,multiple:D,options:N,onChange:b(y)});default:return _.jsx(r6,{type:S,name:y,label:x,placeholder:T,defaultValue:z,required:H,multiple:D,min:O,max:R,pattern:E,onChange:b(y)})}})()},y))})]}),_.jsxs("div",{className:Z(ft.footer,"chat__startScreen__footer"),children:[_.jsx(is,{type:"submit",className:ft.startChatButton,children:h}),d&&_.jsx("div",{className:ft.footnote,children:_.jsx(_n,{options:{overrides:{a:eb}},children:d})})]})]})},eb=({title:n,href:r,children:i})=>_.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),c6=(n,r)=>{const i=r(`${ln}.${n}.type`)||"text",l=r(`${ln}.${n}.required`)==="true",u=r(`${ln}.${n}.multiple`)==="true",f=r(`${ln}.${n}.placeholder`),h=r(`${ln}.${n}.label`)||"",d=r(`${ln}.${n}.defaultValue`),m=r(`${ln}.${n}.min`),g=r(`${ln}.${n}.max`),b=r(`${ln}.${n}.pattern`),S=h6(r(`${ln}.${n}.options`));return{name:n,label:h,placeholder:f,value:f6(i,d,S)||"",defaultValue:d,options:S,type:i,required:l,multiple:u,min:m,max:g,pattern:b}},f6=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",h6=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[l,u]=i.split(":").map(f=>f.trim());return{...r,[l]:u}},{}),d6=()=>{const n=po();I.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},La={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"},m6=({clientName:n})=>{d6();const r=Fa(),i=kt(b=>b.intl.messages),l=We(),u=kt(b=>b.settings.enableStartScreen),f=kt(b=>b.startScreen.startScreenStatus),[h,d]=I.useState(void 0);I.useEffect(()=>{const b=go.parse(window.location.search);b.cssClassName&&d(b.cssClassName);const S=y=>{switch(y.data.type){case La.TRIGGER_ACTION:r(y.data.action);break;case La.TRIGGER_STORY:r(E_(y.data.story));break;case La.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case La.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case La.CHAT_MESSAGE_FROM_GUEST:r(p_(y.data.text));break;case La.RESTART_CHAT:r(To(n,b));break}};return r(zA(n,b)),window.addEventListener("message",y=>S(y),!1),()=>window.removeEventListener("message",S)},[n,r]),I.useEffect(()=>{const b=l("page.title");b&&document&&(document.title=b)},[i,l]);const m=u===void 0,g=u===!1||f==="HIDDEN";return _.jsx("div",{className:Z(Jy.chatwindow,g&&Jy.chatwindowWithAside,"chat__chatwindow",h),children:m?null:g?_.jsxs(_.Fragment,{children:[_.jsx("header",{children:_.jsx($y,{})}),_.jsx("main",{children:_.jsx(l3,{clientName:n})}),_.jsx("aside",{children:_.jsx(k3,{})})]}):_.jsxs(_.Fragment,{children:[_.jsx("header",{children:_.jsx($y,{withActions:!1})}),_.jsx("main",{children:_.jsx(u6,{})})]})})},p6=1024,g6=()=>{const n=hv(),r=kt(f=>f.intl.locale),i=kt(f=>f.intl.messages),[l,u]=I.useState(tb());return I.useEffect(()=>{const f=()=>{u(tb())};return window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]),_.jsx(JT,{locale:r,messages:i,children:_.jsx("div",{className:Z([ex.app,l?"chat__large":"chat__small"]),children:_.jsx(m6,{clientName:n})})})},tb=()=>window.innerWidth>=p6;var Of,nb;function $h(){if(nb)return Of;nb=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return Of=n,Of}var Rf,rb;function y6(){if(rb)return Rf;rb=1;var n=typeof Tl=="object"&&Tl&&Tl.Object===Object&&Tl;return Rf=n,Rf}var wf,ab;function mv(){if(ab)return wf;ab=1;var n=y6(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return wf=i,wf}var Cf,ib;function b6(){if(ib)return Cf;ib=1;var n=mv(),r=function(){return n.Date.now()};return Cf=r,Cf}var Nf,sb;function _6(){if(sb)return Nf;sb=1;var n=/\s/;function r(i){for(var l=i.length;l--&&n.test(i.charAt(l)););return l}return Nf=r,Nf}var Df,lb;function v6(){if(lb)return Df;lb=1;var n=_6(),r=/^\s+/;function i(l){return l&&l.slice(0,n(l)+1).replace(r,"")}return Df=i,Df}var Mf,ob;function pv(){if(ob)return Mf;ob=1;var n=mv(),r=n.Symbol;return Mf=r,Mf}var Bf,ub;function E6(){if(ub)return Bf;ub=1;var n=pv(),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 b=l.call(h);return g&&(d?h[u]=m:delete h[u]),b}return Bf=f,Bf}var jf,cb;function S6(){if(cb)return jf;cb=1;var n=Object.prototype,r=n.toString;function i(l){return r.call(l)}return jf=i,jf}var Uf,fb;function T6(){if(fb)return Uf;fb=1;var n=pv(),r=E6(),i=S6(),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 Uf=h,Uf}var Hf,hb;function x6(){if(hb)return Hf;hb=1;function n(r){return r!=null&&typeof r=="object"}return Hf=n,Hf}var Lf,db;function A6(){if(db)return Lf;db=1;var n=T6(),r=x6(),i="[object Symbol]";function l(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Lf=l,Lf}var zf,mb;function O6(){if(mb)return zf;mb=1;var n=v6(),r=$h(),i=A6(),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 b=typeof g.valueOf=="function"?g.valueOf():g;g=r(b)?b+"":b}if(typeof g!="string")return g===0?g:+g;g=n(g);var S=f.test(g);return S||h.test(g)?d(g.slice(2),S?2:8):u.test(g)?l:+g}return zf=m,zf}var kf,pb;function R6(){if(pb)return kf;pb=1;var n=$h(),r=b6(),i=O6(),l="Expected a function",u=Math.max,f=Math.min;function h(d,m,g){var b,S,y,x,T,z,N=0,H=!1,D=!1,O=!0;if(typeof d!="function")throw new TypeError(l);m=i(m)||0,n(g)&&(H=!!g.leading,D="maxWait"in g,y=D?u(i(g.maxWait)||0,m):y,O="trailing"in g?!!g.trailing:O);function R(de){var Ie=b,Te=S;return b=S=void 0,N=de,x=d.apply(Te,Ie),x}function E(de){return N=de,T=setTimeout(K,m),H?R(de):x}function U(de){var Ie=de-z,Te=de-N,G=m-Ie;return D?f(G,y-Te):G}function Y(de){var Ie=de-z,Te=de-N;return z===void 0||Ie>=m||Ie<0||D&&Te>=y}function K(){var de=r();if(Y(de))return re(de);T=setTimeout(K,U(de))}function re(de){return T=void 0,O&&b?R(de):(b=S=void 0,x)}function ee(){T!==void 0&&clearTimeout(T),N=0,b=z=S=T=void 0}function le(){return T===void 0?x:re(r())}function ie(){var de=r(),Ie=Y(de);if(b=arguments,S=this,z=de,Ie){if(T===void 0)return E(z);if(D)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 kf=h,kf}var Gf,gb;function w6(){if(gb)return Gf;gb=1;var n=R6(),r=$h(),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 Gf=l,Gf}var C6=w6();const N6=ho(C6);function D6(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function M6(n){return n}function B6(n,r){r=r||{};const i=r.delimiter||".",l=r.maxDepth,u=r.transformKey||M6,f={};function h(d,m,g){g=g||1,Object.keys(d).forEach(function(b){const S=d[b],y=r.safe&&Array.isArray(S),x=Object.prototype.toString.call(S),T=D6(S),z=x==="[object Object]"||x==="[object Array]",N=m?m+i+u(b):u(b);if(!y&&!T&&z&&Object.keys(S).length&&(!r.maxDepth||g<l))return h(S,N,g+1);f[N]=S})}return h(n),f}const gv={"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
107
|
|
|
108
108
|
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
109
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"},j6={"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:
|
|
@@ -115,5 +115,5 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
115
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"},H6={"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
116
|
|
|
117
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"},L6=["de","en","fr","it"],yv={locale:"de",messages:gv},z6=(n,r)=>{if(L6.includes(n)){const i=k6(n),l=B6(r);return{...i,...l}}return r},k6=n=>{switch(n.toString()){case"en":return j6;case"fr":return U6;case"it":return H6;default:return gv}},G6=(n=q6,r)=>{switch(r.type){case Ih:return Object.assign({},n,{connectionState:Xr.CONNECTING});case Fh:return Object.assign({},n,{connectionState:Xr.CONNECTED});case Vh:return Object.assign({},n,{connectionState:Xr.DISCONNECTED});case Ph:return Object.assign({},n,{connectionState:Xr.RECONNECTED});case Yh:return Object.assign({},n,{sessionId:r.sessionId});case Eo:return Object.assign({},n,{sessionId:r.payload.sessionId,userId:r.payload.userId});case So:return Object.assign({},n,{sessionId:void 0});default:return n}},q6={connectionState:Xr.DISCONNECTED,sessionId:void 0,userId:void 0},I6=(n=__,r)=>{switch(r.type){case Hb:return __;case Eo:return Pr({type:"webclient.chat.started"}),n;case So:return Pr({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 y_(n,r.message);case Ee.ActionTypes.MESSAGE_TO_GUEST:{Pr(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 Dh:{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 Nh:return Pr(r.message),n;case Ee.ActionTypes.EVENT_TO_GUEST:return Pr(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 _b:return Pr(r),n;case bb:return Pr(r),n;case Bh:{const i=new Ee.TextMessage(r.transcription,new Ee.GuestUser),l=Object.assign({},i,{_id:ih()});return y_(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 jh:{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 Uh:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case yb:return{...n,sourceInfos:{type:"loading-error"}};case gb: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 Hh:return{...n,sourceInfos:void 0};default:return n}},y_=(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:[]})},Pr=n=>{var r;F6()?(r=window.top)==null||r.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},F6=()=>typeof window<"u"&&window.self!==window.top,__={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},_v=Gh({name:"intl",initialState:yv,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:V6}=_v.actions,P6=_v.reducer,Y6={enableStartScreen:!1,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},bv=Gh({name:"settings",initialState:Y6,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:Z6}=bv.actions,X6=bv.reducer,Q6=xb({settings:X6,chat:I6,startScreen:BA,connection:G6,intl:P6}),K6="bubble-chat",vv="state-last-saved-at",Ev="state",$6=n=>{try{if(!e4())return;const r=b_(n,vv);if(W6(r))return;{const i=b_(n,Ev);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},J6=(n,r)=>{try{const i=JSON.stringify(r);v_(n,Ev,i);const l=new Date().toISOString();v_(n,vv,l)}catch(i){console.error(i)}},W6=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},e4=()=>typeof localStorage<"u",b_=(n,r)=>{const i=Sv(n,r);return localStorage.getItem(i)},v_=(n,r,i)=>{const l=Sv(n,r);return localStorage.setItem(l,i)},Sv=(n,r)=>`${K6}-${n}-${r}`,Tn=Object.create(null);Tn.open="0";Tn.close="1";Tn.ping="2";Tn.pong="3";Tn.message="4";Tn.upgrade="5";Tn.noop="6";const to=Object.create(null);Object.keys(Tn).forEach(n=>{to[Tn[n]]=n});const mh={type:"error",data:"parser error"},Tv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",xv=typeof ArrayBuffer=="function",Av=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Jh=({type:n,data:r},i,l)=>Tv&&r instanceof Blob?i?l(r):E_(r,l):xv&&(r instanceof ArrayBuffer||Av(r))?i?l(r):E_(new Blob([r]),l):l(Tn[n]+(r||"")),E_=(n,r)=>{const i=new FileReader;return i.onload=function(){const l=i.result.split(",")[1];r("b"+(l||""))},i.readAsDataURL(n)};function S_(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let qf;function t4(n,r){if(Tv&&n.data instanceof Blob)return n.data.arrayBuffer().then(S_).then(r);if(xv&&(n.data instanceof ArrayBuffer||Av(n.data)))return r(S_(n.data));Jh(n,!1,i=>{qf||(qf=new TextEncoder),r(qf.encode(i))})}const T_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",es=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<T_.length;n++)es[T_.charCodeAt(n)]=n;const n4=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=es[n.charCodeAt(l)],h=es[n.charCodeAt(l+1)],d=es[n.charCodeAt(l+2)],m=es[n.charCodeAt(l+3)],_[u++]=f<<2|h>>4,_[u++]=(h&15)<<4|d>>2,_[u++]=(d&3)<<6|m&63;return g},r4=typeof ArrayBuffer=="function",Wh=(n,r)=>{if(typeof n!="string")return{type:"message",data:Ov(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:a4(n.substring(1),r)}:to[i]?n.length>1?{type:to[i],data:n.substring(1)}:{type:to[i]}:mh},a4=(n,r)=>{if(r4){const i=n4(n);return Ov(i,r)}else return{base64:!0,data:n}},Ov=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Rv="",i4=(n,r)=>{const i=n.length,l=new Array(i);let u=0;n.forEach((f,h)=>{Jh(f,!1,d=>{l[h]=d,++u===i&&r(l.join(Rv))})})},s4=(n,r)=>{const i=n.split(Rv),l=[];for(let u=0;u<i.length;u++){const f=Wh(i[u],r);if(l.push(f),f.type==="error")break}return l};function l4(){return new TransformStream({transform(n,r){t4(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 If;function $l(n){return n.reduce((r,i)=>r+i.length,0)}function Jl(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 o4(n,r){If||(If=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($l(i)<1)break;const m=Jl(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($l(i)<2)break;const m=Jl(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),l=3}else if(l===2){if($l(i)<8)break;const m=Jl(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),_=g.getUint32(0);if(_>Math.pow(2,21)-1){d.enqueue(mh);break}u=_*Math.pow(2,32)+g.getUint32(4),l=3}else{if($l(i)<u)break;const m=Jl(i,u);d.enqueue(Wh(f?m:If.decode(m),r)),l=0}if(u===0||u>n){d.enqueue(mh);break}}}})}const wv=4;function Je(n){if(n)return u4(n)}function u4(n){for(var r in Je.prototype)n[r]=Je.prototype[r];return n}Je.prototype.on=Je.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};Je.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};Je.prototype.off=Je.prototype.removeListener=Je.prototype.removeAllListeners=Je.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};Je.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};Je.prototype.emitReserved=Je.prototype.emit;Je.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Je.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Oo=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")(),c4="arraybuffer";function Cv(n,...r){return r.reduce((i,l)=>(n.hasOwnProperty(l)&&(i[l]=n[l]),i),{})}const f4=Jt.setTimeout,h4=Jt.clearTimeout;function Ro(n,r){r.useNativeTimers?(n.setTimeoutFn=f4.bind(Jt),n.clearTimeoutFn=h4.bind(Jt)):(n.setTimeoutFn=Jt.setTimeout.bind(Jt),n.clearTimeoutFn=Jt.clearTimeout.bind(Jt))}const d4=1.33;function m4(n){return typeof n=="string"?p4(n):Math.ceil((n.byteLength||n.size)*d4)}function p4(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 Nv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function g4(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function y4(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 _4 extends Error{constructor(r,i,l){super(r),this.description=i,this.context=l,this.type="TransportError"}}class ed extends Je{constructor(r){super(),this.writable=!1,Ro(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 _4(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=Wh(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=g4(r);return i.length?"?"+i:""}}class b4 extends ed{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)};s4(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,i4(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]=Nv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let Dv=!1;try{Dv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const v4=Dv;function E4(){}class S4 extends b4{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 vn extends Je{constructor(r,i,l){super(),this.createRequest=r,Ro(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=Cv(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=vn.requestsCount++,vn.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=E4,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete vn.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()}}vn.requestsCount=0;vn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",x_);else if(typeof addEventListener=="function"){const n="onpagehide"in Jt?"pagehide":"unload";addEventListener(n,x_,!1)}}function x_(){for(let n in vn.requests)vn.requests.hasOwnProperty(n)&&vn.requests[n].abort()}const T4=function(){const n=Mv({xdomain:!1});return n&&n.responseType!==null}();class x4 extends S4{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=T4&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new vn(Mv,this.uri(),r)}}function Mv(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||v4))return new XMLHttpRequest}catch{}if(!r)try{return new Jt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Bv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class A4 extends ed{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,l=Bv?{}:Cv(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;Jh(l,this.supportsBinary,f=>{try{this.doWrite(l,f)}catch{}u&&Oo(()=>{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]=Nv()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const Ff=Jt.WebSocket||Jt.MozWebSocket;class O4 extends A4{createSocket(r,i,l){return Bv?new Ff(r,i,l):i?new Ff(r,i):new Ff(r)}doWrite(r,i){this.ws.send(i)}}class R4 extends ed{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=o4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=r.readable.pipeThrough(i).getReader(),u=l4();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&&Oo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const w4={websocket:O4,webtransport:R4,polling:x4},C4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,N4=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ph(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=C4.exec(n||""),f={},h=14;for(;h--;)f[N4[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=D4(f,f.path),f.queryKey=M4(f,f.query),f}function D4(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 M4(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,f){u&&(i[u]=f)}),i}const gh=typeof addEventListener=="function"&&typeof removeEventListener=="function",no=[];gh&&addEventListener("offline",()=>{no.forEach(n=>n())},!1);class vr extends Je{constructor(r,i){if(super(),this.binaryType=c4,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=ph(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=ph(i.host).host);Ro(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=y4(this.opts.query)),gh&&(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"})},no.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=wv,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&&vr.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",vr.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+=m4(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,Oo(()=>{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(vr.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(),gh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=no.indexOf(this._offlineEventListener);l!==-1&&no.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}vr.protocol=wv;class B4 extends vr{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;vr.priorWebsocketSuccess=!1;const u=()=>{l||(i.send([{type:"ping",data:"probe"}]),i.once("packet",S=>{if(!l)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;vr.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=S=>{const y=new Error("probe error: "+S);y.transport=i.name,f(),this.emitReserved("upgradeError",y)};function d(){h("transport closed")}function m(){h("socket closed")}function g(S){i&&S.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 j4=class extends B4{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=>w4[u]).filter(u=>!!u)),super(r,l)}};function U4(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=ph(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 H4=typeof ArrayBuffer=="function",L4=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,jv=Object.prototype.toString,z4=typeof Blob=="function"||typeof Blob<"u"&&jv.call(Blob)==="[object BlobConstructor]",k4=typeof File=="function"||typeof File<"u"&&jv.call(File)==="[object FileConstructor]";function td(n){return H4&&(n instanceof ArrayBuffer||L4(n))||z4&&n instanceof Blob||k4&&n instanceof File}function ro(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)if(ro(n[i]))return!0;return!1}if(td(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ro(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&ro(n[i]))return!0;return!1}function G4(n){const r=[],i=n.data,l=n;return l.data=yh(i,r),l.attachments=r.length,{packet:l,buffers:r}}function yh(n,r){if(!n)return n;if(td(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]=yh(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]=yh(n[l],r));return i}return n}function q4(n,r){return n.data=_h(n.data,r),delete n.attachments,n}function _h(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]=_h(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=_h(n[i],r));return n}const I4=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],F4=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 V4{constructor(r){this.replacer=r}encode(r){return(r.type===Ae.EVENT||r.type===Ae.ACK)&&ro(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=G4(r),l=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(l),u}}function A_(n){return Object.prototype.toString.call(n)==="[object Object]"}class nd extends Je{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 P4(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(td(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(nd.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 A_(i);case Ae.DISCONNECT:return i===void 0;case Ae.CONNECT_ERROR:return typeof i=="string"||A_(i);case Ae.EVENT:case Ae.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&I4.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 P4{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=q4(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Y4=Object.freeze(Object.defineProperty({__proto__:null,Decoder:nd,Encoder:V4,get PacketType(){return Ae},protocol:F4},Symbol.toStringTag,{value:"Module"}));function on(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const Z4=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Uv extends Je{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=[on(r,"open",this.onopen.bind(this)),on(r,"packet",this.onpacket.bind(this)),on(r,"error",this.onerror.bind(this)),on(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(Z4.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++,S=i.pop();this._registerAckCallback(_,S),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 Va(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}Va.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};Va.prototype.reset=function(){this.attempts=0};Va.prototype.setMin=function(n){this.ms=n};Va.prototype.setMax=function(n){this.max=n};Va.prototype.setJitter=function(n){this.jitter=n};class bh extends Je{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,Ro(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 Va({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||Y4;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 j4(this.uri,this.opts);const i=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=on(i,"open",function(){l.onopen(),r&&r()}),f=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),r?r(d):this.maybeReconnectOnOpen()},h=on(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(on(r,"ping",this.onping.bind(this)),on(r,"data",this.ondata.bind(this)),on(r,"error",this.onerror.bind(this)),on(r,"close",this.onclose.bind(this)),on(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){Oo(()=>{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 Uv(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 $i={};function ao(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=U4(n,r.path||"/socket.io"),l=i.source,u=i.id,f=i.path,h=$i[u]&&f in $i[u].nsps,d=r.forceNew||r["force new connection"]||r.multiplex===!1||h;let m;return d?m=new bh(l,r):($i[u]||($i[u]=new bh(l,r)),m=$i[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(ao,{Manager:bh,Socket:Uv,io:ao,connect:ao});const X4=[Ee.ActionTypes.MESSAGE_TO_GUEST,Ee.ActionTypes.EVENT_TO_GUEST,Ee.ActionTypes.TYPING_ON,Ee.ActionTypes.TYPING_OFF,Ee.ActionTypes.RESTART_CHAT_REQUEST,...LA,...jx,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],Q4=({dispatch:n,getState:r})=>i=>{let l=null;return u=>{const f=i(u);if(u.type===qh){l!=null&&l.disconnect(),n(GA());const h=`/chat?${go.stringify(u.querystrings)}`;l=ao(`/${u.clientName}${h}`),l.on("action",n),l.on("connect",()=>n(qA())),l.on("disconnect",()=>n(IA())),l.on("reconnect",()=>n(FA())),l.on("set-translations",(d,m)=>{n(V6({language:d,messages:z6(d,m)}))}),l.on("set-settings",d=>{n(Z6(d))}),l.on("enable-conversation-rating",d=>n(kx(d))),l.on("speech-transcription",d=>n(Hx(d))),l.on("restore-client-state",d=>{n(kA(d.sessionId)),n(qx(d.messages))}),l.on("expand-window",({devices:d,initial:m=!1})=>{n({type:_b,devices:d,initial:m})}),l.on("restart-chat",()=>{n(To(u.clientName,u.querystrings))})}else if(u.type===Eo)l==null||l.emit("start-chat",u.payload);else if(u.type===So)l==null||l.emit("terminate-session",u.payload);else if(u.type===Bx)l==null||l.emit("get-started",JSON.stringify(u));else if(u.type===Mh)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===vb){const{connection:{sessionId:h}}=r();window.location.href=`/transcript-pdf/${h}`}else X4.indexOf(u.type)===-1&&u.meta===void 0&&l&&l.emit("action",JSON.stringify(u));return f}},Hv=fv(),K4={...$6(Hv),intl:yv},vh=_A({middleware:n=>n().concat(Q4),reducer:Q6,preloadedState:K4});vh.subscribe(N6(()=>{const n=vh.getState();J6(Hv,{connection:n.connection,startScreen:n.startScreen})},1e3));const $4=document.getElementById("root"),J4=g2.createRoot($4);J4.render(b.jsx(dS,{store:vh,children:b.jsx(g6,{})}));
|
|
119
|
-
//# sourceMappingURL=index-
|
|
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"},L6=["de","en","fr","it"],yv={locale:"de",messages:gv},z6=(n,r)=>{if(L6.includes(n)){const i=k6(n),l=B6(r);return{...i,...l}}return r},k6=n=>{switch(n.toString()){case"en":return j6;case"fr":return U6;case"it":return H6;default:return gv}},G6=(n=q6,r)=>{switch(r.type){case Ih:return Object.assign({},n,{connectionState:Xr.CONNECTING});case Fh:return Object.assign({},n,{connectionState:Xr.CONNECTED});case Vh:return Object.assign({},n,{connectionState:Xr.DISCONNECTED});case Ph:return Object.assign({},n,{connectionState:Xr.RECONNECTED});case Yh:return Object.assign({},n,{sessionId:r.sessionId});case Eo:return Object.assign({},n,{sessionId:r.payload.sessionId,userId:r.payload.userId});case So:return Object.assign({},n,{sessionId:void 0});default:return n}},q6={connectionState:Xr.DISCONNECTED,sessionId:void 0,userId:void 0},I6=(n=bb,r)=>{switch(r.type){case H_:return bb;case Eo:return Pr({type:"webclient.chat.started"}),n;case So:return Pr({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 yb(n,r.message);case Ee.ActionTypes.MESSAGE_TO_GUEST:{Pr(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 Dh:{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 Nh:return Pr(r.message),n;case Ee.ActionTypes.EVENT_TO_GUEST:return Pr(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 b_:return Pr(r),n;case __:return Pr(r),n;case Bh:{const i=new Ee.TextMessage(r.transcription,new Ee.GuestUser),l=Object.assign({},i,{_id:ih()});return yb(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 jh:{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 Uh:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case y_:return{...n,sourceInfos:{type:"loading-error"}};case g_: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 Hh:return{...n,sourceInfos:void 0};default:return n}},yb=(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:[]})},Pr=n=>{var r;F6()?(r=window.top)==null||r.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},F6=()=>typeof window<"u"&&window.self!==window.top,bb={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},bv=Gh({name:"intl",initialState:yv,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:V6}=bv.actions,P6=bv.reducer,Y6={enableStartScreen:!1,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},_v=Gh({name:"settings",initialState:Y6,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:Z6}=_v.actions,X6=_v.reducer,Q6=x_({settings:X6,chat:I6,startScreen:BA,connection:G6,intl:P6}),K6="bubble-chat",vv="state-last-saved-at",Ev="state",$6=n=>{try{if(!e4())return;const r=_b(n,vv);if(W6(r))return;{const i=_b(n,Ev);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},J6=(n,r)=>{try{const i=JSON.stringify(r);vb(n,Ev,i);const l=new Date().toISOString();vb(n,vv,l)}catch(i){console.error(i)}},W6=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},e4=()=>typeof localStorage<"u",_b=(n,r)=>{const i=Sv(n,r);return localStorage.getItem(i)},vb=(n,r,i)=>{const l=Sv(n,r);return localStorage.setItem(l,i)},Sv=(n,r)=>`${K6}-${n}-${r}`,Tn=Object.create(null);Tn.open="0";Tn.close="1";Tn.ping="2";Tn.pong="3";Tn.message="4";Tn.upgrade="5";Tn.noop="6";const to=Object.create(null);Object.keys(Tn).forEach(n=>{to[Tn[n]]=n});const mh={type:"error",data:"parser error"},Tv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",xv=typeof ArrayBuffer=="function",Av=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Jh=({type:n,data:r},i,l)=>Tv&&r instanceof Blob?i?l(r):Eb(r,l):xv&&(r instanceof ArrayBuffer||Av(r))?i?l(r):Eb(new Blob([r]),l):l(Tn[n]+(r||"")),Eb=(n,r)=>{const i=new FileReader;return i.onload=function(){const l=i.result.split(",")[1];r("b"+(l||""))},i.readAsDataURL(n)};function Sb(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let qf;function t4(n,r){if(Tv&&n.data instanceof Blob)return n.data.arrayBuffer().then(Sb).then(r);if(xv&&(n.data instanceof ArrayBuffer||Av(n.data)))return r(Sb(n.data));Jh(n,!1,i=>{qf||(qf=new TextEncoder),r(qf.encode(i))})}const Tb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",es=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Tb.length;n++)es[Tb.charCodeAt(n)]=n;const n4=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),b=new Uint8Array(g);for(l=0;l<i;l+=4)f=es[n.charCodeAt(l)],h=es[n.charCodeAt(l+1)],d=es[n.charCodeAt(l+2)],m=es[n.charCodeAt(l+3)],b[u++]=f<<2|h>>4,b[u++]=(h&15)<<4|d>>2,b[u++]=(d&3)<<6|m&63;return g},r4=typeof ArrayBuffer=="function",Wh=(n,r)=>{if(typeof n!="string")return{type:"message",data:Ov(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:a4(n.substring(1),r)}:to[i]?n.length>1?{type:to[i],data:n.substring(1)}:{type:to[i]}:mh},a4=(n,r)=>{if(r4){const i=n4(n);return Ov(i,r)}else return{base64:!0,data:n}},Ov=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Rv="",i4=(n,r)=>{const i=n.length,l=new Array(i);let u=0;n.forEach((f,h)=>{Jh(f,!1,d=>{l[h]=d,++u===i&&r(l.join(Rv))})})},s4=(n,r)=>{const i=n.split(Rv),l=[];for(let u=0;u<i.length;u++){const f=Wh(i[u],r);if(l.push(f),f.type==="error")break}return l};function l4(){return new TransformStream({transform(n,r){t4(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 If;function $l(n){return n.reduce((r,i)=>r+i.length,0)}function Jl(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 o4(n,r){If||(If=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($l(i)<1)break;const m=Jl(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($l(i)<2)break;const m=Jl(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),l=3}else if(l===2){if($l(i)<8)break;const m=Jl(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),b=g.getUint32(0);if(b>Math.pow(2,21)-1){d.enqueue(mh);break}u=b*Math.pow(2,32)+g.getUint32(4),l=3}else{if($l(i)<u)break;const m=Jl(i,u);d.enqueue(Wh(f?m:If.decode(m),r)),l=0}if(u===0||u>n){d.enqueue(mh);break}}}})}const wv=4;function Je(n){if(n)return u4(n)}function u4(n){for(var r in Je.prototype)n[r]=Je.prototype[r];return n}Je.prototype.on=Je.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};Je.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};Je.prototype.off=Je.prototype.removeListener=Je.prototype.removeAllListeners=Je.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};Je.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};Je.prototype.emitReserved=Je.prototype.emit;Je.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Je.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Oo=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")(),c4="arraybuffer";function Cv(n,...r){return r.reduce((i,l)=>(n.hasOwnProperty(l)&&(i[l]=n[l]),i),{})}const f4=Jt.setTimeout,h4=Jt.clearTimeout;function Ro(n,r){r.useNativeTimers?(n.setTimeoutFn=f4.bind(Jt),n.clearTimeoutFn=h4.bind(Jt)):(n.setTimeoutFn=Jt.setTimeout.bind(Jt),n.clearTimeoutFn=Jt.clearTimeout.bind(Jt))}const d4=1.33;function m4(n){return typeof n=="string"?p4(n):Math.ceil((n.byteLength||n.size)*d4)}function p4(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 Nv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function g4(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function y4(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 b4 extends Error{constructor(r,i,l){super(r),this.description=i,this.context=l,this.type="TransportError"}}class ed extends Je{constructor(r){super(),this.writable=!1,Ro(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 b4(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=Wh(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=g4(r);return i.length?"?"+i:""}}class _4 extends ed{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)};s4(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,i4(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]=Nv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let Dv=!1;try{Dv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const v4=Dv;function E4(){}class S4 extends _4{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 vn extends Je{constructor(r,i,l){super(),this.createRequest=r,Ro(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=Cv(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=vn.requestsCount++,vn.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=E4,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete vn.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()}}vn.requestsCount=0;vn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",xb);else if(typeof addEventListener=="function"){const n="onpagehide"in Jt?"pagehide":"unload";addEventListener(n,xb,!1)}}function xb(){for(let n in vn.requests)vn.requests.hasOwnProperty(n)&&vn.requests[n].abort()}const T4=function(){const n=Mv({xdomain:!1});return n&&n.responseType!==null}();class x4 extends S4{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=T4&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new vn(Mv,this.uri(),r)}}function Mv(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||v4))return new XMLHttpRequest}catch{}if(!r)try{return new Jt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Bv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class A4 extends ed{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,l=Bv?{}:Cv(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;Jh(l,this.supportsBinary,f=>{try{this.doWrite(l,f)}catch{}u&&Oo(()=>{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]=Nv()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const Ff=Jt.WebSocket||Jt.MozWebSocket;class O4 extends A4{createSocket(r,i,l){return Bv?new Ff(r,i,l):i?new Ff(r,i):new Ff(r)}doWrite(r,i){this.ws.send(i)}}class R4 extends ed{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=o4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=r.readable.pipeThrough(i).getReader(),u=l4();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&&Oo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const w4={websocket:O4,webtransport:R4,polling:x4},C4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,N4=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ph(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=C4.exec(n||""),f={},h=14;for(;h--;)f[N4[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=D4(f,f.path),f.queryKey=M4(f,f.query),f}function D4(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 M4(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,f){u&&(i[u]=f)}),i}const gh=typeof addEventListener=="function"&&typeof removeEventListener=="function",no=[];gh&&addEventListener("offline",()=>{no.forEach(n=>n())},!1);class vr extends Je{constructor(r,i){if(super(),this.binaryType=c4,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=ph(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=ph(i.host).host);Ro(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=y4(this.opts.query)),gh&&(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"})},no.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=wv,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&&vr.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",vr.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+=m4(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,Oo(()=>{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(vr.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(),gh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=no.indexOf(this._offlineEventListener);l!==-1&&no.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}vr.protocol=wv;class B4 extends vr{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;vr.priorWebsocketSuccess=!1;const u=()=>{l||(i.send([{type:"ping",data:"probe"}]),i.once("packet",S=>{if(!l)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;vr.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(b(),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,b(),i.close(),i=null)}const h=S=>{const y=new Error("probe error: "+S);y.transport=i.name,f(),this.emitReserved("upgradeError",y)};function d(){h("transport closed")}function m(){h("socket closed")}function g(S){i&&S.name!==i.name&&f()}const b=()=>{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 j4=class extends B4{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=>w4[u]).filter(u=>!!u)),super(r,l)}};function U4(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=ph(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 H4=typeof ArrayBuffer=="function",L4=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,jv=Object.prototype.toString,z4=typeof Blob=="function"||typeof Blob<"u"&&jv.call(Blob)==="[object BlobConstructor]",k4=typeof File=="function"||typeof File<"u"&&jv.call(File)==="[object FileConstructor]";function td(n){return H4&&(n instanceof ArrayBuffer||L4(n))||z4&&n instanceof Blob||k4&&n instanceof File}function ro(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)if(ro(n[i]))return!0;return!1}if(td(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ro(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&ro(n[i]))return!0;return!1}function G4(n){const r=[],i=n.data,l=n;return l.data=yh(i,r),l.attachments=r.length,{packet:l,buffers:r}}function yh(n,r){if(!n)return n;if(td(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]=yh(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]=yh(n[l],r));return i}return n}function q4(n,r){return n.data=bh(n.data,r),delete n.attachments,n}function bh(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]=bh(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=bh(n[i],r));return n}const I4=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],F4=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 V4{constructor(r){this.replacer=r}encode(r){return(r.type===Ae.EVENT||r.type===Ae.ACK)&&ro(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=G4(r),l=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(l),u}}function Ab(n){return Object.prototype.toString.call(n)==="[object Object]"}class nd extends Je{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 P4(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(td(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(nd.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 Ab(i);case Ae.DISCONNECT:return i===void 0;case Ae.CONNECT_ERROR:return typeof i=="string"||Ab(i);case Ae.EVENT:case Ae.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&I4.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 P4{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=q4(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Y4=Object.freeze(Object.defineProperty({__proto__:null,Decoder:nd,Encoder:V4,get PacketType(){return Ae},protocol:F4},Symbol.toStringTag,{value:"Module"}));function on(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const Z4=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Uv extends Je{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=[on(r,"open",this.onopen.bind(this)),on(r,"packet",this.onpacket.bind(this)),on(r,"error",this.onerror.bind(this)),on(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(Z4.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 b=this.ids++,S=i.pop();this._registerAckCallback(b,S),h.id=b}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 Va(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}Va.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};Va.prototype.reset=function(){this.attempts=0};Va.prototype.setMin=function(n){this.ms=n};Va.prototype.setMax=function(n){this.max=n};Va.prototype.setJitter=function(n){this.jitter=n};class _h extends Je{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,Ro(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 Va({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||Y4;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 j4(this.uri,this.opts);const i=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=on(i,"open",function(){l.onopen(),r&&r()}),f=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),r?r(d):this.maybeReconnectOnOpen()},h=on(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(on(r,"ping",this.onping.bind(this)),on(r,"data",this.ondata.bind(this)),on(r,"error",this.onerror.bind(this)),on(r,"close",this.onclose.bind(this)),on(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){Oo(()=>{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 Uv(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 $i={};function ao(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=U4(n,r.path||"/socket.io"),l=i.source,u=i.id,f=i.path,h=$i[u]&&f in $i[u].nsps,d=r.forceNew||r["force new connection"]||r.multiplex===!1||h;let m;return d?m=new _h(l,r):($i[u]||($i[u]=new _h(l,r)),m=$i[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(ao,{Manager:_h,Socket:Uv,io:ao,connect:ao});const X4=[Ee.ActionTypes.MESSAGE_TO_GUEST,Ee.ActionTypes.EVENT_TO_GUEST,Ee.ActionTypes.TYPING_ON,Ee.ActionTypes.TYPING_OFF,Ee.ActionTypes.RESTART_CHAT_REQUEST,...LA,...jx,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],Q4=({dispatch:n,getState:r})=>i=>{let l=null;return u=>{const f=i(u);if(u.type===qh){l!=null&&l.disconnect(),n(GA());const h=`/chat?${go.stringify(u.querystrings)}`;l=ao(`/${u.clientName}${h}`),l.on("action",n),l.on("connect",()=>n(qA())),l.on("disconnect",()=>n(IA())),l.on("reconnect",()=>n(FA())),l.on("set-translations",(d,m)=>{n(V6({language:d,messages:z6(d,m)}))}),l.on("set-settings",d=>{n(Z6(d))}),l.on("enable-conversation-rating",d=>n(kx(d))),l.on("speech-transcription",d=>n(Hx(d))),l.on("restore-client-state",d=>{n(kA(d.sessionId)),n(qx(d.messages))}),l.on("expand-window",({devices:d,initial:m=!1})=>{n({type:b_,devices:d,initial:m})}),l.on("restart-chat",()=>{n(To(u.clientName,u.querystrings))})}else if(u.type===Eo)l==null||l.emit("start-chat",u.payload);else if(u.type===So)l==null||l.emit("terminate-session",u.payload);else if(u.type===Bx)l==null||l.emit("get-started",JSON.stringify(u));else if(u.type===Mh)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===v_){const{connection:{sessionId:h}}=r();window.location.href=`/transcript-pdf/${h}`}else X4.indexOf(u.type)===-1&&u.meta===void 0&&l&&l.emit("action",JSON.stringify(u));return f}},Hv=fv(),K4={...$6(Hv),intl:yv},vh=bA({middleware:n=>n().concat(Q4),reducer:Q6,preloadedState:K4});vh.subscribe(N6(()=>{const n=vh.getState();J6(Hv,{connection:n.connection,startScreen:n.startScreen})},1e3));const $4=document.getElementById("root"),J4=g2.createRoot($4);J4.render(_.jsx(dS,{store:vh,children:_.jsx(g6,{})}));
|
|
119
|
+
//# sourceMappingURL=index-P_gRard0.js.map
|