@botfabrik/engine-webclient 4.100.2 → 4.100.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.
- package/dist/client/assets/index-DxcduRBk.js +125 -0
- package/dist/client/assets/index-DxcduRBk.js.map +1 -0
- package/dist/client/index.html +1 -1
- package/dist/embed/bundle.js +5 -5
- package/package.json +8 -8
- package/dist/client/assets/index-B6tm9zK9.js +0 -124
- package/dist/client/assets/index-B6tm9zK9.js.map +0 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ff={exports:{}},Ll={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Jg;function iS(){if(Jg)return Ll;Jg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:f}}return Ll.Fragment=a,Ll.jsx=i,Ll.jsxs=i,Ll}var ey;function lS(){return ey||(ey=1,Ff.exports=iS()),Ff.exports}var y=lS(),Vf={exports:{}},Bl={},Yf={exports:{}},Pf={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var ty;function sS(){return ty||(ty=1,(function(n){function a(G,$){var ne=G.length;G.push($);e:for(;0<ne;){var Ee=ne-1>>>1,Te=G[Ee];if(0<u(Te,$))G[Ee]=$,G[ne]=Te,ne=Ee;else break e}}function i(G){return G.length===0?null:G[0]}function s(G){if(G.length===0)return null;var $=G[0],ne=G.pop();if(ne!==$){G[0]=ne;e:for(var Ee=0,Te=G.length,O=Te>>>1;Ee<O;){var q=2*(Ee+1)-1,P=G[q],W=q+1,J=G[W];if(0>u(P,ne))W<Te&&0>u(J,P)?(G[Ee]=J,G[W]=ne,Ee=W):(G[Ee]=P,G[q]=ne,Ee=q);else if(W<Te&&0>u(J,ne))G[Ee]=J,G[W]=ne,Ee=W;else break e}}return $}function u(G,$){var ne=G.sortIndex-$.sortIndex;return ne!==0?ne:G.id-$.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 d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],g=[],b=1,_=null,A=3,U=!1,x=!1,k=!1,I=!1,E=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function H(G){for(var $=i(g);$!==null;){if($.callback===null)s(g);else if($.startTime<=G)s(g),$.sortIndex=$.expirationTime,a(m,$);else break;$=i(g)}}function N(G){if(k=!1,H(G),!x)if(i(m)!==null)x=!0,Z||(Z=!0,pe());else{var $=i(g);$!==null&&we(N,$.startTime-G)}}var Z=!1,X=-1,te=5,de=-1;function ye(){return I?!0:!(n.unstable_now()-de<te)}function re(){if(I=!1,Z){var G=n.unstable_now();de=G;var $=!0;try{e:{x=!1,k&&(k=!1,C(X),X=-1),U=!0;var ne=A;try{t:{for(H(G),_=i(m);_!==null&&!(_.expirationTime>G&&ye());){var Ee=_.callback;if(typeof Ee=="function"){_.callback=null,A=_.priorityLevel;var Te=Ee(_.expirationTime<=G);if(G=n.unstable_now(),typeof Te=="function"){_.callback=Te,H(G),$=!0;break t}_===i(m)&&s(m),H(G)}else s(m);_=i(m)}if(_!==null)$=!0;else{var O=i(g);O!==null&&we(N,O.startTime-G),$=!1}}break e}finally{_=null,A=ne,U=!1}$=void 0}}finally{$?pe():Z=!1}}}var pe;if(typeof S=="function")pe=function(){S(re)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Xe=ce.port2;ce.port1.onmessage=re,pe=function(){Xe.postMessage(null)}}else pe=function(){E(re,0)};function we(G,$){X=E(function(){G(n.unstable_now())},$)}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"):te=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return A},n.unstable_next=function(G){switch(A){case 1:case 2:case 3:var $=3;break;default:$=A}var ne=A;A=$;try{return G()}finally{A=ne}},n.unstable_requestPaint=function(){I=!0},n.unstable_runWithPriority=function(G,$){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ne=A;A=G;try{return $()}finally{A=ne}},n.unstable_scheduleCallback=function(G,$,ne){var Ee=n.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Ee+ne:Ee):ne=Ee,G){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ne+Te,G={id:b++,callback:$,priorityLevel:G,startTime:ne,expirationTime:Te,sortIndex:-1},ne>Ee?(G.sortIndex=ne,a(g,G),i(m)===null&&G===i(g)&&(k?(C(X),X=-1):k=!0,we(N,ne-Ee))):(G.sortIndex=Te,a(m,G),x||U||(x=!0,Z||(Z=!0,pe()))),G},n.unstable_shouldYield=ye,n.unstable_wrapCallback=function(G){var $=A;return function(){var ne=A;A=$;try{return G.apply(this,arguments)}finally{A=ne}}}})(Pf)),Pf}var ny;function oS(){return ny||(ny=1,Yf.exports=sS()),Yf.exports}var Xf={exports:{}},me={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var ay;function uS(){if(ay)return me;ay=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),A=Symbol.iterator;function U(O){return O===null||typeof O!="object"?null:(O=A&&O[A]||O["@@iterator"],typeof O=="function"?O:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,I={};function E(O,q,P){this.props=O,this.context=q,this.refs=I,this.updater=P||x}E.prototype.isReactComponent={},E.prototype.setState=function(O,q){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,q,"setState")},E.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}C.prototype=E.prototype;function S(O,q,P){this.props=O,this.context=q,this.refs=I,this.updater=P||x}var H=S.prototype=new C;H.constructor=S,k(H,E.prototype),H.isPureReactComponent=!0;var N=Array.isArray;function Z(){}var X={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function de(O,q,P){var W=P.ref;return{$$typeof:n,type:O,key:q,ref:W!==void 0?W:null,props:P}}function ye(O,q){return de(O.type,q,O.props)}function re(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function pe(O){var q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(P){return q[P]})}var ce=/\/+/g;function Xe(O,q){return typeof O=="object"&&O!==null&&O.key!=null?pe(""+O.key):q.toString(36)}function we(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(Z,Z):(O.status="pending",O.then(function(q){O.status==="pending"&&(O.status="fulfilled",O.value=q)},function(q){O.status==="pending"&&(O.status="rejected",O.reason=q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function G(O,q,P,W,J){var fe=typeof O;(fe==="undefined"||fe==="boolean")&&(O=null);var _e=!1;if(O===null)_e=!0;else switch(fe){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(O.$$typeof){case n:case a:_e=!0;break;case b:return _e=O._init,G(_e(O._payload),q,P,W,J)}}if(_e)return J=J(O),_e=W===""?"."+Xe(O,0):W,N(J)?(P="",_e!=null&&(P=_e.replace(ce,"$&/")+"/"),G(J,q,P,"",function(fn){return fn})):J!=null&&(re(J)&&(J=ye(J,P+(J.key==null||O&&O.key===J.key?"":(""+J.key).replace(ce,"$&/")+"/")+_e)),q.push(J)),1;_e=0;var mt=W===""?".":W+":";if(N(O))for(var ze=0;ze<O.length;ze++)W=O[ze],fe=mt+Xe(W,ze),_e+=G(W,q,P,fe,J);else if(ze=U(O),typeof ze=="function")for(O=ze.call(O),ze=0;!(W=O.next()).done;)W=W.value,fe=mt+Xe(W,ze++),_e+=G(W,q,P,fe,J);else if(fe==="object"){if(typeof O.then=="function")return G(we(O),q,P,W,J);throw q=String(O),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return _e}function $(O,q,P){if(O==null)return O;var W=[],J=0;return G(O,W,"","",function(fe){return q.call(P,fe,J++)}),W}function ne(O){if(O._status===-1){var q=O._result;q=q(),q.then(function(P){(O._status===0||O._status===-1)&&(O._status=1,O._result=P)},function(P){(O._status===0||O._status===-1)&&(O._status=2,O._result=P)}),O._status===-1&&(O._status=0,O._result=q)}if(O._status===1)return O._result.default;throw O._result}var Ee=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},Te={map:$,forEach:function(O,q,P){$(O,function(){q.apply(this,arguments)},P)},count:function(O){var q=0;return $(O,function(){q++}),q},toArray:function(O){return $(O,function(q){return q})||[]},only:function(O){if(!re(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return me.Activity=_,me.Children=Te,me.Component=E,me.Fragment=i,me.Profiler=u,me.PureComponent=S,me.StrictMode=s,me.Suspense=m,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,me.__COMPILER_RUNTIME={__proto__:null,c:function(O){return X.H.useMemoCache(O)}},me.cache=function(O){return function(){return O.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(O,q,P){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var W=k({},O.props),J=O.key;if(q!=null)for(fe in q.key!==void 0&&(J=""+q.key),q)!te.call(q,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&q.ref===void 0||(W[fe]=q[fe]);var fe=arguments.length-2;if(fe===1)W.children=P;else if(1<fe){for(var _e=Array(fe),mt=0;mt<fe;mt++)_e[mt]=arguments[mt+2];W.children=_e}return de(O.type,J,W)},me.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},me.createElement=function(O,q,P){var W,J={},fe=null;if(q!=null)for(W in q.key!==void 0&&(fe=""+q.key),q)te.call(q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(J[W]=q[W]);var _e=arguments.length-2;if(_e===1)J.children=P;else if(1<_e){for(var mt=Array(_e),ze=0;ze<_e;ze++)mt[ze]=arguments[ze+2];J.children=mt}if(O&&O.defaultProps)for(W in _e=O.defaultProps,_e)J[W]===void 0&&(J[W]=_e[W]);return de(O,fe,J)},me.createRef=function(){return{current:null}},me.forwardRef=function(O){return{$$typeof:h,render:O}},me.isValidElement=re,me.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:ne}},me.memo=function(O,q){return{$$typeof:g,type:O,compare:q===void 0?null:q}},me.startTransition=function(O){var q=X.T,P={};X.T=P;try{var W=O(),J=X.S;J!==null&&J(P,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(Z,Ee)}catch(fe){Ee(fe)}finally{q!==null&&P.types!==null&&(q.types=P.types),X.T=q}},me.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},me.use=function(O){return X.H.use(O)},me.useActionState=function(O,q,P){return X.H.useActionState(O,q,P)},me.useCallback=function(O,q){return X.H.useCallback(O,q)},me.useContext=function(O){return X.H.useContext(O)},me.useDebugValue=function(){},me.useDeferredValue=function(O,q){return X.H.useDeferredValue(O,q)},me.useEffect=function(O,q){return X.H.useEffect(O,q)},me.useEffectEvent=function(O){return X.H.useEffectEvent(O)},me.useId=function(){return X.H.useId()},me.useImperativeHandle=function(O,q,P){return X.H.useImperativeHandle(O,q,P)},me.useInsertionEffect=function(O,q){return X.H.useInsertionEffect(O,q)},me.useLayoutEffect=function(O,q){return X.H.useLayoutEffect(O,q)},me.useMemo=function(O,q){return X.H.useMemo(O,q)},me.useOptimistic=function(O,q){return X.H.useOptimistic(O,q)},me.useReducer=function(O,q,P){return X.H.useReducer(O,q,P)},me.useRef=function(O){return X.H.useRef(O)},me.useState=function(O){return X.H.useState(O)},me.useSyncExternalStore=function(O,q,P){return X.H.useSyncExternalStore(O,q,P)},me.useTransition=function(){return X.H.useTransition()},me.version="19.2.0",me}var ry;function yu(){return ry||(ry=1,Xf.exports=uS()),Xf.exports}var Zf={exports:{}},Bt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var iy;function cS(){if(iy)return Bt;iy=1;var n=yu();function a(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 s={d:{f:i,r:function(){throw Error(a(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 _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:_==null?null:""+_,children:m,containerInfo:g,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Bt.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(a(299));return f(m,g,null,b)},Bt.flushSync=function(m){var g=d.T,b=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=g,s.p=b,s.d.f()}},Bt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},Bt.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Bt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var b=g.as,_=h(b,g.crossOrigin),A=typeof g.integrity=="string"?g.integrity:void 0,U=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:_,integrity:A,fetchPriority:U}):b==="script"&&s.d.X(m,{crossOrigin:_,integrity:A,fetchPriority:U,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Bt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=h(g.as,g.crossOrigin);s.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&&s.d.M(m)},Bt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,_=h(b,g.crossOrigin);s.d.L(m,b,{crossOrigin:_,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})}},Bt.preloadModule=function(m,g){if(typeof m=="string")if(g){var b=h(g.as,g.crossOrigin);s.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 s.d.m(m)},Bt.requestFormReset=function(m){s.d.r(m)},Bt.unstable_batchedUpdates=function(m,g){return m(g)},Bt.useFormState=function(m,g,b){return d.H.useFormState(m,g,b)},Bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Bt.version="19.2.0",Bt}var ly;function fS(){if(ly)return Zf.exports;ly=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(a){console.error(a)}}return n(),Zf.exports=cS(),Zf.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var sy;function dS(){if(sy)return Bl;sy=1;var n=oS(),a=yu(),i=fS();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function d(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 h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,l=t;;){var o=r.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){r=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===r)return m(o),e;if(c===l)return m(o),t;c=c.sibling}throw Error(s(188))}if(r.return!==l.return)r=o,l=c;else{for(var p=!1,v=o.child;v;){if(v===r){p=!0,r=o,l=c;break}if(v===l){p=!0,l=o,r=c;break}v=v.sibling}if(!p){for(v=c.child;v;){if(v===r){p=!0,r=c,l=o;break}if(v===l){p=!0,l=c,r=o;break}v=v.sibling}if(!p)throw Error(s(189))}}if(r.alternate!==l)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,A=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ye=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function pe(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case E:return"Profiler";case I:return"StrictMode";case N:return"Suspense";case Z:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case S:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:Xe(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return Xe(e(t))}catch{}}return null}var we=Array.isArray,G=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Ee=[],Te=-1;function O(e){return{current:e}}function q(e){0>Te||(e.current=Ee[Te],Ee[Te]=null,Te--)}function P(e,t){Te++,Ee[Te]=e.current,e.current=t}var W=O(null),J=O(null),fe=O(null),_e=O(null);function mt(e,t){switch(P(fe,t),P(J,e),P(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sg(t),e=Tg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(W),P(W,e)}function ze(){q(W),q(J),q(fe)}function fn(e){e.memoizedState!==null&&P(_e,e);var t=W.current,r=Tg(t,e.type);t!==r&&(P(J,e),P(W,r))}function Ma(e){J.current===e&&(q(W),q(J)),_e.current===e&&(q(_e),wl._currentValue=ne)}var rt,Qt;function Ut(e){if(rt===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);rt=t&&t[1]||"",Qt=-1<r.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+rt+e+Qt}var ur=!1;function cr(e,t){if(!e||ur)return"";ur=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(z){var j=z}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(z){j=z}e.call(Y.prototype)}}else{try{throw Error()}catch(z){j=z}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(z){if(z&&j&&typeof z.stack=="string")return[z.stack,j.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),p=c[0],v=c[1];if(p&&v){var T=p.split(`
|
|
44
|
+
`),L=v.split(`
|
|
45
|
+
`);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===L.length)for(l=T.length-1,o=L.length-1;1<=l&&0<=o&&T[l]!==L[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==L[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==L[o]){var F=`
|
|
46
|
+
`+T[l].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=l&&0<=o);break}}}finally{ur=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Ut(r):""}function Da(e,t){switch(e.tag){case 26:case 27:case 5:return Ut(e.type);case 16:return Ut("Lazy");case 13:return e.child!==t&&t!==null?Ut("Suspense Fallback"):Ut("Suspense");case 19:return Ut("SuspenseList");case 0:case 15:return cr(e.type,!1);case 11:return cr(e.type.render,!1);case 1:return cr(e.type,!0);case 31:return Ut("Activity");default:return""}}function fr(e){try{var t="",r=null;do t+=Da(e,r),r=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var La=Object.prototype.hasOwnProperty,Fr=n.unstable_scheduleCallback,Vr=n.unstable_cancelCallback,Du=n.unstable_shouldYield,Gi=n.unstable_requestPaint,Et=n.unstable_now,Ba=n.unstable_getCurrentPriorityLevel,Jn=n.unstable_ImmediatePriority,ki=n.unstable_UserBlockingPriority,dr=n.unstable_NormalPriority,is=n.unstable_LowPriority,Yr=n.unstable_IdlePriority,ls=n.log,Pr=n.unstable_setDisableYieldValue,Gn=null,it=null;function jt(e){if(typeof ls=="function"&&Pr(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(Gn,e)}catch{}}var xt=Math.clz32?Math.clz32:Xr,qi=Math.log,Lu=Math.LN2;function Xr(e){return e>>>=0,e===0?32:31-(qi(e)/Lu|0)|0}var ea=256,Zr=262144,kn=4194304;function ta(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 Qr(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~c,l!==0?o=ta(l):(p&=v,p!==0?o=ta(p):r||(r=v&~e,r!==0&&(o=ta(r))))):(v=l&~c,v!==0?o=ta(v):p!==0?o=ta(p):r||(r=l&~e,r!==0&&(o=ta(r)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,r=t&-t,c>=r||c===32&&(r&4194048)!==0)?t:o}function et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ua(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 ss(){var e=kn;return kn<<=1,(kn&62914560)===0&&(kn=4194304),e}function Kr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function na(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function os(e,t,r,l,o,c){var p=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var v=e.entanglements,T=e.expirationTimes,L=e.hiddenUpdates;for(r=p&~r;0<r;){var F=31-xt(r),Y=1<<F;v[F]=0,T[F]=-1;var j=L[F];if(j!==null)for(L[F]=null,F=0;F<j.length;F++){var z=j[F];z!==null&&(z.lane&=-536870913)}r&=~Y}l!==0&&Fi(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function Fi(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-xt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|r&261930}function us(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var l=31-xt(r),o=1<<l;o&t|e[l]&t&&(e[l]|=t),r&=~o}}function Kt(e,t){var r=t&-t;return r=(r&42)!==0?1:Cn(r),(r&(e.suspendedLanes|t))!==0?0:r}function Cn(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 $r(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vi(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Pg(e.type))}function Wr(e,t){var r=$.p;try{return $.p=e,t()}finally{$.p=r}}var Rn=Math.random().toString(36).slice(2),Ze="__reactFiber$"+Rn,Ct="__reactProps$"+Rn,aa="__reactContainer$"+Rn,Jr="__reactEvents$"+Rn,cs="__reactListeners$"+Rn,Bu="__reactHandles$"+Rn,se="__reactResources$"+Rn,w="__reactMarker$"+Rn;function Q(e){delete e[Ze],delete e[Ct],delete e[Jr],delete e[cs],delete e[Bu]}function ee(e){var t=e[Ze];if(t)return t;for(var r=e.parentNode;r;){if(t=r[aa]||r[Ze]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Ng(e);e!==null;){if(r=e[Ze])return r;e=Ng(e)}return t}e=r,r=e.parentNode}return null}function He(e){if(e=e[Ze]||e[aa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function st(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Qe(e){var t=e[se];return t||(t=e[se]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Be(e){e[w]=!0}var dn=new Set,ra={};function wn(e,t){tt(e,t),tt(e+"Capture",t)}function tt(e,t){for(ra[e]=t,e=0;e<t.length;e++)dn.add(t[e])}var fs=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]*$"),Yi={},hm={};function $_(e){return La.call(hm,e)?!0:La.call(Yi,e)?!1:fs.test(e)?hm[e]=!0:(Yi[e]=!0,!1)}function ds(e,t,r){if($_(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function hs(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function ia(e,t,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+l)}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W_(e,t,r){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){r=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return r},setValue:function(p){r=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Uu(e){if(!e._valueTracker){var t=mm(e)?"checked":"value";e._valueTracker=W_(e,t,""+e[t])}}function pm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=mm(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function ms(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 J_=/[\n"\\]/g;function mn(e){return e.replace(J_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ju(e,t,r,l,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=""+hn(t)):e.value!==""+hn(t)&&(e.value=""+hn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Hu(e,p,hn(t)):r!=null?Hu(e,p,hn(r)):l!=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=""+hn(v):e.removeAttribute("name")}function gm(e,t,r,l,o,c,p,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||r!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Uu(e);return}r=r!=null?""+hn(r):"",t=t!=null?""+hn(t):r,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Uu(e)}function Hu(e,t,r){t==="number"&&ms(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function ei(e,t,r,l){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&l&&(e[r].defaultSelected=!0)}else{for(r=""+hn(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ym(e,t,r){if(t!=null&&(t=""+hn(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+hn(r):""}function bm(e,t,r,l){if(t==null){if(l!=null){if(r!=null)throw Error(s(92));if(we(l)){if(1<l.length)throw Error(s(93));l=l[0]}r=l}r==null&&(r=""),t=r}r=hn(t),e.defaultValue=r,l=e.textContent,l===r&&l!==""&&l!==null&&(e.value=l),Uu(e)}function ti(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var eE=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 vm(e,t,r){var l=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,r):typeof r!="number"||r===0||eE.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function _m(e,t,r){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&r[o]!==l&&vm(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&vm(e,c,t[c])}function Iu(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 tE=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"]]),nE=/^[\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 ps(e){return nE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function la(){}var zu=null;function Gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ni=null,ai=null;function Em(e){var t=He(e);if(t&&(e=t.stateNode)){var r=e[Ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(ju(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+mn(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var l=r[t];if(l!==e&&l.form===e.form){var o=l[Ct]||null;if(!o)throw Error(s(90));ju(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<r.length;t++)l=r[t],l.form===e.form&&pm(l)}break e;case"textarea":ym(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&ei(e,!!r.multiple,t,!1)}}}var ku=!1;function Sm(e,t,r){if(ku)return e(t,r);ku=!0;try{var l=e(t);return l}finally{if(ku=!1,(ni!==null||ai!==null)&&(no(),ni&&(t=ni,e=ai,ai=ni=null,Em(t),e)))for(t=0;t<e.length;t++)Em(e[t])}}function Pi(e,t){var r=e.stateNode;if(r===null)return null;var l=r[Ct]||null;if(l===null)return null;r=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,t,typeof r));return r}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=!1;if(sa)try{var Xi={};Object.defineProperty(Xi,"passive",{get:function(){qu=!0}}),window.addEventListener("test",Xi,Xi),window.removeEventListener("test",Xi,Xi)}catch{qu=!1}var ja=null,Fu=null,gs=null;function Tm(){if(gs)return gs;var e,t=Fu,r=t.length,l,o="value"in ja?ja.value:ja.textContent,c=o.length;for(e=0;e<r&&t[e]===o[e];e++);var p=r-e;for(l=1;l<=p&&t[r-l]===o[c-l];l++);return gs=o.slice(e,1<l?1-l:void 0)}function ys(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 bs(){return!0}function Am(){return!1}function Ft(e){function t(r,l,o,c,p){this._reactName=r,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(r=e[v],this[v]=r?r(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?bs:Am,this.isPropagationStopped=Am,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=bs)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=bs)},persist:function(){},isPersistent:bs}),t}var hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vs=Ft(hr),Zi=_({},hr,{view:0,detail:0}),aE=Ft(Zi),Vu,Yu,Qi,_s=_({},Zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xu,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!==Qi&&(Qi&&e.type==="mousemove"?(Vu=e.screenX-Qi.screenX,Yu=e.screenY-Qi.screenY):Yu=Vu=0,Qi=e),Vu)},movementY:function(e){return"movementY"in e?e.movementY:Yu}}),Om=Ft(_s),rE=_({},_s,{dataTransfer:0}),iE=Ft(rE),lE=_({},Zi,{relatedTarget:0}),Pu=Ft(lE),sE=_({},hr,{animationName:0,elapsedTime:0,pseudoElement:0}),oE=Ft(sE),uE=_({},hr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cE=Ft(uE),fE=_({},hr,{data:0}),xm=Ft(fE),dE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hE={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"},mE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mE[e])?!!t[e]:!1}function Xu(){return pE}var gE=_({},Zi,{key:function(e){if(e.key){var t=dE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ys(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xu,charCode:function(e){return e.type==="keypress"?ys(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ys(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yE=Ft(gE),bE=_({},_s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cm=Ft(bE),vE=_({},Zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xu}),_E=Ft(vE),EE=_({},hr,{propertyName:0,elapsedTime:0,pseudoElement:0}),SE=Ft(EE),TE=_({},_s,{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}),AE=Ft(TE),OE=_({},hr,{newState:0,oldState:0}),xE=Ft(OE),CE=[9,13,27,32],Zu=sa&&"CompositionEvent"in window,Ki=null;sa&&"documentMode"in document&&(Ki=document.documentMode);var RE=sa&&"TextEvent"in window&&!Ki,Rm=sa&&(!Zu||Ki&&8<Ki&&11>=Ki),wm=" ",Nm=!1;function Mm(e,t){switch(e){case"keyup":return CE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ri=!1;function wE(e,t){switch(e){case"compositionend":return Dm(t);case"keypress":return t.which!==32?null:(Nm=!0,wm);case"textInput":return e=t.data,e===wm&&Nm?null:e;default:return null}}function NE(e,t){if(ri)return e==="compositionend"||!Zu&&Mm(e,t)?(e=Tm(),gs=Fu=ja=null,ri=!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 Rm&&t.locale!=="ko"?null:t.data;default:return null}}var ME={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 Lm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ME[e.type]:t==="textarea"}function Bm(e,t,r,l){ni?ai?ai.push(l):ai=[l]:ni=l,t=uo(t,"onChange"),0<t.length&&(r=new vs("onChange","change",null,r,l),e.push({event:r,listeners:t}))}var $i=null,Wi=null;function DE(e){gg(e,0)}function Es(e){var t=st(e);if(pm(t))return e}function Um(e,t){if(e==="change")return t}var jm=!1;if(sa){var Qu;if(sa){var Ku="oninput"in document;if(!Ku){var Hm=document.createElement("div");Hm.setAttribute("oninput","return;"),Ku=typeof Hm.oninput=="function"}Qu=Ku}else Qu=!1;jm=Qu&&(!document.documentMode||9<document.documentMode)}function Im(){$i&&($i.detachEvent("onpropertychange",zm),Wi=$i=null)}function zm(e){if(e.propertyName==="value"&&Es(Wi)){var t=[];Bm(t,Wi,e,Gu(e)),Sm(DE,t)}}function LE(e,t,r){e==="focusin"?(Im(),$i=t,Wi=r,$i.attachEvent("onpropertychange",zm)):e==="focusout"&&Im()}function BE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Es(Wi)}function UE(e,t){if(e==="click")return Es(t)}function jE(e,t){if(e==="input"||e==="change")return Es(t)}function HE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:HE;function Ji(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var o=r[l];if(!La.call(t,o)||!$t(e[o],t[o]))return!1}return!0}function Gm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function km(e,t){var r=Gm(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=t&&l>=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gm(r)}}function qm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ms(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ms(e.document)}return t}function $u(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 IE=sa&&"documentMode"in document&&11>=document.documentMode,ii=null,Wu=null,el=null,Ju=!1;function Vm(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ju||ii==null||ii!==ms(l)||(l=ii,"selectionStart"in l&&$u(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),el&&Ji(el,l)||(el=l,l=uo(Wu,"onSelect"),0<l.length&&(t=new vs("onSelect","select",null,t,r),e.push({event:t,listeners:l}),t.target=ii)))}function mr(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var li={animationend:mr("Animation","AnimationEnd"),animationiteration:mr("Animation","AnimationIteration"),animationstart:mr("Animation","AnimationStart"),transitionrun:mr("Transition","TransitionRun"),transitionstart:mr("Transition","TransitionStart"),transitioncancel:mr("Transition","TransitionCancel"),transitionend:mr("Transition","TransitionEnd")},ec={},Ym={};sa&&(Ym=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);function pr(e){if(ec[e])return ec[e];if(!li[e])return e;var t=li[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Ym)return ec[e]=t[r];return e}var Pm=pr("animationend"),Xm=pr("animationiteration"),Zm=pr("animationstart"),zE=pr("transitionrun"),GE=pr("transitionstart"),kE=pr("transitioncancel"),Qm=pr("transitionend"),Km=new Map,tc="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(" ");tc.push("scrollEnd");function Nn(e,t){Km.set(e,t),wn(t,[e])}var Ss=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)},pn=[],si=0,nc=0;function Ts(){for(var e=si,t=nc=si=0;t<e;){var r=pn[t];pn[t++]=null;var l=pn[t];pn[t++]=null;var o=pn[t];pn[t++]=null;var c=pn[t];if(pn[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}c!==0&&$m(r,o,c)}}function As(e,t,r,l){pn[si++]=e,pn[si++]=t,pn[si++]=r,pn[si++]=l,nc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function ac(e,t,r,l){return As(e,t,r,l),Os(e)}function gr(e,t){return As(e,null,null,t),Os(e)}function $m(e,t,r){e.lanes|=r;var l=e.alternate;l!==null&&(l.lanes|=r);for(var o=!1,c=e.return;c!==null;)c.childLanes|=r,l=c.alternate,l!==null&&(l.childLanes|=r),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-xt(r),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=r|536870912),c):null}function Os(e){if(50<Sl)throw Sl=0,hf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function qE(e,t,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,r,l){return new qE(e,t,r,l)}function rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oa(e,t){var r=e.alternate;return r===null?(r=Wt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Wm(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function xs(e,t,r,l,o,c){var p=0;if(l=e,typeof e=="function")rc(e)&&(p=1);else if(typeof e=="string")p=X2(e,r,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=Wt(31,r,t,o),e.elementType=de,e.lanes=c,e;case k:return yr(r.children,o,c,t);case I:p=8,o|=24;break;case E:return e=Wt(12,r,t,o|2),e.elementType=E,e.lanes=c,e;case N:return e=Wt(13,r,t,o),e.elementType=N,e.lanes=c,e;case Z:return e=Wt(19,r,t,o),e.elementType=Z,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case S:p=10;break e;case C:p=9;break e;case H:p=11;break e;case X:p=14;break e;case te:p=16,l=null;break e}p=29,r=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Wt(p,r,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function yr(e,t,r,l){return e=Wt(7,e,l,t),e.lanes=r,e}function ic(e,t,r){return e=Wt(6,e,null,t),e.lanes=r,e}function Jm(e){var t=Wt(18,null,null,0);return t.stateNode=e,t}function lc(e,t,r){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var e0=new WeakMap;function gn(e,t){if(typeof e=="object"&&e!==null){var r=e0.get(e);return r!==void 0?r:(t={value:e,source:t,stack:fr(t)},e0.set(e,t),t)}return{value:e,source:t,stack:fr(t)}}var ui=[],ci=0,Cs=null,tl=0,yn=[],bn=0,Ha=null,qn=1,Fn="";function ua(e,t){ui[ci++]=tl,ui[ci++]=Cs,Cs=e,tl=t}function t0(e,t,r){yn[bn++]=qn,yn[bn++]=Fn,yn[bn++]=Ha,Ha=e;var l=qn;e=Fn;var o=32-xt(l)-1;l&=~(1<<o),r+=1;var c=32-xt(t)+o;if(30<c){var p=o-o%5;c=(l&(1<<p)-1).toString(32),l>>=p,o-=p,qn=1<<32-xt(t)+o|r<<o|l,Fn=c+e}else qn=1<<c|r<<o|l,Fn=e}function sc(e){e.return!==null&&(ua(e,1),t0(e,1,0))}function oc(e){for(;e===Cs;)Cs=ui[--ci],ui[ci]=null,tl=ui[--ci],ui[ci]=null;for(;e===Ha;)Ha=yn[--bn],yn[bn]=null,Fn=yn[--bn],yn[bn]=null,qn=yn[--bn],yn[bn]=null}function n0(e,t){yn[bn++]=qn,yn[bn++]=Fn,yn[bn++]=Ha,qn=t.id,Fn=t.overflow,Ha=e}var Rt=null,$e=null,Ne=!1,Ia=null,vn=!1,uc=Error(s(519));function za(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nl(gn(t,e)),uc}function a0(e){var t=e.stateNode,r=e.type,l=e.memoizedProps;switch(t[Ze]=e,t[Ct]=l,r){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(r=0;r<Al.length;r++)Oe(Al[r],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),gm(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),bm(t,l.value,l.defaultValue,l.children)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||l.suppressHydrationWarning===!0||_g(t.textContent,r)?(l.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),l.onScroll!=null&&Oe("scroll",t),l.onScrollEnd!=null&&Oe("scrollend",t),l.onClick!=null&&(t.onclick=la),t=!0):t=!1,t||za(e,!0)}function r0(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:vn=!1;return;case 27:case 3:vn=!0;return;default:Rt=Rt.return}}function fi(e){if(e!==Rt)return!1;if(!Ne)return r0(e),Ne=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Rf(e.type,e.memoizedProps)),r=!r),r&&$e&&za(e),r0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));$e=wg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));$e=wg(e)}else t===27?(t=$e,Ja(e.type)?(e=Lf,Lf=null,$e=e):$e=t):$e=Rt?En(e.stateNode.nextSibling):null;return!0}function br(){$e=Rt=null,Ne=!1}function cc(){var e=Ia;return e!==null&&(Xt===null?Xt=e:Xt.push.apply(Xt,e),Ia=null),e}function nl(e){Ia===null?Ia=[e]:Ia.push(e)}var fc=O(null),vr=null,ca=null;function Ga(e,t,r){P(fc,t._currentValue),t._currentValue=r}function fa(e){e._currentValue=fc.current,q(fc)}function dc(e,t,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===r)break;e=e.return}}function hc(e,t,r,l){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 T=0;T<t.length;T++)if(v.context===t[T]){c.lanes|=r,v=c.alternate,v!==null&&(v.lanes|=r),dc(c.return,r,e),l||(p=null);break e}c=v.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=r,c=p.alternate,c!==null&&(c.lanes|=r),dc(p,r,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 di(e,t,r,l){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(s(387));if(p=p.memoizedProps,p!==null){var v=o.type;$t(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===_e.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(wl):e=[wl])}o=o.return}e!==null&&hc(t,e,r,l),t.flags|=262144}function Rs(e){for(e=e.firstContext;e!==null;){if(!$t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _r(e){vr=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wt(e){return i0(vr,e)}function ws(e,t){return vr===null&&_r(e),i0(e,t)}function i0(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},ca===null){if(e===null)throw Error(s(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return r}var FE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},VE=n.unstable_scheduleCallback,YE=n.unstable_NormalPriority,pt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mc(){return{controller:new FE,data:new Map,refCount:0}}function al(e){e.refCount--,e.refCount===0&&VE(YE,function(){e.controller.abort()})}var rl=null,pc=0,hi=0,mi=null;function PE(e,t){if(rl===null){var r=rl=[];pc=0,hi=vf(),mi={status:"pending",value:void 0,then:function(l){r.push(l)}}}return pc++,t.then(l0,l0),t}function l0(){if(--pc===0&&rl!==null){mi!==null&&(mi.status="fulfilled");var e=rl;rl=null,hi=0,mi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function XE(e,t){var r=[],l={status:"pending",value:null,reason:null,then:function(o){r.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<r.length;o++)(0,r[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<r.length;o++)(0,r[o])(void 0)}),l}var s0=G.S;G.S=function(e,t){Vp=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&PE(e,t),s0!==null&&s0(e,t)};var Er=O(null);function gc(){var e=Er.current;return e!==null?e:Ke.pooledCache}function Ns(e,t){t===null?P(Er,Er.current):P(Er,t.pool)}function o0(){var e=gc();return e===null?null:{parent:pt._currentValue,pool:e}}var pi=Error(s(460)),yc=Error(s(474)),Ms=Error(s(542)),Ds={then:function(){}};function u0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function c0(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(la,la),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,d0(e),e;default:if(typeof t.status=="string")t.then(la,la);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,d0(e),e}throw Tr=t,pi}}function Sr(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Tr=r,pi):r}}var Tr=null;function f0(){if(Tr===null)throw Error(s(459));var e=Tr;return Tr=null,e}function d0(e){if(e===pi||e===Ms)throw Error(s(483))}var gi=null,il=0;function Ls(e){var t=il;return il+=1,gi===null&&(gi=[]),c0(gi,e,t)}function ll(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Bs(e,t){throw t.$$typeof===A?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function h0(e){function t(M,R){if(e){var D=M.deletions;D===null?(M.deletions=[R],M.flags|=16):D.push(R)}}function r(M,R){if(!e)return null;for(;R!==null;)t(M,R),R=R.sibling;return null}function l(M){for(var R=new Map;M!==null;)M.key!==null?R.set(M.key,M):R.set(M.index,M),M=M.sibling;return R}function o(M,R){return M=oa(M,R),M.index=0,M.sibling=null,M}function c(M,R,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<R?(M.flags|=67108866,R):D):(M.flags|=67108866,R)):(M.flags|=1048576,R)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,R,D,V){return R===null||R.tag!==6?(R=ic(D,M.mode,V),R.return=M,R):(R=o(R,D),R.return=M,R)}function T(M,R,D,V){var oe=D.type;return oe===k?F(M,R,D.props.children,V,D.key):R!==null&&(R.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===te&&Sr(oe)===R.type)?(R=o(R,D.props),ll(R,D),R.return=M,R):(R=xs(D.type,D.key,D.props,null,M.mode,V),ll(R,D),R.return=M,R)}function L(M,R,D,V){return R===null||R.tag!==4||R.stateNode.containerInfo!==D.containerInfo||R.stateNode.implementation!==D.implementation?(R=lc(D,M.mode,V),R.return=M,R):(R=o(R,D.children||[]),R.return=M,R)}function F(M,R,D,V,oe){return R===null||R.tag!==7?(R=yr(D,M.mode,V,oe),R.return=M,R):(R=o(R,D),R.return=M,R)}function Y(M,R,D){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=ic(""+R,M.mode,D),R.return=M,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case U:return D=xs(R.type,R.key,R.props,null,M.mode,D),ll(D,R),D.return=M,D;case x:return R=lc(R,M.mode,D),R.return=M,R;case te:return R=Sr(R),Y(M,R,D)}if(we(R)||pe(R))return R=yr(R,M.mode,D,null),R.return=M,R;if(typeof R.then=="function")return Y(M,Ls(R),D);if(R.$$typeof===S)return Y(M,ws(M,R),D);Bs(M,R)}return null}function j(M,R,D,V){var oe=R!==null?R.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return oe!==null?null:v(M,R,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case U:return D.key===oe?T(M,R,D,V):null;case x:return D.key===oe?L(M,R,D,V):null;case te:return D=Sr(D),j(M,R,D,V)}if(we(D)||pe(D))return oe!==null?null:F(M,R,D,V,null);if(typeof D.then=="function")return j(M,R,Ls(D),V);if(D.$$typeof===S)return j(M,R,ws(M,D),V);Bs(M,D)}return null}function z(M,R,D,V,oe){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(D)||null,v(R,M,""+V,oe);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case U:return M=M.get(V.key===null?D:V.key)||null,T(R,M,V,oe);case x:return M=M.get(V.key===null?D:V.key)||null,L(R,M,V,oe);case te:return V=Sr(V),z(M,R,D,V,oe)}if(we(V)||pe(V))return M=M.get(D)||null,F(R,M,V,oe,null);if(typeof V.then=="function")return z(M,R,D,Ls(V),oe);if(V.$$typeof===S)return z(M,R,D,ws(R,V),oe);Bs(R,V)}return null}function ae(M,R,D,V){for(var oe=null,Ue=null,ie=R,ve=R=0,Re=null;ie!==null&&ve<D.length;ve++){ie.index>ve?(Re=ie,ie=null):Re=ie.sibling;var je=j(M,ie,D[ve],V);if(je===null){ie===null&&(ie=Re);break}e&&ie&&je.alternate===null&&t(M,ie),R=c(je,R,ve),Ue===null?oe=je:Ue.sibling=je,Ue=je,ie=Re}if(ve===D.length)return r(M,ie),Ne&&ua(M,ve),oe;if(ie===null){for(;ve<D.length;ve++)ie=Y(M,D[ve],V),ie!==null&&(R=c(ie,R,ve),Ue===null?oe=ie:Ue.sibling=ie,Ue=ie);return Ne&&ua(M,ve),oe}for(ie=l(ie);ve<D.length;ve++)Re=z(ie,M,ve,D[ve],V),Re!==null&&(e&&Re.alternate!==null&&ie.delete(Re.key===null?ve:Re.key),R=c(Re,R,ve),Ue===null?oe=Re:Ue.sibling=Re,Ue=Re);return e&&ie.forEach(function(rr){return t(M,rr)}),Ne&&ua(M,ve),oe}function ue(M,R,D,V){if(D==null)throw Error(s(151));for(var oe=null,Ue=null,ie=R,ve=R=0,Re=null,je=D.next();ie!==null&&!je.done;ve++,je=D.next()){ie.index>ve?(Re=ie,ie=null):Re=ie.sibling;var rr=j(M,ie,je.value,V);if(rr===null){ie===null&&(ie=Re);break}e&&ie&&rr.alternate===null&&t(M,ie),R=c(rr,R,ve),Ue===null?oe=rr:Ue.sibling=rr,Ue=rr,ie=Re}if(je.done)return r(M,ie),Ne&&ua(M,ve),oe;if(ie===null){for(;!je.done;ve++,je=D.next())je=Y(M,je.value,V),je!==null&&(R=c(je,R,ve),Ue===null?oe=je:Ue.sibling=je,Ue=je);return Ne&&ua(M,ve),oe}for(ie=l(ie);!je.done;ve++,je=D.next())je=z(ie,M,ve,je.value,V),je!==null&&(e&&je.alternate!==null&&ie.delete(je.key===null?ve:je.key),R=c(je,R,ve),Ue===null?oe=je:Ue.sibling=je,Ue=je);return e&&ie.forEach(function(rS){return t(M,rS)}),Ne&&ua(M,ve),oe}function Pe(M,R,D,V){if(typeof D=="object"&&D!==null&&D.type===k&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case U:e:{for(var oe=D.key;R!==null;){if(R.key===oe){if(oe=D.type,oe===k){if(R.tag===7){r(M,R.sibling),V=o(R,D.props.children),V.return=M,M=V;break e}}else if(R.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===te&&Sr(oe)===R.type){r(M,R.sibling),V=o(R,D.props),ll(V,D),V.return=M,M=V;break e}r(M,R);break}else t(M,R);R=R.sibling}D.type===k?(V=yr(D.props.children,M.mode,V,D.key),V.return=M,M=V):(V=xs(D.type,D.key,D.props,null,M.mode,V),ll(V,D),V.return=M,M=V)}return p(M);case x:e:{for(oe=D.key;R!==null;){if(R.key===oe)if(R.tag===4&&R.stateNode.containerInfo===D.containerInfo&&R.stateNode.implementation===D.implementation){r(M,R.sibling),V=o(R,D.children||[]),V.return=M,M=V;break e}else{r(M,R);break}else t(M,R);R=R.sibling}V=lc(D,M.mode,V),V.return=M,M=V}return p(M);case te:return D=Sr(D),Pe(M,R,D,V)}if(we(D))return ae(M,R,D,V);if(pe(D)){if(oe=pe(D),typeof oe!="function")throw Error(s(150));return D=oe.call(D),ue(M,R,D,V)}if(typeof D.then=="function")return Pe(M,R,Ls(D),V);if(D.$$typeof===S)return Pe(M,R,ws(M,D),V);Bs(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,R!==null&&R.tag===6?(r(M,R.sibling),V=o(R,D),V.return=M,M=V):(r(M,R),V=ic(D,M.mode,V),V.return=M,M=V),p(M)):r(M,R)}return function(M,R,D,V){try{il=0;var oe=Pe(M,R,D,V);return gi=null,oe}catch(ie){if(ie===pi||ie===Ms)throw ie;var Ue=Wt(29,ie,null,M.mode);return Ue.lanes=V,Ue.return=M,Ue}finally{}}}var Ar=h0(!0),m0=h0(!1),ka=!1;function bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vc(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 qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ie&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Os(e),$m(e,null,r),t}return As(e,l,t,r),Os(e)}function sl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,us(e,r)}}function _c(e,t){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var o=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var p={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,r=r.next}while(r!==null);c===null?o=c=t:c=c.next=t}else o=c=t;r={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Ec=!1;function ol(){if(Ec){var e=mi;if(e!==null)throw e}}function ul(e,t,r,l){Ec=!1;var o=e.updateQueue;ka=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,L=T.next;T.next=null,p===null?c=L:p.next=L,p=T;var F=e.alternate;F!==null&&(F=F.updateQueue,v=F.lastBaseUpdate,v!==p&&(v===null?F.firstBaseUpdate=L:v.next=L,F.lastBaseUpdate=T))}if(c!==null){var Y=o.baseState;p=0,F=L=T=null,v=c;do{var j=v.lane&-536870913,z=j!==v.lane;if(z?(Ce&j)===j:(l&j)===j){j!==0&&j===hi&&(Ec=!0),F!==null&&(F=F.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,ue=v;j=t;var Pe=r;switch(ue.tag){case 1:if(ae=ue.payload,typeof ae=="function"){Y=ae.call(Pe,Y,j);break e}Y=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ue.payload,j=typeof ae=="function"?ae.call(Pe,Y,j):ae,j==null)break e;Y=_({},Y,j);break e;case 2:ka=!0}}j=v.callback,j!==null&&(e.flags|=64,z&&(e.flags|=8192),z=o.callbacks,z===null?o.callbacks=[j]:z.push(j))}else z={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},F===null?(L=F=z,T=Y):F=F.next=z,p|=j;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;z=v,v=z.next,z.next=null,o.lastBaseUpdate=z,o.shared.pending=null}}while(!0);F===null&&(T=Y),o.baseState=T,o.firstBaseUpdate=L,o.lastBaseUpdate=F,c===null&&(o.shared.lanes=0),Za|=p,e.lanes=p,e.memoizedState=Y}}function p0(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function g0(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)p0(r[e],t)}var yi=O(null),Us=O(0);function y0(e,t){e=_a,P(Us,e),P(yi,t),_a=e|t.baseLanes}function Sc(){P(Us,_a),P(yi,yi.current)}function Tc(){_a=Us.current,q(yi),q(Us)}var Jt=O(null),_n=null;function Va(e){var t=e.alternate;P(ft,ft.current&1),P(Jt,e),_n===null&&(t===null||yi.current!==null||t.memoizedState!==null)&&(_n=e)}function Ac(e){P(ft,ft.current),P(Jt,e),_n===null&&(_n=e)}function b0(e){e.tag===22?(P(ft,ft.current),P(Jt,e),_n===null&&(_n=e)):Ya()}function Ya(){P(ft,ft.current),P(Jt,Jt.current)}function en(e){q(Jt),_n===e&&(_n=null),q(ft)}var ft=O(0);function js(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Mf(r)||Df(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var da=0,be=null,Ve=null,gt=null,Hs=!1,bi=!1,Or=!1,Is=0,cl=0,vi=null,ZE=0;function ot(){throw Error(s(321))}function Oc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!$t(e[r],t[r]))return!1;return!0}function xc(e,t,r,l,o,c){return da=c,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?tp:kc,Or=!1,c=r(l,o),Or=!1,bi&&(c=_0(t,r,l,o)),v0(e),c}function v0(e){G.H=hl;var t=Ve!==null&&Ve.next!==null;if(da=0,gt=Ve=be=null,Hs=!1,cl=0,vi=null,t)throw Error(s(300));e===null||yt||(e=e.dependencies,e!==null&&Rs(e)&&(yt=!0))}function _0(e,t,r,l){be=e;var o=0;do{if(bi&&(vi=null),cl=0,bi=!1,25<=o)throw Error(s(301));if(o+=1,gt=Ve=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=np,c=t(r,l)}while(bi);return c}function QE(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?fl(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(be.flags|=1024),t}function Cc(){var e=Is!==0;return Is=0,e}function Rc(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function wc(e){if(Hs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hs=!1}da=0,gt=Ve=be=null,bi=!1,cl=Is=0,vi=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?be.memoizedState=gt=e:gt=gt.next=e,gt}function dt(){if(Ve===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=gt===null?be.memoizedState:gt.next;if(t!==null)gt=t,Ve=e;else{if(e===null)throw be.alternate===null?Error(s(467)):Error(s(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},gt===null?be.memoizedState=gt=e:gt=gt.next=e}return gt}function zs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fl(e){var t=cl;return cl+=1,vi===null&&(vi=[]),e=c0(vi,e,t),t=be,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?tp:kc),e}function Gs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fl(e);if(e.$$typeof===S)return wt(e)}throw Error(s(438,String(e)))}function Nc(e){var t=null,r=be.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var l=be.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=zs(),be.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),l=0;l<e;l++)r[l]=ye;return t.index++,r}function ha(e,t){return typeof t=="function"?t(e):t}function ks(e){var t=dt();return Mc(t,Ve,e)}function Mc(e,t,r){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=r;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=p=null,T=null,L=t,F=!1;do{var Y=L.lane&-536870913;if(Y!==L.lane?(Ce&Y)===Y:(da&Y)===Y){var j=L.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Y===hi&&(F=!0);else if((da&j)===j){L=L.next,j===hi&&(F=!0);continue}else Y={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=Y,p=c):T=T.next=Y,be.lanes|=j,Za|=j;Y=L.action,Or&&r(c,Y),c=L.hasEagerState?L.eagerState:r(c,Y)}else j={lane:Y,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=j,p=c):T=T.next=j,be.lanes|=Y,Za|=Y;L=L.next}while(L!==null&&L!==t);if(T===null?p=c:T.next=v,!$t(c,e.memoizedState)&&(yt=!0,F&&(r=mi,r!==null)))throw r;e.memoizedState=c,e.baseState=p,e.baseQueue=T,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Dc(e){var t=dt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var l=r.dispatch,o=r.pending,c=t.memoizedState;if(o!==null){r.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);$t(c,t.memoizedState)||(yt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,l]}function E0(e,t,r){var l=be,o=dt(),c=Ne;if(c){if(r===void 0)throw Error(s(407));r=r()}else r=t();var p=!$t((Ve||o).memoizedState,r);if(p&&(o.memoizedState=r,yt=!0),o=o.queue,Uc(A0.bind(null,l,o,e),[e]),o.getSnapshot!==t||p||gt!==null&>.memoizedState.tag&1){if(l.flags|=2048,_i(9,{destroy:void 0},T0.bind(null,l,o,r,t),null),Ke===null)throw Error(s(349));c||(da&127)!==0||S0(l,t,r)}return r}function S0(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=be.updateQueue,t===null?(t=zs(),be.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function T0(e,t,r,l){t.value=r,t.getSnapshot=l,O0(t)&&x0(e)}function A0(e,t,r){return r(function(){O0(t)&&x0(e)})}function O0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!$t(e,r)}catch{return!0}}function x0(e){var t=gr(e,2);t!==null&&Zt(t,e,2)}function Lc(e){var t=Ht();if(typeof e=="function"){var r=e;if(e=r(),Or){jt(!0);try{r()}finally{jt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function C0(e,t,r,l){return e.baseState=r,Mc(e,Ve,typeof l=="function"?l:ha)}function KE(e,t,r,l,o){if(Vs(e))throw Error(s(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?r(!0):c.isTransition=!1,l(c),r=t.pending,r===null?(c.next=t.pending=c,R0(t,c)):(c.next=r.next,t.pending=r.next=c)}}function R0(e,t){var r=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=G.T,p={};G.T=p;try{var v=r(o,l),T=G.S;T!==null&&T(p,v),w0(e,t,v)}catch(L){Bc(e,t,L)}finally{c!==null&&p.types!==null&&(c.types=p.types),G.T=c}}else try{c=r(o,l),w0(e,t,c)}catch(L){Bc(e,t,L)}}function w0(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){N0(e,t,l)},function(l){return Bc(e,t,l)}):N0(e,t,r)}function N0(e,t,r){t.status="fulfilled",t.value=r,M0(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,R0(e,r)))}function Bc(e,t,r){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=r,M0(t),t=t.next;while(t!==l)}e.action=null}function M0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function D0(e,t){return t}function L0(e,t){if(Ne){var r=Ke.formState;if(r!==null){e:{var l=be;if(Ne){if($e){t:{for(var o=$e,c=vn;o.nodeType!==8;){if(!c){o=null;break t}if(o=En(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){$e=En(o.nextSibling),l=o.data==="F!";break e}}za(l)}l=!1}l&&(t=r[0])}}return r=Ht(),r.memoizedState=r.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:D0,lastRenderedState:t},r.queue=l,r=W0.bind(null,be,l),l.dispatch=r,l=Lc(!1),c=Gc.bind(null,be,!1,l.queue),l=Ht(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,r=KE.bind(null,be,o,c,r),o.dispatch=r,l.memoizedState=e,[t,r,!1]}function B0(e){var t=dt();return U0(t,Ve,e)}function U0(e,t,r){if(t=Mc(e,t,D0)[0],e=ks(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=fl(t)}catch(p){throw p===pi?Ms:p}else l=t;t=dt();var o=t.queue,c=o.dispatch;return r!==t.memoizedState&&(be.flags|=2048,_i(9,{destroy:void 0},$E.bind(null,o,r),null)),[l,c,e]}function $E(e,t){e.action=t}function j0(e){var t=dt(),r=Ve;if(r!==null)return U0(t,r,e);dt(),t=t.memoizedState,r=dt();var l=r.queue.dispatch;return r.memoizedState=e,[t,l,!1]}function _i(e,t,r,l){return e={tag:e,create:r,deps:l,inst:t,next:null},t=be.updateQueue,t===null&&(t=zs(),be.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,t.lastEffect=e),e}function H0(){return dt().memoizedState}function qs(e,t,r,l){var o=Ht();be.flags|=e,o.memoizedState=_i(1|t,{destroy:void 0},r,l===void 0?null:l)}function Fs(e,t,r,l){var o=dt();l=l===void 0?null:l;var c=o.memoizedState.inst;Ve!==null&&l!==null&&Oc(l,Ve.memoizedState.deps)?o.memoizedState=_i(t,c,r,l):(be.flags|=e,o.memoizedState=_i(1|t,c,r,l))}function I0(e,t){qs(8390656,8,e,t)}function Uc(e,t){Fs(2048,8,e,t)}function WE(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=zs(),be.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function z0(e){var t=dt().memoizedState;return WE({ref:t,nextImpl:e}),function(){if((Ie&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function G0(e,t){return Fs(4,2,e,t)}function k0(e,t){return Fs(4,4,e,t)}function q0(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function F0(e,t,r){r=r!=null?r.concat([e]):null,Fs(4,4,q0.bind(null,t,e),r)}function jc(){}function V0(e,t){var r=dt();t=t===void 0?null:t;var l=r.memoizedState;return t!==null&&Oc(t,l[1])?l[0]:(r.memoizedState=[e,t],e)}function Y0(e,t){var r=dt();t=t===void 0?null:t;var l=r.memoizedState;if(t!==null&&Oc(t,l[1]))return l[0];if(l=e(),Or){jt(!0);try{e()}finally{jt(!1)}}return r.memoizedState=[l,t],l}function Hc(e,t,r){return r===void 0||(da&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=Pp(),be.lanes|=e,Za|=e,r)}function P0(e,t,r,l){return $t(r,t)?r:yi.current!==null?(e=Hc(e,r,l),$t(e,t)||(yt=!0),e):(da&42)===0||(da&1073741824)!==0&&(Ce&261930)===0?(yt=!0,e.memoizedState=r):(e=Pp(),be.lanes|=e,Za|=e,t)}function X0(e,t,r,l,o){var c=$.p;$.p=c!==0&&8>c?c:8;var p=G.T,v={};G.T=v,Gc(e,!1,t,r);try{var T=o(),L=G.S;if(L!==null&&L(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=XE(T,l);dl(e,t,F,an(e))}else dl(e,t,l,an(e))}catch(Y){dl(e,t,{then:function(){},status:"rejected",reason:Y},an())}finally{$.p=c,p!==null&&v.types!==null&&(p.types=v.types),G.T=p}}function JE(){}function Ic(e,t,r,l){if(e.tag!==5)throw Error(s(476));var o=Z0(e).queue;X0(e,o,t,ne,r===null?JE:function(){return Q0(e),r(l)})}function Z0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:ne},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Q0(e){var t=Z0(e);t.next===null&&(t=e.alternate.memoizedState),dl(e,t.next.queue,{},an())}function zc(){return wt(wl)}function K0(){return dt().memoizedState}function $0(){return dt().memoizedState}function e2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=an();e=qa(r);var l=Fa(t,e,r);l!==null&&(Zt(l,t,r),sl(l,t,r)),t={cache:mc()},e.payload=t;return}t=t.return}}function t2(e,t,r){var l=an();r={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Vs(e)?J0(t,r):(r=ac(e,t,r,l),r!==null&&(Zt(r,e,l),ep(r,t,l)))}function W0(e,t,r){var l=an();dl(e,t,r,l)}function dl(e,t,r,l){var o={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Vs(e))J0(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,r);if(o.hasEagerState=!0,o.eagerState=v,$t(v,p))return As(e,t,o,0),Ke===null&&Ts(),!1}catch{}finally{}if(r=ac(e,t,o,l),r!==null)return Zt(r,e,l),ep(r,t,l),!0}return!1}function Gc(e,t,r,l){if(l={lane:2,revertLane:vf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Vs(e)){if(t)throw Error(s(479))}else t=ac(e,r,l,2),t!==null&&Zt(t,e,2)}function Vs(e){var t=e.alternate;return e===be||t!==null&&t===be}function J0(e,t){bi=Hs=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ep(e,t,r){if((r&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,us(e,r)}}var hl={readContext:wt,use:Gs,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};hl.useEffectEvent=ot;var tp={readContext:wt,use:Gs,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:I0,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,qs(4194308,4,q0.bind(null,t,e),r)},useLayoutEffect:function(e,t){return qs(4194308,4,e,t)},useInsertionEffect:function(e,t){qs(4,2,e,t)},useMemo:function(e,t){var r=Ht();t=t===void 0?null:t;var l=e();if(Or){jt(!0);try{e()}finally{jt(!1)}}return r.memoizedState=[l,t],l},useReducer:function(e,t,r){var l=Ht();if(r!==void 0){var o=r(t);if(Or){jt(!0);try{r(t)}finally{jt(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=t2.bind(null,be,e),[l.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Lc(e);var t=e.queue,r=W0.bind(null,be,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:jc,useDeferredValue:function(e,t){var r=Ht();return Hc(r,e,t)},useTransition:function(){var e=Lc(!1);return e=X0.bind(null,be,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var l=be,o=Ht();if(Ne){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),Ke===null)throw Error(s(349));(Ce&127)!==0||S0(l,t,r)}o.memoizedState=r;var c={value:r,getSnapshot:t};return o.queue=c,I0(A0.bind(null,l,c,e),[e]),l.flags|=2048,_i(9,{destroy:void 0},T0.bind(null,l,c,r,t),null),r},useId:function(){var e=Ht(),t=Ke.identifierPrefix;if(Ne){var r=Fn,l=qn;r=(l&~(1<<32-xt(l)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Is++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=ZE++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:zc,useFormState:L0,useActionState:L0,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Gc.bind(null,be,!0,r),r.dispatch=t,[e,t]},useMemoCache:Nc,useCacheRefresh:function(){return Ht().memoizedState=e2.bind(null,be)},useEffectEvent:function(e){var t=Ht(),r={impl:e};return t.memoizedState=r,function(){if((Ie&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}},kc={readContext:wt,use:Gs,useCallback:V0,useContext:wt,useEffect:Uc,useImperativeHandle:F0,useInsertionEffect:G0,useLayoutEffect:k0,useMemo:Y0,useReducer:ks,useRef:H0,useState:function(){return ks(ha)},useDebugValue:jc,useDeferredValue:function(e,t){var r=dt();return P0(r,Ve.memoizedState,e,t)},useTransition:function(){var e=ks(ha)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:fl(e),t]},useSyncExternalStore:E0,useId:K0,useHostTransitionStatus:zc,useFormState:B0,useActionState:B0,useOptimistic:function(e,t){var r=dt();return C0(r,Ve,e,t)},useMemoCache:Nc,useCacheRefresh:$0};kc.useEffectEvent=z0;var np={readContext:wt,use:Gs,useCallback:V0,useContext:wt,useEffect:Uc,useImperativeHandle:F0,useInsertionEffect:G0,useLayoutEffect:k0,useMemo:Y0,useReducer:Dc,useRef:H0,useState:function(){return Dc(ha)},useDebugValue:jc,useDeferredValue:function(e,t){var r=dt();return Ve===null?Hc(r,e,t):P0(r,Ve.memoizedState,e,t)},useTransition:function(){var e=Dc(ha)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:fl(e),t]},useSyncExternalStore:E0,useId:K0,useHostTransitionStatus:zc,useFormState:j0,useActionState:j0,useOptimistic:function(e,t){var r=dt();return Ve!==null?C0(r,Ve,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Nc,useCacheRefresh:$0};np.useEffectEvent=z0;function qc(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:_({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Fc={enqueueSetState:function(e,t,r){e=e._reactInternals;var l=an(),o=qa(l);o.payload=t,r!=null&&(o.callback=r),t=Fa(e,o,l),t!==null&&(Zt(t,e,l),sl(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=an(),o=qa(l);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Fa(e,o,l),t!==null&&(Zt(t,e,l),sl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=an(),l=qa(r);l.tag=2,t!=null&&(l.callback=t),t=Fa(e,l,r),t!==null&&(Zt(t,e,r),sl(t,e,r))}};function ap(e,t,r,l,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,p):t.prototype&&t.prototype.isPureReactComponent?!Ji(r,l)||!Ji(o,c):!0}function rp(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&Fc.enqueueReplaceState(t,t.state,null)}function xr(e,t){var r=t;if("ref"in t){r={};for(var l in t)l!=="ref"&&(r[l]=t[l])}if(e=e.defaultProps){r===t&&(r=_({},r));for(var o in e)r[o]===void 0&&(r[o]=e[o])}return r}function ip(e){Ss(e)}function lp(e){console.error(e)}function sp(e){Ss(e)}function Ys(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function op(e,t,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Vc(e,t,r){return r=qa(r),r.tag=3,r.payload={element:null},r.callback=function(){Ys(e,t)},r}function up(e){return e=qa(e),e.tag=3,e}function cp(e,t,r,l){var o=r.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){op(t,r,l)}}var p=r.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){op(t,r,l),typeof o!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function n2(e,t,r,l,o){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=r.alternate,t!==null&&di(t,r,o,!0),r=Jt.current,r!==null){switch(r.tag){case 31:case 13:return _n===null?ao():r.alternate===null&&ut===0&&(ut=3),r.flags&=-257,r.flags|=65536,r.lanes=o,l===Ds?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([l]):t.add(l),gf(e,l,o)),!1;case 22:return r.flags|=65536,l===Ds?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([l]):r.add(l)),gf(e,l,o)),!1}throw Error(s(435,r.tag))}return gf(e,l,o),ao(),!1}if(Ne)return t=Jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==uc&&(e=Error(s(422),{cause:l}),nl(gn(e,r)))):(l!==uc&&(t=Error(s(423),{cause:l}),nl(gn(t,r))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=gn(l,r),o=Vc(e.stateNode,l,o),_c(e,o),ut!==4&&(ut=2)),!1;var c=Error(s(520),{cause:l});if(c=gn(c,r),El===null?El=[c]:El.push(c),ut!==4&&(ut=2),t===null)return!0;l=gn(l,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=o&-o,r.lanes|=e,e=Vc(r.stateNode,l,e),_c(r,e),!1;case 1:if(t=r.type,c=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Qa===null||!Qa.has(c))))return r.flags|=65536,o&=-o,r.lanes|=o,o=up(o),cp(o,e,r,l),_c(r,o),!1}r=r.return}while(r!==null);return!1}var Yc=Error(s(461)),yt=!1;function Nt(e,t,r,l){t.child=e===null?m0(t,null,r,l):Ar(t,e.child,r,l)}function fp(e,t,r,l,o){r=r.render;var c=t.ref;if("ref"in l){var p={};for(var v in l)v!=="ref"&&(p[v]=l[v])}else p=l;return _r(t),l=xc(e,t,r,p,c,o),v=Cc(),e!==null&&!yt?(Rc(e,t,o),ma(e,t,o)):(Ne&&v&&sc(t),t.flags|=1,Nt(e,t,l,o),t.child)}function dp(e,t,r,l,o){if(e===null){var c=r.type;return typeof c=="function"&&!rc(c)&&c.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=c,hp(e,t,c,l,o)):(e=xs(r.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Jc(e,o)){var p=c.memoizedProps;if(r=r.compare,r=r!==null?r:Ji,r(p,l)&&e.ref===t.ref)return ma(e,t,o)}return t.flags|=1,e=oa(c,l),e.ref=t.ref,e.return=t,t.child=e}function hp(e,t,r,l,o){if(e!==null){var c=e.memoizedProps;if(Ji(c,l)&&e.ref===t.ref)if(yt=!1,t.pendingProps=l=c,Jc(e,o))(e.flags&131072)!==0&&(yt=!0);else return t.lanes=e.lanes,ma(e,t,o)}return Pc(e,t,r,l,o)}function mp(e,t,r,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|r:r,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return pp(e,t,c,r,l)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ns(t,c!==null?c.cachePool:null),c!==null?y0(t,c):Sc(),b0(t);else return l=t.lanes=536870912,pp(e,t,c!==null?c.baseLanes|r:r,r,l)}else c!==null?(Ns(t,c.cachePool),y0(t,c),Ya(),t.memoizedState=null):(e!==null&&Ns(t,null),Sc(),Ya());return Nt(e,t,o,r),t.child}function ml(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pp(e,t,r,l,o){var c=gc();return c=c===null?null:{parent:pt._currentValue,pool:c},t.memoizedState={baseLanes:r,cachePool:c},e!==null&&Ns(t,null),Sc(),b0(t),e!==null&&di(e,t,l,!0),t.childLanes=o,null}function Ps(e,t){return t=Zs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gp(e,t,r){return Ar(t,e.child,null,r),e=Ps(t,t.pendingProps),e.flags|=2,en(t),t.memoizedState=null,e}function a2(e,t,r){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(l.mode==="hidden")return e=Ps(t,l),t.lanes=536870912,ml(null,e);if(Ac(t),(e=$e)?(e=Rg(e,vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:qn,overflow:Fn}:null,retryLane:536870912,hydrationErrors:null},r=Jm(e),r.return=t,t.child=r,Rt=t,$e=null)):e=null,e===null)throw za(t);return t.lanes=536870912,null}return Ps(t,l)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Ac(t),o)if(t.flags&256)t.flags&=-257,t=gp(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(yt||di(e,t,r,!1),o=(r&e.childLanes)!==0,yt||o){if(l=Ke,l!==null&&(p=Kt(l,r),p!==0&&p!==c.retryLane))throw c.retryLane=p,gr(e,p),Zt(l,e,p),Yc;ao(),t=gp(e,t,r)}else e=c.treeContext,$e=En(p.nextSibling),Rt=t,Ne=!0,Ia=null,vn=!1,e!==null&&n0(t,e),t=Ps(t,l),t.flags|=4096;return t}return e=oa(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Xs(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Pc(e,t,r,l,o){return _r(t),r=xc(e,t,r,l,void 0,o),l=Cc(),e!==null&&!yt?(Rc(e,t,o),ma(e,t,o)):(Ne&&l&&sc(t),t.flags|=1,Nt(e,t,r,o),t.child)}function yp(e,t,r,l,o,c){return _r(t),t.updateQueue=null,r=_0(t,l,r,o),v0(e),l=Cc(),e!==null&&!yt?(Rc(e,t,c),ma(e,t,c)):(Ne&&l&&sc(t),t.flags|=1,Nt(e,t,r,c),t.child)}function bp(e,t,r,l,o){if(_r(t),t.stateNode===null){var c=oi,p=r.contextType;typeof p=="object"&&p!==null&&(c=wt(p)),c=new r(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Fc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},bc(t),p=r.contextType,c.context=typeof p=="object"&&p!==null?wt(p):oi,c.state=t.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(qc(t,r,p,l),c.state=t.memoizedState),typeof r.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&&Fc.enqueueReplaceState(c,c.state,null),ul(t,l,c,o),ol(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,T=xr(r,v);c.props=T;var L=c.context,F=r.contextType;p=oi,typeof F=="object"&&F!==null&&(p=wt(F));var Y=r.getDerivedStateFromProps;F=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,F||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||L!==p)&&rp(t,c,l,p),ka=!1;var j=t.memoizedState;c.state=j,ul(t,l,c,o),ol(),L=t.memoizedState,v||j!==L||ka?(typeof Y=="function"&&(qc(t,r,Y,l),L=t.memoizedState),(T=ka||ap(t,r,T,l,j,L,p))?(F||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=l,t.memoizedState=L),c.props=l,c.state=L,c.context=p,l=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,vc(e,t),p=t.memoizedProps,F=xr(r,p),c.props=F,Y=t.pendingProps,j=c.context,L=r.contextType,T=oi,typeof L=="object"&&L!==null&&(T=wt(L)),v=r.getDerivedStateFromProps,(L=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==Y||j!==T)&&rp(t,c,l,T),ka=!1,j=t.memoizedState,c.state=j,ul(t,l,c,o),ol();var z=t.memoizedState;p!==Y||j!==z||ka||e!==null&&e.dependencies!==null&&Rs(e.dependencies)?(typeof v=="function"&&(qc(t,r,v,l),z=t.memoizedState),(F=ka||ap(t,r,F,l,j,z,T)||e!==null&&e.dependencies!==null&&Rs(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,z,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,z,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),c.props=l,c.state=z,c.context=T,l=F):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Xs(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Ar(t,e.child,null,o),t.child=Ar(t,null,r,o)):Nt(e,t,r,o),t.memoizedState=c.state,e=t.child):e=ma(e,t,o),e}function vp(e,t,r,l){return br(),t.flags|=256,Nt(e,t,r,l),t.child}var Xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zc(e){return{baseLanes:e,cachePool:o0()}}function Qc(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=nn),e}function _p(e,t,r){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?Va(t):Ya(),(e=$e)?(e=Rg(e,vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:qn,overflow:Fn}:null,retryLane:536870912,hydrationErrors:null},r=Jm(e),r.return=t,t.child=r,Rt=t,$e=null)):e=null,e===null)throw za(t);return Df(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,o?(Ya(),o=t.mode,v=Zs({mode:"hidden",children:v},o),l=yr(l,o,r,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=Zc(r),l.childLanes=Qc(e,p,r),t.memoizedState=Xc,ml(null,l)):(Va(t),Kc(t,v))}var T=e.memoizedState;if(T!==null&&(v=T.dehydrated,v!==null)){if(c)t.flags&256?(Va(t),t.flags&=-257,t=$c(e,t,r)):t.memoizedState!==null?(Ya(),t.child=e.child,t.flags|=128,t=null):(Ya(),v=l.fallback,o=t.mode,l=Zs({mode:"visible",children:l.children},o),v=yr(v,o,r,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,Ar(t,e.child,null,r),l=t.child,l.memoizedState=Zc(r),l.childLanes=Qc(e,p,r),t.memoizedState=Xc,t=ml(null,l));else if(Va(t),Df(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var L=p.dgst;p=L,l=Error(s(419)),l.stack="",l.digest=p,nl({value:l,source:null,stack:null}),t=$c(e,t,r)}else if(yt||di(e,t,r,!1),p=(r&e.childLanes)!==0,yt||p){if(p=Ke,p!==null&&(l=Kt(p,r),l!==0&&l!==T.retryLane))throw T.retryLane=l,gr(e,l),Zt(p,e,l),Yc;Mf(v)||ao(),t=$c(e,t,r)}else Mf(v)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,$e=En(v.nextSibling),Rt=t,Ne=!0,Ia=null,vn=!1,e!==null&&n0(t,e),t=Kc(t,l.children),t.flags|=4096);return t}return o?(Ya(),v=l.fallback,o=t.mode,T=e.child,L=T.sibling,l=oa(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,L!==null?v=oa(L,v):(v=yr(v,o,r,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,ml(null,l),l=t.child,v=e.child.memoizedState,v===null?v=Zc(r):(o=v.cachePool,o!==null?(T=pt._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=o0(),v={baseLanes:v.baseLanes|r,cachePool:o}),l.memoizedState=v,l.childLanes=Qc(e,p,r),t.memoizedState=Xc,ml(e.child,l)):(Va(t),r=e.child,e=r.sibling,r=oa(r,{mode:"visible",children:l.children}),r.return=t,r.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=r,t.memoizedState=null,r)}function Kc(e,t){return t=Zs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Zs(e,t){return e=Wt(22,e,null,t),e.lanes=0,e}function $c(e,t,r){return Ar(t,e.child,null,r),e=Kc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ep(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),dc(e.return,t,r)}function Wc(e,t,r,l,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=r,p.tailMode=o,p.treeForkCount=c)}function Sp(e,t,r){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var p=ft.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,P(ft,p),Nt(e,t,l,r),l=Ne?tl:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ep(e,r,t);else if(e.tag===19)Ep(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&js(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Wc(t,!1,o,r,c,l);break;case"backwards":case"unstable_legacy-backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&js(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Wc(t,!0,r,null,c,l);break;case"together":Wc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ma(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Za|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(di(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=oa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=oa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Rs(e)))}function r2(e,t,r){switch(t.tag){case 3:mt(t,t.stateNode.containerInfo),Ga(t,pt,e.memoizedState.cache),br();break;case 27:case 5:fn(t);break;case 4:mt(t,t.stateNode.containerInfo);break;case 10:Ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ac(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Va(t),t.flags|=128,null):(r&t.child.childLanes)!==0?_p(e,t,r):(Va(t),e=ma(e,t,r),e!==null?e.sibling:null);Va(t);break;case 19:var o=(e.flags&128)!==0;if(l=(r&t.childLanes)!==0,l||(di(e,t,r,!1),l=(r&t.childLanes)!==0),o){if(l)return Sp(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),P(ft,ft.current),l)break;return null;case 22:return t.lanes=0,mp(e,t,r,t.pendingProps);case 24:Ga(t,pt,e.memoizedState.cache)}return ma(e,t,r)}function Tp(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!Jc(e,r)&&(t.flags&128)===0)return yt=!1,r2(e,t,r);yt=(e.flags&131072)!==0}else yt=!1,Ne&&(t.flags&1048576)!==0&&t0(t,tl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Sr(t.elementType),t.type=e,typeof e=="function")rc(e)?(l=xr(e,l),t.tag=1,t=bp(null,t,e,l,r)):(t.tag=0,t=Pc(null,t,e,l,r));else{if(e!=null){var o=e.$$typeof;if(o===H){t.tag=11,t=fp(null,t,e,l,r);break e}else if(o===X){t.tag=14,t=dp(null,t,e,l,r);break e}}throw t=Xe(e)||e,Error(s(306,t,""))}}return t;case 0:return Pc(e,t,t.type,t.pendingProps,r);case 1:return l=t.type,o=xr(l,t.pendingProps),bp(e,t,l,o,r);case 3:e:{if(mt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,vc(e,t),ul(t,l,null,r);var p=t.memoizedState;if(l=p.cache,Ga(t,pt,l),l!==c.cache&&hc(t,[pt],r,!0),ol(),l=p.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=vp(e,t,l,r);break e}else if(l!==o){o=gn(Error(s(424)),t),nl(o),t=vp(e,t,l,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for($e=En(e.firstChild),Rt=t,Ne=!0,Ia=null,vn=!0,r=m0(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(br(),l===o){t=ma(e,t,r);break e}Nt(e,t,l,r)}t=t.child}return t;case 26:return Xs(e,t),e===null?(r=Bg(t.type,null,t.pendingProps,null))?t.memoizedState=r:Ne||(r=t.type,e=t.pendingProps,l=co(fe.current).createElement(r),l[Ze]=t,l[Ct]=e,Mt(l,r,e),Be(l),t.stateNode=l):t.memoizedState=Bg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fn(t),e===null&&Ne&&(l=t.stateNode=Mg(t.type,t.pendingProps,fe.current),Rt=t,vn=!0,o=$e,Ja(t.type)?(Lf=o,$e=En(l.firstChild)):$e=o),Nt(e,t,t.pendingProps.children,r),Xs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=l=$e)&&(l=B2(l,t.type,t.pendingProps,vn),l!==null?(t.stateNode=l,Rt=t,$e=En(l.firstChild),vn=!1,o=!0):o=!1),o||za(t)),fn(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,l=c.children,Rf(o,c)?l=null:p!==null&&Rf(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=xc(e,t,QE,null,null,r),wl._currentValue=o),Xs(e,t),Nt(e,t,l,r),t.child;case 6:return e===null&&Ne&&((e=r=$e)&&(r=U2(r,t.pendingProps,vn),r!==null?(t.stateNode=r,Rt=t,$e=null,e=!0):e=!1),e||za(t)),null;case 13:return _p(e,t,r);case 4:return mt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ar(t,null,l,r):Nt(e,t,l,r),t.child;case 11:return fp(e,t,t.type,t.pendingProps,r);case 7:return Nt(e,t,t.pendingProps,r),t.child;case 8:return Nt(e,t,t.pendingProps.children,r),t.child;case 12:return Nt(e,t,t.pendingProps.children,r),t.child;case 10:return l=t.pendingProps,Ga(t,t.type,l.value),Nt(e,t,l.children,r),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,_r(t),o=wt(o),l=l(o),t.flags|=1,Nt(e,t,l,r),t.child;case 14:return dp(e,t,t.type,t.pendingProps,r);case 15:return hp(e,t,t.type,t.pendingProps,r);case 19:return Sp(e,t,r);case 31:return a2(e,t,r);case 22:return mp(e,t,r,t.pendingProps);case 24:return _r(t),l=wt(pt),e===null?(o=gc(),o===null&&(o=Ke,c=mc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=r),o=c),t.memoizedState={parent:l,cache:o},bc(t),Ga(t,pt,o)):((e.lanes&r)!==0&&(vc(e,t),ul(t,null,null,r),ol()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ga(t,pt,l)):(l=c.cache,Ga(t,pt,l),l!==o.cache&&hc(t,[pt],r,!0))),Nt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function pa(e){e.flags|=4}function ef(e,t,r,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Kp())e.flags|=8192;else throw Tr=Ds,yc}else e.flags&=-16777217}function Ap(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zg(t))if(Kp())e.flags|=8192;else throw Tr=Ds,yc}function Qs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ss():536870912,e.lanes|=t,Ai|=t)}function pl(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function i2(e,t,r){var l=t.pendingProps;switch(oc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return r=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),fa(pt),ze(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(fi(t)?pa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cc())),We(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(pa(t),c!==null?(We(t),Ap(t,c)):(We(t),ef(t,o,null,l,r))):c?c!==e.memoizedState?(pa(t),We(t),Ap(t,c)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&pa(t),We(t),ef(t,o,e,l,r)),null;case 27:if(Ma(t),r=fe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&pa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return We(t),null}e=W.current,fi(t)?a0(t):(e=Mg(o,l,r),t.stateNode=e,pa(t))}return We(t),null;case 5:if(Ma(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&pa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return We(t),null}if(c=W.current,fi(t))a0(t);else{var p=co(fe.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}c[Ze]=t,c[Ct]=l;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(Mt(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&pa(t)}}return We(t),ef(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&pa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=fe.current,fi(t)){if(e=t.stateNode,r=t.memoizedProps,l=null,o=Rt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[Ze]=t,e=!!(e.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||_g(e.nodeValue,r)),e||za(t,!0)}else e=co(e).createTextNode(l),e[Ze]=t,t.stateNode=e}return We(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(l=fi(t),r!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Ze]=t}else br(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else r=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(en(t),t):(en(t),null);if((t.flags&128)!==0)throw Error(s(558))}return We(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fi(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Ze]=t}else br(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),o=!1}else o=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(en(t),t):(en(t),null)}return en(t),(t.flags&128)!==0?(t.lanes=r,t):(r=l!==null,e=e!==null&&e.memoizedState!==null,r&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),Qs(t,t.updateQueue),We(t),null);case 4:return ze(),e===null&&Tf(t.stateNode.containerInfo),We(t),null;case 10:return fa(t.type),We(t),null;case 19:if(q(ft),l=t.memoizedState,l===null)return We(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)pl(l,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=js(e),c!==null){for(t.flags|=128,pl(l,!1),e=c.updateQueue,t.updateQueue=e,Qs(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)Wm(r,e),r=r.sibling;return P(ft,ft.current&1|2),Ne&&ua(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Et()>eo&&(t.flags|=128,o=!0,pl(l,!1),t.lanes=4194304)}else{if(!o)if(e=js(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Qs(t,e),pl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Ne)return We(t),null}else 2*Et()-l.renderingStartTime>eo&&r!==536870912&&(t.flags|=128,o=!0,pl(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Et(),e.sibling=null,r=ft.current,P(ft,o?r&1|2:r&1),Ne&&ua(t,l.treeForkCount),e):(We(t),null);case 22:case 23:return en(t),Tc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(r&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),r=t.updateQueue,r!==null&&Qs(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==r&&(t.flags|=2048),e!==null&&q(Er),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),fa(pt),We(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function l2(e,t){switch(oc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(pt),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ma(t),null;case 31:if(t.memoizedState!==null){if(en(t),t.alternate===null)throw Error(s(340));br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(en(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(ft),null;case 4:return ze(),null;case 10:return fa(t.type),null;case 22:case 23:return en(t),Tc(),e!==null&&q(Er),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(pt),null;case 25:return null;default:return null}}function Op(e,t){switch(oc(t),t.tag){case 3:fa(pt),ze();break;case 26:case 27:case 5:Ma(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&en(t);break;case 13:en(t);break;case 19:q(ft);break;case 10:fa(t.type);break;case 22:case 23:en(t),Tc(),e!==null&&q(Er);break;case 24:fa(pt)}}function gl(e,t){try{var r=t.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var o=l.next;r=o;do{if((r.tag&e)===e){l=void 0;var c=r.create,p=r.inst;l=c(),p.destroy=l}r=r.next}while(r!==o)}}catch(v){qe(t,t.return,v)}}function Pa(e,t,r){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var p=l.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,o=t;var T=r,L=v;try{L()}catch(F){qe(o,T,F)}}}l=l.next}while(l!==c)}}catch(F){qe(t,t.return,F)}}function xp(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{g0(t,r)}catch(l){qe(e,e.return,l)}}}function Cp(e,t,r){r.props=xr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(l){qe(e,t,l)}}function yl(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof r=="function"?e.refCleanup=r(l):r.current=l}}catch(o){qe(e,t,o)}}function Vn(e,t){var r=e.ref,l=e.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(o){qe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(o){qe(e,t,o)}else r.current=null}function Rp(e){var t=e.type,r=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(o){qe(e,e.return,o)}}function tf(e,t,r){try{var l=e.stateNode;R2(l,e.type,r,t),l[Ct]=t}catch(o){qe(e,e.return,o)}}function wp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ja(e.type)||e.tag===4}function nf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wp(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&&Ja(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 af(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=la));else if(l!==4&&(l===27&&Ja(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(af(e,t,r),e=e.sibling;e!==null;)af(e,t,r),e=e.sibling}function Ks(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(l!==4&&(l===27&&Ja(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Ks(e,t,r),e=e.sibling;e!==null;)Ks(e,t,r),e=e.sibling}function Np(e){var t=e.stateNode,r=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Mt(t,l,r),t[Ze]=e,t[Ct]=r}catch(c){qe(e,e.return,c)}}var ga=!1,bt=!1,rf=!1,Mp=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function s2(e,t){if(e=e.containerInfo,xf=bo,e=Fm(e),$u(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var p=0,v=-1,T=-1,L=0,F=0,Y=e,j=null;t:for(;;){for(var z;Y!==r||o!==0&&Y.nodeType!==3||(v=p+o),Y!==c||l!==0&&Y.nodeType!==3||(T=p+l),Y.nodeType===3&&(p+=Y.nodeValue.length),(z=Y.firstChild)!==null;)j=Y,Y=z;for(;;){if(Y===e)break t;if(j===r&&++L===o&&(v=p),j===c&&++F===l&&(T=p),(z=Y.nextSibling)!==null)break;Y=j,j=Y.parentNode}Y=z}r=v===-1||T===-1?null:{start:v,end:T}}else r=null}r=r||{start:0,end:0}}else r=null;for(Cf={focusedElem:e,selectionRange:r},bo=!1,Tt=t;Tt!==null;)if(t=Tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Tt=e;else for(;Tt!==null;){switch(t=Tt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)o=e[r],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,r=t,o=c.memoizedProps,c=c.memoizedState,l=r.stateNode;try{var ae=xr(r.type,o);e=l.getSnapshotBeforeUpdate(ae,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ue){qe(r,r.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Nf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nf(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Tt=e;break}Tt=t.return}}function Dp(e,t,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:ba(e,r),l&4&&gl(5,r);break;case 1:if(ba(e,r),l&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(p){qe(r,r.return,p)}else{var o=xr(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){qe(r,r.return,p)}}l&64&&xp(r),l&512&&yl(r,r.return);break;case 3:if(ba(e,r),l&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{g0(e,t)}catch(p){qe(r,r.return,p)}}break;case 27:t===null&&l&4&&Np(r);case 26:case 5:ba(e,r),t===null&&l&4&&Rp(r),l&512&&yl(r,r.return);break;case 12:ba(e,r);break;case 31:ba(e,r),l&4&&Up(e,r);break;case 13:ba(e,r),l&4&&jp(e,r),l&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=g2.bind(null,r),j2(e,r))));break;case 22:if(l=r.memoizedState!==null||ga,!l){t=t!==null&&t.memoizedState!==null||bt,o=ga;var c=bt;ga=l,(bt=t)&&!c?va(e,r,(r.subtreeFlags&8772)!==0):ba(e,r),ga=o,bt=c}break;case 30:break;default:ba(e,r)}}function Lp(e){var t=e.alternate;t!==null&&(e.alternate=null,Lp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Q(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 nt=null,Vt=!1;function ya(e,t,r){for(r=r.child;r!==null;)Bp(e,t,r),r=r.sibling}function Bp(e,t,r){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(Gn,r)}catch{}switch(r.tag){case 26:bt||Vn(r,t),ya(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:bt||Vn(r,t);var l=nt,o=Vt;Ja(r.type)&&(nt=r.stateNode,Vt=!1),ya(e,t,r),xl(r.stateNode),nt=l,Vt=o;break;case 5:bt||Vn(r,t);case 6:if(l=nt,o=Vt,nt=null,ya(e,t,r),nt=l,Vt=o,nt!==null)if(Vt)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(r.stateNode)}catch(c){qe(r,t,c)}else try{nt.removeChild(r.stateNode)}catch(c){qe(r,t,c)}break;case 18:nt!==null&&(Vt?(e=nt,xg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Di(e)):xg(nt,r.stateNode));break;case 4:l=nt,o=Vt,nt=r.stateNode.containerInfo,Vt=!0,ya(e,t,r),nt=l,Vt=o;break;case 0:case 11:case 14:case 15:Pa(2,r,t),bt||Pa(4,r,t),ya(e,t,r);break;case 1:bt||(Vn(r,t),l=r.stateNode,typeof l.componentWillUnmount=="function"&&Cp(r,t,l)),ya(e,t,r);break;case 21:ya(e,t,r);break;case 22:bt=(l=bt)||r.memoizedState!==null,ya(e,t,r),bt=l;break;default:ya(e,t,r)}}function Up(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Di(e)}catch(r){qe(t,t.return,r)}}}function jp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Di(e)}catch(r){qe(t,t.return,r)}}function o2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Mp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Mp),t;default:throw Error(s(435,e.tag))}}function $s(e,t){var r=o2(e);t.forEach(function(l){if(!r.has(l)){r.add(l);var o=y2.bind(null,e,l);l.then(o,o)}})}function Yt(e,t){var r=t.deletions;if(r!==null)for(var l=0;l<r.length;l++){var o=r[l],c=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(Ja(v.type)){nt=v.stateNode,Vt=!1;break e}break;case 5:nt=v.stateNode,Vt=!1;break e;case 3:case 4:nt=v.stateNode.containerInfo,Vt=!0;break e}v=v.return}if(nt===null)throw Error(s(160));Bp(c,p,o),nt=null,Vt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hp(t,e),t=t.sibling}var Mn=null;function Hp(e,t){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),Pt(e),l&4&&(Pa(3,e,e.return),gl(3,e),Pa(5,e,e.return));break;case 1:Yt(t,e),Pt(e),l&512&&(bt||r===null||Vn(r,r.return)),l&64&&ga&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var o=Mn;if(Yt(t,e),Pt(e),l&512&&(bt||r===null||Vn(r,r.return)),l&4){var c=r!==null?r.memoizedState:null;if(l=e.memoizedState,r===null)if(l===null)if(e.stateNode===null){e:{l=e.type,r=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[w]||c[Ze]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),Mt(c,l,r),c[Ze]=e,Be(c),l=c;break e;case"link":var p=Hg("link","href",o).get(l+(r.href||""));if(p){for(var v=0;v<p.length;v++)if(c=p[v],c.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&c.getAttribute("rel")===(r.rel==null?null:r.rel)&&c.getAttribute("title")===(r.title==null?null:r.title)&&c.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){p.splice(v,1);break t}}c=o.createElement(l),Mt(c,l,r),o.head.appendChild(c);break;case"meta":if(p=Hg("meta","content",o).get(l+(r.content||""))){for(v=0;v<p.length;v++)if(c=p[v],c.getAttribute("content")===(r.content==null?null:""+r.content)&&c.getAttribute("name")===(r.name==null?null:r.name)&&c.getAttribute("property")===(r.property==null?null:r.property)&&c.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&c.getAttribute("charset")===(r.charSet==null?null:r.charSet)){p.splice(v,1);break t}}c=o.createElement(l),Mt(c,l,r),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[Ze]=e,Be(c),l=c}e.stateNode=l}else Ig(o,e.type,e.stateNode);else e.stateNode=jg(o,l,e.memoizedProps);else c!==l?(c===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):c.count--,l===null?Ig(o,e.type,e.stateNode):jg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&tf(e,e.memoizedProps,r.memoizedProps)}break;case 27:Yt(t,e),Pt(e),l&512&&(bt||r===null||Vn(r,r.return)),r!==null&&l&4&&tf(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Yt(t,e),Pt(e),l&512&&(bt||r===null||Vn(r,r.return)),e.flags&32){o=e.stateNode;try{ti(o,"")}catch(ae){qe(e,e.return,ae)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,tf(e,o,r!==null?r.memoizedProps:o)),l&1024&&(rf=!0);break;case 6:if(Yt(t,e),Pt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,r=e.stateNode;try{r.nodeValue=l}catch(ae){qe(e,e.return,ae)}}break;case 3:if(mo=null,o=Mn,Mn=fo(t.containerInfo),Yt(t,e),Mn=o,Pt(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{Di(t.containerInfo)}catch(ae){qe(e,e.return,ae)}rf&&(rf=!1,Ip(e));break;case 4:l=Mn,Mn=fo(e.stateNode.containerInfo),Yt(t,e),Pt(e),Mn=l;break;case 12:Yt(t,e),Pt(e);break;case 31:Yt(t,e),Pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$s(e,l)));break;case 13:Yt(t,e),Pt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Js=Et()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$s(e,l)));break;case 22:o=e.memoizedState!==null;var T=r!==null&&r.memoizedState!==null,L=ga,F=bt;if(ga=L||o,bt=F||T,Yt(t,e),bt=F,ga=L,Pt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(r===null||T||ga||bt||Cr(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){T=r=t;try{if(c=T.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=T.stateNode;var Y=T.memoizedProps.style,j=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;v.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(ae){qe(T,T.return,ae)}}}else if(t.tag===6){if(r===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(ae){qe(T,T.return,ae)}}}else if(t.tag===18){if(r===null){T=t;try{var z=T.stateNode;o?Cg(z,!0):Cg(T.stateNode,!1)}catch(ae){qe(T,T.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,$s(e,r))));break;case 19:Yt(t,e),Pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$s(e,l)));break;case 30:break;case 21:break;default:Yt(t,e),Pt(e)}}function Pt(e){var t=e.flags;if(t&2){try{for(var r,l=e.return;l!==null;){if(wp(l)){r=l;break}l=l.return}if(r==null)throw Error(s(160));switch(r.tag){case 27:var o=r.stateNode,c=nf(e);Ks(e,c,o);break;case 5:var p=r.stateNode;r.flags&32&&(ti(p,""),r.flags&=-33);var v=nf(e);Ks(e,v,p);break;case 3:case 4:var T=r.stateNode.containerInfo,L=nf(e);af(e,L,T);break;default:throw Error(s(161))}}catch(F){qe(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ip(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ip(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ba(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Dp(e,t.alternate,t),t=t.sibling}function Cr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pa(4,t,t.return),Cr(t);break;case 1:Vn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Cp(t,t.return,r),Cr(t);break;case 27:xl(t.stateNode);case 26:case 5:Vn(t,t.return),Cr(t);break;case 22:t.memoizedState===null&&Cr(t);break;case 30:Cr(t);break;default:Cr(t)}e=e.sibling}}function va(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:va(o,c,r),gl(4,c);break;case 1:if(va(o,c,r),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){qe(l,l.return,L)}if(l=c,o=l.updateQueue,o!==null){var v=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)p0(T[o],v)}catch(L){qe(l,l.return,L)}}r&&p&64&&xp(c),yl(c,c.return);break;case 27:Np(c);case 26:case 5:va(o,c,r),r&&l===null&&p&4&&Rp(c),yl(c,c.return);break;case 12:va(o,c,r);break;case 31:va(o,c,r),r&&p&4&&Up(o,c);break;case 13:va(o,c,r),r&&p&4&&jp(o,c);break;case 22:c.memoizedState===null&&va(o,c,r),yl(c,c.return);break;case 30:break;default:va(o,c,r)}t=t.sibling}}function lf(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&al(r))}function sf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&al(e))}function Dn(e,t,r,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zp(e,t,r,l),t=t.sibling}function zp(e,t,r,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Dn(e,t,r,l),o&2048&&gl(9,t);break;case 1:Dn(e,t,r,l);break;case 3:Dn(e,t,r,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&al(e)));break;case 12:if(o&2048){Dn(e,t,r,l),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(T){qe(t,t.return,T)}}else Dn(e,t,r,l);break;case 31:Dn(e,t,r,l);break;case 13:Dn(e,t,r,l);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?Dn(e,t,r,l):bl(e,t):c._visibility&2?Dn(e,t,r,l):(c._visibility|=2,Ei(e,t,r,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&lf(p,t);break;case 24:Dn(e,t,r,l),o&2048&&sf(t.alternate,t);break;default:Dn(e,t,r,l)}}function Ei(e,t,r,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,v=r,T=l,L=p.flags;switch(p.tag){case 0:case 11:case 15:Ei(c,p,v,T,o),gl(8,p);break;case 23:break;case 22:var F=p.stateNode;p.memoizedState!==null?F._visibility&2?Ei(c,p,v,T,o):bl(c,p):(F._visibility|=2,Ei(c,p,v,T,o)),o&&L&2048&&lf(p.alternate,p);break;case 24:Ei(c,p,v,T,o),o&&L&2048&&sf(p.alternate,p);break;default:Ei(c,p,v,T,o)}t=t.sibling}}function bl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,l=t,o=l.flags;switch(l.tag){case 22:bl(r,l),o&2048&&lf(l.alternate,l);break;case 24:bl(r,l),o&2048&&sf(l.alternate,l);break;default:bl(r,l)}t=t.sibling}}var vl=8192;function Si(e,t,r){if(e.subtreeFlags&vl)for(e=e.child;e!==null;)Gp(e,t,r),e=e.sibling}function Gp(e,t,r){switch(e.tag){case 26:Si(e,t,r),e.flags&vl&&e.memoizedState!==null&&Z2(r,Mn,e.memoizedState,e.memoizedProps);break;case 5:Si(e,t,r);break;case 3:case 4:var l=Mn;Mn=fo(e.stateNode.containerInfo),Si(e,t,r),Mn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=vl,vl=16777216,Si(e,t,r),vl=l):Si(e,t,r));break;default:Si(e,t,r)}}function kp(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 _l(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];Tt=l,Fp(l,e)}kp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qp(e),e=e.sibling}function qp(e){switch(e.tag){case 0:case 11:case 15:_l(e),e.flags&2048&&Pa(9,e,e.return);break;case 3:_l(e);break;case 12:_l(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)):_l(e);break;default:_l(e)}}function Ws(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];Tt=l,Fp(l,e)}kp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pa(8,t,t.return),Ws(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,Ws(t));break;default:Ws(t)}e=e.sibling}}function Fp(e,t){for(;Tt!==null;){var r=Tt;switch(r.tag){case 0:case 11:case 15:Pa(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:al(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,Tt=l;else e:for(r=e;Tt!==null;){l=Tt;var o=l.sibling,c=l.return;if(Lp(l),l===r){Tt=null;break e}if(o!==null){o.return=c,Tt=o;break e}Tt=c}}}var u2={getCacheForType:function(e){var t=wt(pt),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return wt(pt).controller.signal}},c2=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Ke=null,Ae=null,Ce=0,ke=0,tn=null,Xa=!1,Ti=!1,of=!1,_a=0,ut=0,Za=0,Rr=0,uf=0,nn=0,Ai=0,El=null,Xt=null,cf=!1,Js=0,Vp=0,eo=1/0,to=null,Qa=null,St=0,Ka=null,Oi=null,Ea=0,ff=0,df=null,Yp=null,Sl=0,hf=null;function an(){return(Ie&2)!==0&&Ce!==0?Ce&-Ce:G.T!==null?vf():Vi()}function Pp(){if(nn===0)if((Ce&536870912)===0||Ne){var e=Zr;Zr<<=1,(Zr&3932160)===0&&(Zr=262144),nn=e}else nn=536870912;return e=Jt.current,e!==null&&(e.flags|=32),nn}function Zt(e,t,r){(e===Ke&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(xi(e,0),$a(e,Ce,nn,!1)),na(e,r),((Ie&2)===0||e!==Ke)&&(e===Ke&&((Ie&2)===0&&(Rr|=r),ut===4&&$a(e,Ce,nn,!1)),Yn(e))}function Xp(e,t,r){if((Ie&6)!==0)throw Error(s(327));var l=!r&&(t&127)===0&&(t&e.expiredLanes)===0||et(e,t),o=l?h2(e,t):pf(e,t,!0),c=l;do{if(o===0){Ti&&!l&&$a(e,t,0,!1);break}else{if(r=e.current.alternate,c&&!f2(r)){o=pf(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=El;var T=v.current.memoizedState.isDehydrated;if(T&&(xi(v,p).flags|=256),p=pf(v,p,!1),p!==2){if(of&&!T){v.errorRecoveryDisabledLanes|=c,Rr|=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){xi(e,0),$a(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:$a(l,t,nn,!Xa);break e;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Js+300-Et(),10<o)){if($a(l,t,nn,!Xa),Qr(l,0,!0)!==0)break e;Ea=t,l.timeoutHandle=Ag(Zp.bind(null,l,r,Xt,to,cf,t,nn,Rr,Ai,Xa,c,"Throttled",-0,0),o);break e}Zp(l,r,Xt,to,cf,t,nn,Rr,Ai,Xa,c,null,-0,0)}}break}while(!0);Yn(e)}function Zp(e,t,r,l,o,c,p,v,T,L,F,Y,j,z){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:la},Gp(t,c,Y);var ae=(c&62914560)===c?Js-Et():(c&4194048)===c?Vp-Et():0;if(ae=Q2(Y,ae),ae!==null){Ea=c,e.cancelPendingCommit=ae(ng.bind(null,e,t,c,r,l,o,p,v,T,F,Y,null,j,z)),$a(e,c,p,!L);return}}ng(e,t,c,r,l,o,p,v,T)}function f2(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var o=r[l],c=o.getSnapshot;o=o.value;try{if(!$t(c(),o))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $a(e,t,r,l){t&=~uf,t&=~Rr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-xt(o),p=1<<c;l[c]=-1,o&=~p}r!==0&&Fi(e,r,t)}function no(){return(Ie&6)===0?(Tl(0),!1):!0}function mf(){if(Ae!==null){if(ke===0)var e=Ae.return;else e=Ae,ca=vr=null,wc(e),gi=null,il=0,e=Ae;for(;e!==null;)Op(e.alternate,e),e=e.return;Ae=null}}function xi(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,M2(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Ea=0,mf(),Ke=e,Ae=r=oa(e.current,null),Ce=t,ke=0,tn=null,Xa=!1,Ti=et(e,t),of=!1,Ai=nn=uf=Rr=Za=ut=0,Xt=El=null,cf=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-xt(l),c=1<<o;t|=e[o],l&=~c}return _a=t,Ts(),r}function Qp(e,t){be=null,G.H=hl,t===pi||t===Ms?(t=f0(),ke=3):t===yc?(t=f0(),ke=4):ke=t===Yc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tn=t,Ae===null&&(ut=1,Ys(e,gn(t,e.current)))}function Kp(){var e=Jt.current;return e===null?!0:(Ce&4194048)===Ce?_n===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===_n:!1}function $p(){var e=G.H;return G.H=hl,e===null?hl:e}function Wp(){var e=G.A;return G.A=u2,e}function ao(){ut=4,Xa||(Ce&4194048)!==Ce&&Jt.current!==null||(Ti=!0),(Za&134217727)===0&&(Rr&134217727)===0||Ke===null||$a(Ke,Ce,nn,!1)}function pf(e,t,r){var l=Ie;Ie|=2;var o=$p(),c=Wp();(Ke!==e||Ce!==t)&&(to=null,xi(e,t)),t=!1;var p=ut;e:do try{if(ke!==0&&Ae!==null){var v=Ae,T=tn;switch(ke){case 8:mf(),p=6;break e;case 3:case 2:case 9:case 6:Jt.current===null&&(t=!0);var L=ke;if(ke=0,tn=null,Ci(e,v,T,L),r&&Ti){p=0;break e}break;default:L=ke,ke=0,tn=null,Ci(e,v,T,L)}}d2(),p=ut;break}catch(F){Qp(e,F)}while(!0);return t&&e.shellSuspendCounter++,ca=vr=null,Ie=l,G.H=o,G.A=c,Ae===null&&(Ke=null,Ce=0,Ts()),p}function d2(){for(;Ae!==null;)Jp(Ae)}function h2(e,t){var r=Ie;Ie|=2;var l=$p(),o=Wp();Ke!==e||Ce!==t?(to=null,eo=Et()+500,xi(e,t)):Ti=et(e,t);e:do try{if(ke!==0&&Ae!==null){t=Ae;var c=tn;t:switch(ke){case 1:ke=0,tn=null,Ci(e,t,c,1);break;case 2:case 9:if(u0(c)){ke=0,tn=null,eg(t);break}t=function(){ke!==2&&ke!==9||Ke!==e||(ke=7),Yn(e)},c.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:u0(c)?(ke=0,tn=null,eg(t)):(ke=0,tn=null,Ci(e,t,c,7));break;case 5:var p=null;switch(Ae.tag){case 26:p=Ae.memoizedState;case 5:case 27:var v=Ae;if(p?zg(p):v.stateNode.complete){ke=0,tn=null;var T=v.sibling;if(T!==null)Ae=T;else{var L=v.return;L!==null?(Ae=L,ro(L)):Ae=null}break t}}ke=0,tn=null,Ci(e,t,c,5);break;case 6:ke=0,tn=null,Ci(e,t,c,6);break;case 8:mf(),ut=6;break e;default:throw Error(s(462))}}m2();break}catch(F){Qp(e,F)}while(!0);return ca=vr=null,G.H=l,G.A=o,Ie=r,Ae!==null?0:(Ke=null,Ce=0,Ts(),ut)}function m2(){for(;Ae!==null&&!Du();)Jp(Ae)}function Jp(e){var t=Tp(e.alternate,e,_a);e.memoizedProps=e.pendingProps,t===null?ro(e):Ae=t}function eg(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=yp(r,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=yp(r,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:wc(t);default:Op(r,t),t=Ae=Wm(t,_a),t=Tp(r,t,_a)}e.memoizedProps=e.pendingProps,t===null?ro(e):Ae=t}function Ci(e,t,r,l){ca=vr=null,wc(t),gi=null,il=0;var o=t.return;try{if(n2(e,o,t,r,Ce)){ut=1,Ys(e,gn(r,e.current)),Ae=null;return}}catch(c){if(o!==null)throw Ae=o,c;ut=1,Ys(e,gn(r,e.current)),Ae=null;return}t.flags&32768?(Ne||l===1?e=!0:Ti||(Ce&536870912)!==0?e=!1:(Xa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Jt.current,l!==null&&l.tag===13&&(l.flags|=16384))),tg(t,e)):ro(t)}function ro(e){var t=e;do{if((t.flags&32768)!==0){tg(t,Xa);return}e=t.return;var r=i2(t.alternate,t,_a);if(r!==null){Ae=r;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);ut===0&&(ut=5)}function tg(e,t){do{var r=l2(e.alternate,e);if(r!==null){r.flags&=32767,Ae=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=r}while(e!==null);ut=6,Ae=null}function ng(e,t,r,l,o,c,p,v,T){e.cancelPendingCommit=null;do io();while(St!==0);if((Ie&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=nc,os(e,r,c,p,v,T),e===Ke&&(Ae=Ke=null,Ce=0),Oi=t,Ka=e,Ea=r,ff=c,df=o,Yp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,b2(dr,function(){return sg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,o=$.p,$.p=2,p=Ie,Ie|=4;try{s2(e,t,r)}finally{Ie=p,$.p=o,G.T=l}}St=1,ag(),rg(),ig()}}function ag(){if(St===1){St=0;var e=Ka,t=Oi,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=G.T,G.T=null;var l=$.p;$.p=2;var o=Ie;Ie|=4;try{Hp(t,e);var c=Cf,p=Fm(e.containerInfo),v=c.focusedElem,T=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&qm(v.ownerDocument.documentElement,v)){if(T!==null&&$u(v)){var L=T.start,F=T.end;if(F===void 0&&(F=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(F,v.value.length);else{var Y=v.ownerDocument||document,j=Y&&Y.defaultView||window;if(j.getSelection){var z=j.getSelection(),ae=v.textContent.length,ue=Math.min(T.start,ae),Pe=T.end===void 0?ue:Math.min(T.end,ae);!z.extend&&ue>Pe&&(p=Pe,Pe=ue,ue=p);var M=km(v,ue),R=km(v,Pe);if(M&&R&&(z.rangeCount!==1||z.anchorNode!==M.node||z.anchorOffset!==M.offset||z.focusNode!==R.node||z.focusOffset!==R.offset)){var D=Y.createRange();D.setStart(M.node,M.offset),z.removeAllRanges(),ue>Pe?(z.addRange(D),z.extend(R.node,R.offset)):(D.setEnd(R.node,R.offset),z.addRange(D))}}}}for(Y=[],z=v;z=z.parentNode;)z.nodeType===1&&Y.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Y.length;v++){var V=Y[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}bo=!!xf,Cf=xf=null}finally{Ie=o,$.p=l,G.T=r}}e.current=t,St=2}}function rg(){if(St===2){St=0;var e=Ka,t=Oi,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=G.T,G.T=null;var l=$.p;$.p=2;var o=Ie;Ie|=4;try{Dp(e,t.alternate,t)}finally{Ie=o,$.p=l,G.T=r}}St=3}}function ig(){if(St===4||St===3){St=0,Gi();var e=Ka,t=Oi,r=Ea,l=Yp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?St=5:(St=0,Oi=Ka=null,lg(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Qa=null),$r(r),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(Gn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=G.T,o=$.p,$.p=2,G.T=null;try{for(var c=e.onRecoverableError,p=0;p<l.length;p++){var v=l[p];c(v.value,{componentStack:v.stack})}}finally{G.T=t,$.p=o}}(Ea&3)!==0&&io(),Yn(e),o=e.pendingLanes,(r&261930)!==0&&(o&42)!==0?e===hf?Sl++:(Sl=0,hf=e):Sl=0,Tl(0)}}function lg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,al(t)))}function io(){return ag(),rg(),ig(),sg()}function sg(){if(St!==5)return!1;var e=Ka,t=ff;ff=0;var r=$r(Ea),l=G.T,o=$.p;try{$.p=32>r?32:r,G.T=null,r=df,df=null;var c=Ka,p=Ea;if(St=0,Oi=Ka=null,Ea=0,(Ie&6)!==0)throw Error(s(331));var v=Ie;if(Ie|=4,qp(c.current),zp(c,c.current,p,r),Ie=v,Tl(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(Gn,c)}catch{}return!0}finally{$.p=o,G.T=l,lg(e,t)}}function og(e,t,r){t=gn(r,t),t=Vc(e.stateNode,t,2),e=Fa(e,t,2),e!==null&&(na(e,2),Yn(e))}function qe(e,t,r){if(e.tag===3)og(e,e,r);else for(;t!==null;){if(t.tag===3){og(t,e,r);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qa===null||!Qa.has(l))){e=gn(r,e),r=up(2),l=Fa(t,r,2),l!==null&&(cp(r,l,t,e),na(l,2),Yn(l));break}}t=t.return}}function gf(e,t,r){var l=e.pingCache;if(l===null){l=e.pingCache=new c2;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(r)||(of=!0,o.add(r),e=p2.bind(null,e,t,r),t.then(e,e))}function p2(e,t,r){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ke===e&&(Ce&r)===r&&(ut===4||ut===3&&(Ce&62914560)===Ce&&300>Et()-Js?(Ie&2)===0&&xi(e,0):uf|=r,Ai===Ce&&(Ai=0)),Yn(e)}function ug(e,t){t===0&&(t=ss()),e=gr(e,t),e!==null&&(na(e,t),Yn(e))}function g2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ug(e,r)}function y2(e,t){var r=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),ug(e,r)}function b2(e,t){return Fr(e,t)}var lo=null,Ri=null,yf=!1,so=!1,bf=!1,Wa=0;function Yn(e){e!==Ri&&e.next===null&&(Ri===null?lo=Ri=e:Ri=Ri.next=e),so=!0,yf||(yf=!0,_2())}function Tl(e,t){if(!bf&&so){bf=!0;do for(var r=!1,l=lo;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var p=l.suspendedLanes,v=l.pingedLanes;c=(1<<31-xt(42|e)+1)-1,c&=o&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(r=!0,hg(l,c))}else c=Ce,c=Qr(l,l===Ke?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||et(l,c)||(r=!0,hg(l,c));l=l.next}while(r);bf=!1}}function v2(){cg()}function cg(){so=yf=!1;var e=0;Wa!==0&&N2()&&(e=Wa);for(var t=Et(),r=null,l=lo;l!==null;){var o=l.next,c=fg(l,t);c===0?(l.next=null,r===null?lo=o:r.next=o,o===null&&(Ri=r)):(r=l,(e!==0||(c&3)!==0)&&(so=!0)),l=o}St!==0&&St!==5||Tl(e),Wa!==0&&(Wa=0)}function fg(e,t){for(var r=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-xt(c),v=1<<p,T=o[p];T===-1?((v&r)===0||(v&l)!==0)&&(o[p]=Ua(v,t)):T<=t&&(e.expiredLanes|=v),c&=~v}if(t=Ke,r=Ce,r=Qr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,r===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Vr(l),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||et(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(l!==null&&Vr(l),$r(r)){case 2:case 8:r=ki;break;case 32:r=dr;break;case 268435456:r=Yr;break;default:r=dr}return l=dg.bind(null,e),r=Fr(r,l),e.callbackPriority=t,e.callbackNode=r,t}return l!==null&&l!==null&&Vr(l),e.callbackPriority=2,e.callbackNode=null,2}function dg(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(io()&&e.callbackNode!==r)return null;var l=Ce;return l=Qr(e,e===Ke?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Xp(e,l,t),fg(e,Et()),e.callbackNode!=null&&e.callbackNode===r?dg.bind(null,e):null)}function hg(e,t){if(io())return null;Xp(e,t,!0)}function _2(){D2(function(){(Ie&6)!==0?Fr(Jn,v2):cg()})}function vf(){if(Wa===0){var e=hi;e===0&&(e=ea,ea<<=1,(ea&261888)===0&&(ea=256)),Wa=e}return Wa}function mg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ps(""+e)}function pg(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function E2(e,t,r,l,o){if(t==="submit"&&r&&r.stateNode===o){var c=mg((o[Ct]||null).action),p=l.submitter;p&&(t=(t=p[Ct]||null)?mg(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new vs("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Wa!==0){var T=p?pg(o,p):new FormData(o);Ic(r,{pending:!0,data:T,method:o.method,action:c},null,T)}}else typeof c=="function"&&(v.preventDefault(),T=p?pg(o,p):new FormData(o),Ic(r,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var _f=0;_f<tc.length;_f++){var Ef=tc[_f],S2=Ef.toLowerCase(),T2=Ef[0].toUpperCase()+Ef.slice(1);Nn(S2,"on"+T2)}Nn(Pm,"onAnimationEnd"),Nn(Xm,"onAnimationIteration"),Nn(Zm,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(zE,"onTransitionRun"),Nn(GE,"onTransitionStart"),Nn(kE,"onTransitionCancel"),Nn(Qm,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Al="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(" "),A2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Al));function gg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var p=l.length-1;0<=p;p--){var v=l[p],T=v.instance,L=v.currentTarget;if(v=v.listener,T!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=L;try{c(o)}catch(F){Ss(F)}o.currentTarget=null,c=T}else for(p=0;p<l.length;p++){if(v=l[p],T=v.instance,L=v.currentTarget,v=v.listener,T!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=L;try{c(o)}catch(F){Ss(F)}o.currentTarget=null,c=T}}}}function Oe(e,t){var r=t[Jr];r===void 0&&(r=t[Jr]=new Set);var l=e+"__bubble";r.has(l)||(yg(t,e,2,!1),r.add(l))}function Sf(e,t,r){var l=0;t&&(l|=4),yg(r,e,l,t)}var oo="_reactListening"+Math.random().toString(36).slice(2);function Tf(e){if(!e[oo]){e[oo]=!0,dn.forEach(function(r){r!=="selectionchange"&&(A2.has(r)||Sf(r,!1,e),Sf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oo]||(t[oo]=!0,Sf("selectionchange",!1,t))}}function yg(e,t,r,l){switch(Pg(t)){case 2:var o=W2;break;case 8:o=J2;break;default:o=If}r=o.bind(null,t,r,e),o=void 0,!qu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Af(e,t,r,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var v=l.stateNode.containerInfo;if(v===o)break;if(p===4)for(p=l.return;p!==null;){var T=p.tag;if((T===3||T===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;v!==null;){if(p=ee(v),p===null)return;if(T=p.tag,T===5||T===6||T===26||T===27){l=c=p;continue e}v=v.parentNode}}l=l.return}Sm(function(){var L=c,F=Gu(r),Y=[];e:{var j=Km.get(e);if(j!==void 0){var z=vs,ae=e;switch(e){case"keypress":if(ys(r)===0)break e;case"keydown":case"keyup":z=yE;break;case"focusin":ae="focus",z=Pu;break;case"focusout":ae="blur",z=Pu;break;case"beforeblur":case"afterblur":z=Pu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Om;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=iE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=_E;break;case Pm:case Xm:case Zm:z=oE;break;case Qm:z=SE;break;case"scroll":case"scrollend":z=aE;break;case"wheel":z=AE;break;case"copy":case"cut":case"paste":z=cE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Cm;break;case"toggle":case"beforetoggle":z=xE}var ue=(t&4)!==0,Pe=!ue&&(e==="scroll"||e==="scrollend"),M=ue?j!==null?j+"Capture":null:j;ue=[];for(var R=L,D;R!==null;){var V=R;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||M===null||(V=Pi(R,M),V!=null&&ue.push(Ol(R,V,D))),Pe)break;R=R.return}0<ue.length&&(j=new z(j,ae,null,r,F),Y.push({event:j,listeners:ue}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",j&&r!==zu&&(ae=r.relatedTarget||r.fromElement)&&(ee(ae)||ae[aa]))break e;if((z||j)&&(j=F.window===F?F:(j=F.ownerDocument)?j.defaultView||j.parentWindow:window,z?(ae=r.relatedTarget||r.toElement,z=L,ae=ae?ee(ae):null,ae!==null&&(Pe=f(ae),ue=ae.tag,ae!==Pe||ue!==5&&ue!==27&&ue!==6)&&(ae=null)):(z=null,ae=L),z!==ae)){if(ue=Om,V="onMouseLeave",M="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Cm,V="onPointerLeave",M="onPointerEnter",R="pointer"),Pe=z==null?j:st(z),D=ae==null?j:st(ae),j=new ue(V,R+"leave",z,r,F),j.target=Pe,j.relatedTarget=D,V=null,ee(F)===L&&(ue=new ue(M,R+"enter",ae,r,F),ue.target=D,ue.relatedTarget=Pe,V=ue),Pe=V,z&&ae)t:{for(ue=O2,M=z,R=ae,D=0,V=M;V;V=ue(V))D++;V=0;for(var oe=R;oe;oe=ue(oe))V++;for(;0<D-V;)M=ue(M),D--;for(;0<V-D;)R=ue(R),V--;for(;D--;){if(M===R||R!==null&&M===R.alternate){ue=M;break t}M=ue(M),R=ue(R)}ue=null}else ue=null;z!==null&&bg(Y,j,z,ue,!1),ae!==null&&Pe!==null&&bg(Y,Pe,ae,ue,!0)}}e:{if(j=L?st(L):window,z=j.nodeName&&j.nodeName.toLowerCase(),z==="select"||z==="input"&&j.type==="file")var Ue=Um;else if(Lm(j))if(jm)Ue=jE;else{Ue=BE;var ie=LE}else z=j.nodeName,!z||z.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?L&&Iu(L.elementType)&&(Ue=Um):Ue=UE;if(Ue&&(Ue=Ue(e,L))){Bm(Y,Ue,r,F);break e}ie&&ie(e,j,L),e==="focusout"&&L&&j.type==="number"&&L.memoizedProps.value!=null&&Hu(j,"number",j.value)}switch(ie=L?st(L):window,e){case"focusin":(Lm(ie)||ie.contentEditable==="true")&&(ii=ie,Wu=L,el=null);break;case"focusout":el=Wu=ii=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,Vm(Y,r,F);break;case"selectionchange":if(IE)break;case"keydown":case"keyup":Vm(Y,r,F)}var ve;if(Zu)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else ri?Mm(e,r)&&(Re="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Re="onCompositionStart");Re&&(Rm&&r.locale!=="ko"&&(ri||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&ri&&(ve=Tm()):(ja=F,Fu="value"in ja?ja.value:ja.textContent,ri=!0)),ie=uo(L,Re),0<ie.length&&(Re=new xm(Re,e,null,r,F),Y.push({event:Re,listeners:ie}),ve?Re.data=ve:(ve=Dm(r),ve!==null&&(Re.data=ve)))),(ve=RE?wE(e,r):NE(e,r))&&(Re=uo(L,"onBeforeInput"),0<Re.length&&(ie=new xm("onBeforeInput","beforeinput",null,r,F),Y.push({event:ie,listeners:Re}),ie.data=ve)),E2(Y,e,L,r,F)}gg(Y,t)})}function Ol(e,t,r){return{instance:e,listener:t,currentTarget:r}}function uo(e,t){for(var r=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Pi(e,r),o!=null&&l.unshift(Ol(e,o,c)),o=Pi(e,t),o!=null&&l.push(Ol(e,o,c))),e.tag===3)return l;e=e.return}return[]}function O2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bg(e,t,r,l,o){for(var c=t._reactName,p=[];r!==null&&r!==l;){var v=r,T=v.alternate,L=v.stateNode;if(v=v.tag,T!==null&&T===l)break;v!==5&&v!==26&&v!==27||L===null||(T=L,o?(L=Pi(r,c),L!=null&&p.unshift(Ol(r,L,T))):o||(L=Pi(r,c),L!=null&&p.push(Ol(r,L,T)))),r=r.return}p.length!==0&&e.push({event:t,listeners:p})}var x2=/\r\n?/g,C2=/\u0000|\uFFFD/g;function vg(e){return(typeof e=="string"?e:""+e).replace(x2,`
|
|
49
|
+
`).replace(C2,"")}function _g(e,t){return t=vg(t),vg(e)===t}function Ye(e,t,r,l,o,c){switch(r){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||ti(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&ti(e,""+l);break;case"className":hs(e,"class",l);break;case"tabIndex":hs(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":hs(e,r,l);break;case"style":_m(e,l,c);break;case"data":if(t!=="object"){hs(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=ps(""+l),e.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(r==="formAction"?(t!=="input"&&Ye(e,t,"name",o.name,o,null),Ye(e,t,"formEncType",o.formEncType,o,null),Ye(e,t,"formMethod",o.formMethod,o,null),Ye(e,t,"formTarget",o.formTarget,o,null)):(Ye(e,t,"encType",o.encType,o,null),Ye(e,t,"method",o.method,o,null),Ye(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=ps(""+l),e.setAttribute(r,l);break;case"onClick":l!=null&&(e.onclick=la);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}r=ps(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""+l):e.removeAttribute(r);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":l===!0?e.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,l):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(r,l):e.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(r):e.setAttribute(r,l);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),ds(e,"popover",l);break;case"xlinkActuate":ia(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ia(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ia(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ia(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ia(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ia(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ia(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ia(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ia(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ds(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=tE.get(r)||r,ds(e,r,l))}}function Of(e,t,r,l,o,c){switch(r){case"style":_m(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"children":typeof l=="string"?ti(e,l):(typeof l=="number"||typeof l=="bigint")&&ti(e,""+l);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ra.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(o=r.endsWith("Capture"),t=r.slice(2,o?r.length-7:void 0),c=e[Ct]||null,c=c!=null?c[r]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,l,o);break e}r in e?e[r]=l:l===!0?e.setAttribute(r,""):ds(e,r,l)}}}function Mt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var l=!1,o=!1,c;for(c in r)if(r.hasOwnProperty(c)){var p=r[c];if(p!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ye(e,t,c,p,r,null)}}o&&Ye(e,t,"srcSet",r.srcSet,r,null),l&&Ye(e,t,"src",r.src,r,null);return;case"input":Oe("invalid",e);var v=c=p=o=null,T=null,L=null;for(l in r)if(r.hasOwnProperty(l)){var F=r[l];if(F!=null)switch(l){case"name":o=F;break;case"type":p=F;break;case"checked":T=F;break;case"defaultChecked":L=F;break;case"value":c=F;break;case"defaultValue":v=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:Ye(e,t,l,F,r,null)}}gm(e,c,v,T,L,p,o,!1);return;case"select":Oe("invalid",e),l=p=c=null;for(o in r)if(r.hasOwnProperty(o)&&(v=r[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":p=v;break;case"multiple":l=v;default:Ye(e,t,o,v,r,null)}t=c,r=p,e.multiple=!!l,t!=null?ei(e,!!l,t,!1):r!=null&&ei(e,!!l,r,!0);return;case"textarea":Oe("invalid",e),c=o=l=null;for(p in r)if(r.hasOwnProperty(p)&&(v=r[p],v!=null))switch(p){case"value":l=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ye(e,t,p,v,r,null)}bm(e,l,o,c);return;case"option":for(T in r)if(r.hasOwnProperty(T)&&(l=r[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ye(e,t,T,l,r,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(l=0;l<Al.length;l++)Oe(Al[l],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("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(L in r)if(r.hasOwnProperty(L)&&(l=r[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ye(e,t,L,l,r,null)}return;default:if(Iu(t)){for(F in r)r.hasOwnProperty(F)&&(l=r[F],l!==void 0&&Of(e,t,F,l,r,void 0));return}}for(v in r)r.hasOwnProperty(v)&&(l=r[v],l!=null&&Ye(e,t,v,l,r,null))}function R2(e,t,r,l){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,T=null,L=null,F=null;for(z in r){var Y=r[z];if(r.hasOwnProperty(z)&&Y!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":T=Y;default:l.hasOwnProperty(z)||Ye(e,t,z,null,l,Y)}}for(var j in l){var z=l[j];if(Y=r[j],l.hasOwnProperty(j)&&(z!=null||Y!=null))switch(j){case"type":c=z;break;case"name":o=z;break;case"checked":L=z;break;case"defaultChecked":F=z;break;case"value":p=z;break;case"defaultValue":v=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:z!==Y&&Ye(e,t,j,z,l,Y)}}ju(e,p,v,T,L,F,c,o);return;case"select":z=p=v=j=null;for(c in r)if(T=r[c],r.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":z=T;default:l.hasOwnProperty(c)||Ye(e,t,c,null,l,T)}for(o in l)if(c=l[o],T=r[o],l.hasOwnProperty(o)&&(c!=null||T!=null))switch(o){case"value":j=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==T&&Ye(e,t,o,c,l,T)}t=v,r=p,l=z,j!=null?ei(e,!!r,j,!1):!!l!=!!r&&(t!=null?ei(e,!!r,t,!0):ei(e,!!r,r?[]:"",!1));return;case"textarea":z=j=null;for(v in r)if(o=r[v],r.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ye(e,t,v,null,l,o)}for(p in l)if(o=l[p],c=r[p],l.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":j=o;break;case"defaultValue":z=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Ye(e,t,p,o,l,c)}ym(e,j,z);return;case"option":for(var ae in r)if(j=r[ae],r.hasOwnProperty(ae)&&j!=null&&!l.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Ye(e,t,ae,null,l,j)}for(T in l)if(j=l[T],z=r[T],l.hasOwnProperty(T)&&j!==z&&(j!=null||z!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ye(e,t,T,j,l,z)}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 ue in r)j=r[ue],r.hasOwnProperty(ue)&&j!=null&&!l.hasOwnProperty(ue)&&Ye(e,t,ue,null,l,j);for(L in l)if(j=l[L],z=r[L],l.hasOwnProperty(L)&&j!==z&&(j!=null||z!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:Ye(e,t,L,j,l,z)}return;default:if(Iu(t)){for(var Pe in r)j=r[Pe],r.hasOwnProperty(Pe)&&j!==void 0&&!l.hasOwnProperty(Pe)&&Of(e,t,Pe,void 0,l,j);for(F in l)j=l[F],z=r[F],!l.hasOwnProperty(F)||j===z||j===void 0&&z===void 0||Of(e,t,F,j,l,z);return}}for(var M in r)j=r[M],r.hasOwnProperty(M)&&j!=null&&!l.hasOwnProperty(M)&&Ye(e,t,M,null,l,j);for(Y in l)j=l[Y],z=r[Y],!l.hasOwnProperty(Y)||j===z||j==null&&z==null||Ye(e,t,Y,j,l,z)}function Eg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),l=0;l<r.length;l++){var o=r[l],c=o.transferSize,p=o.initiatorType,v=o.duration;if(c&&v&&Eg(p)){for(p=0,v=o.responseEnd,l+=1;l<r.length;l++){var T=r[l],L=T.startTime;if(L>v)break;var F=T.transferSize,Y=T.initiatorType;F&&Eg(Y)&&(T=T.responseEnd,p+=F*(T<v?1:(v-L)/(T-L)))}if(--l,t+=8*(c+p)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var xf=null,Cf=null;function co(e){return e.nodeType===9?e:e.ownerDocument}function Sg(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 Tg(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 Rf(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 wf=null;function N2(){var e=window.event;return e&&e.type==="popstate"?e===wf?!1:(wf=e,!0):(wf=null,!1)}var Ag=typeof setTimeout=="function"?setTimeout:void 0,M2=typeof clearTimeout=="function"?clearTimeout:void 0,Og=typeof Promise=="function"?Promise:void 0,D2=typeof queueMicrotask=="function"?queueMicrotask:typeof Og<"u"?function(e){return Og.resolve(null).then(e).catch(L2)}:Ag;function L2(e){setTimeout(function(){throw e})}function Ja(e){return e==="head"}function xg(e,t){var r=t,l=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"||r==="/&"){if(l===0){e.removeChild(o),Di(t);return}l--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")l++;else if(r==="html")xl(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,xl(r);for(var c=r.firstChild;c;){var p=c.nextSibling,v=c.nodeName;c[w]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||r.removeChild(c),c=p}}else r==="body"&&xl(e.ownerDocument.body);r=o}while(r);Di(t)}function Cg(e,t){var r=e;e=0;do{var l=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=l}while(r)}function Nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Nf(r),Q(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function B2(e,t,r,l){for(;e.nodeType===1;){var o=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[w])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=En(e.nextSibling),e===null)break}return null}function U2(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=En(e.nextSibling),e===null))return null;return e}function Rg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=En(e.nextSibling),e===null))return null;return e}function Mf(e){return e.data==="$?"||e.data==="$~"}function Df(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function j2(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var l=function(){t(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function En(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==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Lf=null;function wg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return En(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Ng(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Mg(e,t,r){switch(t=co(r),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function xl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Q(e)}var Sn=new Map,Dg=new Set;function fo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sa=$.d;$.d={f:H2,r:I2,D:z2,C:G2,L:k2,m:q2,X:V2,S:F2,M:Y2};function H2(){var e=Sa.f(),t=no();return e||t}function I2(e){var t=He(e);t!==null&&t.tag===5&&t.type==="form"?Q0(t):Sa.r(e)}var wi=typeof document>"u"?null:document;function Lg(e,t,r){var l=wi;if(l&&typeof t=="string"&&t){var o=mn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof r=="string"&&(o+='[crossorigin="'+r+'"]'),Dg.has(o)||(Dg.add(o),e={rel:e,crossOrigin:r,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),Mt(t,"link",e),Be(t),l.head.appendChild(t)))}}function z2(e){Sa.D(e),Lg("dns-prefetch",e,null)}function G2(e,t){Sa.C(e,t),Lg("preconnect",e,t)}function k2(e,t,r){Sa.L(e,t,r);var l=wi;if(l&&e&&t){var o='link[rel="preload"][as="'+mn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(o+='[imagesrcset="'+mn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(o+='[imagesizes="'+mn(r.imageSizes)+'"]')):o+='[href="'+mn(e)+'"]';var c=o;switch(t){case"style":c=Ni(e);break;case"script":c=Mi(e)}Sn.has(c)||(e=_({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Sn.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Cl(c))||t==="script"&&l.querySelector(Rl(c))||(t=l.createElement("link"),Mt(t,"link",e),Be(t),l.head.appendChild(t)))}}function q2(e,t){Sa.m(e,t);var r=wi;if(r&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+mn(l)+'"][href="'+mn(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Mi(e)}if(!Sn.has(c)&&(e=_({rel:"modulepreload",href:e},t),Sn.set(c,e),r.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Rl(c)))return}l=r.createElement("link"),Mt(l,"link",e),Be(l),r.head.appendChild(l)}}}function F2(e,t,r){Sa.S(e,t,r);var l=wi;if(l&&e){var o=Qe(l).hoistableStyles,c=Ni(e);t=t||"default";var p=o.get(c);if(!p){var v={loading:0,preload:null};if(p=l.querySelector(Cl(c)))v.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Sn.get(c))&&Bf(e,r);var T=p=l.createElement("link");Be(T),Mt(T,"link",e),T._p=new Promise(function(L,F){T.onload=L,T.onerror=F}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,ho(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(c,p)}}}function V2(e,t){Sa.X(e,t);var r=wi;if(r&&e){var l=Qe(r).hoistableScripts,o=Mi(e),c=l.get(o);c||(c=r.querySelector(Rl(o)),c||(e=_({src:e,async:!0},t),(t=Sn.get(o))&&Uf(e,t),c=r.createElement("script"),Be(c),Mt(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Y2(e,t){Sa.M(e,t);var r=wi;if(r&&e){var l=Qe(r).hoistableScripts,o=Mi(e),c=l.get(o);c||(c=r.querySelector(Rl(o)),c||(e=_({src:e,async:!0,type:"module"},t),(t=Sn.get(o))&&Uf(e,t),c=r.createElement("script"),Be(c),Mt(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Bg(e,t,r,l){var o=(o=fe.current)?fo(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Ni(r.href),r=Qe(o).hoistableStyles,l=r.get(t),l||(l={type:"style",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Ni(r.href);var c=Qe(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(Cl(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Sn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Sn.set(e,r),c||P2(o,e,r,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Mi(r),r=Qe(o).hoistableScripts,l=r.get(t),l||(l={type:"script",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ni(e){return'href="'+mn(e)+'"'}function Cl(e){return'link[rel="stylesheet"]['+e+"]"}function Ug(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function P2(e,t,r,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Mt(t,"link",r),Be(t),e.head.appendChild(t))}function Mi(e){return'[src="'+mn(e)+'"]'}function Rl(e){return"script[async]"+e}function jg(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+mn(r.href)+'"]');if(l)return t.instance=l,Be(l),l;var o=_({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Be(l),Mt(l,"style",o),ho(l,r.precedence,e),t.instance=l;case"stylesheet":o=Ni(r.href);var c=e.querySelector(Cl(o));if(c)return t.state.loading|=4,t.instance=c,Be(c),c;l=Ug(r),(o=Sn.get(o))&&Bf(l,o),c=(e.ownerDocument||e).createElement("link"),Be(c);var p=c;return p._p=new Promise(function(v,T){p.onload=v,p.onerror=T}),Mt(c,"link",l),t.state.loading|=4,ho(c,r.precedence,e),t.instance=c;case"script":return c=Mi(r.src),(o=e.querySelector(Rl(c)))?(t.instance=o,Be(o),o):(l=r,(o=Sn.get(c))&&(l=_({},r),Uf(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),Be(o),Mt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ho(l,r.precedence,e));return t.instance}function ho(e,t,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,p=0;p<l.length;p++){var v=l[p];if(v.dataset.precedence===t)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function Bf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Uf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var mo=null;function Hg(e,t,r){if(mo===null){var l=new Map,o=mo=new Map;o.set(r,l)}else o=mo,l=o.get(r),l||(l=new Map,o.set(r,l));if(l.has(e))return l;for(l.set(e,null),r=r.getElementsByTagName(e),o=0;o<r.length;o++){var c=r[o];if(!(c[w]||c[Ze]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var v=l.get(p);v?v.push(c):l.set(p,[c])}}return l}function Ig(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function X2(e,t,r){if(r===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 zg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Z2(e,t,r,l){if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var o=Ni(l.href),c=t.querySelector(Cl(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=po.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=c,Be(c);return}c=t.ownerDocument||t,l=Ug(l),(o=Sn.get(o))&&Bf(l,o),c=c.createElement("link"),Be(c);var p=c;p._p=new Promise(function(v,T){p.onload=v,p.onerror=T}),Mt(c,"link",l),r.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=po.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var jf=0;function Q2(e,t){return e.stylesheets&&e.count===0&&yo(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var l=setTimeout(function(){if(e.stylesheets&&yo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&jf===0&&(jf=62500*w2());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&yo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>jf?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function po(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var go=null;function yo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,go=new Map,t.forEach(K2,e),go=null,po.call(e))}function K2(e,t){if(!(t.state.loading&4)){var r=go.get(e);if(r)var l=r.get(null);else{r=new Map,go.set(e,r);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")&&(r.set(p.dataset.precedence,p),l=p)}l&&r.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),c=r.get(p)||l,c===l&&r.set(null,o),r.set(p,o),this.count++,l=po.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var wl={$$typeof:S,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function $2(e,t,r,l,o,c,p,v,T){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=Kr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kr(0),this.hiddenUpdates=Kr(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Gg(e,t,r,l,o,c,p,v,T,L,F,Y){return e=new $2(e,t,r,p,T,L,F,Y,v),t=1,c===!0&&(t|=24),c=Wt(3,null,null,t),e.current=c,c.stateNode=e,t=mc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:r,cache:t},bc(c),e}function kg(e){return e?(e=oi,e):oi}function qg(e,t,r,l,o,c){o=kg(o),l.context===null?l.context=o:l.pendingContext=o,l=qa(t),l.payload={element:r},c=c===void 0?null:c,c!==null&&(l.callback=c),r=Fa(e,l,t),r!==null&&(Zt(r,e,t),sl(r,e,t))}function Fg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Hf(e,t){Fg(e,t),(e=e.alternate)&&Fg(e,t)}function Vg(e){if(e.tag===13||e.tag===31){var t=gr(e,67108864);t!==null&&Zt(t,e,67108864),Hf(e,67108864)}}function Yg(e){if(e.tag===13||e.tag===31){var t=an();t=Cn(t);var r=gr(e,t);r!==null&&Zt(r,e,t),Hf(e,t)}}var bo=!0;function W2(e,t,r,l){var o=G.T;G.T=null;var c=$.p;try{$.p=2,If(e,t,r,l)}finally{$.p=c,G.T=o}}function J2(e,t,r,l){var o=G.T;G.T=null;var c=$.p;try{$.p=8,If(e,t,r,l)}finally{$.p=c,G.T=o}}function If(e,t,r,l){if(bo){var o=zf(l);if(o===null)Af(e,t,l,vo,r),Xg(e,l);else if(tS(o,e,t,r,l))l.stopPropagation();else if(Xg(e,l),t&4&&-1<eS.indexOf(e)){for(;o!==null;){var c=He(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=ta(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var T=1<<31-xt(p);v.entanglements[1]|=T,p&=~T}Yn(c),(Ie&6)===0&&(eo=Et()+500,Tl(0))}}break;case 31:case 13:v=gr(c,2),v!==null&&Zt(v,c,2),no(),Hf(c,2)}if(c=zf(l),c===null&&Af(e,t,l,vo,r),c===o)break;o=c}o!==null&&l.stopPropagation()}else Af(e,t,l,null,r)}}function zf(e){return e=Gu(e),Gf(e)}var vo=null;function Gf(e){if(vo=null,e=ee(e),e!==null){var t=f(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=d(t),e!==null)return e;e=null}else if(r===31){if(e=h(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vo=e,null}function Pg(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(Ba()){case Jn:return 2;case ki:return 8;case dr:case is:return 32;case Yr:return 268435456;default:return 32}default:return 32}}var kf=!1,er=null,tr=null,nr=null,Nl=new Map,Ml=new Map,ar=[],eS="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 Xg(e,t){switch(e){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":Nl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ml.delete(t.pointerId)}}function Dl(e,t,r,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=He(t),t!==null&&Vg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function tS(e,t,r,l,o){switch(t){case"focusin":return er=Dl(er,e,t,r,l,o),!0;case"dragenter":return tr=Dl(tr,e,t,r,l,o),!0;case"mouseover":return nr=Dl(nr,e,t,r,l,o),!0;case"pointerover":var c=o.pointerId;return Nl.set(c,Dl(Nl.get(c)||null,e,t,r,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Ml.set(c,Dl(Ml.get(c)||null,e,t,r,l,o)),!0}return!1}function Zg(e){var t=ee(e.target);if(t!==null){var r=f(t);if(r!==null){if(t=r.tag,t===13){if(t=d(r),t!==null){e.blockedOn=t,Wr(e.priority,function(){Yg(r)});return}}else if(t===31){if(t=h(r),t!==null){e.blockedOn=t,Wr(e.priority,function(){Yg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _o(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=zf(e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);zu=l,r.target.dispatchEvent(l),zu=null}else return t=He(r),t!==null&&Vg(t),e.blockedOn=r,!1;t.shift()}return!0}function Qg(e,t,r){_o(e)&&r.delete(t)}function nS(){kf=!1,er!==null&&_o(er)&&(er=null),tr!==null&&_o(tr)&&(tr=null),nr!==null&&_o(nr)&&(nr=null),Nl.forEach(Qg),Ml.forEach(Qg)}function Eo(e,t){e.blockedOn===t&&(e.blockedOn=null,kf||(kf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,nS)))}var So=null;function Kg(e){So!==e&&(So=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){So===e&&(So=null);for(var t=0;t<e.length;t+=3){var r=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Gf(l||r)===null)continue;break}var c=He(r);c!==null&&(e.splice(t,3),t-=3,Ic(c,{pending:!0,data:o,method:r.method,action:l},l,o))}}))}function Di(e){function t(T){return Eo(T,e)}er!==null&&Eo(er,e),tr!==null&&Eo(tr,e),nr!==null&&Eo(nr,e),Nl.forEach(t),Ml.forEach(t);for(var r=0;r<ar.length;r++){var l=ar[r];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ar.length&&(r=ar[0],r.blockedOn===null);)Zg(r),r.blockedOn===null&&ar.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var o=r[l],c=r[l+1],p=o[Ct]||null;if(typeof c=="function")p||Kg(r);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[Ct]||null)v=p.formAction;else if(Gf(o)!==null)continue}else v=p.action;typeof v=="function"?r[l+1]=v:(r.splice(l,3),l-=3),Kg(r)}}}function $g(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(r,20)}function r(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function qf(e){this._internalRoot=e}To.prototype.render=qf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var r=t.current,l=an();qg(r,l,e,t,null,null)},To.prototype.unmount=qf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qg(e.current,2,null,e,null,null),no(),t[aa]=null}};function To(e){this._internalRoot=e}To.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vi();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ar.length&&t!==0&&t<ar[r].priority;r++);ar.splice(r,0,e),r===0&&Zg(e)}};var Wg=a.version;if(Wg!=="19.2.0")throw Error(s(527,Wg,"19.2.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var aS={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ao=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ao.isDisabled&&Ao.supportsFiber)try{Gn=Ao.inject(aS),it=Ao}catch{}}return Bl.createRoot=function(e,t){if(!u(e))throw Error(s(299));var r=!1,l="",o=ip,c=lp,p=sp;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Gg(e,1,!1,null,null,r,l,null,o,c,p,$g),e[aa]=t.current,Tf(e),new qf(t)},Bl.hydrateRoot=function(e,t,r){if(!u(e))throw Error(s(299));var l=!1,o="",c=ip,p=lp,v=sp,T=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError),r.formState!==void 0&&(T=r.formState)),t=Gg(e,1,!0,t,r??null,l,o,T,c,p,v,$g),t.context=kg(null),r=t.current,l=an(),l=Cn(l),o=qa(l),o.callback=null,Fa(r,o,l),r=l,t.current.lanes=r,na(t,r),Yn(t),e[aa]=t.current,Tf(e),new To(t)},Bl.version="19.2.0",Bl}var oy;function hS(){if(oy)return Vf.exports;oy=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(a){console.error(a)}}return n(),Vf.exports=dS(),Vf.exports}var mS=hS(),B=yu();const zv=gu(B);var Qf={exports:{}},Kf={};/**
|
|
50
|
+
* @license React
|
|
51
|
+
* use-sync-external-store-with-selector.production.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var uy;function pS(){if(uy)return Kf;uy=1;var n=yu();function a(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var i=typeof Object.is=="function"?Object.is:a,s=n.useSyncExternalStore,u=n.useRef,f=n.useEffect,d=n.useMemo,h=n.useDebugValue;return Kf.useSyncExternalStoreWithSelector=function(m,g,b,_,A){var U=u(null);if(U.current===null){var x={hasValue:!1,value:null};U.current=x}else x=U.current;U=d(function(){function I(N){if(!E){if(E=!0,C=N,N=_(N),A!==void 0&&x.hasValue){var Z=x.value;if(A(Z,N))return S=Z}return S=N}if(Z=S,i(C,N))return Z;var X=_(N);return A!==void 0&&A(Z,X)?(C=N,Z):(C=N,S=X)}var E=!1,C,S,H=b===void 0?null:b;return[function(){return I(g())},H===null?void 0:function(){return I(H())}]},[g,b,_,A]);var k=s(m,U[0],U[1]);return f(function(){x.hasValue=!0,x.value=k},[k]),h(k),k},Kf}var cy;function gS(){return cy||(cy=1,Qf.exports=pS()),Qf.exports}var yS=gS(),bS=B.version.startsWith("19"),vS=Symbol.for(bS?"react.transitional.element":"react.element"),_S=Symbol.for("react.portal"),ES=Symbol.for("react.fragment"),SS=Symbol.for("react.strict_mode"),TS=Symbol.for("react.profiler"),AS=Symbol.for("react.consumer"),OS=Symbol.for("react.context"),Gv=Symbol.for("react.forward_ref"),xS=Symbol.for("react.suspense"),CS=Symbol.for("react.suspense_list"),Rh=Symbol.for("react.memo"),RS=Symbol.for("react.lazy"),wS=Gv,NS=Rh;function MS(n){if(typeof n=="object"&&n!==null){const{$$typeof:a}=n;switch(a){case vS:switch(n=n.type,n){case ES:case TS:case SS:case xS:case CS:return n;default:switch(n=n&&n.$$typeof,n){case OS:case Gv:case RS:case Rh:return n;case AS:return n;default:return a}}case _S:return a}}}function DS(n){return MS(n)===Rh}function LS(n,a,i,s,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:d}){let h=!1,m,g,b,_,A;function U(C,S){return m=C,g=S,b=n(m,g),_=a(s,g),A=i(b,_,g),h=!0,A}function x(){return b=n(m,g),a.dependsOnOwnProps&&(_=a(s,g)),A=i(b,_,g),A}function k(){return n.dependsOnOwnProps&&(b=n(m,g)),a.dependsOnOwnProps&&(_=a(s,g)),A=i(b,_,g),A}function I(){const C=n(m,g),S=!d(C,b);return b=C,S&&(A=i(b,_,g)),A}function E(C,S){const H=!f(S,g),N=!u(C,m,S,g);return m=C,g=S,H&&N?x():H?k():N?I():A}return function(S,H){return h?E(S,H):U(S,H)}}function BS(n,{initMapStateToProps:a,initMapDispatchToProps:i,initMergeProps:s,...u}){const f=a(n,u),d=i(n,u),h=s(n,u);return LS(f,d,h,n,u)}function US(n,a){const i={};for(const s in n){const u=n[s];typeof u=="function"&&(i[s]=(...f)=>a(u(...f)))}return i}function Wd(n){return function(i){const s=n(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function fy(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function kv(n,a){return function(s,{displayName:u}){const f=function(h,m){return f.dependsOnOwnProps?f.mapToProps(h,m):f.mapToProps(h,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(h,m){f.mapToProps=n,f.dependsOnOwnProps=fy(n);let g=f(h,m);return typeof g=="function"&&(f.mapToProps=g,f.dependsOnOwnProps=fy(g),g=f(h,m)),g},f}}function wh(n,a){return(i,s)=>{throw new Error(`Invalid value of type ${typeof n} for ${a} argument when connecting component ${s.wrappedComponentName}.`)}}function jS(n){return n&&typeof n=="object"?Wd(a=>US(n,a)):n?typeof n=="function"?kv(n):wh(n,"mapDispatchToProps"):Wd(a=>({dispatch:a}))}function HS(n){return n?typeof n=="function"?kv(n):wh(n,"mapStateToProps"):Wd(()=>({}))}function IS(n,a,i){return{...i,...n,...a}}function zS(n){return function(i,{displayName:s,areMergedPropsEqual:u}){let f=!1,d;return function(m,g,b){const _=n(m,g,b);return f?u(_,d)||(d=_):(f=!0,d=_),d}}}function GS(n){return n?typeof n=="function"?zS(n):wh(n,"mergeProps"):()=>IS}function kS(n){n()}function qS(){let n=null,a=null;return{clear(){n=null,a=null},notify(){kS(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=n;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const u=a={callback:i,next:null,prev:a};return u.prev?u.prev.next=u:n=u,function(){!s||n===null||(s=!1,u.next?u.next.prev=u.prev:a=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var dy={notify(){},get:()=>[]};function qv(n,a){let i,s=dy,u=0,f=!1;function d(k){b();const I=s.subscribe(k);let E=!1;return()=>{E||(E=!0,I(),_())}}function h(){s.notify()}function m(){x.onStateChange&&x.onStateChange()}function g(){return f}function b(){u++,i||(i=a?a.addNestedSub(m):n.subscribe(m),s=qS())}function _(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=dy)}function A(){f||(f=!0,b())}function U(){f&&(f=!1,_())}const x={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:g,trySubscribe:A,tryUnsubscribe:U,getListeners:()=>s};return x}var FS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VS=FS(),YS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",PS=YS(),XS=()=>VS||PS?B.useLayoutEffect:B.useEffect,iu=XS();function hy(n,a){return n===a?n!==0||a!==0||1/n===1/a:n!==n&&a!==a}function $f(n,a){if(hy(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;const i=Object.keys(n),s=Object.keys(a);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(a,i[u])||!hy(n[i[u]],a[i[u]]))return!1;return!0}var ZS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},QS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},KS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$S={[wS]:KS,[NS]:Fv};function my(n){return DS(n)?Fv:$S[n.$$typeof]||ZS}var WS=Object.defineProperty,JS=Object.getOwnPropertyNames,py=Object.getOwnPropertySymbols,eT=Object.getOwnPropertyDescriptor,tT=Object.getPrototypeOf,gy=Object.prototype;function Jd(n,a){if(typeof a!="string"){if(gy){const f=tT(a);f&&f!==gy&&Jd(n,f)}let i=JS(a);py&&(i=i.concat(py(a)));const s=my(n),u=my(a);for(let f=0;f<i.length;++f){const d=i[f];if(!QS[d]&&!(u&&u[d])&&!(s&&s[d])){const h=eT(a,d);try{WS(n,d,h)}catch{}}}}return n}var nT=Symbol.for("react-redux-context"),aT=typeof globalThis<"u"?globalThis:{};function rT(){if(!B.createContext)return{};const n=aT[nT]??=new Map;let a=n.get(B.createContext);return a||(a=B.createContext(null),n.set(B.createContext,a)),a}var Ra=rT(),iT=[null,null];function lT(n,a,i){iu(()=>n(...a),i)}function sT(n,a,i,s,u,f){n.current=s,i.current=!1,u.current&&(u.current=null,f())}function oT(n,a,i,s,u,f,d,h,m,g,b){if(!n)return()=>{};let _=!1,A=null;const U=()=>{if(_||!h.current)return;const k=a.getState();let I,E;try{I=s(k,u.current)}catch(C){E=C,A=C}E||(A=null),I===f.current?d.current||g():(f.current=I,m.current=I,d.current=!0,b())};return i.onStateChange=U,i.trySubscribe(),U(),()=>{if(_=!0,i.tryUnsubscribe(),i.onStateChange=null,A)throw A}}function uT(n,a){return n===a}function cT(n,a,i,{pure:s,areStatesEqual:u=uT,areOwnPropsEqual:f=$f,areStatePropsEqual:d=$f,areMergedPropsEqual:h=$f,forwardRef:m=!1,context:g=Ra}={}){const b=g,_=HS(n),A=jS(a),U=GS(i),x=!!n;return I=>{const E=I.displayName||I.name||"Component",C=`Connect(${E})`,S={shouldHandleStateChanges:x,displayName:C,wrappedComponentName:E,WrappedComponent:I,initMapStateToProps:_,initMapDispatchToProps:A,initMergeProps:U,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:h};function H(X){const[te,de,ye]=B.useMemo(()=>{const{reactReduxForwardedRef:rt,...Qt}=X;return[X.context,rt,Qt]},[X]),re=B.useMemo(()=>{let rt=b;return te?.Consumer,rt},[te,b]),pe=B.useContext(re),ce=!!X.store&&!!X.store.getState&&!!X.store.dispatch,Xe=!!pe&&!!pe.store,we=ce?X.store:pe.store,G=Xe?pe.getServerState:we.getState,$=B.useMemo(()=>BS(we.dispatch,S),[we]),[ne,Ee]=B.useMemo(()=>{if(!x)return iT;const rt=qv(we,ce?void 0:pe.subscription),Qt=rt.notifyNestedSubs.bind(rt);return[rt,Qt]},[we,ce,pe]),Te=B.useMemo(()=>ce?pe:{...pe,subscription:ne},[ce,pe,ne]),O=B.useRef(void 0),q=B.useRef(ye),P=B.useRef(void 0),W=B.useRef(!1),J=B.useRef(!1),fe=B.useRef(void 0);iu(()=>(J.current=!0,()=>{J.current=!1}),[]);const _e=B.useMemo(()=>()=>P.current&&ye===q.current?P.current:$(we.getState(),ye),[we,ye]),mt=B.useMemo(()=>Qt=>ne?oT(x,we,ne,$,q,O,W,J,P,Ee,Qt):()=>{},[ne]);lT(sT,[q,O,W,ye,P,Ee]);let ze;try{ze=B.useSyncExternalStore(mt,_e,G?()=>$(G(),ye):_e)}catch(rt){throw fe.current&&(rt.message+=`
|
|
58
|
+
The error may be correlated with this previous error:
|
|
59
|
+
${fe.current.stack}
|
|
60
|
+
|
|
61
|
+
`),rt}iu(()=>{fe.current=void 0,P.current=void 0,O.current=ze});const fn=B.useMemo(()=>B.createElement(I,{...ze,ref:de}),[de,I,ze]);return B.useMemo(()=>x?B.createElement(re.Provider,{value:Te},fn):fn,[re,fn,Te])}const Z=B.memo(H);if(Z.WrappedComponent=I,Z.displayName=H.displayName=C,m){const te=B.forwardRef(function(ye,re){return B.createElement(Z,{...ye,reactReduxForwardedRef:re})});return te.displayName=C,te.WrappedComponent=I,Jd(te,I)}return Jd(Z,I)}}var fT=cT;function dT(n){const{children:a,context:i,serverState:s,store:u}=n,f=B.useMemo(()=>{const m=qv(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),d=B.useMemo(()=>u.getState(),[u]);iu(()=>{const{subscription:m}=f;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),d!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[f,d]);const h=i||Ra;return B.createElement(h.Provider,{value:f},a)}var hT=dT;function Nh(n=Ra){return function(){return B.useContext(n)}}var Vv=Nh();function Yv(n=Ra){const a=n===Ra?Vv:Nh(n),i=()=>{const{store:s}=a();return s};return Object.assign(i,{withTypes:()=>i}),i}var mT=Yv();function pT(n=Ra){const a=n===Ra?mT:Yv(n),i=()=>a().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var gT=pT(),yT=(n,a)=>n===a;function bT(n=Ra){const a=n===Ra?Vv:Nh(n),i=(s,u={})=>{const{equalityFn:f=yT}=typeof u=="function"?{equalityFn:u}:u,d=a(),{store:h,subscription:m,getServerState:g}=d;B.useRef(!0);const b=B.useCallback({[s.name](A){return s(A)}}[s.name],[s]),_=yS.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,g||h.getState,b,f);return B.useDebugValue(_),_};return Object.assign(i,{withTypes:()=>i}),i}var vT=bT(),Wf={exports:{}};/*!
|
|
62
|
+
Copyright (c) 2018 Jed Watson.
|
|
63
|
+
Licensed under the MIT License (MIT), see
|
|
64
|
+
http://jedwatson.github.io/classnames
|
|
65
|
+
*/var yy;function _T(){return yy||(yy=1,(function(n){(function(){var a={}.hasOwnProperty;function i(){for(var f="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(f=u(f,s(h)))}return f}function s(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 d="";for(var h in f)a.call(f,h)&&f[h]&&(d=u(d,h));return d}function u(f,d){return d?f?f+" "+d:f+d:f}n.exports?(i.default=i,n.exports=i):window.classNames=i})()})(Wf)),Wf.exports}var ET=_T();const K=gu(ET);var eh=function(n,a){return eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])},eh(n,a)};function On(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");eh(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)}var le=function(){return le=Object.assign||function(a){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(a[f]=i[f])}return a},le.apply(this,arguments)};function bu(n,a){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&a.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)a.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(i[s[u]]=n[s[u]]);return i}function Qn(n,a,i){if(i||arguments.length===2)for(var s=0,u=a.length,f;s<u;s++)(f||!(s in a))&&(f||(f=Array.prototype.slice.call(a,0,s)),f[s]=a[s]);return n.concat(f||Array.prototype.slice.call(a))}function Xn(n,a){var i=a&&a.cache?a.cache:RT,s=a&&a.serializer?a.serializer:xT,u=a&&a.strategy?a.strategy:AT;return u(n,{cache:i,serializer:s})}function ST(n){return n==null||typeof n=="number"||typeof n=="boolean"}function TT(n,a,i,s){var u=ST(s)?s:i(s),f=a.get(u);return typeof f>"u"&&(f=n.call(this,s),a.set(u,f)),f}function Pv(n,a,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),f=a.get(u);return typeof f>"u"&&(f=n.apply(this,s),a.set(u,f)),f}function Xv(n,a,i,s,u){return i.bind(a,n,s,u)}function AT(n,a){var i=n.length===1?TT:Pv;return Xv(n,this,i,a.cache.create(),a.serializer)}function OT(n,a){return Xv(n,this,Pv,a.cache.create(),a.serializer)}var xT=function(){return JSON.stringify(arguments)},CT=(function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(a){return this.cache[a]},n.prototype.set=function(a,i){this.cache[a]=i},n})(),RT={create:function(){return new CT}},Zn={variadic:OT},Me;(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"})(Me||(Me={}));var Je;(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"})(Je||(Je={}));var Ui;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Ui||(Ui={}));function by(n){return n.type===Je.literal}function wT(n){return n.type===Je.argument}function Zv(n){return n.type===Je.number}function Qv(n){return n.type===Je.date}function Kv(n){return n.type===Je.time}function $v(n){return n.type===Je.select}function Wv(n){return n.type===Je.plural}function NT(n){return n.type===Je.pound}function Jv(n){return n.type===Je.tag}function e1(n){return!!(n&&typeof n=="object"&&n.type===Ui.number)}function th(n){return!!(n&&typeof n=="object"&&n.type===Ui.dateTime)}var t1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,MT=/(?:[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 DT(n){var a={};return n.replace(MT,function(i){var s=i.length;switch(i[0]){case"G":a.era=s===4?"long":s===5?"narrow":"short";break;case"y":a.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":a.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":a.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":a.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][s-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][s-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][s-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][s-1];break;case"k":a.hourCycle="h24",a.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":a.minute=["numeric","2-digit"][s-1];break;case"s":a.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":a.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),a}var LT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function BT(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var a=n.split(LT).filter(function(A){return A.length>0}),i=[],s=0,u=a;s<u.length;s++){var f=u[s],d=f.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],m=d.slice(1),g=0,b=m;g<b.length;g++){var _=b[g];if(_.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function UT(n){return n.replace(/^(.*?)-/,"")}var vy=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,n1=/^(@+)?(\+|#+)?[rs]?$/g,jT=/(\*)(0+)|(#+)(0+)|(0+)/g,a1=/^(0+)$/;function _y(n){var a={};return n[n.length-1]==="r"?a.roundingPriority="morePrecision":n[n.length-1]==="s"&&(a.roundingPriority="lessPrecision"),n.replace(n1,function(i,s,u){return typeof u!="string"?(a.minimumSignificantDigits=s.length,a.maximumSignificantDigits=s.length):u==="+"?a.minimumSignificantDigits=s.length:s[0]==="#"?a.maximumSignificantDigits=s.length:(a.minimumSignificantDigits=s.length,a.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),a}function r1(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 HT(n){var a;if(n[0]==="E"&&n[1]==="E"?(a={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(a={notation:"scientific"},n=n.slice(1)),a){var i=n.slice(0,2);if(i==="+!"?(a.signDisplay="always",n=n.slice(2)):i==="+?"&&(a.signDisplay="exceptZero",n=n.slice(2)),!a1.test(n))throw new Error("Malformed concise eng/scientific notation");a.minimumIntegerDigits=n.length}return a}function Ey(n){var a={},i=r1(n);return i||a}function IT(n){for(var a={},i=0,s=n;i<s.length;i++){var u=s[i];switch(u.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=u.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=UT(u.options[0]);continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=le(le(le({},a),{notation:"scientific"}),u.options.reduce(function(m,g){return le(le({},m),Ey(g))},{}));continue;case"engineering":a=le(le(le({},a),{notation:"engineering"}),u.options.reduce(function(m,g){return le(le({},m),Ey(g))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":a.roundingMode="floor";continue;case"rounding-mode-ceiling":a.roundingMode="ceil";continue;case"rounding-mode-down":a.roundingMode="trunc";continue;case"rounding-mode-up":a.roundingMode="expand";continue;case"rounding-mode-half-even":a.roundingMode="halfEven";continue;case"rounding-mode-half-down":a.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":a.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(jT,function(m,g,b,_,A,U){if(g)a.minimumIntegerDigits=b.length;else{if(_&&A)throw new Error("We currently do not support maximum integer digits");if(U)throw new Error("We currently do not support exact integer digits")}return""});continue}if(a1.test(u.stem)){a.minimumIntegerDigits=u.stem.length;continue}if(vy.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(vy,function(m,g,b,_,A,U){return b==="*"?a.minimumFractionDigits=g.length:_&&_[0]==="#"?a.maximumFractionDigits=_.length:A&&U?(a.minimumFractionDigits=A.length,a.maximumFractionDigits=A.length+U.length):(a.minimumFractionDigits=g.length,a.maximumFractionDigits=g.length),""});var f=u.options[0];f==="w"?a=le(le({},a),{trailingZeroDisplay:"stripIfInteger"}):f&&(a=le(le({},a),_y(f)));continue}if(n1.test(u.stem)){a=le(le({},a),_y(u.stem));continue}var d=r1(u.stem);d&&(a=le(le({},a),d));var h=HT(u.stem);h&&(a=le(le({},a),h))}return a}var xo={"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 zT(n,a){for(var i="",s=0;s<n.length;s++){var u=n.charAt(s);if(u==="j"){for(var f=0;s+1<n.length&&n.charAt(s+1)===u;)f++,s++;var d=1+(f&1),h=f<2?1:3+(f>>1),m="a",g=GT(a);for((g=="H"||g=="k")&&(h=0);h-- >0;)i+=m;for(;d-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function GT(n){var a=n.hourCycle;if(a===void 0&&n.hourCycles&&n.hourCycles.length&&(a=n.hourCycles[0]),a)switch(a){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,s;i!=="root"&&(s=n.maximize().region);var u=xo[s||""]||xo[i||""]||xo["".concat(i,"-001")]||xo["001"];return u[0]}var Jf,kT=new RegExp("^".concat(t1.source,"*")),qT=new RegExp("".concat(t1.source,"*$"));function Le(n,a){return{start:n,end:a}}var FT=!!String.prototype.startsWith&&"_a".startsWith("a",1),VT=!!String.fromCodePoint,YT=!!Object.fromEntries,PT=!!String.prototype.codePointAt,XT=!!String.prototype.trimStart,ZT=!!String.prototype.trimEnd,QT=!!Number.isSafeInteger,KT=QT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},nh=!0;try{var $T=l1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nh=((Jf=$T.exec("a"))===null||Jf===void 0?void 0:Jf[0])==="a"}catch{nh=!1}var Sy=FT?function(a,i,s){return a.startsWith(i,s)}:function(a,i,s){return a.slice(s,s+i.length)===i},ah=VT?String.fromCodePoint:function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var s="",u=a.length,f=0,d;u>f;){if(d=a[f++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},Ty=YT?Object.fromEntries:function(a){for(var i={},s=0,u=a;s<u.length;s++){var f=u[s],d=f[0],h=f[1];i[d]=h}return i},i1=PT?function(a,i){return a.codePointAt(i)}:function(a,i){var s=a.length;if(!(i<0||i>=s)){var u=a.charCodeAt(i),f;return u<55296||u>56319||i+1===s||(f=a.charCodeAt(i+1))<56320||f>57343?u:(u-55296<<10)+(f-56320)+65536}},WT=XT?function(a){return a.trimStart()}:function(a){return a.replace(kT,"")},JT=ZT?function(a){return a.trimEnd()}:function(a){return a.replace(qT,"")};function l1(n,a){return new RegExp(n,a)}var rh;if(nh){var Ay=l1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rh=function(a,i){var s;Ay.lastIndex=i;var u=Ay.exec(a);return(s=u[1])!==null&&s!==void 0?s:""}}else rh=function(a,i){for(var s=[];;){var u=i1(a,i);if(u===void 0||s1(u)||aA(u))break;s.push(u),i+=u>=65536?2:1}return ah.apply(void 0,s)};var eA=(function(){function n(a,i){i===void 0&&(i={}),this.message=a,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(a,i,s){for(var u=[];!this.isEOF();){var f=this.char();if(f===123){var d=this.parseArgument(a,s);if(d.err)return d;u.push(d.val)}else{if(f===125&&a>0)break;if(f===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),u.push({type:Je.pound,location:Le(h,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(Me.UNMATCHED_CLOSING_TAG,Le(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&ih(this.peek()||0)){var d=this.parseTag(a,i);if(d.err)return d;u.push(d.val)}else{var d=this.parseLiteral(a,i);if(d.err)return d;u.push(d.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(a,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Je.literal,value:"<".concat(u,"/>"),location:Le(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var f=this.parseMessage(a+1,i,!0);if(f.err)return f;var d=f.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ih(this.char()))return this.error(Me.INVALID_TAG,Le(h,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(Me.UNMATCHED_CLOSING_TAG,Le(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Je.tag,value:u,children:d,location:Le(s,this.clonePosition())},err:null}:this.error(Me.INVALID_TAG,Le(h,this.clonePosition())))}else return this.error(Me.UNCLOSED_TAG,Le(s,this.clonePosition()))}else return this.error(Me.INVALID_TAG,Le(s,this.clonePosition()))},n.prototype.parseTagName=function(){var a=this.offset();for(this.bump();!this.isEOF()&&nA(this.char());)this.bump();return this.message.slice(a,this.offset())},n.prototype.parseLiteral=function(a,i){for(var s=this.clonePosition(),u="";;){var f=this.tryParseQuote(i);if(f){u+=f;continue}var d=this.tryParseUnquoted(a,i);if(d){u+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){u+=h;continue}break}var m=Le(s,this.clonePosition());return{val:{type:Je.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tA(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(a){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(a==="plural"||a==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return ah.apply(void 0,i)},n.prototype.tryParseUnquoted=function(a,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&a>0?null:(this.bump(),ah(s))},n.prototype.parseArgument=function(a,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Me.EXPECT_ARGUMENT_CLOSING_BRACE,Le(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Me.EMPTY_ARGUMENT,Le(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(Me.MALFORMED_ARGUMENT,Le(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Me.EXPECT_ARGUMENT_CLOSING_BRACE,Le(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Je.argument,value:u,location:Le(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Me.EXPECT_ARGUMENT_CLOSING_BRACE,Le(s,this.clonePosition())):this.parseArgumentOptions(a,i,u,s);default:return this.error(Me.MALFORMED_ARGUMENT,Le(s,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var a=this.clonePosition(),i=this.offset(),s=rh(this.message,i),u=i+s.length;this.bumpTo(u);var f=this.clonePosition(),d=Le(a,f);return{value:s,location:d}},n.prototype.parseArgumentOptions=function(a,i,s,u){var f,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(h){case"":return this.error(Me.EXPECT_ARGUMENT_TYPE,Le(d,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var b=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var A=JT(_.val);if(A.length===0)return this.error(Me.EXPECT_ARGUMENT_STYLE,Le(this.clonePosition(),this.clonePosition()));var U=Le(b,this.clonePosition());g={style:A,styleLocation:U}}var x=this.tryParseArgumentClose(u);if(x.err)return x;var k=Le(u,this.clonePosition());if(g&&Sy(g?.style,"::",0)){var I=WT(g.style.slice(2));if(h==="number"){var _=this.parseNumberSkeletonFromString(I,g.styleLocation);return _.err?_:{val:{type:Je.number,value:s,location:k,style:_.val},err:null}}else{if(I.length===0)return this.error(Me.EXPECT_DATE_TIME_SKELETON,k);var E=I;this.locale&&(E=zT(I,this.locale));var A={type:Ui.dateTime,pattern:E,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?DT(E):{}},C=h==="date"?Je.date:Je.time;return{val:{type:C,value:s,location:k,style:A},err:null}}}return{val:{type:h==="number"?Je.number:h==="date"?Je.date:Je.time,value:s,location:k,style:(f=g?.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Me.EXPECT_SELECT_ARGUMENT_OPTIONS,Le(S,le({},S)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),N=0;if(h!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(Me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Le(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(Me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),H=this.parseIdentifierIfPossible(),N=_.val}var Z=this.tryParsePluralOrSelectOptions(a,h,i,H);if(Z.err)return Z;var x=this.tryParseArgumentClose(u);if(x.err)return x;var X=Le(u,this.clonePosition());return h==="select"?{val:{type:Je.select,value:s,options:Ty(Z.val),location:X},err:null}:{val:{type:Je.plural,value:s,options:Ty(Z.val),offset:N,pluralType:h==="plural"?"cardinal":"ordinal",location:X},err:null}}default:return this.error(Me.INVALID_ARGUMENT_TYPE,Le(d,m))}},n.prototype.tryParseArgumentClose=function(a){return this.isEOF()||this.char()!==125?this.error(Me.EXPECT_ARGUMENT_CLOSING_BRACE,Le(a,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var a=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Me.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Le(u,this.clonePosition()));this.bump();break}case 123:{a+=1,this.bump();break}case 125:{if(a>0)a-=1;else return{val:this.message.slice(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(a,i){var s=[];try{s=BT(a)}catch{return this.error(Me.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ui.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?IT(s):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(a,i,s,u){for(var f,d=!1,h=[],m=new Set,g=u.value,b=u.location;;){if(g.length===0){var _=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var A=this.tryParseDecimalInteger(Me.EXPECT_PLURAL_ARGUMENT_SELECTOR,Me.INVALID_PLURAL_ARGUMENT_SELECTOR);if(A.err)return A;b=Le(_,this.clonePosition()),g=this.message.slice(_.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?Me.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Me.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,b);g==="other"&&(d=!0),this.bumpSpace();var U=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?Me.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Me.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Le(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(a+1,i,s);if(x.err)return x;var k=this.tryParseArgumentClose(U);if(k.err)return k;h.push([g,{value:x.val,location:Le(U,this.clonePosition())}]),m.add(g),this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=f.value,b=f.location}return h.length===0?this.error(i==="select"?Me.EXPECT_SELECT_ARGUMENT_SELECTOR:Me.EXPECT_PLURAL_ARGUMENT_SELECTOR,Le(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(Me.MISSING_OTHER_CLAUSE,Le(this.clonePosition(),this.clonePosition())):{val:h,err:null}},n.prototype.tryParseDecimalInteger=function(a,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var f=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)f=!0,d=d*10+(h-48),this.bump();else break}var m=Le(u,this.clonePosition());return f?(d*=s,KT(d)?{val:d,err:null}:this.error(i,m)):this.error(a,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 a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");var i=i1(this.message,a);if(i===void 0)throw Error("Offset ".concat(a," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(a,i){return{val:null,err:{kind:a,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var a=this.char();a===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}},n.prototype.bumpIf=function(a){if(Sy(this.message,a,this.offset())){for(var i=0;i<a.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(a){var i=this.offset(),s=this.message.indexOf(a,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(a){if(this.offset()>a)throw Error("targetOffset ".concat(a," must be greater than or equal to the current offset ").concat(this.offset()));for(a=Math.min(a,this.message.length);;){var i=this.offset();if(i===a)break;if(i>a)throw Error("targetOffset ".concat(a," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&s1(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var a=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(a>=65536?2:1));return s??null},n})();function ih(n){return n>=97&&n<=122||n>=65&&n<=90}function tA(n){return ih(n)||n===47}function nA(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 s1(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function aA(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 lh(n){n.forEach(function(a){if(delete a.location,$v(a)||Wv(a))for(var i in a.options)delete a.options[i].location,lh(a.options[i].value);else Zv(a)&&e1(a.style)||(Qv(a)||Kv(a))&&th(a.style)?delete a.style.location:Jv(a)&&lh(a.children)})}function rA(n,a){a===void 0&&(a={}),a=le({shouldParseSkeletons:!0,requiresOtherClause:!0},a);var i=new eA(n,a).parse();if(i.err){var s=SyntaxError(Me[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return a?.captureLocation||lh(i.val),i.val}var $n;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})($n||($n={}));var or=(function(n){On(a,n);function a(i,s,u){var f=n.call(this,i)||this;return f.code=s,f.originalMessage=u,f}return a.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},a})(Error),Oy=(function(n){On(a,n);function a(i,s,u,f){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),$n.INVALID_VALUE,f)||this}return a})(or),iA=(function(n){On(a,n);function a(i,s,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),$n.INVALID_VALUE,u)||this}return a})(or),lA=(function(n){On(a,n);function a(i,s){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),$n.MISSING_VALUE,s)||this}return a})(or),zt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(zt||(zt={}));function sA(n){return n.length<2?n:n.reduce(function(a,i){var s=a[a.length-1];return!s||s.type!==zt.literal||i.type!==zt.literal?a.push(i):s.value+=i.value,a},[])}function o1(n){return typeof n=="function"}function $o(n,a,i,s,u,f,d){if(n.length===1&&by(n[0]))return[{type:zt.literal,value:n[0].value}];for(var h=[],m=0,g=n;m<g.length;m++){var b=g[m];if(by(b)){h.push({type:zt.literal,value:b.value});continue}if(NT(b)){typeof f=="number"&&h.push({type:zt.literal,value:i.getNumberFormat(a).format(f)});continue}var _=b.value;if(!(u&&_ in u))throw new lA(_,d);var A=u[_];if(wT(b)){(!A||typeof A=="string"||typeof A=="number")&&(A=typeof A=="string"||typeof A=="number"?String(A):""),h.push({type:typeof A=="string"?zt.literal:zt.object,value:A});continue}if(Qv(b)){var U=typeof b.style=="string"?s.date[b.style]:th(b.style)?b.style.parsedOptions:void 0;h.push({type:zt.literal,value:i.getDateTimeFormat(a,U).format(A)});continue}if(Kv(b)){var U=typeof b.style=="string"?s.time[b.style]:th(b.style)?b.style.parsedOptions:s.time.medium;h.push({type:zt.literal,value:i.getDateTimeFormat(a,U).format(A)});continue}if(Zv(b)){var U=typeof b.style=="string"?s.number[b.style]:e1(b.style)?b.style.parsedOptions:void 0;U&&U.scale&&(A=A*(U.scale||1)),h.push({type:zt.literal,value:i.getNumberFormat(a,U).format(A)});continue}if(Jv(b)){var x=b.children,k=b.value,I=u[k];if(!o1(I))throw new iA(k,"function",d);var E=$o(x,a,i,s,u,f),C=I(E.map(function(N){return N.value}));Array.isArray(C)||(C=[C]),h.push.apply(h,C.map(function(N){return{type:typeof N=="string"?zt.literal:zt.object,value:N}}))}if($v(b)){var S=b.options[A]||b.options.other;if(!S)throw new Oy(b.value,A,Object.keys(b.options),d);h.push.apply(h,$o(S.value,a,i,s,u));continue}if(Wv(b)){var S=b.options["=".concat(A)];if(!S){if(!Intl.PluralRules)throw new or(`Intl.PluralRules is not available in this environment.
|
|
66
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
+
`,$n.MISSING_INTL_API,d);var H=i.getPluralRules(a,{type:b.pluralType}).select(A-(b.offset||0));S=b.options[H]||b.options.other}if(!S)throw new Oy(b.value,A,Object.keys(b.options),d);h.push.apply(h,$o(S.value,a,i,s,u,A-(b.offset||0)));continue}}return sA(h)}function oA(n,a){return a?le(le(le({},n||{}),a||{}),Object.keys(n).reduce(function(i,s){return i[s]=le(le({},n[s]),a[s]||{}),i},{})):n}function uA(n,a){return a?Object.keys(n).reduce(function(i,s){return i[s]=oA(n[s],a[s]),i},le({},n)):n}function ed(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,i){n[a]=i}}}}}function cA(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Xn(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.NumberFormat).bind.apply(a,Qn([void 0],i,!1)))},{cache:ed(n.number),strategy:Zn.variadic}),getDateTimeFormat:Xn(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.DateTimeFormat).bind.apply(a,Qn([void 0],i,!1)))},{cache:ed(n.dateTime),strategy:Zn.variadic}),getPluralRules:Xn(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.PluralRules).bind.apply(a,Qn([void 0],i,!1)))},{cache:ed(n.pluralRules),strategy:Zn.variadic})}}var u1=(function(){function n(a,i,s,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(_,A){return!_.length||A.type!==zt.literal||typeof _[_.length-1]!="string"?_.push(A.value):_[_.length-1]+=A.value,_},[]);return b.length<=1?b[0]||"":b},this.formatToParts=function(m){return $o(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 a=="string"){if(this.message=a,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=u||{};d.formatters;var h=bu(d,["formatters"]);this.ast=n.__parse(a,le(le({},h),{locale:this.resolvedLocale}))}else this.ast=a;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=uA(n.formats,s),this.formatters=u&&u.formatters||cA(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(a){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(a);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof a=="string"?a:a[0])}},n.__parse=rA,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})(),Gr;(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"})(Gr||(Gr={}));var ts=(function(n){On(a,n);function a(i,s,u){var f=this,d=u?u instanceof Error?u:new Error(String(u)):void 0;return f=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
|
|
68
|
+
`).concat(d?`
|
|
69
|
+
`.concat(d.message,`
|
|
70
|
+
`).concat(d.stack):""))||this,f.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(f,a),f}return a})(Error),fA=(function(n){On(a,n);function a(i,s){return n.call(this,Gr.UNSUPPORTED_FORMATTER,i,s)||this}return a})(ts),dA=(function(n){On(a,n);function a(i,s){return n.call(this,Gr.INVALID_CONFIG,i,s)||this}return a})(ts),xy=(function(n){On(a,n);function a(i,s){return n.call(this,Gr.MISSING_DATA,i,s)||this}return a})(ts),xn=(function(n){On(a,n);function a(i,s,u){var f=n.call(this,Gr.FORMAT_ERROR,"".concat(i,`
|
|
71
|
+
Locale: `).concat(s,`
|
|
72
|
+
`),u)||this;return f.locale=s,f}return a})(ts),td=(function(n){On(a,n);function a(i,s,u,f){var d=n.call(this,"".concat(i,`
|
|
73
|
+
MessageID: `).concat(u?.id,`
|
|
74
|
+
Default Message: `).concat(u?.defaultMessage,`
|
|
75
|
+
Description: `).concat(u?.description,`
|
|
76
|
+
`),s,f)||this;return d.descriptor=u,d.locale=s,d}return a})(xn),hA=(function(n){On(a,n);function a(i,s){var u=n.call(this,Gr.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(f){var d;return(d=f.value)!==null&&d!==void 0?d:JSON.stringify(f)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return a})(ts);function mA(n,a,i){if(i===void 0&&(i=Error),!n)throw new i(a)}function Ii(n,a,i){return i===void 0&&(i={}),a.reduce(function(s,u){return u in n?s[u]=n[u]:u in i&&(s[u]=i[u]),s},{})}var pA=function(n){},gA=function(n){},c1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:pA,onWarn:gA};function f1(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function wr(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,i){n[a]=i}}}}}function yA(n){n===void 0&&(n=f1());var a=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=Xn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.DateTimeFormat).bind.apply(h,Qn([void 0],m,!1)))},{cache:wr(n.dateTime),strategy:Zn.variadic}),f=Xn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.NumberFormat).bind.apply(h,Qn([void 0],m,!1)))},{cache:wr(n.number),strategy:Zn.variadic}),d=Xn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.PluralRules).bind.apply(h,Qn([void 0],m,!1)))},{cache:wr(n.pluralRules),strategy:Zn.variadic});return{getDateTimeFormat:u,getNumberFormat:f,getMessageFormat:Xn(function(h,m,g,b){return new u1(h,m,g,le({formatters:{getNumberFormat:f,getDateTimeFormat:u,getPluralRules:d}},b||{}))},{cache:wr(n.message),strategy:Zn.variadic}),getRelativeTimeFormat:Xn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(a.bind.apply(a,Qn([void 0],h,!1)))},{cache:wr(n.relativeTime),strategy:Zn.variadic}),getPluralRules:d,getListFormat:Xn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(i.bind.apply(i,Qn([void 0],h,!1)))},{cache:wr(n.list),strategy:Zn.variadic}),getDisplayNames:Xn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(s.bind.apply(s,Qn([void 0],h,!1)))},{cache:wr(n.displayNames),strategy:Zn.variadic})}}function Mh(n,a,i,s){var u=n&&n[a],f;if(u&&(f=u[i]),f)return f;s(new fA("No ".concat(a," format named: ").concat(i)))}function Co(n,a){return Object.keys(n).reduce(function(i,s){return i[s]=le({timeZone:a},n[s]),i},{})}function Cy(n,a){var i=Object.keys(le(le({},n),a));return i.reduce(function(s,u){return s[u]=le(le({},n[u]||{}),a[u]||{}),s},{})}function Ry(n,a){if(!a)return n;var i=u1.formats;return le(le(le({},i),n),{date:Cy(Co(i.date,a),Co(n.date||{},a)),time:Cy(Co(i.time,a),Co(n.time||{},a))})}var sh=function(n,a,i,s,u){var f=n.locale,d=n.formats,h=n.messages,m=n.defaultLocale,g=n.defaultFormats,b=n.fallbackOnEmptyString,_=n.onError,A=n.timeZone,U=n.defaultRichTextElements;i===void 0&&(i={id:""});var x=i.id,k=i.defaultMessage;mA(!!x,"[@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 I=String(x),E=h&&Object.prototype.hasOwnProperty.call(h,I)&&h[I];if(Array.isArray(E)&&E.length===1&&E[0].type===Je.literal)return E[0].value;if(!s&&E&&typeof E=="string"&&!U)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=le(le({},U),s||{}),d=Ry(d,A),g=Ry(g,A),!E){if(b===!1&&E==="")return E;if((!k||f&&f.toLowerCase()!==m.toLowerCase())&&_(new hA(i,f)),k)try{var C=a.getMessageFormat(k,m,g,u);return C.format(s)}catch(S){return _(new td('Error formatting default message for: "'.concat(I,'", rendering default message verbatim'),f,i,S)),typeof k=="string"?k:I}return I}try{var C=a.getMessageFormat(E,f,d,le({formatters:a},u||{}));return C.format(s)}catch(S){_(new td('Error formatting message: "'.concat(I,'", using ').concat(k?"default message":"id"," as fallback."),f,i,S))}if(k)try{var C=a.getMessageFormat(k,m,g,u);return C.format(s)}catch(S){_(new td('Error formatting the default message for: "'.concat(I,'", rendering message verbatim'),f,i,S))}return typeof E=="string"?E:typeof k=="string"?k:I},bA=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ns(n,a,i,s){var u=n.locale,f=n.formats,d=n.onError,h=n.timeZone;s===void 0&&(s={});var m=s.format,g=le(le({},h&&{timeZone:h}),m&&Mh(f,a,m,d)),b=Ii(s,bA,g);return a==="time"&&!b.hour&&!b.minute&&!b.second&&!b.timeStyle&&!b.dateStyle&&(b=le(le({},b),{hour:"numeric",minute:"numeric"})),i(u,b)}function vA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return ns(n,"date",a,d).format(h)}catch(m){n.onError(new xn("Error formatting date.",n.locale,m))}return String(h)}function _A(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return ns(n,"time",a,d).format(h)}catch(m){n.onError(new xn("Error formatting time.",n.locale,m))}return String(h)}function EA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=i[2],h=d===void 0?{}:d,m=typeof u=="string"?new Date(u||0):u,g=typeof f=="string"?new Date(f||0):f;try{return ns(n,"dateTimeRange",a,h).formatRange(m,g)}catch(b){n.onError(new xn("Error formatting date time range.",n.locale,b))}return String(m)}function SA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return ns(n,"date",a,d).formatToParts(h)}catch(m){n.onError(new xn("Error formatting date.",n.locale,m))}return[]}function TA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return ns(n,"time",a,d).formatToParts(h)}catch(m){n.onError(new xn("Error formatting time.",n.locale,m))}return[]}var AA=["style","type","fallback","languageDisplay"];function OA(n,a,i,s){var u=n.locale,f=n.onError,d=Intl.DisplayNames;d||f(new or(`Intl.DisplayNames is not available in this environment.
|
|
77
|
+
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
+
`,$n.MISSING_INTL_API));var h=Ii(s,AA);try{return a(u,h).of(i)}catch(m){f(new xn("Error formatting display name.",u,m))}}var xA=["type","style"],wy=Date.now();function CA(n){return"".concat(wy,"_").concat(n,"_").concat(wy)}function RA(n,a,i,s){s===void 0&&(s={});var u=d1(n,a,i,s).reduce(function(f,d){var h=d.value;return typeof h!="string"?f.push(h):typeof f[f.length-1]=="string"?f[f.length-1]+=h:f.push(h),f},[]);return u.length===1?u[0]:u.length===0?"":u}function d1(n,a,i,s){var u=n.locale,f=n.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||f(new or(`Intl.ListFormat is not available in this environment.
|
|
79
|
+
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
+
`,$n.MISSING_INTL_API));var h=Ii(s,xA);try{var m={},g=Array.from(i).map(function(b,_){if(typeof b=="object"&&b!==null){var A=CA(_);return m[A]=b,A}return String(b)});return a(u,h).formatToParts(g).map(function(b){return b.type==="literal"?b:le(le({},b),{value:m[b.value]||b.value})})}catch(b){f(new xn("Error formatting list.",u,b))}return i}var wA=["type"];function NA(n,a,i,s){var u=n.locale,f=n.onError;s===void 0&&(s={}),Intl.PluralRules||f(new or(`Intl.PluralRules is not available in this environment.
|
|
81
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
|
+
`,$n.MISSING_INTL_API));var d=Ii(s,wA);try{return a(u,d).select(i)}catch(h){f(new xn("Error formatting plural.",u,h))}return"other"}var MA=["numeric","style"];function DA(n,a,i){var s=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Mh(u,"relative",d,f)||{},m=Ii(i,MA,h);return a(s,m)}function LA(n,a,i,s,u){u===void 0&&(u={}),s||(s="second");var f=Intl.RelativeTimeFormat;f||n.onError(new or(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
|
+
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
+
`,$n.MISSING_INTL_API));try{return DA(n,a,u).format(i,s)}catch(d){n.onError(new xn("Error formatting relative time.",n.locale,d))}return String(i)}var BA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function h1(n,a,i){var s=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var d=i.format,h=d&&Mh(u,"number",d,f)||{},m=Ii(i,BA,h);return a(s,m)}function UA(n,a,i,s){s===void 0&&(s={});try{return h1(n,a,s).format(i)}catch(u){n.onError(new xn("Error formatting number.",n.locale,u))}return String(i)}function jA(n,a,i,s){s===void 0&&(s={});try{return h1(n,a,s).formatToParts(i)}catch(u){n.onError(new xn("Error formatting number.",n.locale,u))}return[]}function HA(n){var a=n?n[Object.keys(n)[0]]:void 0;return typeof a=="string"}function IA(n){n.onWarn&&n.defaultRichTextElements&&HA(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
85
|
+
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
86
|
+
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function zA(n,a){var i=yA(a),s=le(le({},c1),n),u=s.locale,f=s.defaultLocale,d=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&d?d(new xy('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&d&&d(new xy('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new dA('"locale" was not configured, using "'.concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),IA(s),le(le({},s),{formatters:i,formatNumber:UA.bind(null,s,i.getNumberFormat),formatNumberToParts:jA.bind(null,s,i.getNumberFormat),formatRelativeTime:LA.bind(null,s,i.getRelativeTimeFormat),formatDate:vA.bind(null,s,i.getDateTimeFormat),formatDateToParts:SA.bind(null,s,i.getDateTimeFormat),formatTime:_A.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:EA.bind(null,s,i.getDateTimeFormat),formatTimeToParts:TA.bind(null,s,i.getDateTimeFormat),formatPlural:NA.bind(null,s,i.getPluralRules),formatMessage:sh.bind(null,s,i),$t:sh.bind(null,s,i),formatList:RA.bind(null,s,i.getListFormat),formatListToParts:d1.bind(null,s,i.getListFormat),formatDisplayName:OA.bind(null,s,i.getDisplayNames)})}function GA(n,a,i){if(i===void 0&&(i=Error),!n)throw new i(a)}function m1(n){GA(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var p1=le(le({},c1),{textComponent:B.Fragment}),kA=function(n,a){return B.isValidElement(n)?B.cloneElement(n,{key:a}):n},g1=function(n){var a;return(a=B.Children.map(n,kA))!==null&&a!==void 0?a:[]};function qA(n){return function(a){return n(g1(a))}}function FA(n,a){if(n===a)return!0;if(!n||!a)return!1;var i=Object.keys(n),s=Object.keys(a),u=i.length;if(s.length!==u)return!1;for(var f=0;f<u;f++){var d=i[f];if(n[d]!==a[d]||!Object.prototype.hasOwnProperty.call(a,d))return!1}return!0}var nd={exports:{}},Ge={};/** @license React v16.13.1
|
|
87
|
+
* react-is.production.min.js
|
|
88
|
+
*
|
|
89
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/var Ny;function VA(){if(Ny)return Ge;Ny=1;var n=typeof Symbol=="function"&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,h=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,b=n?Symbol.for("react.forward_ref"):60112,_=n?Symbol.for("react.suspense"):60113,A=n?Symbol.for("react.suspense_list"):60120,U=n?Symbol.for("react.memo"):60115,x=n?Symbol.for("react.lazy"):60116,k=n?Symbol.for("react.block"):60121,I=n?Symbol.for("react.fundamental"):60117,E=n?Symbol.for("react.responder"):60118,C=n?Symbol.for("react.scope"):60119;function S(N){if(typeof N=="object"&&N!==null){var Z=N.$$typeof;switch(Z){case a:switch(N=N.type,N){case m:case g:case s:case f:case u:case _:return N;default:switch(N=N&&N.$$typeof,N){case h:case b:case x:case U:case d:return N;default:return Z}}case i:return Z}}}function H(N){return S(N)===g}return Ge.AsyncMode=m,Ge.ConcurrentMode=g,Ge.ContextConsumer=h,Ge.ContextProvider=d,Ge.Element=a,Ge.ForwardRef=b,Ge.Fragment=s,Ge.Lazy=x,Ge.Memo=U,Ge.Portal=i,Ge.Profiler=f,Ge.StrictMode=u,Ge.Suspense=_,Ge.isAsyncMode=function(N){return H(N)||S(N)===m},Ge.isConcurrentMode=H,Ge.isContextConsumer=function(N){return S(N)===h},Ge.isContextProvider=function(N){return S(N)===d},Ge.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===a},Ge.isForwardRef=function(N){return S(N)===b},Ge.isFragment=function(N){return S(N)===s},Ge.isLazy=function(N){return S(N)===x},Ge.isMemo=function(N){return S(N)===U},Ge.isPortal=function(N){return S(N)===i},Ge.isProfiler=function(N){return S(N)===f},Ge.isStrictMode=function(N){return S(N)===u},Ge.isSuspense=function(N){return S(N)===_},Ge.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===s||N===g||N===f||N===u||N===_||N===A||typeof N=="object"&&N!==null&&(N.$$typeof===x||N.$$typeof===U||N.$$typeof===d||N.$$typeof===h||N.$$typeof===b||N.$$typeof===I||N.$$typeof===E||N.$$typeof===C||N.$$typeof===k)},Ge.typeOf=S,Ge}var My;function YA(){return My||(My=1,nd.exports=VA()),nd.exports}var ad,Dy;function PA(){if(Dy)return ad;Dy=1;var n=YA(),a={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},s={$$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]=s,f[n.Memo]=u;function d(x){return n.isMemo(x)?u:f[x.$$typeof]||a}var h=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,A=Object.prototype;function U(x,k,I){if(typeof k!="string"){if(A){var E=_(k);E&&E!==A&&U(x,E,I)}var C=m(k);g&&(C=C.concat(g(k)));for(var S=d(x),H=d(k),N=0;N<C.length;++N){var Z=C[N];if(!i[Z]&&!(I&&I[Z])&&!(H&&H[Z])&&!(S&&S[Z])){var X=b(k,Z);try{h(x,Z,X)}catch{}}}}return x}return ad=U,ad}PA();var Dh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Dh.Consumer;var XA=Dh.Provider,ZA=XA,QA=Dh;function vu(){var n=B.useContext(QA);return m1(n),n}var oh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(oh||(oh={}));var uh;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(uh||(uh={}));function y1(n){var a=function(i){var s=vu(),u=i.value,f=i.children,d=bu(i,["value","children"]),h=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return f(m)};return a.displayName=uh[n],a}function as(n){var a=function(i){var s=vu(),u=i.value,f=i.children,d=bu(i,["value","children"]),h=s[n](u,d);if(typeof f=="function")return f(h);var m=s.textComponent||B.Fragment;return B.createElement(m,null,h)};return a.displayName=oh[n],a}function b1(n){return n&&Object.keys(n).reduce(function(a,i){var s=n[i];return a[i]=o1(s)?qA(s):s,a},{})}var Ly=function(n,a,i,s){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var d=b1(s),h=sh.apply(void 0,Qn([n,a,i,d],u,!1));return Array.isArray(h)?g1(h):h},By=function(n,a){var i=n.defaultRichTextElements,s=bu(n,["defaultRichTextElements"]),u=b1(i),f=zA(le(le(le({},p1),s),{defaultRichTextElements:u}),a),d={locale:f.locale,timeZone:f.timeZone,fallbackOnEmptyString:f.fallbackOnEmptyString,formats:f.formats,defaultLocale:f.defaultLocale,defaultFormats:f.defaultFormats,messages:f.messages,onError:f.onError,defaultRichTextElements:u};return le(le({},f),{formatMessage:Ly.bind(null,d,f.formatters),$t:Ly.bind(null,d,f.formatters)})};function rd(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 KA=(function(n){On(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=f1(),i.state={cache:i.cache,intl:By(rd(i.props),i.cache),prevConfig:rd(i.props)},i}return a.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,f=s.cache,d=rd(i);return FA(u,d)?null:{intl:By(d,f),prevConfig:d}},a.prototype.render=function(){return m1(this.state.intl),B.createElement(ZA,{value:this.state.intl},this.props.children)},a.displayName="IntlProvider",a.defaultProps=p1,a})(B.PureComponent);as("formatDate");as("formatTime");as("formatNumber");as("formatList");as("formatDisplayName");y1("formatDate");y1("formatTime");const $A="_app_1rj0t_1",WA={app:$A},Na=gT,ht=vT,v1="%[a-f0-9]{2}",Uy=new RegExp("("+v1+")|([^%]+?)","gi"),jy=new RegExp("("+v1+")+","gi");function ch(n,a){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;a=a||1;const i=n.slice(0,a),s=n.slice(a);return Array.prototype.concat.call([],ch(i),ch(s))}function JA(n){try{return decodeURIComponent(n)}catch{let a=n.match(Uy)||[];for(let i=1;i<a.length;i++)n=ch(a,i).join(""),a=n.match(Uy)||[];return n}}function eO(n){const a={"%FE%FF":"��","%FF%FE":"��"};let i=jy.exec(n);for(;i;){try{a[i[0]]=decodeURIComponent(i[0])}catch{const u=JA(i[0]);u!==i[0]&&(a[i[0]]=u)}i=jy.exec(n)}a["%C2"]="�";const s=Object.keys(a);for(const u of s)n=n.replace(new RegExp(u,"g"),a[u]);return n}function tO(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return eO(n)}}function nO(n,a){const i={};if(Array.isArray(a))for(const s of a){const u=Object.getOwnPropertyDescriptor(n,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,s);if(u.enumerable){const f=n[s];a(s,f,n)&&Object.defineProperty(i,s,u)}}return i}function _1(n,a){if(!(typeof n=="string"&&typeof a=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||a==="")return[];const i=n.indexOf(a);return i===-1?[]:[n.slice(0,i),n.slice(i+a.length)]}const aO=n=>n==null,rO=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`),fh=Symbol("encodeFragmentIdentifier");function iO(n){switch(n.arrayFormat){case"index":return a=>(i,s)=>{const u=i.length;return s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[vt(a,n),"[",u,"]"].join("")]:[...i,[vt(a,n),"[",vt(u,n),"]=",vt(s,n)].join("")]};case"bracket":return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[vt(a,n),"[]"].join("")]:[...i,[vt(a,n),"[]=",vt(s,n)].join("")];case"colon-list-separator":return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[vt(a,n),":list="].join("")]:[...i,[vt(a,n),":list=",vt(s,n)].join("")];case"comma":case"separator":case"bracket-separator":{const a=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[vt(i,n),a,vt(u,n)].join("")]:[[s,vt(u,n)].join(n.arrayFormatSeparator)])}default:return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,vt(a,n)]:[...i,[vt(a,n),"=",vt(s,n)].join("")]}}function lO(n){let a;switch(n.arrayFormat){case"index":return(i,s,u)=>{if(a=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!a){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][a[1]]=s};case"bracket":return(i,s,u)=>{if(a=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!a){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(a=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!a){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const d=typeof s=="string"&&s.includes(n.arrayFormatSeparator)?s.split(n.arrayFormatSeparator).map(h=>Ir(h,n)):s===null?s:Ir(s,n);u[i]=d};case"bracket-separator":return(i,s,u)=>{const f=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!f){u[i]=s&&Ir(s,n);return}const d=s===null?[]:Ir(s,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=d;return}u[i]=[...u[i],...d]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function E1(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function vt(n,a){return a.encode?a.strict?rO(n):encodeURIComponent(n):n}function Ir(n,a){return a.decode?tO(n):n}function S1(n){return Array.isArray(n)?n.sort():typeof n=="object"?S1(Object.keys(n)).sort((a,i)=>Number(a)-Number(i)).map(a=>n[a]):n}function T1(n){const a=n.indexOf("#");return a!==-1&&(n=n.slice(0,a)),n}function sO(n){let a="";const i=n.indexOf("#");return i!==-1&&(a=n.slice(i)),a}function Hy(n,a,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="boolean"&&n===null?!0:i==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":i==="string[]"&&a.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&a.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):a.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":a.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Lh(n){n=T1(n);const a=n.indexOf("?");return a===-1?"":n.slice(a+1)}function Bh(n,a){a={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...a},E1(a.arrayFormatSeparator);const i=lO(a),s=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return s;for(const u of n.split("&")){if(u==="")continue;const f=a.decode?u.replaceAll("+"," "):u;let[d,h]=_1(f,"=");d===void 0&&(d=f),h=h===void 0?null:["comma","separator","bracket-separator"].includes(a.arrayFormat)?h:Ir(h,a),i(Ir(d,a),h,s)}for(const[u,f]of Object.entries(s))if(typeof f=="object"&&f!==null&&a.types[u]!=="string")for(const[d,h]of Object.entries(f)){const m=a.types[u],g=typeof m=="function"?m:m?m.replace("[]",""):void 0;f[d]=Hy(h,a,g)}else typeof f=="object"&&f!==null&&a.types[u]==="string"?s[u]=Object.values(f).join(a.arrayFormatSeparator):s[u]=Hy(f,a,a.types[u]);return a.sort===!1?s:(a.sort===!0?Object.keys(s).sort():Object.keys(s).sort(a.sort)).reduce((u,f)=>{const d=s[f];return u[f]=d&&typeof d=="object"&&!Array.isArray(d)?S1(d):d,u},Object.create(null))}function A1(n,a){if(!n)return"";a={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...a},E1(a.arrayFormatSeparator);const i=d=>a.skipNull&&aO(n[d])||a.skipEmptyString&&n[d]==="",s=iO(a),u={};for(const[d,h]of Object.entries(n))i(d)||(u[d]=h);const f=Object.keys(u);return a.sort!==!1&&f.sort(a.sort),f.map(d=>{let h=n[d];if(a.replacer&&(h=a.replacer(d,h),h===void 0)||h===void 0)return"";if(h===null)return vt(d,a);if(Array.isArray(h)){if(h.length===0&&a.arrayFormat==="bracket-separator")return vt(d,a)+"[]";let m=h;return a.replacer&&(m=h.map((g,b)=>a.replacer(`${d}[${b}]`,g)).filter(g=>g!==void 0)),m.reduce(s(d),[]).join("&")}return vt(d,a)+"="+vt(h,a)}).filter(d=>d.length>0).join("&")}function O1(n,a){a={decode:!0,...a};let[i,s]=_1(n,"#");return i===void 0&&(i=n),{url:i?.split("?")?.[0]??"",query:Bh(Lh(n),a),...a&&a.parseFragmentIdentifier&&s?{fragmentIdentifier:Ir(s,a)}:{}}}function x1(n,a){a={encode:!0,strict:!0,[fh]:!0,...a};const i=T1(n.url).split("?")[0]||"",s=Lh(n.url),u={...Bh(s,{sort:!1,...a}),...n.query};let f=A1(u,a);f&&=`?${f}`;let d=sO(n.url);if(typeof n.fragmentIdentifier=="string"){const h=new URL(i);h.hash=n.fragmentIdentifier,d=a[fh]?h.hash:`#${n.fragmentIdentifier}`}return`${i}${f}${d}`}function C1(n,a,i){i={parseFragmentIdentifier:!0,[fh]:!1,...i};const{url:s,query:u,fragmentIdentifier:f}=O1(n,i);return x1({url:s,query:nO(u,a),fragmentIdentifier:f},i)}function oO(n,a,i){const s=Array.isArray(a)?u=>!a.includes(u):(u,f)=>!a(u,f);return C1(n,s,i)}const _u=Object.freeze(Object.defineProperty({__proto__:null,exclude:oO,extract:Lh,parse:Bh,parseUrl:O1,pick:C1,stringify:A1,stringifyUrl:x1},Symbol.toStringTag,{value:"Module"}));var Ln={},Bn={},Fe={},Ro={},he={},Iy;function cn(){return Iy||(Iy=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 zy;function uO(){if(zy)return Ro;zy=1,Object.defineProperty(Ro,"__esModule",{value:!0});const n=cn(),a=()=>({type:n.DRAWER_CLOSE});return Ro.default=a,Ro}var wo={},Gy;function cO(){if(Gy)return wo;Gy=1,Object.defineProperty(wo,"__esModule",{value:!0});const n=cn(),a=(i,s)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return wo.default=a,wo}var No={},ky;function fO(){if(ky)return No;ky=1,Object.defineProperty(No,"__esModule",{value:!0});const n=cn(),a=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return No.default=a,No}var Mo={},qy;function dO(){if(qy)return Mo;qy=1,Object.defineProperty(Mo,"__esModule",{value:!0});const n=cn(),a=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Mo.default=a,Mo}var Do={},Fy;function hO(){if(Fy)return Do;Fy=1,Object.defineProperty(Do,"__esModule",{value:!0});const n=cn(),a=(i,s)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Do.default=a,Do}var Lo={},Vy;function mO(){if(Vy)return Lo;Vy=1,Object.defineProperty(Lo,"__esModule",{value:!0});const n=cn(),a=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Lo.default=a,Lo}var Bo={},lt={},Yy;function Uh(){if(Yy)return lt;Yy=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.getStringRepresentationFromMessage=lt.MessageTypeEnum=lt.AudioMessage=lt.FileMessage=lt.ImageMessage=lt.VideoMessage=lt.MarkdownMessage=lt.DetailMessage=lt.TextMessage=lt.Message=void 0;class n{type;sender;sources;quickReplies;constructor(_,A,U=[],x=[]){this.type=_,this.sender=A,this.sources=U,this.quickReplies=x}addQuickReply(_,A){this.quickReplies.push({label:_,payload:A})}}lt.Message=n;class a extends n{text;constructor(_,A,U=[],x=[]){super(m.TEXT,A,U,x),this.text=_}}lt.TextMessage=a;class i extends n{title;text;imageUrl;itemUrl;buttons;constructor(_,A){super(m.DETAIL,A),this.title=_,this.text="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(_){this.imageUrl=_}setItemUrl(_){this.itemUrl=_}setText(_){this.text=_}addButton(_){this.buttons.push(_)}}lt.DetailMessage=i;class s extends n{markdown;constructor(_,A,U=[],x=[]){super(m.MARKDOWN,A,U,x),this.markdown=_}}lt.MarkdownMessage=s;class u extends n{url;constructor(_,A){super(m.VIDEO,A),this.url=_}}lt.VideoMessage=u;class f extends n{url;constructor(_,A){super(m.IMAGE,A),this.url=_}}lt.ImageMessage=f;class d extends n{url;constructor(_,A){super(m.FILE,A),this.url=_}}lt.FileMessage=d;class h extends n{url;constructor(_,A){super(m.AUDIO,A),this.url=_}}lt.AudioMessage=h;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||(lt.MessageTypeEnum=m={}));const g=b=>{switch(b.type){case m.TEXT:return b.text;case m.DETAIL:return`${b.title}`;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 lt.getStringRepresentationFromMessage=g,lt}var rn={},Py;function jh(){if(Py)return rn;Py=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.UserType=rn.PersonUser=rn.GuestUser=rn.BotUser=rn.User=void 0;class n{type;id;name;avatar;constructor(d,h,m,g){this.type=d,this.id=h,this.name=m,this.avatar=g}}rn.User=n;class a extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}rn.BotUser=a;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}rn.GuestUser=i;class s extends n{constructor(d,h,m){super(u.PERSON,d,h,m)}}rn.PersonUser=s;var u;return(function(f){f.GUEST="GUEST",f.BOT="BOT",f.PERSON="PERSON"})(u||(rn.UserType=u={})),rn}var Xy;function pO(){if(Xy)return Bo;Xy=1,Object.defineProperty(Bo,"__esModule",{value:!0});const n=Uh(),a=jh(),i=cn(),s=u=>{const f=new n.TextMessage(u,new a.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:f}};return Bo.default=s,Bo}var Uo={},Zy;function gO(){if(Zy)return Uo;Zy=1,Object.defineProperty(Uo,"__esModule",{value:!0});const n=Uh(),a=jh(),i=cn(),s=(u,f={})=>{const d=new n.TextMessage(u,new a.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:f}};return Uo.default=s,Uo}var jo={},Qy;function yO(){if(Qy)return jo;Qy=1,Object.defineProperty(jo,"__esModule",{value:!0});const n=cn(),a=i=>({type:n.NLU_REQUEST_EVENT,event:i});return jo.default=a,jo}var Ho={},Ky;function bO(){if(Ky)return Ho;Ky=1,Object.defineProperty(Ho,"__esModule",{value:!0});const n=cn(),a=()=>({type:n.RESTART_CHAT_REQUEST});return Ho.default=a,Ho}var Io={},$y;function vO(){if($y)return Io;$y=1,Object.defineProperty(Io,"__esModule",{value:!0});const n=cn(),a=i=>({type:n.MESSAGE_TO_GUEST,message:i});return Io.default=a,Io}var zo={},Wy;function _O(){if(Wy)return zo;Wy=1,Object.defineProperty(zo,"__esModule",{value:!0});const n=cn(),a=(i,s,u=null,f=null)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s,category:u,comment:f}});return zo.default=a,zo}var Jy;function EO(){if(Jy)return Fe;Jy=1;var n=Fe&&Fe.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.transcriptItemGuestReaction=Fe.sendMessageToGuest=Fe.restartChatRequest=Fe.requestNLUEvent=Fe.receiveTextMessageWithoutAnalysisFromGuest=Fe.receiveTextMessageFromGuest=Fe.openDrawer=Fe.guestLocaleChanged=Fe.guestDisconnected=Fe.guestConnected=Fe.feedbackFromGuestResponse=Fe.closeDrawer=void 0;const a=n(uO());Fe.closeDrawer=a.default;const i=n(cO());Fe.feedbackFromGuestResponse=i.default;const s=n(fO());Fe.guestConnected=s.default;const u=n(dO());Fe.guestDisconnected=u.default;const f=n(hO());Fe.guestLocaleChanged=f.default;const d=n(mO());Fe.openDrawer=d.default;const h=n(pO());Fe.receiveTextMessageFromGuest=h.default;const m=n(gO());Fe.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(yO());Fe.requestNLUEvent=g.default;const b=n(bO());Fe.restartChatRequest=b.default;const _=n(vO());Fe.sendMessageToGuest=_.default;const A=n(_O());return Fe.transcriptItemGuestReaction=A.default,Fe}var id={},eb;function SO(){return eb||(eb=1,Object.defineProperty(id,"__esModule",{value:!0})),id}var tb;function TO(){return tb||(tb=1,(function(n){var a=Bn&&Bn.__createBinding||(Object.create?(function(f,d,h,m){m===void 0&&(m=h);var g=Object.getOwnPropertyDescriptor(d,h);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,m,g)}):(function(f,d,h,m){m===void 0&&(m=h),f[m]=d[h]})),i=Bn&&Bn.__setModuleDefault||(Object.create?(function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}):function(f,d){f.default=d}),s=Bn&&Bn.__importStar||(function(){var f=function(d){return f=Object.getOwnPropertyNames||function(h){var m=[];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[m.length]=g);return m},f(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=f(d),g=0;g<m.length;g++)m[g]!=="default"&&a(h,d,m[g]);return i(h,d),h}})(),u=Bn&&Bn.__exportStar||function(f,d){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&a(d,f,h)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=s(EO()),n.ActionTypes=s(cn()),u(SO(),n)})(Bn)),Bn}var ln={},ld={},nb;function AO(){return nb||(nb=1,Object.defineProperty(ld,"__esModule",{value:!0})),ld}var Ul={},ab;function OO(){if(ab)return Ul;ab=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){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,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,f){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Ul.NullableKnowledgeBaseAdapter=n,Ul}var rb;function xO(){if(rb)return ln;rb=1;var n=ln&&ln.__createBinding||(Object.create?(function(u,f,d,h){h===void 0&&(h=d);var m=Object.getOwnPropertyDescriptor(f,d);(!m||("get"in m?!f.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,h,m)}):(function(u,f,d,h){h===void 0&&(h=d),u[h]=f[d]})),a=ln&&ln.__setModuleDefault||(Object.create?(function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}):function(u,f){u.default=f}),i=ln&&ln.__importStar||(function(){var u=function(f){return u=Object.getOwnPropertyNames||function(d){var h=[];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(h[h.length]=m);return h},u(f)};return function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var h=u(f),m=0;m<h.length;m++)h[m]!=="default"&&n(d,f,h[m]);return a(d,f),d}})();Object.defineProperty(ln,"__esModule",{value:!0}),ln.NullableCmsAdapter=ln.KnowledgeBase=void 0,ln.KnowledgeBase=i(AO());const s=OO();return ln.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},ln}var Nr={},sd={},ib;function CO(){return ib||(ib=1,Object.defineProperty(sd,"__esModule",{value:!0})),sd}var od={},lb;function RO(){return lb||(lb=1,Object.defineProperty(od,"__esModule",{value:!0})),od}var ud={},sb;function wO(){return sb||(sb=1,Object.defineProperty(ud,"__esModule",{value:!0})),ud}var cd={},ob;function NO(){return ob||(ob=1,Object.defineProperty(cd,"__esModule",{value:!0})),cd}var jl={},ub;function MO(){if(ub)return jl;ub=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.checkMiddlewareCondition=void 0;const n=async(a,i,s)=>(Array.isArray(a)?a:[a]).reduce(async(f,d)=>await f?await d(i,s):!1,Promise.resolve(!0));return jl.checkMiddlewareCondition=n,jl}var fd={},cb;function DO(){return cb||(cb=1,Object.defineProperty(fd,"__esModule",{value:!0})),fd}var dd={},fb;function LO(){return fb||(fb=1,Object.defineProperty(dd,"__esModule",{value:!0})),dd}var hd={},db;function BO(){return db||(db=1,Object.defineProperty(hd,"__esModule",{value:!0})),hd}var hb;function UO(){return hb||(hb=1,(function(n){var a=Nr&&Nr.__createBinding||(Object.create?(function(s,u,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(s,d,h)}):(function(s,u,f,d){d===void 0&&(d=f),s[d]=u[f]})),i=Nr&&Nr.__exportStar||function(s,u){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&a(u,s,f)};Object.defineProperty(n,"__esModule",{value:!0}),i(CO(),n),i(RO(),n),i(wO(),n),i(NO(),n),i(MO(),n),i(DO(),n),i(LO(),n),i(BO(),n)})(Nr)),Nr}var Mr={},Un={},mb;function jO(){if(mb)return Un;mb=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.ButtonTypeEnum=Un.PostbackButton=Un.UrlButton=Un.Button=void 0;class n{title;type;constructor(f,d){this.title=f,this.type=d}}Un.Button=n;class a extends n{url;constructor(f,d){super(f,s.WEB_URL),this.url=d}}Un.UrlButton=a;class i extends n{payload;constructor(f,d){super(f,s.POSTBACK),this.payload=d}}Un.PostbackButton=i;var s;return(function(u){u.WEB_URL="web_url",u.POSTBACK="postback"})(s||(Un.ButtonTypeEnum=s={})),Un}var md={},pb;function HO(){return pb||(pb=1,Object.defineProperty(md,"__esModule",{value:!0})),md}var Hl={},gb;function IO(){if(gb)return Hl;gb=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.SatisfactionEnum=void 0;var n;return(function(a){a.GOOD="GOOD",a.BAD="BAD"})(n||(Hl.SatisfactionEnum=n={})),Hl}var yb;function bb(){return yb||(yb=1,(function(n){var a=Mr&&Mr.__createBinding||(Object.create?(function(s,u,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(s,d,h)}):(function(s,u,f,d){d===void 0&&(d=f),s[d]=u[f]})),i=Mr&&Mr.__exportStar||function(s,u){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&a(u,s,f)};Object.defineProperty(n,"__esModule",{value:!0}),i(jO(),n),i(HO(),n),i(IO(),n),i(Uh(),n),i(jh(),n)})(Mr)),Mr}var vb;function zO(){return vb||(vb=1,(function(n){var a=Ln&&Ln.__createBinding||(Object.create?(function(f,d,h,m){m===void 0&&(m=h);var g=Object.getOwnPropertyDescriptor(d,h);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,m,g)}):(function(f,d,h,m){m===void 0&&(m=h),f[m]=d[h]})),i=Ln&&Ln.__setModuleDefault||(Object.create?(function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}):function(f,d){f.default=d}),s=Ln&&Ln.__exportStar||function(f,d){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&a(d,f,h)},u=Ln&&Ln.__importStar||(function(){var f=function(d){return f=Object.getOwnPropertyNames||function(h){var m=[];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[m.length]=g);return m},f(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=f(d),g=0;g<m.length;g++)m[g]!=="default"&&a(h,d,m[g]);return i(h,d),h}})();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,s(TO(),n),n.CMS=u(xO()),s(UO(),n),n.Model=u(bb()),s(bb(),n)})(Ln)),Ln}var Se=zO();const R1=n=>a=>(n.payload.type!==Se.ActionTypes.MESSAGE_FROM_GUEST&&a(Se.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),a(n.payload)),w1=n=>(a,i)=>{const{quickReplies:s}=i().chat,u=s.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return a(u?R1({...u,label:n}):JSON.parse(JSON.stringify(Se.Actions.receiveTextMessageFromGuest(n))))},Hh="MESSAGE_TO_PARENT_PAGE",Ih="RESTORE_PREVIOUS_CHAT_MESSAGES",zh="AUDIO_MESSAGE_FROM_USER",Gh="RECEIVE_SPEECH_TRANSCRIPTION",kh="ENABLE_CONVERSATION_RATING",N1="LOAD_SOURCE_INFOS_RESPONSE",qh="LOAD_SOURCE_INFOS_ERROR",Fh="LOAD_SOURCE_INFOS_REQUEST",Vh="CLOSE_SOURCE_INFOS",GO="webclient.get.started",M1="webclient.window.expand",D1="webclient.window.close",L1="webclient.transcript.pdf.download",kO=[Hh,Ih,zh,Gh,kh,Fh,Vh],qO=n=>({type:zh,buffer:n}),FO=n=>({type:Gh,transcription:n}),VO=n=>({type:Se.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),YO=()=>({type:L1}),PO=({rating:n})=>({type:kh,payload:{rating:n}}),XO=(n,a)=>({type:Se.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:a}}),B1=n=>Se.Actions.requestNLUEvent(n),ZO=n=>({type:Ih,messages:n}),QO=n=>{switch(n.type){case Se.ButtonTypeEnum.WEB_URL:return j1(n.url);case Se.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},U1=n=>j1(n),j1=n=>({type:Hh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function Go(n){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var s in i)n[s]=i[s]}return n}var KO={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 dh(n,a){function i(u,f,d){if(!(typeof document>"u")){d=Go({},a,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var m in d)d[m]&&(h+="; "+m,d[m]!==!0&&(h+="="+d[m].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],d={},h=0;h<f.length;h++){var m=f[h].split("="),g=m.slice(1).join("=");try{var b=decodeURIComponent(m[0]);if(d[b]=n.read(g,b),u===b)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,f){i(u,"",Go({},f,{expires:-1}))},withAttributes:function(u){return dh(this.converter,Go({},this.attributes,u))},withConverter:function(u){return dh(Go({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(n)}})}var ko=dh(KO,{path:"/"});const Dt=[];for(let n=0;n<256;++n)Dt.push((n+256).toString(16).slice(1));function $O(n,a=0){return(Dt[n[a+0]]+Dt[n[a+1]]+Dt[n[a+2]]+Dt[n[a+3]]+"-"+Dt[n[a+4]]+Dt[n[a+5]]+"-"+Dt[n[a+6]]+Dt[n[a+7]]+"-"+Dt[n[a+8]]+Dt[n[a+9]]+"-"+Dt[n[a+10]]+Dt[n[a+11]]+Dt[n[a+12]]+Dt[n[a+13]]+Dt[n[a+14]]+Dt[n[a+15]]).toLowerCase()}let pd;const WO=new Uint8Array(16);function JO(){if(!pd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pd=crypto.getRandomValues.bind(crypto)}return pd(WO)}const ex=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_b={randomUUID:ex};function tx(n,a,i){n=n||{};const s=n.random??n.rng?.()??JO();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,$O(s)}function lu(n,a,i){return _b.randomUUID&&!n?_b.randomUUID():tx(n)}const Yh=()=>nx(window.location.pathname),nx=n=>{const a=n.split("/"),i=n.endsWith("/");return a[a.length-(i?2:1)]};function Lt(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 ax=typeof Symbol=="function"&&Symbol.observable||"@@observable",Eb=ax,gd=()=>Math.random().toString(36).substring(7).split("").join("."),rx={INIT:`@@redux/INIT${gd()}`,REPLACE:`@@redux/REPLACE${gd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gd()}`},su=rx;function Ph(n){if(typeof n!="object"||n===null)return!1;let a=n;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(n)===a||Object.getPrototypeOf(n)===null}function H1(n,a,i){if(typeof n!="function")throw new Error(Lt(2));if(typeof a=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Lt(0));if(typeof a=="function"&&typeof i>"u"&&(i=a,a=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Lt(1));return i(H1)(n,a)}let s=n,u=a,f=new Map,d=f,h=0,m=!1;function g(){d===f&&(d=new Map,f.forEach((I,E)=>{d.set(E,I)}))}function b(){if(m)throw new Error(Lt(3));return u}function _(I){if(typeof I!="function")throw new Error(Lt(4));if(m)throw new Error(Lt(5));let E=!0;g();const C=h++;return d.set(C,I),function(){if(E){if(m)throw new Error(Lt(6));E=!1,g(),d.delete(C),f=null}}}function A(I){if(!Ph(I))throw new Error(Lt(7));if(typeof I.type>"u")throw new Error(Lt(8));if(typeof I.type!="string")throw new Error(Lt(17));if(m)throw new Error(Lt(9));try{m=!0,u=s(u,I)}finally{m=!1}return(f=d).forEach(C=>{C()}),I}function U(I){if(typeof I!="function")throw new Error(Lt(10));s=I,A({type:su.REPLACE})}function x(){const I=_;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Lt(11));function C(){const H=E;H.next&&H.next(b())}return C(),{unsubscribe:I(C)}},[Eb](){return this}}}return A({type:su.INIT}),{dispatch:A,subscribe:_,getState:b,replaceReducer:U,[Eb]:x}}function ix(n){Object.keys(n).forEach(a=>{const i=n[a];if(typeof i(void 0,{type:su.INIT})>"u")throw new Error(Lt(12));if(typeof i(void 0,{type:su.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Lt(13))})}function I1(n){const a=Object.keys(n),i={};for(let f=0;f<a.length;f++){const d=a[f];typeof n[d]=="function"&&(i[d]=n[d])}const s=Object.keys(i);let u;try{ix(i)}catch(f){u=f}return function(d={},h){if(u)throw u;let m=!1;const g={};for(let b=0;b<s.length;b++){const _=s[b],A=i[_],U=d[_],x=A(U,h);if(typeof x>"u")throw h&&h.type,new Error(Lt(14));g[_]=x,m=m||x!==U}return m=m||s.length!==Object.keys(d).length,m?g:d}}function ou(...n){return n.length===0?a=>a:n.length===1?n[0]:n.reduce((a,i)=>(...s)=>a(i(...s)))}function lx(...n){return a=>(i,s)=>{const u=a(i,s);let f=()=>{throw new Error(Lt(15))};const d={getState:u.getState,dispatch:(m,...g)=>f(m,...g)},h=n.map(m=>m(d));return f=ou(...h)(u.dispatch),{...u,dispatch:f}}}function sx(n){return Ph(n)&&"type"in n&&typeof n.type=="string"}var z1=Symbol.for("immer-nothing"),Sb=Symbol.for("immer-draftable"),on=Symbol.for("immer-state");function zn(n,...a){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var ji=Object.getPrototypeOf;function kr(n){return!!n&&!!n[on]}function wa(n){return n?G1(n)||Array.isArray(n)||!!n[Sb]||!!n.constructor?.[Sb]||Su(n)||Tu(n):!1}var ox=Object.prototype.constructor.toString();function G1(n){if(!n||typeof n!="object")return!1;const a=ji(n);if(a===null)return!0;const i=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===ox}function uu(n,a){Eu(n)===0?Reflect.ownKeys(n).forEach(i=>{a(i,n[i],n)}):n.forEach((i,s)=>a(s,i,n))}function Eu(n){const a=n[on];return a?a.type_:Array.isArray(n)?1:Su(n)?2:Tu(n)?3:0}function hh(n,a){return Eu(n)===2?n.has(a):Object.prototype.hasOwnProperty.call(n,a)}function k1(n,a,i){const s=Eu(n);s===2?n.set(a,i):s===3?n.add(i):n[a]=i}function ux(n,a){return n===a?n!==0||1/n===1/a:n!==n&&a!==a}function Su(n){return n instanceof Map}function Tu(n){return n instanceof Set}function jr(n){return n.copy_||n.base_}function mh(n,a){if(Su(n))return new Map(n);if(Tu(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=G1(n);if(a===!0||a==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(n);delete s[on];let u=Reflect.ownKeys(s);for(let f=0;f<u.length;f++){const d=u[f],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(ji(n),s)}else{const s=ji(n);if(s!==null&&i)return{...n};const u=Object.create(s);return Object.assign(u,n)}}function Xh(n,a=!1){return Au(n)||kr(n)||!wa(n)||(Eu(n)>1&&(n.set=n.add=n.clear=n.delete=cx),Object.freeze(n),a&&Object.entries(n).forEach(([i,s])=>Xh(s,!0))),n}function cx(){zn(2)}function Au(n){return Object.isFrozen(n)}var fx={};function qr(n){const a=fx[n];return a||zn(0,n),a}var Wl;function q1(){return Wl}function dx(n,a){return{drafts_:[],parent_:n,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Tb(n,a){a&&(qr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=a)}function ph(n){gh(n),n.drafts_.forEach(hx),n.drafts_=null}function gh(n){n===Wl&&(Wl=n.parent_)}function Ab(n){return Wl=dx(Wl,n)}function hx(n){const a=n[on];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function Ob(n,a){a.unfinalizedDrafts_=a.drafts_.length;const i=a.drafts_[0];return n!==void 0&&n!==i?(i[on].modified_&&(ph(a),zn(4)),wa(n)&&(n=cu(a,n),a.parent_||fu(a,n)),a.patches_&&qr("Patches").generateReplacementPatches_(i[on].base_,n,a.patches_,a.inversePatches_)):n=cu(a,i,[]),ph(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),n!==z1?n:void 0}function cu(n,a,i){if(Au(a))return a;const s=a[on];if(!s)return uu(a,(u,f)=>xb(n,s,a,u,f,i)),a;if(s.scope_!==n)return a;if(!s.modified_)return fu(n,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let f=u,d=!1;s.type_===3&&(f=new Set(u),u.clear(),d=!0),uu(f,(h,m)=>xb(n,s,u,h,m,i,d)),fu(n,u,!1),i&&n.patches_&&qr("Patches").generatePatches_(s,i,n.patches_,n.inversePatches_)}return s.copy_}function xb(n,a,i,s,u,f,d){if(kr(u)){const h=f&&a&&a.type_!==3&&!hh(a.assigned_,s)?f.concat(s):void 0,m=cu(n,u,h);if(k1(i,s,m),kr(m))n.canAutoFreeze_=!1;else return}else d&&i.add(u);if(wa(u)&&!Au(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;cu(n,u),(!a||!a.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&fu(n,u)}}function fu(n,a,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Xh(a,i)}function mx(n,a){const i=Array.isArray(n),s={type_:i?1:0,scope_:a?a.scope_:q1(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,f=Zh;i&&(u=[s],f=Jl);const{revoke:d,proxy:h}=Proxy.revocable(u,f);return s.draft_=h,s.revoke_=d,h}var Zh={get(n,a){if(a===on)return n;const i=jr(n);if(!hh(i,a))return px(n,i,a);const s=i[a];return n.finalized_||!wa(s)?s:s===yd(n.base_,a)?(bd(n),n.copy_[a]=bh(s,n)):s},has(n,a){return a in jr(n)},ownKeys(n){return Reflect.ownKeys(jr(n))},set(n,a,i){const s=F1(jr(n),a);if(s?.set)return s.set.call(n.draft_,i),!0;if(!n.modified_){const u=yd(jr(n),a),f=u?.[on];if(f&&f.base_===i)return n.copy_[a]=i,n.assigned_[a]=!1,!0;if(ux(i,u)&&(i!==void 0||hh(n.base_,a)))return!0;bd(n),yh(n)}return n.copy_[a]===i&&(i!==void 0||a in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[a])||(n.copy_[a]=i,n.assigned_[a]=!0),!0},deleteProperty(n,a){return yd(n.base_,a)!==void 0||a in n.base_?(n.assigned_[a]=!1,bd(n),yh(n)):delete n.assigned_[a],n.copy_&&delete n.copy_[a],!0},getOwnPropertyDescriptor(n,a){const i=jr(n),s=Reflect.getOwnPropertyDescriptor(i,a);return s&&{writable:!0,configurable:n.type_!==1||a!=="length",enumerable:s.enumerable,value:i[a]}},defineProperty(){zn(11)},getPrototypeOf(n){return ji(n.base_)},setPrototypeOf(){zn(12)}},Jl={};uu(Zh,(n,a)=>{Jl[n]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});Jl.deleteProperty=function(n,a){return Jl.set.call(this,n,a,void 0)};Jl.set=function(n,a,i){return Zh.set.call(this,n[0],a,i,n[0])};function yd(n,a){const i=n[on];return(i?jr(i):n)[a]}function px(n,a,i){const s=F1(a,i);return s?"value"in s?s.value:s.get?.call(n.draft_):void 0}function F1(n,a){if(!(a in n))return;let i=ji(n);for(;i;){const s=Object.getOwnPropertyDescriptor(i,a);if(s)return s;i=ji(i)}}function yh(n){n.modified_||(n.modified_=!0,n.parent_&&yh(n.parent_))}function bd(n){n.copy_||(n.copy_=mh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var gx=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,i,s)=>{if(typeof a=="function"&&typeof i!="function"){const f=i;i=a;const d=this;return function(m=f,...g){return d.produce(m,b=>i.call(this,b,...g))}}typeof i!="function"&&zn(6),s!==void 0&&typeof s!="function"&&zn(7);let u;if(wa(a)){const f=Ab(this),d=bh(a,void 0);let h=!0;try{u=i(d),h=!1}finally{h?ph(f):gh(f)}return Tb(f,s),Ob(u,f)}else if(!a||typeof a!="object"){if(u=i(a),u===void 0&&(u=a),u===z1&&(u=void 0),this.autoFreeze_&&Xh(u,!0),s){const f=[],d=[];qr("Patches").generateReplacementPatches_(a,u,f,d),s(f,d)}return u}else zn(1,a)},this.produceWithPatches=(a,i)=>{if(typeof a=="function")return(d,...h)=>this.produceWithPatches(d,m=>a(m,...h));let s,u;return[this.produce(a,i,(d,h)=>{s=d,u=h}),s,u]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){wa(n)||zn(8),kr(n)&&(n=yx(n));const a=Ab(this),i=bh(n,void 0);return i[on].isManual_=!0,gh(a),i}finishDraft(n,a){const i=n&&n[on];(!i||!i.isManual_)&&zn(9);const{scope_:s}=i;return Tb(s,a),Ob(void 0,s)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,a){let i;for(i=a.length-1;i>=0;i--){const u=a[i];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}i>-1&&(a=a.slice(i+1));const s=qr("Patches").applyPatches_;return kr(n)?s(n,a):this.produce(n,u=>s(u,a))}};function bh(n,a){const i=Su(n)?qr("MapSet").proxyMap_(n,a):Tu(n)?qr("MapSet").proxySet_(n,a):mx(n,a);return(a?a.scope_:q1()).drafts_.push(i),i}function yx(n){return kr(n)||zn(10,n),V1(n)}function V1(n){if(!wa(n)||Au(n))return n;const a=n[on];let i;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,i=mh(n,a.scope_.immer_.useStrictShallowCopy_)}else i=mh(n,!0);return uu(i,(s,u)=>{k1(i,s,V1(u))}),a&&(a.finalized_=!1),i}var un=new gx,Y1=un.produce;un.produceWithPatches.bind(un);un.setAutoFreeze.bind(un);un.setUseStrictShallowCopy.bind(un);un.applyPatches.bind(un);un.createDraft.bind(un);un.finishDraft.bind(un);function P1(n){return({dispatch:i,getState:s})=>u=>f=>typeof f=="function"?f(i,s,n):u(f)}var bx=P1(),vx=P1,_x=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ou:ou.apply(null,arguments)};function Cb(n,a){function i(...s){if(a){let u=a(...s);if(!u)throw new Error(Oa(0));return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:s[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=s=>sx(s)&&s.type===n,i}var X1=class Zl extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,Zl.prototype)}static get[Symbol.species](){return Zl}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new Zl(...a[0].concat(this)):new Zl(...a.concat(this))}};function Rb(n){return wa(n)?Y1(n,()=>{}):n}function qo(n,a,i){return n.has(a)?n.get(a):n.set(a,i(a)).get(a)}function Ex(n){return typeof n=="boolean"}var Sx=()=>function(a){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=a??{};let d=new X1;return i&&(Ex(i)?d.push(bx):d.push(vx(i.extraArgument))),d},Tx="RTK_autoBatch",wb=n=>a=>{setTimeout(a,n)},Ax=(n={type:"raf"})=>a=>(...i)=>{const s=a(...i);let u=!0,f=!1,d=!1;const h=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:wb(10):n.type==="callback"?n.queueNotification:wb(n.timeout),g=()=>{d=!1,f&&(f=!1,h.forEach(b=>b()))};return Object.assign({},s,{subscribe(b){const _=()=>u&&b(),A=s.subscribe(_);return h.add(b),()=>{A(),h.delete(b)}},dispatch(b){try{return u=!b?.meta?.[Tx],f=!u,f&&(d||(d=!0,m(g))),s.dispatch(b)}finally{u=!0}}})},Ox=n=>function(i){const{autoBatch:s=!0}=i??{};let u=new X1(n);return s&&u.push(Ax(typeof s=="object"?s:void 0)),u};function xx(n){const a=Sx(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:f=void 0,enhancers:d=void 0}=n||{};let h;if(typeof i=="function")h=i;else if(Ph(i))h=I1(i);else throw new Error(Oa(1));let m;typeof s=="function"?m=s(a):m=a();let g=ou;u&&(g=_x({trace:!1,...typeof u=="object"&&u}));const b=lx(...m),_=Ox(b);let A=typeof d=="function"?d(_):_();const U=g(...A);return H1(h,f,U)}function Z1(n){const a={},i=[];let s;const u={addCase(f,d){const h=typeof f=="string"?f:f.type;if(!h)throw new Error(Oa(28));if(h in a)throw new Error(Oa(29));return a[h]=d,u},addAsyncThunk(f,d){return d.pending&&(a[f.pending.type]=d.pending),d.rejected&&(a[f.rejected.type]=d.rejected),d.fulfilled&&(a[f.fulfilled.type]=d.fulfilled),d.settled&&i.push({matcher:f.settled,reducer:d.settled}),u},addMatcher(f,d){return i.push({matcher:f,reducer:d}),u},addDefaultCase(f){return s=f,u}};return n(u),[a,i,s]}function Cx(n){return typeof n=="function"}function Rx(n,a){let[i,s,u]=Z1(a),f;if(Cx(n))f=()=>Rb(n());else{const h=Rb(n);f=()=>h}function d(h=f(),m){let g=[i[m.type],...s.filter(({matcher:b})=>b(m)).map(({reducer:b})=>b)];return g.filter(b=>!!b).length===0&&(g=[u]),g.reduce((b,_)=>{if(_)if(kr(b)){const U=_(b,m);return U===void 0?b:U}else{if(wa(b))return Y1(b,A=>_(A,m));{const A=_(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return b},h)}return d.getInitialState=f,d}var wx=Symbol.for("rtk-slice-createasyncthunk");function Nx(n,a){return`${n}/${a}`}function Mx({creators:n}={}){const a=n?.asyncThunk?.[wx];return function(s){const{name:u,reducerPath:f=u}=s;if(!u)throw new Error(Oa(11));const d=(typeof s.reducers=="function"?s.reducers(Lx()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(S,H){const N=typeof S=="string"?S:S.type;if(!N)throw new Error(Oa(12));if(N in m.sliceCaseReducersByType)throw new Error(Oa(13));return m.sliceCaseReducersByType[N]=H,g},addMatcher(S,H){return m.sliceMatchers.push({matcher:S,reducer:H}),g},exposeAction(S,H){return m.actionCreators[S]=H,g},exposeCaseReducer(S,H){return m.sliceCaseReducersByName[S]=H,g}};h.forEach(S=>{const H=d[S],N={reducerName:S,type:Nx(u,S),createNotation:typeof s.reducers=="function"};Ux(H)?Hx(N,H,g,a):Bx(N,H,g)});function b(){const[S={},H=[],N=void 0]=typeof s.extraReducers=="function"?Z1(s.extraReducers):[s.extraReducers],Z={...S,...m.sliceCaseReducersByType};return Rx(s.initialState,X=>{for(let te in Z)X.addCase(te,Z[te]);for(let te of m.sliceMatchers)X.addMatcher(te.matcher,te.reducer);for(let te of H)X.addMatcher(te.matcher,te.reducer);N&&X.addDefaultCase(N)})}const _=S=>S,A=new Map,U=new WeakMap;let x;function k(S,H){return x||(x=b()),x(S,H)}function I(){return x||(x=b()),x.getInitialState()}function E(S,H=!1){function N(X){let te=X[S];return typeof te>"u"&&H&&(te=qo(U,N,I)),te}function Z(X=_){const te=qo(A,H,()=>new WeakMap);return qo(te,X,()=>{const de={};for(const[ye,re]of Object.entries(s.selectors??{}))de[ye]=Dx(re,X,()=>qo(U,X,I),H);return de})}return{reducerPath:S,getSelectors:Z,get selectors(){return Z(N)},selectSlice:N}}const C={name:u,reducer:k,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:I,...E(f),injectInto(S,{reducerPath:H,...N}={}){const Z=H??f;return S.inject({reducerPath:Z,reducer:k},N),{...C,...E(Z,!0)}}};return C}}function Dx(n,a,i,s){function u(f,...d){let h=a(f);return typeof h>"u"&&s&&(h=i()),n(h,...d)}return u.unwrapped=n,u}var Qh=Mx();function Lx(){function n(a,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:a,...i}}return n.withTypes=()=>n,{reducer(a){return Object.assign({[a.name](...i){return a(...i)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:i}},asyncThunk:n}}function Bx({type:n,reducerName:a,createNotation:i},s,u){let f,d;if("reducer"in s){if(i&&!jx(s))throw new Error(Oa(17));f=s.reducer,d=s.prepare}else f=s;u.addCase(n,f).exposeCaseReducer(a,f).exposeAction(a,d?Cb(n,d):Cb(n))}function Ux(n){return n._reducerDefinitionType==="asyncThunk"}function jx(n){return n._reducerDefinitionType==="reducerWithPrepare"}function Hx({type:n,reducerName:a},i,s,u){if(!u)throw new Error(Oa(18));const{payloadCreator:f,fulfilled:d,pending:h,rejected:m,settled:g,options:b}=i,_=u(n,f,b);s.exposeAction(a,_),d&&s.addCase(_.fulfilled,d),h&&s.addCase(_.pending,h),m&&s.addCase(_.rejected,m),g&&s.addMatcher(_.settled,g),s.exposeCaseReducer(a,{fulfilled:d||Fo,pending:h||Fo,rejected:m||Fo,settled:g||Fo})}function Fo(){}function Oa(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 Ix={formValues:{}},Q1=Qh({name:"start-screen",initialState:Ix,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,a){n.startScreenStatus="HIDDEN",n.formValues=a.payload.formValues},startAuthenticatedChat(n,a){n.startScreenStatus="HIDDEN",n.loginToken=a.payload.loginToken,n.loginRequestToken=void 0},requestLogin(n,a){n.loginRequestToken=a.payload.loginRequestToken,n.formValues=a.payload.formValues},loginWindowClosed(n){n.loginRequestToken=void 0}}}),{startChat:zx,startAuthenticatedChat:Gx,showStartScreen:kx,requestLogin:qx,loginWindowClosed:Fx}=Q1.actions,Vx=Q1.reducer,K1="RESET_CHAT_STATE",$1="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",W1="SHOW_CONVERSATION_RATING_OVERLAY",J1="HIDE_CONVERSATION_RATING_OVERLAY",e_=()=>({type:D1}),Yx=()=>({type:K1}),t_=()=>({type:$1}),du=(n,a=void 0)=>({type:W1,payload:{opener:n,defaultRating:a}}),Px=()=>({type:J1}),Nb=(n,a,i)=>(s,u)=>{try{const f=u().connection.sessionId;if(!f)throw new Error("Session ID is not available");s({type:Fh,payload:{chunkId:i}}),Mb(n,f,a,i,!1,s),Mb(n,f,a,i,!0,s)}catch(f){console.error("Error loading source infos:",f),s({type:qh})}},Mb=(n,a,i,s,u,f)=>{const d=`/${n}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(d,{headers:{"x-bubble-chat-session-id":a}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const m={...h,chunkId:s,highlighted:u};f({type:N1,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),f({type:qh,payload:{highlighted:u}})})},Xx=()=>({type:Vh}),Kh="CONNECT",$h="CONNECTING",Wh="CONNECTED",Jh="DISCONNECTED",em="RECONNECTED",tm="RESTORE_SESSION_ID",Ou="START",xu="CLEAR_SESSION_ID",Zx=[Kh,$h,Wh,Jh,em,tm],Qx=(n,a)=>({type:Kh,clientName:n,querystrings:a}),Kx=n=>({type:tm,sessionId:n}),$x=()=>({type:$h}),Wx=()=>({type:Wh}),Jx=()=>({type:Jh}),eC=()=>({type:em}),n_=(n,a)=>(i,s)=>{const u=s().connection,{formValues:f,loginToken:d}=s().startScreen;let h=u.sessionId;h===void 0&&(h=lu());let m=u.userId;if(m===void 0){const g=ko.get("bubble-chat-user-id")||ko.get("bubble-chat-userId")||ko.get("bf-webclient-userId");m=g||lu(),ko.set("bubble-chat-user-id",m)}i({type:Ou,payload:{sessionId:h,userId:m,clientName:n,loginToken:d,querystrings:{...a,...f}}})},rs=()=>(n,a)=>{const i=a().connection.sessionId||"";if(n(tC(i)),n(Yx()),a().settings.enableStartScreen)n(kx());else{const s=Yh(),u=_u.parse(window.location.search);return n(n_(s,u))}},tC=n=>({type:xu,payload:{sessionId:n}}),at=()=>{const n=vu();return i=>{const s=n.formatMessage({id:i});return s===i?void 0:s}};var zr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(zr||{}),hu=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(hu||{});const nC="_container_q2uun_1",aC="_chatcontent_q2uun_6",rC="_accessabilityHidden_q2uun_12",vd={container:nC,chatcontent:aC,accessabilityHidden:rC},iC="_messageContainer_ofi0g_1",lC="_messages_ofi0g_12",Db={messageContainer:iC,messages:lC};function Hr(){return Hr=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Hr.apply(this,arguments)}const sC=["children","options"],oC={footnoteReference:"7"},Lb=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((n,a)=>(n[a.toLowerCase()]=a,n),{class:"className",for:"htmlFor"}),Bb={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},uC=["style","script","pre"],cC=["src","href","data","formAction","srcDoc","action"],fC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,dC=/\n{2,}$/,Ub=/^(\s*>[\s\S]*?)(?=\n\n|$)/,hC=/^ *> ?/gm,mC=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,pC=/^ {2,}\n/,gC=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,jb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Hb=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,yC=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,bC=/^(?:\n *)*\n/,vC=/\r\n?/g,_C=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,EC=/^\[\^([^\]]+)]/,SC=/\f/g,TC=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,AC=/^\s*?\[(x|\s)\]/,Ib=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zb=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Gb=/^([^\n]+)\n *(=|-)\2{2,} *\n/,_d=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,OC=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,kb=/^<!--[\s\S]*?(?:-->)/,xC=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ed=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,CC=/^\{.*\}$/,RC=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wC=/^<([^ >]+[:@\/][^ >]+)>/,NC=/-([a-z])?/gi,qb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,MC=/^[^\n]+(?: \n|\n{2,})/,DC=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,LC=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,BC=/^\[([^\]]*)\] ?\[([^\]]*)\]/,UC=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,jC=/\t/g,HC=/(^ *\||\| *$)/g,IC=/^ *:-+: *$/,zC=/^ *:-+ *$/,GC=/^ *-+: *$/,Cu=n=>`(?=[\\s\\S]+?\\1${n?"\\1":""})`,Ru="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",kC=RegExp(`^([*_])\\1${Cu(1)}${Ru}\\1\\1(?!\\1)`),qC=RegExp(`^([*_])${Cu(0)}${Ru}\\1(?!\\1)`),FC=RegExp(`^(==)${Cu(0)}${Ru}\\1`),VC=RegExp(`^(~~)${Cu(0)}${Ru}\\1`),YC=/^(:[a-zA-Z0-9-_]+:)/,PC=/^\\([^0-9A-Za-z\s])/,XC=/\\([^0-9A-Za-z\s])/g,ZC=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,QC=/^\n+/,KC=/^([ \t]*)/,$C=/(?:^|\n)( *)$/,nm="(?:\\d+\\.)",am="(?:[*+-])";function a_(n){return"( *)("+(n===1?nm:am)+") +"}const r_=a_(1),i_=a_(2);function l_(n){return RegExp("^"+(n===1?r_:i_))}const WC=l_(1),JC=l_(2);function s_(n){return RegExp("^"+(n===1?r_:i_)+"[^\\n]*(?:\\n(?!\\1"+(n===1?nm:am)+" )[^\\n]*)*(\\n|$)","gm")}const eR=s_(1),tR=s_(2);function o_(n){const a=n===1?nm:am;return RegExp("^( *)("+a+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+a+" (?!"+a+" ))\\n*|\\s*\\n*$)")}const u_=o_(1),c_=o_(2);function Fb(n,a){const i=a===1,s=i?u_:c_,u=i?eR:tR,f=i?WC:JC;return{t:d=>f.test(d),o:Hi(function(d,h){const m=$C.exec(h.prevCapture);return m&&(h.list||!h.inline&&!h.simple)?s.exec(d=m[1]+d):null}),i:1,u(d,h,m){const g=i?+d[2]:void 0,b=d[0].replace(dC,`
|
|
94
|
+
`).match(u);let _=!1;return{items:b.map(function(A,U){const x=f.exec(A)[0].length,k=RegExp("^ {1,"+x+"}","gm"),I=A.replace(k,"").replace(f,""),E=U===b.length-1,C=I.indexOf(`
|
|
95
|
+
|
|
96
|
+
`)!==-1||E&&_;_=C;const S=m.inline,H=m.list;let N;m.list=!0,C?(m.inline=!1,N=$l(I)+`
|
|
97
|
+
|
|
98
|
+
`):(m.inline=!0,N=$l(I));const Z=h(N,m);return m.inline=S,m.list=H,Z}),ordered:i,start:g}},l:(d,h,m)=>n(d.ordered?"ol":"ul",{key:m.key,start:d.type==="20"?d.start:void 0},d.items.map(function(g,b){return n("li",{key:b},h(g,m))}))}}const nR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),aR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Vb(n){return typeof n=="string"}function $l(n){let a=n.length;for(;a>0&&n[a-1]<=" ";)a--;return n.slice(0,a)}function Wo(n,a){return n.startsWith(a)}function rR(n,a,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(Wo(n,i[s]))return!0;return!1}return i(n,a)}function Il(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 iR(n){return GC.test(n)?"right":IC.test(n)?"center":zC.test(n)?"left":null}function Yb(n,a,i,s){const u=i.inTable;i.inTable=!0;let f=[[]],d="";function h(){if(!d)return;const m=f[f.length-1];m.push.apply(m,a(d,i)),d=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,b)=>{m.trim()==="|"&&(h(),s)?g!==0&&g!==b.length-1&&f.push([]):d+=m}),h(),i.inTable=u,f}function lR(n,a,i){i.inline=!0;const s=n[2]?n[2].replace(HC,"").split("|").map(iR):[],u=n[3]?(function(d,h,m){return d.trim().split(`
|
|
99
|
+
`).map(function(g){return Yb(g,h,m,!0)})})(n[3],a,i):[],f=Yb(n[1],a,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:f,type:"25"}:{children:f,type:"21"}}function Pb(n,a){return n.align[a]==null?{}:{textAlign:n.align[a]}}function Hi(n){return n.inline=1,n}function Dr(n){return Hi(function(a,i){return i.inline?n.exec(a):null})}function ir(n){return Hi(function(a,i){return i.inline||i.simple?n.exec(a):null})}function Ta(n){return function(a,i){return i.inline||i.simple?null:n.exec(a)}}function Vo(n){return Hi(function(a){return n.exec(a)})}const sR=/(javascript|vbscript|data(?!:image)):/i;function oR(n){try{const a=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(sR.test(a))return null}catch{return null}return n}function Pn(n){return n&&n.replace(XC,"$1")}function Jo(n,a,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const f=n(a,i);return i.inline=s,i.simple=u,f}function uR(n,a,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const f=n(a,i);return i.inline=s,i.simple=u,f}function cR(n,a,i){const s=i.inline||!1;i.inline=!1;const u=n(a,i);return i.inline=s,u}const Sd=(n,a,i)=>({children:Jo(a,n[2],i)});function Td(){return{}}function Ad(){return null}function fR(...n){return n.filter(Boolean).join(" ")}function Od(n,a,i){let s=n;const u=a.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function dR(n="",a={}){a.overrides=a.overrides||{},a.namedCodesToUnicode=a.namedCodesToUnicode?Hr({},Bb,a.namedCodesToUnicode):Bb;const i=a.slugify||Il,s=a.sanitizer||oR,u=a.createElement||B.createElement,f=[Ub,jb,Hb,a.enforceAtxHeadings?zb:Ib,Gb,qb,u_,c_],d=[...f,MC,_d,kb,Ed];function h(E,C){for(let S=0;S<E.length;S++)if(E[S].test(C))return!0;return!1}function m(E,C,...S){const H=Od(a.overrides,E+".props",{});return u((function(N,Z){const X=Od(Z,N);return X?typeof X=="function"||typeof X=="object"&&"render"in X?X:Od(Z,N+".component",N):N})(E,a.overrides),Hr({},C,H,{className:fR(C?.className,H.className)||void 0}),...S)}function g(E){E=E.replace(TC,"");let C=!1;a.forceInline?C=!0:a.forceBlock||(C=UC.test(E)===!1);const S=k(x(C?E:$l(E).replace(QC,"")+`
|
|
100
|
+
|
|
101
|
+
`,{inline:C}));for(;Vb(S[S.length-1])&&!S[S.length-1].trim();)S.pop();if(a.wrapper===null)return S;const H=a.wrapper||(C?"span":"div");let N;if(S.length>1||a.forceWrapper)N=S;else{if(S.length===1)return N=S[0],typeof N=="string"?m("span",{key:"outer"},N):N;N=null}return u(H,{key:"outer"},N)}function b(E,C){if(!C||!C.trim())return null;const S=C.match(fC);return S?S.reduce(function(H,N){const Z=N.indexOf("=");if(Z!==-1){const X=(function(re){return re.indexOf("-")!==-1&&re.match(xC)===null&&(re=re.replace(NC,function(pe,ce){return ce.toUpperCase()})),re})(N.slice(0,Z)).trim(),te=(function(re){const pe=re[0];return(pe==='"'||pe==="'")&&re.length>=2&&re[re.length-1]===pe?re.slice(1,-1):re})(N.slice(Z+1).trim()),de=Lb[X]||X;if(de==="ref")return H;const ye=H[de]=(function(re,pe,ce,Xe){return pe==="style"?(function(we){const G=[];let $="",ne=!1,Ee=!1,Te="";if(!we)return G;for(let q=0;q<we.length;q++){const P=we[q];if(P!=='"'&&P!=="'"||ne||(Ee?P===Te&&(Ee=!1,Te=""):(Ee=!0,Te=P)),P==="("&&$.endsWith("url")?ne=!0:P===")"&&ne&&(ne=!1),P!==";"||Ee||ne)$+=P;else{const W=$.trim();if(W){const J=W.indexOf(":");if(J>0){const fe=W.slice(0,J).trim(),_e=W.slice(J+1).trim();G.push([fe,_e])}}$=""}}const O=$.trim();if(O){const q=O.indexOf(":");if(q>0){const P=O.slice(0,q).trim(),W=O.slice(q+1).trim();G.push([P,W])}}return G})(ce).reduce(function(we,[G,$]){return we[G.replace(/(-[a-z])/g,ne=>ne[1].toUpperCase())]=Xe($,re,G),we},{}):cC.indexOf(pe)!==-1?Xe(Pn(ce),re,pe):(ce.match(CC)&&(ce=Pn(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)})(E,X,te,s);typeof ye=="string"&&(_d.test(ye)||Ed.test(ye))&&(H[de]=g(ye.trim()))}else N!=="style"&&(H[Lb[N]||N]=!0);return H},{}):null}const _=[],A={},U={0:{t:[">"],o:Ta(Ub),i:1,u(E,C,S){const[,H,N]=E[0].replace(hC,"").match(mC);return{alert:H,children:C(N,S)}},l(E,C,S){const H={key:S.key};return E.alert&&(H.className="markdown-alert-"+i(E.alert.toLowerCase(),Il),E.children.unshift({attrs:{},children:[{type:"27",text:E.alert}],noInnerParse:!0,type:"11",tag:"header"})),m("blockquote",H,C(E.children,S))}},1:{t:[" "],o:Vo(pC),i:1,u:Td,l:(E,C,S)=>m("br",{key:S.key})},2:{t:["--","__","**","- ","* ","_ "],o:Ta(gC),i:1,u:Td,l:(E,C,S)=>m("hr",{key:S.key})},3:{t:[" "],o:Ta(Hb),i:0,u:E=>({lang:void 0,text:Pn($l(E[0].replace(/^ {4}/gm,"")))}),l:(E,C,S)=>m("pre",{key:S.key},m("code",Hr({},E.attrs,{className:E.lang?"lang-"+E.lang:""}),E.text))},4:{t:["```","~~~"],o:Ta(jb),i:0,u:E=>({attrs:b("code",E[3]||""),lang:E[2]||void 0,text:E[4],type:"3"})},5:{t:["`"],o:ir(yC),i:3,u:E=>({text:Pn(E[2])}),l:(E,C,S)=>m("code",{key:S.key},E.text)},6:{t:["[^"],o:Ta(_C),i:0,u:E=>(_.push({footnote:E[2],identifier:E[1]}),{}),l:Ad},7:{t:["[^"],o:Dr(EC),i:1,u:E=>({target:"#"+i(E[1],Il),text:E[1]}),l:(E,C,S)=>m("a",{key:S.key,href:s(E.target,"a","href")},m("sup",{key:S.key},E.text))},8:{t:["[ ]","[x]"],o:Dr(AC),i:1,u:E=>({completed:E[1].toLowerCase()==="x"}),l:(E,C,S)=>m("input",{checked:E.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Ta(a.enforceAtxHeadings?zb:Ib),i:1,u:(E,C,S)=>({children:Jo(C,E[2],S),id:i(E[2],Il),level:E[1].length}),l:(E,C,S)=>m("h"+E.level,{id:E.id,key:S.key},C(E.children,S))},10:{t:E=>{const C=E.indexOf(`
|
|
102
|
+
`);return C>0&&C<E.length-1&&(E[C+1]==="="||E[C+1]==="-")},o:Ta(Gb),i:0,u:(E,C,S)=>({children:Jo(C,E[1],S),level:E[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Vo(_d),i:1,u(E,C,S){const[,H]=E[3].match(KC),N=RegExp("^"+H,"gm"),Z=E[3].replace(N,""),X=h(d,Z)?cR:Jo,te=E[1].toLowerCase(),de=uC.indexOf(te)!==-1,ye=(de?te:E[1]).trim(),re={attrs:b(ye,E[2]),noInnerParse:de,tag:ye};if(S.inAnchor=S.inAnchor||te==="a",de)re.text=E[3];else{const pe=S.inHTML;S.inHTML=!0,re.children=X(C,Z,S),S.inHTML=pe}return S.inAnchor=!1,re},l:(E,C,S)=>m(E.tag,Hr({key:S.key},E.attrs),E.text||(E.children?C(E.children,S):""))},13:{t:["<"],o:Vo(Ed),i:1,u(E){const C=E[1].trim();return{attrs:b(C,E[2]||""),tag:C}},l:(E,C,S)=>m(E.tag,Hr({},E.attrs,{key:S.key}))},12:{t:["<!--"],o:Vo(kb),i:1,u:()=>({}),l:Ad},14:{t:["!["],o:ir(aR),i:1,u:E=>({alt:Pn(E[1]),target:Pn(E[2]),title:Pn(E[3])}),l:(E,C,S)=>m("img",{key:S.key,alt:E.alt||void 0,title:E.title||void 0,src:s(E.target,"img","src")})},15:{t:["["],o:Dr(nR),i:3,u:(E,C,S)=>({children:uR(C,E[1],S),target:Pn(E[2]),title:Pn(E[3])}),l:(E,C,S)=>m("a",{key:S.key,href:s(E.target,"a","href"),title:E.title},C(E.children,S))},16:{t:["<"],o:Dr(wC),i:0,u(E){let C=E[1],S=!1;return C.indexOf("@")!==-1&&C.indexOf("//")===-1&&(S=!0,C=C.replace("mailto:","")),{children:[{text:C,type:"27"}],target:S?"mailto:"+C:C,type:"15"}}},17:{t:(E,C)=>!C.inAnchor&&!a.disableAutoLink&&(Wo(E,"http://")||Wo(E,"https://")),o:Dr(RC),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],title:void 0,type:"15"})},20:Fb(m,1),33:Fb(m,2),19:{t:[`
|
|
103
|
+
`],o:Ta(bC),i:3,u:Td,l:()=>`
|
|
104
|
+
`},21:{o:Hi(function(E,C){if(C.inline||C.simple||C.inHTML&&E.indexOf(`
|
|
105
|
+
|
|
106
|
+
`)===-1&&C.prevCapture.indexOf(`
|
|
107
|
+
|
|
108
|
+
`)===-1)return null;let S="",H=0;for(;;){const Z=E.indexOf(`
|
|
109
|
+
`,H),X=E.slice(H,Z===-1?void 0:Z+1);if(h(f,X)||(S+=X,Z===-1||!X.trim()))break;H=Z+1}const N=$l(S);return N===""?null:[S,,N]}),i:3,u:Sd,l:(E,C,S)=>m("p",{key:S.key},C(E.children,S))},22:{t:["["],o:Dr(DC),i:0,u:E=>(A[E[1]]={target:E[2],title:E[4]},{}),l:Ad},23:{t:["!["],o:ir(LC),i:0,u:E=>({alt:E[1]?Pn(E[1]):void 0,ref:E[2]}),l:(E,C,S)=>A[E.ref]?m("img",{key:S.key,alt:E.alt,src:s(A[E.ref].target,"img","src"),title:A[E.ref].title}):null},24:{t:E=>E[0]==="["&&E.indexOf("](")===-1,o:Dr(BC),i:0,u:(E,C,S)=>({children:C(E[1],S),fallbackChildren:E[0],ref:E[2]}),l:(E,C,S)=>A[E.ref]?m("a",{key:S.key,href:s(A[E.ref].target,"a","href"),title:A[E.ref].title},C(E.children,S)):m("span",{key:S.key},E.fallbackChildren)},25:{t:["|"],o:Ta(qb),i:1,u:lR,l(E,C,S){const H=E;return m("table",{key:S.key},m("thead",null,m("tr",null,H.header.map(function(N,Z){return m("th",{key:Z,style:Pb(H,Z)},C(N,S))}))),m("tbody",null,H.cells.map(function(N,Z){return m("tr",{key:Z},N.map(function(X,te){return m("td",{key:te,style:Pb(H,te)},C(X,S))}))})))}},27:{o:Hi(function(E,C){let S;return Wo(E,":")&&(S=YC.exec(E)),S||ZC.exec(E)}),i:4,u(E){const C=E[0];return{text:C.indexOf("&")===-1?C:C.replace(OC,(S,H)=>a.namedCodesToUnicode[H]||S)}},l:E=>E.text},28:{t:["**","__"],o:ir(kC),i:2,u:(E,C,S)=>({children:C(E[2],S)}),l:(E,C,S)=>m("strong",{key:S.key},C(E.children,S))},29:{t:E=>{const C=E[0];return(C==="*"||C==="_")&&E[1]!==C},o:ir(qC),i:3,u:(E,C,S)=>({children:C(E[2],S)}),l:(E,C,S)=>m("em",{key:S.key},C(E.children,S))},30:{t:["\\"],o:ir(PC),i:1,u:E=>({text:E[1],type:"27"})},31:{t:["=="],o:ir(FC),i:3,u:Sd,l:(E,C,S)=>m("mark",{key:S.key},C(E.children,S))},32:{t:["~~"],o:ir(VC),i:3,u:Sd,l:(E,C,S)=>m("del",{key:S.key},C(E.children,S))}};a.disableParsingRawHTML===!0&&(delete U[11],delete U[13]);const x=(function(E){var C=Object.keys(E);function S(H,N){var Z=[];if(N.prevCapture=N.prevCapture||"",H.trim())for(;H;)for(var X=0;X<C.length;){var te=C[X],de=E[te];if(!de.t||rR(H,N,de.t)){var ye=de.o(H,N);if(ye&&ye[0]){H=H.substring(ye[0].length);var re=de.u(ye,S,N);N.prevCapture+=ye[0],re.type||(re.type=te),Z.push(re);break}X++}else X++}return N.prevCapture="",Z}return C.sort(function(H,N){return E[H].i-E[N].i||(H<N?-1:1)}),function(H,N){return S((function(Z){return Z.replace(vC,`
|
|
110
|
+
`).replace(SC,"").replace(jC," ")})(H),N)}})(U),k=(function(E,C){return function S(H,N={}){if(Array.isArray(H)){const Z=N.key,X=[];let te=!1;for(let de=0;de<H.length;de++){N.key=de;const ye=S(H[de],N),re=Vb(ye);re&&te?X[X.length-1]+=ye:ye!==null&&X.push(ye),te=re}return N.key=Z,X}return(function(Z,X,te){const de=E[Z.type].l;return C?C(()=>de(Z,X,te),Z,X,te):de(Z,X,te)})(H,S,N)}})(U,a.renderRule),I=g(n);return _.length?m("div",null,I,m("footer",{key:"footer"},_.map(function(E){return m("div",{id:i(E.identifier,Il),key:E.identifier},E.identifier,k(x(E.footnote,{inline:!0})))}))):I}const xa=n=>{let{children:a="",options:i}=n,s=(function(u,f){if(u==null)return{};var d,h,m={},g=Object.keys(u);for(h=0;h<g.length;h++)f.indexOf(d=g[h])>=0||(m[d]=u[d]);return m})(n,sC);return B.cloneElement(dR(a,i),s)},hR="_generalConditionsContainer_55hjg_1",mR="_generalConditions_55hjg_1",pR="_generalConditionsHeader_55hjg_15",gR="_generalConditionsBody_55hjg_26",yR="_generalConditionsAccept_55hjg_35",zl={generalConditionsContainer:hR,generalConditions:mR,generalConditionsHeader:pR,generalConditionsBody:gR,generalConditionsAccept:yR},bR=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})}),vR=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})}),_R="general-conditions.header",ER="general-conditions.body",Xb="general-conditions.accept-conditions-note",SR=()=>{const n=at(),[a,i]=B.useState(!1),s=()=>i(!a),u=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},f=n(_R),d=n(Xb);return y.jsxs("div",{className:K(zl.generalConditionsContainer,"chat__generalConditions"),children:[!!f?.length&&y.jsxs("div",{className:zl.generalConditions,children:[y.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:K(zl.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":a?"true":"false","aria-pressed":a?"true":"false",children:[y.jsx(xa,{children:f}),a?y.jsx(vR,{}):y.jsx(bR,{})]}),y.jsx("div",{className:K(zl.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:a&&y.jsx(xa,{children:n(ER)||""})})]}),!!d?.length&&y.jsx("div",{className:K(zl.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(xa,{children:n(Xb)||""})})]})},TR="_messageContainer_1rxi5_1",AR="_message_1rxi5_1",OR="_messageBot_1rxi5_14",xR="_messageBotLast_1rxi5_45",CR="_avatar_1rxi5_45",RR="_messageBotFirst_1rxi5_54",wR="_messageBotAnimated_1rxi5_67",NR="_messageGuest_1rxi5_78",MR="_messageGuestFirst_1rxi5_84",DR="_messageGuestLast_1rxi5_90",LR="_botAvatar_1rxi5_104",BR="_agentAvatar_1rxi5_108",UR="_bubble_1rxi5_112",jR="_bubbleContent_1rxi5_118",HR="_bubbleLeft_1rxi5_132",IR="_leftText_1rxi5_143",zR="_bubbleRight_1rxi5_150",GR="_rightText_1rxi5_160",kR="_sourceInfoReference_1rxi5_192",qR="_sourceInfoReferenceActive_1rxi5_204",ge={messageContainer:TR,message:AR,messageBot:OR,messageBotLast:xR,avatar:CR,messageBotFirst:RR,messageBotAnimated:wR,messageGuest:NR,messageGuestFirst:MR,messageGuestLast:DR,botAvatar:LR,agentAvatar:BR,bubble:UR,bubbleContent:jR,bubbleLeft:HR,leftText:IR,bubbleRight:zR,rightText:GR,sourceInfoReference:kR,sourceInfoReferenceActive:qR},rm=(n,a)=>{B.useEffect(()=>{const i=s=>{n.current&&!n.current.contains(s.target)&&a()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,a])};var xd,Zb;function im(){if(Zb)return xd;Zb=1;function n(a){var i=typeof a;return a!=null&&(i=="object"||i=="function")}return xd=n,xd}var Cd,Qb;function FR(){if(Qb)return Cd;Qb=1;var n=typeof Oo=="object"&&Oo&&Oo.Object===Object&&Oo;return Cd=n,Cd}var Rd,Kb;function f_(){if(Kb)return Rd;Kb=1;var n=FR(),a=typeof self=="object"&&self&&self.Object===Object&&self,i=n||a||Function("return this")();return Rd=i,Rd}var wd,$b;function VR(){if($b)return wd;$b=1;var n=f_(),a=function(){return n.Date.now()};return wd=a,wd}var Nd,Wb;function YR(){if(Wb)return Nd;Wb=1;var n=/\s/;function a(i){for(var s=i.length;s--&&n.test(i.charAt(s)););return s}return Nd=a,Nd}var Md,Jb;function PR(){if(Jb)return Md;Jb=1;var n=YR(),a=/^\s+/;function i(s){return s&&s.slice(0,n(s)+1).replace(a,"")}return Md=i,Md}var Dd,ev;function d_(){if(ev)return Dd;ev=1;var n=f_(),a=n.Symbol;return Dd=a,Dd}var Ld,tv;function XR(){if(tv)return Ld;tv=1;var n=d_(),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,u=n?n.toStringTag:void 0;function f(d){var h=i.call(d,u),m=d[u];try{d[u]=void 0;var g=!0}catch{}var b=s.call(d);return g&&(h?d[u]=m:delete d[u]),b}return Ld=f,Ld}var Bd,nv;function ZR(){if(nv)return Bd;nv=1;var n=Object.prototype,a=n.toString;function i(s){return a.call(s)}return Bd=i,Bd}var Ud,av;function QR(){if(av)return Ud;av=1;var n=d_(),a=XR(),i=ZR(),s="[object Null]",u="[object Undefined]",f=n?n.toStringTag:void 0;function d(h){return h==null?h===void 0?u:s:f&&f in Object(h)?a(h):i(h)}return Ud=d,Ud}var jd,rv;function KR(){if(rv)return jd;rv=1;function n(a){return a!=null&&typeof a=="object"}return jd=n,jd}var Hd,iv;function $R(){if(iv)return Hd;iv=1;var n=QR(),a=KR(),i="[object Symbol]";function s(u){return typeof u=="symbol"||a(u)&&n(u)==i}return Hd=s,Hd}var Id,lv;function WR(){if(lv)return Id;lv=1;var n=PR(),a=im(),i=$R(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return s;if(a(g)){var b=typeof g.valueOf=="function"?g.valueOf():g;g=a(b)?b+"":b}if(typeof g!="string")return g===0?g:+g;g=n(g);var _=f.test(g);return _||d.test(g)?h(g.slice(2),_?2:8):u.test(g)?s:+g}return Id=m,Id}var zd,sv;function h_(){if(sv)return zd;sv=1;var n=im(),a=VR(),i=WR(),s="Expected a function",u=Math.max,f=Math.min;function d(h,m,g){var b,_,A,U,x,k,I=0,E=!1,C=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,n(g)&&(E=!!g.leading,C="maxWait"in g,A=C?u(i(g.maxWait)||0,m):A,S="trailing"in g?!!g.trailing:S);function H(ce){var Xe=b,we=_;return b=_=void 0,I=ce,U=h.apply(we,Xe),U}function N(ce){return I=ce,x=setTimeout(te,m),E?H(ce):U}function Z(ce){var Xe=ce-k,we=ce-I,G=m-Xe;return C?f(G,A-we):G}function X(ce){var Xe=ce-k,we=ce-I;return k===void 0||Xe>=m||Xe<0||C&&we>=A}function te(){var ce=a();if(X(ce))return de(ce);x=setTimeout(te,Z(ce))}function de(ce){return x=void 0,S&&b?H(ce):(b=_=void 0,U)}function ye(){x!==void 0&&clearTimeout(x),I=0,b=k=_=x=void 0}function re(){return x===void 0?U:de(a())}function pe(){var ce=a(),Xe=X(ce);if(b=arguments,_=this,k=ce,Xe){if(x===void 0)return N(k);if(C)return clearTimeout(x),x=setTimeout(te,m),H(k)}return x===void 0&&(x=setTimeout(te,m)),U}return pe.cancel=ye,pe.flush=re,pe}return zd=d,zd}var JR=h_();const e6=gu(JR),t6="_container_131ib_1",n6="_categoryContainer_131ib_13",a6="_categoryButton_131ib_20",r6="_active_131ib_35",i6="_commentTextarea_131ib_44",Gl={container:t6,categoryContainer:n6,categoryButton:a6,active:r6,commentTextarea:i6},l6=(n,a,i)=>{B.useEffect(()=>{if(n){const s=()=>{const f=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=a.current?Array.from(a.current.querySelectorAll(f)):[],h=i.current?Array.from(i.current.querySelectorAll(f)):[];return[...d,...h]},u=f=>{if(f.key==="Tab"){const d=s();if(d.length>0){const h=d[0],m=d[d.length-1],g=document.activeElement;!f.shiftKey&&g===m?(f.preventDefault(),h.focus()):f.shiftKey&&g===h&&(f.preventDefault(),m.focus())}}};return document.addEventListener("keydown",u,!0),()=>{document.removeEventListener("keydown",u,!0)}}},[n,a,i])},s6=({open:n,actionsRef:a,reaction:i,onReaction:s})=>{const u=at(),f=B.useRef(null),d=e6(g=>{s({...i,comment:g})},300);B.useEffect(()=>()=>d.flush(),[d]),l6(n,a,f);const h=g=>{s({...i,category:i.category===g?void 0:g})},m=g=>d(g.target.value);return n?y.jsxs("div",{ref:f,className:Gl.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:u("bot-bubble.reaction.say-more")}),y.jsx("div",{className:Gl.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(g=>y.jsx("button",{className:K(Gl.categoryButton,i?.category===g&&Gl.active),onClick:()=>h(g),"aria-pressed":i?.category===g,"aria-label":u(`bot-bubble.reaction.category.${g}`),tabIndex:0,role:"radio",children:u(`bot-bubble.reaction.category.${g}`)},g))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:u("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:m,className:Gl.commentTextarea,rows:3,"aria-label":u("bot-bubble.reaction.comment")})]}):null},o6="_botMessageActionContainer_18fjb_1",u6="_alwaysVisible_18fjb_15",c6="_active_18fjb_19",f6="_botMessageActionInnerContainer_18fjb_27",d6="_header_18fjb_52",h6="_botMessageActions_18fjb_57",m6="_reported_18fjb_68",p6="_action_18fjb_72",g6="_wave_18fjb_86",y6="_anyReport_18fjb_156",b6="_closeButton_18fjb_172",ct={botMessageActionContainer:o6,alwaysVisible:u6,active:c6,botMessageActionInnerContainer:f6,header:d6,botMessageActions:h6,reported:m6,action:p6,wave:g6,anyReport:y6,closeButton:b6},v6=({isSubmitting:n,onClick:a})=>{const i=at();return y.jsx("button",{className:K(ct.action,ct.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:a,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n?y.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"}):y.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"})})})},_6=({alwaysVisible:n,senderType:a,reaction:i,botMessageRef:s,message:u,onReaction:f})=>{const d=at(),[h,m]=B.useState(!1),[g,b]=B.useState(!1),[_,A]=B.useState(!1),U=B.useRef(null),x=B.useRef(null);rm(U,()=>{A(!1)});const k=N=>{N.key==="Escape"&&A(!1)};B.useEffect(()=>(document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}),[]),B.useEffect(()=>{_&&U.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[_]);const I=N=>{x.current&&clearTimeout(x.current),b(!0),f(N),x.current=setTimeout(()=>{b(!1)},1e3)},E=B.useCallback(async()=>{if(s.current)try{m(!0);const N=s.current.innerHTML,Z=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([N],{type:"text/html"}),"text/plain":new Blob([Z],{type:"text/plain"})})]),await new Promise(X=>setTimeout(X,1500))}finally{m(!1)}},[s]),C=()=>{A(!1),f(i?.type==="GOOD"?null:{type:"GOOD"})},S=()=>{f({...u.reaction,type:"BAD"}),A(!_)},H=N=>Z=>{(Z.key==="Enter"||Z.key===" ")&&N()};return y.jsx("div",{ref:U,className:K(ct.botMessageActionContainer,n&&ct.alwaysVisible,_&&ct.active),children:y.jsxs("div",{className:K(ct.botMessageActionInnerContainer,n&&ct.alwaysVisible,_&&ct.active,i&&ct.reported),role:"group",children:[y.jsxs("div",{className:ct.header,children:[y.jsxs("div",{className:K(ct.botMessageActions,i&&ct.reported),children:[a===hu.BOT&&y.jsx("button",{className:K(ct.action,ct.wave,i?.type&&ct.anyReport,i?.type==="GOOD"&&ct.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:C,onKeyDown:H(C),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?y.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"}):y.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"})})}),a===hu.BOT&&y.jsx("button",{className:K(ct.action,ct.wave,i?.type&&ct.anyReport,i?.type==="BAD"&&ct.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":d("bot-bubble.reaction.bad"),onPointerDown:S,onKeyDown:H(S),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?y.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"}):y.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"})})}),y.jsx("button",{className:K(ct.action,ct.wave,"tooltip--top-right"),style:{visibility:_?"hidden":"visible"},tabIndex:0,"aria-label":d("bot-bubble.copy"),"data-title":d("bot-bubble.copy"),onClick:E,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?y.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"}):y.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"})})})]}),_&&y.jsx(v6,{isSubmitting:g,onClick:()=>A(!1)})]}),u.reaction&&y.jsx(s6,{open:_,actionsRef:U,reaction:u.reaction,onReaction:I})]})})},m_=B.forwardRef(({message:n,isAnimated:a,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:f,onReaction:d},h)=>{const m=at(),g=B.useRef(null),b=n.sender.type===Se.UserType.BOT;return y.jsxs("li",{ref:h,className:K(ge.message,ge.messageBot,i&&ge.lastMessage,s&&ge.messageBotFirst,u&&ge.messageBotLast,"chat__bubbleContainer",a&&ge.messageBotAnimated,a&&"chat__bubbleContainer--animated",b?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:K(ge.avatar,b?ge.botAvatar:ge.agentAvatar,"chat__avatar",b?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:b?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:ge.messageContainer,children:[y.jsx("div",{ref:g,className:K(ge.bubble,ge.bubbleLeft,"chat__bubble",b?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(b?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:K(ge.leftText),children:f})}),d&&y.jsx(_6,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,message:n,botMessageRef:g,onReaction:d})]})]})}),E6="_sourceList_1n31h_1",S6="_source_1n31h_1",T6="_label_1n31h_37",Gd={sourceList:E6,source:S6,label:T6},p_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:y.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"})}),g_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:y.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"})}),y_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:y.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"})}),b_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:y.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"})}),A6=({type:n,...a})=>{switch(n){case"WEBSITE":return y.jsx(b_,{...a});case"PDF":return y.jsx(y_,{...a});case"DOCX":return y.jsx(p_,{...a});default:return y.jsx(g_,{...a})}},lm=({sources:n,onLinkClick:a})=>{const i=at(),s=f=>()=>{a(f.url)},u=f=>d=>{(d.key==="Enter"||d.key===" ")&&a(f.url)};return n.length?y.jsx("ul",{className:Gd.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(f=>y.jsx("li",{className:Gd.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:s(f),onKeyDown:u(f),children:[y.jsx(A6,{type:f.type,"aria-hidden":"true"}),y.jsx("div",{className:Gd.label,children:f.label})]})},f.url))}):null},O6="_button_3ui4g_1",x6="_buttonDefault_3ui4g_13",C6="_buttonPrimary_3ui4g_28",es={button:O6,buttonDefault:x6,buttonPrimary:C6},wu=({className:n,children:a,...i})=>y.jsx("button",{className:K(es.button,n),type:"button",role:"button",...i,children:a}),R6="_title_137pi_1",w6="_buttons_137pi_6",N6="_button_137pi_6",M6="_imageContainer_137pi_29",D6="_image_137pi_29",L6="_video_container_137pi_44",B6="_video_137pi_44",U6="_only_137pi_58",sn={title:R6,buttons:w6,button:N6,imageContainer:M6,image:D6,video_container:L6,video:B6,only:U6},j6=({buttons:n,onButtonClick:a})=>y.jsx("div",{className:K(sn.buttons,"chat__bubbleButtons"),children:n.map((i,s)=>y.jsx(wu,{className:K(sn.button,"chat__bubbleButton"),onClick:()=>a(i),children:i.title},s))}),ov="newtab#",v_=({markdown:n,markdownOptions:a={},onLinkClick:i})=>{const s=f=>d=>(d.preventDefault(),f&&i(f),!1),u=({title:f,href:d,children:h})=>d.indexOf(ov)===0?y.jsx("a",{href:d.slice(ov.length),title:f,target:"_blank",rel:"noopener noreferrer",children:h}):y.jsx("a",{onClick:s(d),title:f,href:d,children:h});return y.jsx(xa,{options:{...a,overrides:{a:u}},children:n})},H6=({text:n,onLinkClick:a})=>n?y.jsx("div",{children:y.jsx(v_,{markdown:n,onLinkClick:a})}):null,I6=({title:n})=>n?y.jsx("h1",{className:sn.title,children:n}):null,z6=({title:n,text:a,buttons:i,onButtonClick:s,onLinkClick:u})=>n?.length||a?.length||i?.length?y.jsxs("div",{className:K(ge.bubbleContent),children:[y.jsx(I6,{title:n}),y.jsx(H6,{text:a,onLinkClick:u}),y.jsx(j6,{buttons:i,onButtonClick:s})]}):null,G6=({alt:n,imageUrl:a,itemUrl:i,hasBody:s})=>a?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:sn.video_container,children:y.jsx("iframe",{className:K(sn.video,{[sn.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):y.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:y.jsx("div",{className:sn.imageContainer,children:y.jsx("img",{className:K(sn.image,{[sn.only]:!s}),src:a,alt:n})})}):y.jsx("div",{className:sn.imageContainer,children:y.jsx("img",{className:K(sn.image,{[sn.only]:!s}),src:a,alt:n})}):null,k6=({title:n,text:a,imageUrl:i,itemUrl:s,buttons:u,sources:f,onButtonClick:d,onLinkClick:h})=>{const m=!!n?.length||!!a?.length||!!u?.length;return y.jsxs("div",{className:K(sn.detailMessage),children:[y.jsx(G6,{hasBody:m,imageUrl:i,itemUrl:s,alt:n||""}),m&&y.jsx(z6,{title:n,text:a,buttons:u,onLinkClick:h,onButtonClick:d}),y.jsx(lm,{sources:f,onLinkClick:h})]})},q6=B.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:a,children:i},s)=>{const u=at();return y.jsx("li",{ref:s,className:K(ge.message,ge.messageGuest,n&&ge.messageGuestFirst,a&&ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:K(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:K(ge.rightText),children:i})})})}),F6="_markdown_nw7vg_1",__={markdown:F6},sm=()=>B.useMemo(()=>Yh(),[]),Yo="source-info-reference",V6=({actionId:n,markdown:a,sources:i,onLinkClick:s})=>{const u=sm(),f=Na(),d=Y6(),h=ht(b=>{const _=b.chat.sourceInfos;if(_?.type==="loaded"||_?.type==="loading")return _.chunkId}),m=b=>_=>{const A=_.key;(A==="ArrowDown"||A==="ArrowRight"||A==="Enter"||A===" "||A==="Space")&&(_.stopPropagation(),f(Nb(u,n,b)))},g=b=>()=>{f(Nb(u,n,b))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Yo}`).forEach(b=>{const _=b.previousSibling;_&&_.nodeType===Node.TEXT_NODE&&_.textContent?.endsWith(" ")&&_.textContent?.trim().length&&b.classList.add(`${Yo}--before-space`);const A=b.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&b.classList.add(`${Yo}--after-space`)})},[a]),y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx("div",{className:__.markdown,children:y.jsx(v_,{markdown:a,onLinkClick:s,markdownOptions:{renderRule(b,_,A,U){if(_.type===oC.footnoteReference){const x=_.text===h;return y.jsx("span",{className:K(ge.sourceInfoReference,x&&ge.sourceInfoReferenceActive,Yo),children:y.jsx("a",{type:"button",tabIndex:0,onClick:g(_.text),onKeyDown:m(_.text),children:d(_.text)})},U.key)}return b()}}})}),y.jsx(lm,{sources:i,onLinkClick:s})]})},Y6=()=>{const n=[];return i=>{const s=n.indexOf(i);return s>-1?s+1:(n.push(i),n.length)}},P6="_text_gp0s0_1",X6="_command_gp0s0_5",uv={text:P6,command:X6},Z6=({text:n,commands:a=[]})=>{const i=a.find(u=>n.startsWith(`/${u}`)),s=i?n.slice(i.length+1):n;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:uv.command,children:["/",i]}),s.split(`
|
|
111
|
+
`).map((u,f)=>y.jsxs("span",{className:uv.text,children:[u,y.jsx("br",{})]},f))]})},Q6=({text:n,commands:a,sources:i,onLinkClick:s})=>y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx(Z6,{text:n,commands:a}),y.jsx(lm,{sources:i,onLinkClick:s})]}),K6=B.forwardRef(({message:n,commands:a,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:f,onButtonClick:d,onLinkClick:h},m)=>{const g=$6(n._id,n,a,d,h),b=_=>{f(n._id,_)};switch(n.sender.type){case Se.UserType.GUEST:return y.jsx(q6,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:g});default:return y.jsx(m_,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:b,children:g})}}),$6=(n,a,i,s,u)=>{switch(a.type){case Se.MessageTypeEnum.TEXT:{const f=a;return y.jsx(Q6,{text:f.text,commands:i,sources:a.sources||[],onLinkClick:u})}case Se.MessageTypeEnum.DETAIL:{const f=a;return y.jsx(k6,{title:f.title,text:f.text,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:a.sources||[],onButtonClick:s,onLinkClick:u})}case Se.MessageTypeEnum.MARKDOWN:{const f=a;return y.jsx(V6,{actionId:n,markdown:f.markdown,sources:f.sources||[],onLinkClick:u})}}},W6=(n,a)=>n.message._id===a.message._id&&n.message.reaction===a.message.reaction&&n.isLastMessage===a.isLastMessage&&n.isFirstMessageBySender===a.isFirstMessageBySender&&n.isLastMessageBySender===a.isLastMessageBySender,J6=zv.memo(K6,W6),ew="_ticontainer_xg0dn_1",tw="_tiblock_xg0dn_5",nw="_tidot_xg0dn_12",kl={ticontainer:ew,tiblock:tw,tidot:nw},aw=({isTyping:n=!1})=>y.jsx("div",{className:kl.ticontainer,children:y.jsx("div",{className:kl.tiblock,children:n?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:K(kl.tidot,"chat__typingIndicator")}),y.jsx("div",{className:K(kl.tidot,"chat__typingIndicator")}),y.jsx("div",{className:K(kl.tidot,"chat__typingIndicator")})]}):null})}),rw=Object.assign({_id:"typing-indicator"},new Se.TextMessage("",new Se.BotUser)),iw=({messages:n,isBotTyping:a,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:f})=>{const d=B.useRef(0),h=B.useRef(!0),m=B.useRef(null),g=B.useRef(null),b=B.useRef(null),_=ht(x=>x.settings.enableGeneralConditions);B.useLayoutEffect(()=>{if(n.length&&m.current&&(d.current<n.length||a)){if(g.current){const x=g.current.offsetTop;m.current.scrollTop=x}else if(b.current){const x=b.current.offsetTop;m.current.scrollTop=x}h.current&&(h.current=!1),d.current=n.length}},[n,h,a]);let A;const U=n.length;return y.jsxs("div",{ref:m,className:K(Db.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[_&&y.jsx(SR,{}),y.jsxs("ul",{className:Db.messages,children:[n.map((x,k)=>{const I=lw(x,A),E=sw(x,k,n,a);A=x.sender.type;const C=k+1===U,S=x._id||`added-${k}`;return y.jsx(J6,{ref:C?b:null,message:x,commands:i,isLastMessage:C,isFirstMessageBySender:I,isLastMessageBySender:E,onButtonClick:u,onLinkClick:f,onReaction:s},C&&!a?"last":S)}),a&&y.jsx(m_,{ref:g,message:rw,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:A!==Se.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(aw,{isTyping:!0})},"last")]})]})},lw=(n,a)=>!a||a!==n.sender.type,sw=(n,a,i,s)=>{const u=n.sender.type,f=i.length;return a+1===f?!(u===Se.UserType.BOT&&s):u!==i.at(a+1)?.sender.type},ow="_bottomSheet_jp8dl_1",uw="_bottomSheetOpen_jp8dl_15",cw="_bottomSheetClose_jp8dl_20",Ca={bottomSheet:ow,bottomSheetOpen:uw,bottomSheetClose:cw},fw="_container_xc2nx_1",cv={container:fw},dw=({contentUrl:n})=>{const a=ht(f=>f.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(f=>f||!!n)},[n]);const u=B.useMemo(()=>{if(n&&a){const f=new URL(n,document.baseURI);return f.searchParams.set("sessionId",a),f.toString()}else return},[n,a]);return y.jsx("div",{className:K(cv.container,Ca.bottomSheet,{[Ca.bottomSheetOpen]:!!n,[Ca.bottomSheetClose]:i&&!n}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:cv.iframe})})},hw="_container_6tt4m_1",mw={container:hw},pw=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),gw=()=>{const a=at()("powered-by");return a&&a.length?y.jsx("div",{className:K(mw.container,"chat__poweredBy"),children:y.jsx(xa,{options:{overrides:{a:pw}},children:a})}):null},E_=({className:n,children:a,...i})=>y.jsx(wu,{className:K(es.buttonDefault,n),type:"button",...i,children:a}),mu=({className:n,children:a,...i})=>y.jsx(wu,{className:K(es.buttonPrimary,n),...i,children:a}),yw="_container_h23mk_1",bw="_formContainer_h23mk_17",vw="_emailInput_h23mk_22",_w="_description_h23mk_52",Ew="_actions_h23mk_57",Sw="_validationError_h23mk_67",Tw="_submitted_h23mk_74",Lr={container:yw,formContainer:bw,emailInput:vw,description:_w,actions:Ew,validationError:Sw,submitted:Tw},Aw=({visible:n,onEmailExport:a,onClose:i})=>{const s=at(),[u,f]=B.useState(void 0),[d,h]=B.useState(!1),[m,g]=B.useState(void 0),b=B.useRef(null);B.useEffect(()=>{n?(b.current?.focus(),h(!1),f(n)):u===!0&&f(!1)},[n,u]);const _=U=>{U.preventDefault(),m&&m.length>0&&(a(m),h(!0),setTimeout(i,3*1e3))},A=U=>{const x=U.target.value.trim(),k=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(x);g(k?x:"")};return y.jsxs("div",{className:K(Lr.container,Ca.bottomSheet,{[Ca.bottomSheetOpen]:u===!0,[Ca.bottomSheetClose]:u===!1}),children:[y.jsx("h2",{children:s("export-transcript.email.title")}),y.jsx(xa,{className:Lr.description,children:s("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:_,className:Lr.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:b,type:"email",placeholder:s("export-transcript.email.placeholder"),className:Lr.emailInput,onChange:A}),m?.length===0?y.jsx("div",{className:Lr.validationError,children:s("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:Lr.actions,children:[y.jsx(E_,{onClick:i,children:s("export-transcript.email.cancel")}),y.jsx(mu,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:Lr.submitted,children:s("export-transcript.email.success")})]})},Ow="_inputContainer_fi5ao_1",xw={inputContainer:Ow},Cw="_blockUserInput_pot9c_1",Rw={blockUserInput:Cw},ww=({visible:n})=>{const a=at();return n?y.jsx("div",{className:K(Rw.blockUserInput,"chat__blockUserInput"),children:a("block-user-input.title")}):null},Nw="_commandsDropdown_5ytuv_1",Mw="_commands_5ytuv_1",Dw="_command_5ytuv_1",Lw="_commandActive_5ytuv_46",Bw="_commandsSelections_5ytuv_55",Ql={commandsDropdown:Nw,commands:Mw,command:Dw,commandActive:Lw,commandsSelections:Bw},Uw=(n,a,i,s,u)=>{B.useEffect(()=>{const f=d=>{if(n.length)switch(d.key){case"Enter":i(n[a]);break;case"ArrowUp":s(h=>h>0?h-1:n.length-1);break;case"ArrowDown":s(h=>h<n.length-1?h+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,a,i,s,u])},jw=({text:n,commands:a,onSelectCommand:i,onVisibilityChange:s})=>{const u=B.useRef(null),f=at(),[d,h]=B.useState([]),[m,g]=B.useState(fv(a)),[b,_]=B.useState(0),A=U=>i(`/${U}`);return rm(u,()=>h([])),Uw(d,b,A,_,h),B.useEffect(()=>{g(fv(a))},[a]),B.useEffect(()=>{const U=n.length||0;U===0||U>m||!n.startsWith("/")?h([]):h(a.filter(Hw(n))),_(0)},[a,n,m]),B.useEffect(()=>{s(!!d.length)},[d,s]),d.length?y.jsx("div",{ref:u,className:Ql.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:Ql.commands,role:"listbox",children:d.map((U,x)=>y.jsxs("li",{className:K([Ql.command,b===x&&Ql.commandActive]),role:"option",onClick:()=>A(U),onMouseOver:()=>_(x),children:[y.jsxs("h1",{children:["/",U]}),y.jsx("p",{children:f(`commands.${U}`)})]},U))})}):null},fv=n=>Math.max(...n.map(a=>a.length+1)),Hw=n=>a=>{const i=`/${a}`;return i.startsWith(n)&&i.length>=n.length},dv=3,Iw=({commands:n,onSelectCommand:a})=>{const i=at(),[s,u]=B.useState(!1),f=g=>()=>{a(`/${g}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?n:n.slice(0,dv);return y.jsxs("div",{className:Ql.commandsSelections,children:[m.map(g=>y.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?y.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-more.action")},"show-more"):m.length>dv?y.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},zw="_callToActionContainer_d8izj_1",Gw="_callToActionTitle_d8izj_23",kw="_rateOverlay_d8izj_30",qw="_body_d8izj_52",Fw="_footer_d8izj_60",Vw="_actions_d8izj_75",Yw="_bubbles_d8izj_89",Pw="_stars_d8izj_191",Xw="_starsSmall_d8izj_205",Zw="_starsLarge_d8izj_211",Qw="_star_d8izj_191",Kw="_starReadonly_d8izj_225",$w="_starIcon_d8izj_235",Ww="_starsDescriptionContainer_d8izj_253",Jw="_starsDescription_d8izj_253",Gt={callToActionContainer:zw,callToActionTitle:Gw,rateOverlay:kw,body:qw,footer:Fw,actions:Vw,bubbles:Yw,stars:Pw,starsSmall:Xw,starsLarge:Zw,star:Qw,starReadonly:Kw,starIcon:$w,starsDescriptionContainer:Ww,starsDescription:Jw},e3=({value:n,index:a,count:i,readonly:s,onHover:u,onClick:f})=>{const d=h=>{f&&h.key==="Enter"&&f()};return y.jsx("li",{className:K(Gt.star,{[Gt.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":n>a?"true":"false","aria-posinset":a+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:d,onClick:f,children:y.jsx("span",{role:"img","aria-label":"Star",className:K(Gt.starIcon),children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.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"})})})})})},hv=5,S_=({value:n,size:a,readonly:i=!1,onChange:s})=>{const[u,f]=B.useState(void 0),d=()=>{f(void 0)},h=g=>()=>{if(!i){const b=g+1;f(b)}},m=g=>()=>{s&&!i&&(s(g===0&&n===1?0:g+1),f(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:K(Gt.stars,{[Gt.starsSmall]:a==="small",[Gt.starsLarge]:a==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:a==="small",chat__conversationRating__stars__large:a==="large"}),onMouseOut:d,children:Array(hv).fill(0).map((g,b)=>y.jsx(e3,{value:u===void 0?n:u,index:b,count:hv,readonly:i,onHover:h(b),onClick:m(b)},b))})},t3=({visible:n,onRate:a})=>{const i=at();return n?y.jsxs("div",{className:K(Gt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:K(Gt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(S_,{value:0,size:"small",onChange:a})]}):null},kd=({isFirstMessageBySender:n,isLastMessageBySender:a,children:i})=>y.jsxs("div",{className:K(ge.message,ge.messageBot,n&&ge.messageBotFirst,a&&ge.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:K(ge.avatar,ge.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:K(ge.bubble,ge.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:K(ge.leftText,ge.bubbleContent),children:i})})]}),n3=({children:n})=>y.jsx("div",{className:K(ge.message,ge.messageGuest,ge.messageGuestFirst,ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:K(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:K(ge.rightText,ge.bubbleContent),children:n})})}),a3=()=>{const n=at(),a=Na(),i=ht(I=>I.chat.conversationRating),[s,u]=B.useState(i.rating?.value||0),[f,d]=B.useState(void 0),[h,m]=B.useState(void 0),[g,b]=B.useState({submitted:!1,feedback:""}),_=B.useRef(null),[A,U]=B.useState(!1);B.useEffect(()=>{i.opener?(b({submitted:!1,feedback:""}),m(!0)):h===!0&&m(!1)},[i.opener,h]),B.useEffect(()=>{u(i.rating?.value||0)},[i.rating?.value,i.opener]),B.useEffect(()=>{_.current&&(_.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),B.useEffect(()=>{const I=s>0?n(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;d(I?.length?I:void 0)},[s,n]),B.useEffect(()=>{g.submitted?setTimeout(()=>U(!0),g.feedback.length?500:0):U(!1)},[g]);const x=I=>{I.preventDefault();const E=_.current?.value?.trim()||"";a(XO(s,E)),b({submitted:!0,feedback:E})},k=()=>{i.opener==="CLOSE_CHAT"?a(e_()):i.opener==="RESTART_CHAT"?a(rs()):a(Px())};return y.jsx("div",{className:K(Gt.rateOverlay,Ca.bottomSheet,"chat__conversationRating__overlay",{[Ca.bottomSheetOpen]:h===!0,[Ca.bottomSheetClose]:h===!1}),children:y.jsxs("form",{onSubmit:x,children:[y.jsxs("div",{className:K(Gt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:K(Gt.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(kd,{isFirstMessageBySender:!0,isLastMessageBySender:!f,children:[y.jsx("h2",{children:n("conversation-rating.overlay.title")}),y.jsxs("div",{className:K(Gt.starsDescriptionContainer),children:[y.jsx(S_,{value:s,size:"large",readonly:g.submitted,onChange:u}),y.jsxs("div",{className:K(Gt.starsDescription),children:[y.jsx("div",{children:n("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:n("conversation-rating.overlay.star.very-good")})]})]})]}),f&&y.jsx(kd,{isFirstMessageBySender:!1,isLastMessageBySender:!A||!!g.feedback.length,children:y.jsx("div",{children:f})}),!!g.feedback.length&&y.jsx(n3,{children:g.feedback}),A&&y.jsx(kd,{isFirstMessageBySender:!!g.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:n("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:K(Gt.footer,"chat__conversationRating__overlay__footer"),children:[!g.submitted&&y.jsx("input",{ref:_,defaultValue:i.rating?.feedback||"",placeholder:n("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:K(Gt.actions,"chat__conversationRating__overlay__footer__actions"),children:[g.submitted?y.jsx(mu,{type:"button",disabled:!s,onClick:k,children:i.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(mu,{type:"submit",disabled:!s,children:n("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!g.submitted&&y.jsx(E_,{onClick:k,children:i.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.cancel")})]})]})]})})},r3=({numberOfMessagesFromGuest:n})=>{const a=Na(),i=ht(f=>f.chat.conversationRating),s=f=>{a(du("CHAT",f))},u=!i.rating?.value&&n>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(t3,{visible:u,onRate:s}),y.jsx(a3,{})]}):null},i3=B.memo(r3),l3="_inputWrapper_e3h44_1",s3="_withOpenCommands_e3h44_14",o3="_messageInputWrapper_e3h44_20",u3="_messageInput_e3h44_20",c3="_buttons_e3h44_44",f3="_button_e3h44_44",Li={inputWrapper:l3,withOpenCommands:s3,messageInputWrapper:o3,messageInput:u3,buttons:c3,button:f3},d3="_audioRecorder_g845f_1",h3="_audioButton_g845f_6",m3="_recorderIcon_g845f_37",p3="_spinning_g845f_60",Br={audioRecorder:d3,audioButton:h3,recorderIcon:m3,spinning:p3},mv=2048,pu=16e3;class g3 extends zv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(a){super(a),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(a){this.mediaStream=a,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(a)}initRecording(a){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(a),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(mv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(a){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=a.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=mv}}handleClickSubmitAudio(){const a=b3(this.leftchannel,this.recordingLength),i=v3(a,this.sampleRate||0),s=y3(i);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(a=>{a.stop()})}render(){return y.jsxs("div",{className:Br.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:K(Br.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:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&y.jsxs("svg",{className:Br.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&y.jsxs("div",{className:Br.audioRecorder,children:[y.jsx("button",{className:K(Br.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),y.jsx("div",{className:Br.recorderIcon}),y.jsx("button",{className:K(Br.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const y3=n=>{const a=new ArrayBuffer(44+n.length*2),i=new DataView(a);Po(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Po(i,8,"WAVE"),Po(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,pu,!0),i.setUint32(28,pu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Po(i,36,"data"),i.setUint32(40,n.length*2,!0);const s=n.length;let u=44;const f=1;for(let d=0;d<s;d++)i.setInt16(u,n[d]*(32767*f),!0),u+=2;return new Blob([i],{type:"audio/wav"})},Po=(n,a,i)=>{for(let s=0;s<i.length;s++)n.setUint8(a+s,i.charCodeAt(s))},b3=(n,a)=>{const i=new Float32Array(a);let s=0;const u=n.length;for(let f=0;f<u;f++){const d=n[f];i.set(d,s),s+=d.length}return i},v3=(n,a)=>{if(pu===a)return n;const i=a/pu,s=Math.round(n.length/i),u=new Float32Array(s);let f=0,d=0;for(;f<u.length;){const h=Math.round((f+1)*i);let m=0,g=0;for(let b=d;b<h&&b<n.length;b++)m+=n[b],g++;u[f]=m/g,f++,d=h}return u},_3=({disabled:n,textInput:a,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:d})=>{const h=at(),m=B.useRef(null),{enableSpeechSupport:g}=ht(x=>x.settings);B.useEffect(()=>{m.current?.focus()},[a]);const b=()=>{const x=m.current;x&&a.trim().length>=1&&f(a.trim())&&(x.value="",x.style.height="",x.focus())},_=x=>{x.preventDefault(),b()},A=x=>{const k=x.target.value;u(k),x.target.style.height="";const{scrollHeight:I}=x.target;x.target.style.height=`${I>150?150:I}px`},U=x=>{x.code==="Enter"&&!x.shiftKey?(x.repeat||b(),x.preventDefault()):i&&(x.code==="ArrowUp"||x.code==="ArrowDown")&&x.preventDefault()};return y.jsxs("form",{className:K(Li.inputWrapper,i&&Li.withOpenCommands,"chat__textInput"),onSubmit:_,children:[y.jsx("div",{className:Li.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:m,className:Li.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:a,onChange:A,onKeyDown:U,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsx("div",{className:K(Li.buttons,"chat__buttons"),children:a.length||!g||navigator.mediaDevices===void 0?y.jsx("button",{className:K(Li.button,"chat__button"),type:"submit","aria-label":h("message-input.actions.submit.label"),"data-title":h("message-input.actions.submit.label"),tabIndex:0,disabled:n,children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.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"})})}):g&&navigator.mediaDevices!==void 0&&y.jsx(g3,{translate:h,onAudioRecorded:d})})]})},E3="_quickReplies_83npe_1",S3="_quickReply_83npe_9",pv={quickReplies:E3,quickReply:S3},T3=({quickReplies:n,onQuickReplyClick:a})=>n.length?y.jsx("div",{className:K(pv.quickReplies,"chat__quickReplies"),children:n.map(i=>y.jsx(wu,{tabIndex:0,className:K(pv.quickReply,"chat__button","chat__quickReply"),onClick:()=>a(i),children:i.label},i.label))}):null,gv=5e3,A3=1e3,O3=({isBotTyping:n,quickReplies:a,numberOfMessagesFromGuest:i,commands:s,onTextInput:u,onQuickReplyClick:f,onAudioRecorded:d})=>{const[h,m]=B.useState(""),[g,b]=B.useState(!1),[_,A]=B.useState(!1),U=B.useRef(0),x=B.useRef(0);B.useEffect(()=>{if(g&&!n){const E=U.current?Date.now()-U.current:0;E>gv?b(!1):setTimeout(()=>{b(!1)},gv-E)}},[g,n]),B.useEffect(()=>{g&&(U.current=Date.now())},[g]);const k=E=>{const C=Date.now()-x.current<A3;return _?!1:n||C?(b(!0),!1):(u(E),m(""),x.current=Date.now(),!0)},I=E=>{m(E+" ")};return y.jsxs("div",{className:K(xw.inputContainer),children:[y.jsx(T3,{quickReplies:a,onQuickReplyClick:f}),y.jsx(ww,{visible:g}),!g&&y.jsx(i3,{numberOfMessagesFromGuest:i}),!!s?.length&&y.jsx(jw,{text:h,commands:s,onSelectCommand:I,onVisibilityChange:A}),y.jsx(_3,{textInput:h,disabled:g,commandsVisible:_,hasCommands:!!s?.length,onTextInput:m,onTextInputSubmit:k,onAudioRecorded:d}),!!s?.length&&y.jsx(Iw,{commands:s,onSelectCommand:m})]})},x3=({clientName:n,messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u,onMessageFromUser:f,onQuickReplyClick:d,onButtonClick:h,onLinkClick:m,onAudioRecorded:g,onTranscriptExport:b,onTranscriptItemReaction:_})=>{const A=Na(),U=ht(H=>H.connection.connectionState),{enableTranscriptExportEmail:x,commands:k}=ht(H=>H.settings),{showTranscriptMailOverlay:I,conversationRating:E}=ht(H=>H.chat),C=a.filter(H=>H.sender.type===hu.GUEST).length;B.useEffect(()=>{if(U===zr.CONNECTED){const H=_u.parse(window.location.search);A(n_(n,H))}},[n,U,A]);const S=()=>{A(t_())};return y.jsxs("div",{className:vd.container,children:[y.jsxs("div",{className:K([vd.chatcontent,(I||E?.opener)&&vd.accessabilityHidden]),children:[y.jsx(iw,{messages:a,isBotTyping:s,commands:k,onButtonClick:h,onLinkClick:m,onTranscriptItemReaction:_}),y.jsx(O3,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:C,commands:k,onQuickReplyClick:d,onTextInput:f,onAudioRecorded:g}),y.jsx(gw,{})]}),x&&y.jsx(Aw,{visible:!!I,onEmailExport:b,onClose:S}),y.jsx(dw,{contentUrl:u})]})},C3=n=>{const{messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u}=n.chat;return{messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u}},R3=n=>({onRestartChat:()=>n(rs()),onMessageFromUser:a=>n(w1(a)),onAudioRecorded:a=>n(qO(a)),onActionFromUser:a=>n(a),onQuickReplyClick:a=>n(R1(a)),onNluEvent:a=>n(B1(a)),onButtonClick:a=>n(QO(a)),onLinkClick:a=>n(U1(a)),onTranscriptExport:a=>n(VO(a)),onTranscriptItemReaction:(a,i)=>{n(Se.Actions.transcriptItemGuestReaction(a,i?.type||null,i?.category,i?.comment))}}),w3=fT(C3,R3)(x3),T_=()=>{const[n,a]=B.useState(!1);return B.useEffect(()=>{a((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},N3=n=>a=>{const i=a.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(a.stopPropagation(),n())},M3=({onClick:n})=>{const a=at();return T_()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":a("header.close-chat"),"data-title":a("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:N3(n),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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},D3="_header_3gvbz_1",L3="_logoContainer_3gvbz_14",B3="_logo_3gvbz_14",U3="_actions_3gvbz_28",j3="_active_3gvbz_43",H3="_menuContainer_3gvbz_56",I3="_menu_3gvbz_56",z3="_divider_3gvbz_86",lr={header:D3,logoContainer:L3,logo:B3,actions:U3,active:j3,menuContainer:H3,menu:I3,divider:z3},G3=({icon:n})=>{switch(n){case"arrow-counter-clockwise":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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"})});case"mail":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"star":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"})});case"link":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return y.jsx("div",{})}},k3=B.forwardRef(({selected:n,item:a,onClick:i},s)=>{const u=at(),f=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":n,role:"option",className:a.withDivider?lr.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:f,children:[y.jsx(G3,{icon:a.icon}),y.jsx("span",{children:u(`header.menu.${a.id}`)})]})})}),q3=(n,a)=>{const i=T_(),{menuItems:s,enableStandaloneView:u,enableTranscriptExportPdf:f,enableTranscriptExportEmail:d}=ht(g=>g.settings),h=ht(g=>g.chat.conversationRating.enabled);return B.useMemo(()=>{const g=[],b=s.filter(({visibility:_})=>n?_==="always"||_==="chat-only":_==="always"||_==="start-screen-only");if(n&&(g.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&u&&g.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),a&&f&&g.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),a&&d&&g.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),a&&h&&g.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),g.length>0&&b.length)){const _=g.pop();_&&s.length&&g.push({..._,withDivider:!0})}return g.push(...b),g},[n,a,f,d,u,h,i,s])},F3=({chatStarted:n,hasGuestMessages:a})=>{const i=Na(),s=at(),[u,f]=B.useState(!1),[d,h]=B.useState(-1),m=B.useRef(null),g=B.useRef(null),b=B.useRef([]),_=q3(n,a);B.useEffect(()=>{b.current[d]?.focus()},[d]);const A=B.useCallback(()=>{i(a?du("RESTART_CHAT"):rs()),f(!1),h(0)},[a,i]),U=B.useCallback(I=>{switch(I.type){case"restart-chat":A();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(YO());break;case"send-transcript":i(t_());break;case"rate-conversation":i(du("MENU"));break;case"link":i(U1(I.url));break;case"action":i(JSON.parse(JSON.stringify(I.action)));break}f(!1)},[i,A,f]);B.useEffect(()=>{const I=E=>{if(u)switch(E.key){case"Enter":E.preventDefault(),U(_[d]);break;case"ArrowUp":h(C=>C>0?C-1:_.length-1);break;case"ArrowDown":h(C=>C<_.length-1?C+1:0);break;case"Escape":f(!1);break;case"Tab":d>-1&&f(!1);break}};return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[u,d,_,h,f,U]),B.useEffect(()=>{u||h(-1)},[u,d]),rm(g,()=>f(!1));const x=()=>{f(I=>!I)},k=()=>{setTimeout(()=>{const I=document.activeElement;g.current&&!g.current.contains(I)&&f(!1)},0)};return _.length?y.jsxs("div",{className:K(lr.menuContainer),ref:g,children:[y.jsx("button",{ref:m,className:K(u&&lr.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:x,onBlur:k,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),u&&y.jsx("nav",{className:lr.menu,"aria-label":s("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:_.map((I,E)=>y.jsx(k3,{ref:C=>{b.current[E]=C},selected:d===E,item:I,onClick:()=>U(I)},I.id))})})]}):null},yv=({className:n,chatStarted:a,...i})=>{const s=Na(),u=ht(h=>h.chat.conversationRating),f=ht(h=>h.chat.messages.some(m=>m.sender.type===Se.UserType.GUEST)),d=()=>{u.enabled&&!u.opener&&f?s(du("CLOSE_CHAT")):s(e_())};return y.jsxs("div",{className:K([lr.header,n]),...i,children:[y.jsx("div",{className:lr.logoContainer,children:y.jsx("div",{className:lr.logo})}),y.jsxs("div",{className:lr.actions,children:[y.jsx(F3,{chatStarted:a,hasGuestMessages:f}),y.jsx(M3,{onClick:d})]})]})},V3="_chatwindow_rkbir_1",Y3="_chatwindowWithAside_rkbir_21",bv={chatwindow:V3,chatwindowWithAside:Y3},A_=()=>{const[n,a]=B.useState(!1);return B.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>a(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),n},P3="_sourceInfos_vei0l_1",X3="_waitForLoading_vei0l_24",Z3="_loadingContent_vei0l_28",Q3="_sourceHeader_vei0l_37",K3="_sourceHeaderIcon_vei0l_57",$3="_sourceContent_vei0l_61",W3="_openSourceButton_vei0l_69",J3="_sourceButtonLabel_vei0l_79",eN="_closeSourceInfosButton_vei0l_101",tN="_loadingSourceInfos_vei0l_125",nN="_loading_vei0l_28",aN="_loadingError_vei0l_139",rN="_highlightLoadingInfo_vei0l_155",iN="_highlightLoadingInfoInnerContainer_vei0l_169",lN="_highlightLoadingInfoContent_vei0l_178",sN="_highlightLoadingInfoCloseIcon_vei0l_198",oN="_highlightLoader_vei0l_203",uN="_highlightLoaderLoading_vei0l_210",Ot={sourceInfos:P3,waitForLoading:X3,loadingContent:Z3,sourceHeader:Q3,sourceHeaderIcon:K3,sourceContent:$3,openSourceButton:W3,sourceButtonLabel:J3,closeSourceInfosButton:eN,loadingSourceInfos:tN,loading:nN,loadingError:aN,highlightLoadingInfo:rN,highlightLoadingInfoInnerContainer:iN,highlightLoadingInfoContent:lN,highlightLoadingInfoCloseIcon:sN,highlightLoader:oN,highlightLoaderLoading:uN},cN=({onClick:n})=>{const a=at();return y.jsx("button",{className:K(Ot.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":a("source-infos.close"),"data-title":a("source-infos.close"),tabIndex:0,onClick:n,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})})},fN=B.forwardRef(({sourceInfos:n,onClose:a,...i},s)=>y.jsxs("div",{className:Ot.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:n?y.jsx("p",{id:"source-info-title",children:n.title}):y.jsx("p",{children:" "})}),y.jsx(cN,{onClick:a})]})),dN=({loading:n})=>y.jsx("div",{className:Ot.highlightLoader,children:n&&y.jsx("div",{className:Ot.highlightLoaderLoading})});/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:O_,setPrototypeOf:vv,isFrozen:hN,getPrototypeOf:mN,getOwnPropertyDescriptor:pN}=Object;let{freeze:kt,seal:An,create:x_}=Object,{apply:vh,construct:_h}=typeof Reflect<"u"&&Reflect;kt||(kt=function(a){return a});An||(An=function(a){return a});vh||(vh=function(a,i){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(i,u)});_h||(_h=function(a){for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return new a(...s)});const Xo=qt(Array.prototype.forEach),gN=qt(Array.prototype.lastIndexOf),_v=qt(Array.prototype.pop),ql=qt(Array.prototype.push),yN=qt(Array.prototype.splice),eu=qt(String.prototype.toLowerCase),qd=qt(String.prototype.toString),Fd=qt(String.prototype.match),Fl=qt(String.prototype.replace),bN=qt(String.prototype.indexOf),vN=qt(String.prototype.trim),Hn=qt(Object.prototype.hasOwnProperty),It=qt(RegExp.prototype.test),Vl=_N(TypeError);function qt(n){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return vh(n,a,s)}}function _N(n){return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return _h(n,i)}}function xe(n,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:eu;vv&&vv(n,null);let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=i(u);f!==u&&(hN(a)||(a[s]=f),u=f)}n[u]=!0}return n}function EN(n){for(let a=0;a<n.length;a++)Hn(n,a)||(n[a]=null);return n}function Aa(n){const a=x_(null);for(const[i,s]of O_(n))Hn(n,i)&&(Array.isArray(s)?a[i]=EN(s):s&&typeof s=="object"&&s.constructor===Object?a[i]=Aa(s):a[i]=s);return a}function Yl(n,a){for(;n!==null;){const s=pN(n,a);if(s){if(s.get)return qt(s.get);if(typeof s.value=="function")return qt(s.value)}n=mN(n)}function i(){return null}return i}const Ev=kt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Vd=kt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Yd=kt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),SN=kt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Pd=kt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),TN=kt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Sv=kt(["#text"]),Tv=kt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Xd=kt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Av=kt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zo=kt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),AN=An(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ON=An(/<%[\w\W]*|[\w\W]*%>/gm),xN=An(/\$\{[\w\W]*/gm),CN=An(/^data-[\-\w.\u00B7-\uFFFF]+$/),RN=An(/^aria-[\-\w]+$/),C_=An(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wN=An(/^(?:\w+script|data):/i),NN=An(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),R_=An(/^html$/i),MN=An(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ov=Object.freeze({__proto__:null,ARIA_ATTR:RN,ATTR_WHITESPACE:NN,CUSTOM_ELEMENT:MN,DATA_ATTR:CN,DOCTYPE_NAME:R_,ERB_EXPR:ON,IS_ALLOWED_URI:C_,IS_SCRIPT_OR_DATA:wN,MUSTACHE_EXPR:AN,TMPLIT_EXPR:xN});const Pl={element:1,text:3,progressingInstruction:7,comment:8,document:9},DN=function(){return typeof window>"u"?null:window},LN=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},xv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function w_(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DN();const a=se=>w_(se);if(a.version="3.2.7",a.removed=[],!n||!n.document||n.document.nodeType!==Pl.document||!n.Element)return a.isSupported=!1,a;let{document:i}=n;const s=i,u=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:h,Element:m,NodeFilter:g,NamedNodeMap:b=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:_,DOMParser:A,trustedTypes:U}=n,x=m.prototype,k=Yl(x,"cloneNode"),I=Yl(x,"remove"),E=Yl(x,"nextSibling"),C=Yl(x,"childNodes"),S=Yl(x,"parentNode");if(typeof d=="function"){const se=i.createElement("template");se.content&&se.content.ownerDocument&&(i=se.content.ownerDocument)}let H,N="";const{implementation:Z,createNodeIterator:X,createDocumentFragment:te,getElementsByTagName:de}=i,{importNode:ye}=s;let re=xv();a.isSupported=typeof O_=="function"&&typeof S=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:pe,ERB_EXPR:ce,TMPLIT_EXPR:Xe,DATA_ATTR:we,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:Ee}=Ov;let{IS_ALLOWED_URI:Te}=Ov,O=null;const q=xe({},[...Ev,...Vd,...Yd,...Pd,...Sv]);let P=null;const W=xe({},[...Tv,...Xd,...Av,...Zo]);let J=Object.seal(x_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fe=null,_e=null,mt=!0,ze=!0,fn=!1,Ma=!0,rt=!1,Qt=!0,Ut=!1,ur=!1,cr=!1,Da=!1,fr=!1,La=!1,Fr=!0,Vr=!1;const Du="user-content-";let Gi=!0,Et=!1,Ba={},Jn=null;const ki=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let dr=null;const is=xe({},["audio","video","img","source","image","track"]);let Yr=null;const ls=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pr="http://www.w3.org/1998/Math/MathML",Gn="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let jt=it,xt=!1,qi=null;const Lu=xe({},[Pr,Gn,it],qd);let Xr=xe({},["mi","mo","mn","ms","mtext"]),ea=xe({},["annotation-xml"]);const Zr=xe({},["title","style","font","a","script"]);let kn=null;const ta=["application/xhtml+xml","text/html"],Qr="text/html";let et=null,Ua=null;const ss=i.createElement("form"),Kr=function(w){return w instanceof RegExp||w instanceof Function},na=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ua&&Ua===w)){if((!w||typeof w!="object")&&(w={}),w=Aa(w),kn=ta.indexOf(w.PARSER_MEDIA_TYPE)===-1?Qr:w.PARSER_MEDIA_TYPE,et=kn==="application/xhtml+xml"?qd:eu,O=Hn(w,"ALLOWED_TAGS")?xe({},w.ALLOWED_TAGS,et):q,P=Hn(w,"ALLOWED_ATTR")?xe({},w.ALLOWED_ATTR,et):W,qi=Hn(w,"ALLOWED_NAMESPACES")?xe({},w.ALLOWED_NAMESPACES,qd):Lu,Yr=Hn(w,"ADD_URI_SAFE_ATTR")?xe(Aa(ls),w.ADD_URI_SAFE_ATTR,et):ls,dr=Hn(w,"ADD_DATA_URI_TAGS")?xe(Aa(is),w.ADD_DATA_URI_TAGS,et):is,Jn=Hn(w,"FORBID_CONTENTS")?xe({},w.FORBID_CONTENTS,et):ki,fe=Hn(w,"FORBID_TAGS")?xe({},w.FORBID_TAGS,et):Aa({}),_e=Hn(w,"FORBID_ATTR")?xe({},w.FORBID_ATTR,et):Aa({}),Ba=Hn(w,"USE_PROFILES")?w.USE_PROFILES:!1,mt=w.ALLOW_ARIA_ATTR!==!1,ze=w.ALLOW_DATA_ATTR!==!1,fn=w.ALLOW_UNKNOWN_PROTOCOLS||!1,Ma=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,rt=w.SAFE_FOR_TEMPLATES||!1,Qt=w.SAFE_FOR_XML!==!1,Ut=w.WHOLE_DOCUMENT||!1,Da=w.RETURN_DOM||!1,fr=w.RETURN_DOM_FRAGMENT||!1,La=w.RETURN_TRUSTED_TYPE||!1,cr=w.FORCE_BODY||!1,Fr=w.SANITIZE_DOM!==!1,Vr=w.SANITIZE_NAMED_PROPS||!1,Gi=w.KEEP_CONTENT!==!1,Et=w.IN_PLACE||!1,Te=w.ALLOWED_URI_REGEXP||C_,jt=w.NAMESPACE||it,Xr=w.MATHML_TEXT_INTEGRATION_POINTS||Xr,ea=w.HTML_INTEGRATION_POINTS||ea,J=w.CUSTOM_ELEMENT_HANDLING||{},w.CUSTOM_ELEMENT_HANDLING&&Kr(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(J.tagNameCheck=w.CUSTOM_ELEMENT_HANDLING.tagNameCheck),w.CUSTOM_ELEMENT_HANDLING&&Kr(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(J.attributeNameCheck=w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),w.CUSTOM_ELEMENT_HANDLING&&typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),rt&&(ze=!1),fr&&(Da=!0),Ba&&(O=xe({},Sv),P=[],Ba.html===!0&&(xe(O,Ev),xe(P,Tv)),Ba.svg===!0&&(xe(O,Vd),xe(P,Xd),xe(P,Zo)),Ba.svgFilters===!0&&(xe(O,Yd),xe(P,Xd),xe(P,Zo)),Ba.mathMl===!0&&(xe(O,Pd),xe(P,Av),xe(P,Zo))),w.ADD_TAGS&&(O===q&&(O=Aa(O)),xe(O,w.ADD_TAGS,et)),w.ADD_ATTR&&(P===W&&(P=Aa(P)),xe(P,w.ADD_ATTR,et)),w.ADD_URI_SAFE_ATTR&&xe(Yr,w.ADD_URI_SAFE_ATTR,et),w.FORBID_CONTENTS&&(Jn===ki&&(Jn=Aa(Jn)),xe(Jn,w.FORBID_CONTENTS,et)),Gi&&(O["#text"]=!0),Ut&&xe(O,["html","head","body"]),O.table&&(xe(O,["tbody"]),delete fe.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw Vl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Vl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=w.TRUSTED_TYPES_POLICY,N=H.createHTML("")}else H===void 0&&(H=LN(U,u)),H!==null&&typeof N=="string"&&(N=H.createHTML(""));kt&&kt(w),Ua=w}},os=xe({},[...Vd,...Yd,...SN]),Fi=xe({},[...Pd,...TN]),us=function(w){let Q=S(w);(!Q||!Q.tagName)&&(Q={namespaceURI:jt,tagName:"template"});const ee=eu(w.tagName),He=eu(Q.tagName);return qi[w.namespaceURI]?w.namespaceURI===Gn?Q.namespaceURI===it?ee==="svg":Q.namespaceURI===Pr?ee==="svg"&&(He==="annotation-xml"||Xr[He]):!!os[ee]:w.namespaceURI===Pr?Q.namespaceURI===it?ee==="math":Q.namespaceURI===Gn?ee==="math"&&ea[He]:!!Fi[ee]:w.namespaceURI===it?Q.namespaceURI===Gn&&!ea[He]||Q.namespaceURI===Pr&&!Xr[He]?!1:!Fi[ee]&&(Zr[ee]||!os[ee]):!!(kn==="application/xhtml+xml"&&qi[w.namespaceURI]):!1},Kt=function(w){ql(a.removed,{element:w});try{S(w).removeChild(w)}catch{I(w)}},Cn=function(w,Q){try{ql(a.removed,{attribute:Q.getAttributeNode(w),from:Q})}catch{ql(a.removed,{attribute:null,from:Q})}if(Q.removeAttribute(w),w==="is")if(Da||fr)try{Kt(Q)}catch{}else try{Q.setAttribute(w,"")}catch{}},$r=function(w){let Q=null,ee=null;if(cr)w="<remove></remove>"+w;else{const Qe=Fd(w,/^[\r\n\t ]+/);ee=Qe&&Qe[0]}kn==="application/xhtml+xml"&&jt===it&&(w='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+w+"</body></html>");const He=H?H.createHTML(w):w;if(jt===it)try{Q=new A().parseFromString(He,kn)}catch{}if(!Q||!Q.documentElement){Q=Z.createDocument(jt,"template",null);try{Q.documentElement.innerHTML=xt?N:He}catch{}}const st=Q.body||Q.documentElement;return w&&ee&&st.insertBefore(i.createTextNode(ee),st.childNodes[0]||null),jt===it?de.call(Q,Ut?"html":"body")[0]:Ut?Q.documentElement:st},Vi=function(w){return X.call(w.ownerDocument||w,w,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Wr=function(w){return w instanceof _&&(typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||!(w.attributes instanceof b)||typeof w.removeAttribute!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function")},Rn=function(w){return typeof h=="function"&&w instanceof h};function Ze(se,w,Q){Xo(se,ee=>{ee.call(a,w,Q,Ua)})}const Ct=function(w){let Q=null;if(Ze(re.beforeSanitizeElements,w,null),Wr(w))return Kt(w),!0;const ee=et(w.nodeName);if(Ze(re.uponSanitizeElement,w,{tagName:ee,allowedTags:O}),Qt&&w.hasChildNodes()&&!Rn(w.firstElementChild)&&It(/<[/\w!]/g,w.innerHTML)&&It(/<[/\w!]/g,w.textContent)||w.nodeType===Pl.progressingInstruction||Qt&&w.nodeType===Pl.comment&&It(/<[/\w]/g,w.data))return Kt(w),!0;if(!O[ee]||fe[ee]){if(!fe[ee]&&Jr(ee)&&(J.tagNameCheck instanceof RegExp&&It(J.tagNameCheck,ee)||J.tagNameCheck instanceof Function&&J.tagNameCheck(ee)))return!1;if(Gi&&!Jn[ee]){const He=S(w)||w.parentNode,st=C(w)||w.childNodes;if(st&&He){const Qe=st.length;for(let Be=Qe-1;Be>=0;--Be){const dn=k(st[Be],!0);dn.__removalCount=(w.__removalCount||0)+1,He.insertBefore(dn,E(w))}}}return Kt(w),!0}return w instanceof m&&!us(w)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&It(/<\/no(script|embed|frames)/i,w.innerHTML)?(Kt(w),!0):(rt&&w.nodeType===Pl.text&&(Q=w.textContent,Xo([pe,ce,Xe],He=>{Q=Fl(Q,He," ")}),w.textContent!==Q&&(ql(a.removed,{element:w.cloneNode()}),w.textContent=Q)),Ze(re.afterSanitizeElements,w,null),!1)},aa=function(w,Q,ee){if(Fr&&(Q==="id"||Q==="name")&&(ee in i||ee in ss))return!1;if(!(ze&&!_e[Q]&&It(we,Q))){if(!(mt&&It(G,Q))){if(!P[Q]||_e[Q]){if(!(Jr(w)&&(J.tagNameCheck instanceof RegExp&&It(J.tagNameCheck,w)||J.tagNameCheck instanceof Function&&J.tagNameCheck(w))&&(J.attributeNameCheck instanceof RegExp&&It(J.attributeNameCheck,Q)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(Q,w))||Q==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&It(J.tagNameCheck,ee)||J.tagNameCheck instanceof Function&&J.tagNameCheck(ee))))return!1}else if(!Yr[Q]){if(!It(Te,Fl(ee,ne,""))){if(!((Q==="src"||Q==="xlink:href"||Q==="href")&&w!=="script"&&bN(ee,"data:")===0&&dr[w])){if(!(fn&&!It($,Fl(ee,ne,"")))){if(ee)return!1}}}}}}return!0},Jr=function(w){return w!=="annotation-xml"&&Fd(w,Ee)},cs=function(w){Ze(re.beforeSanitizeAttributes,w,null);const{attributes:Q}=w;if(!Q||Wr(w))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let He=Q.length;for(;He--;){const st=Q[He],{name:Qe,namespaceURI:Be,value:dn}=st,ra=et(Qe),wn=dn;let tt=Qe==="value"?wn:vN(wn);if(ee.attrName=ra,ee.attrValue=tt,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Ze(re.uponSanitizeAttribute,w,ee),tt=ee.attrValue,Vr&&(ra==="id"||ra==="name")&&(Cn(Qe,w),tt=Du+tt),Qt&&It(/((--!?|])>)|<\/(style|title|textarea)/i,tt)){Cn(Qe,w);continue}if(ra==="attributename"&&Fd(tt,"href")){Cn(Qe,w);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){Cn(Qe,w);continue}if(!Ma&&It(/\/>/i,tt)){Cn(Qe,w);continue}rt&&Xo([pe,ce,Xe],Yi=>{tt=Fl(tt,Yi," ")});const fs=et(w.nodeName);if(!aa(fs,ra,tt)){Cn(Qe,w);continue}if(H&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!Be)switch(U.getAttributeType(fs,ra)){case"TrustedHTML":{tt=H.createHTML(tt);break}case"TrustedScriptURL":{tt=H.createScriptURL(tt);break}}if(tt!==wn)try{Be?w.setAttributeNS(Be,Qe,tt):w.setAttribute(Qe,tt),Wr(w)?Kt(w):_v(a.removed)}catch{Cn(Qe,w)}}Ze(re.afterSanitizeAttributes,w,null)},Bu=function se(w){let Q=null;const ee=Vi(w);for(Ze(re.beforeSanitizeShadowDOM,w,null);Q=ee.nextNode();)Ze(re.uponSanitizeShadowNode,Q,null),Ct(Q),cs(Q),Q.content instanceof f&&se(Q.content);Ze(re.afterSanitizeShadowDOM,w,null)};return a.sanitize=function(se){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=null,ee=null,He=null,st=null;if(xt=!se,xt&&(se="<!-->"),typeof se!="string"&&!Rn(se))if(typeof se.toString=="function"){if(se=se.toString(),typeof se!="string")throw Vl("dirty is not a string, aborting")}else throw Vl("toString is not a function");if(!a.isSupported)return se;if(ur||na(w),a.removed=[],typeof se=="string"&&(Et=!1),Et){if(se.nodeName){const dn=et(se.nodeName);if(!O[dn]||fe[dn])throw Vl("root node is forbidden and cannot be sanitized in-place")}}else if(se instanceof h)Q=$r("<!---->"),ee=Q.ownerDocument.importNode(se,!0),ee.nodeType===Pl.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?Q=ee:Q.appendChild(ee);else{if(!Da&&!rt&&!Ut&&se.indexOf("<")===-1)return H&&La?H.createHTML(se):se;if(Q=$r(se),!Q)return Da?null:La?N:""}Q&&cr&&Kt(Q.firstChild);const Qe=Vi(Et?se:Q);for(;He=Qe.nextNode();)Ct(He),cs(He),He.content instanceof f&&Bu(He.content);if(Et)return se;if(Da){if(fr)for(st=te.call(Q.ownerDocument);Q.firstChild;)st.appendChild(Q.firstChild);else st=Q;return(P.shadowroot||P.shadowrootmode)&&(st=ye.call(s,st,!0)),st}let Be=Ut?Q.outerHTML:Q.innerHTML;return Ut&&O["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&It(R_,Q.ownerDocument.doctype.name)&&(Be="<!DOCTYPE "+Q.ownerDocument.doctype.name+`>
|
|
112
|
+
`+Be),rt&&Xo([pe,ce,Xe],dn=>{Be=Fl(Be,dn," ")}),H&&La?H.createHTML(Be):Be},a.setConfig=function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};na(se),ur=!0},a.clearConfig=function(){Ua=null,ur=!1},a.isValidAttribute=function(se,w,Q){Ua||na({});const ee=et(se),He=et(w);return aa(ee,He,Q)},a.addHook=function(se,w){typeof w=="function"&&ql(re[se],w)},a.removeHook=function(se,w){if(w!==void 0){const Q=gN(re[se],w);return Q===-1?void 0:yN(re[se],Q,1)[0]}return _v(re[se])},a.removeHooks=function(se){re[se]=[]},a.removeAllHooks=function(){re=xv()},a}var BN=w_();const UN=({onClose:n})=>{const a=at();return y.jsxs("div",{className:Ot.highlightLoadingInfo,onClick:n,children:[y.jsx("div",{className:Ot.highlightLoadingInfoCloseIcon,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})}),y.jsxs("div",{className:Ot.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:Ot.highlightLoadingInfoContent,children:[y.jsx("h3",{children:a("source-infos.highlight-loading.title")}),y.jsx("p",{children:a("source-infos.highlight-loading.description")})]}),y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M253.66,106.34a8,8,0,0,0-11.32,0L192,156.69,107.31,72l50.35-50.34a8,8,0,1,0-11.32-11.32L96,60.69A16,16,0,0,0,93.18,79.5L72,100.69a16,16,0,0,0,0,22.62L76.69,128,18.34,186.34a8,8,0,0,0,3.13,13.25l72,24A7.88,7.88,0,0,0,96,224a8,8,0,0,0,5.66-2.34L136,187.31l4.69,4.69a16,16,0,0,0,22.62,0l21.19-21.18A16,16,0,0,0,203.31,168l50.35-50.34A8,8,0,0,0,253.66,106.34ZM93.84,206.85l-55-18.35L88,139.31,124.69,176ZM152,180.69,83.31,112,104,91.31,172.69,160Z"})})]})]})},jN=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),HN=({className:n,children:a,...i})=>y.jsx("a",{className:K(es.button,es.buttonDefault,n),type:"button",role:"button",...i,children:a}),IN=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:y.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"})}),zN=({type:n,...a})=>{switch(n){case"WEBSITE":return y.jsx(b_,{...a});case"PDF":return y.jsx(y_,{...a});case"DOCX":return y.jsx(p_,{...a});case"TEXT":return y.jsx(IN,{...a});default:return y.jsx(g_,{...a})}},GN=({url:n,knowledgeBaseType:a})=>{const i=at();return y.jsx(HN,{className:Ot.openSourceButton,href:n,target:"_blank",children:y.jsxs("div",{className:Ot.sourceButtonLabel,children:[y.jsx("div",{className:Ot.sourceHeaderIcon,children:y.jsx(zN,{type:a})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},kN=({sourceInfos:{content:n,url:a,knowledgeBaseType:i,highlighted:s}})=>{const[u,f]=B.useState(!s);B.useEffect(()=>{s&&f(!1)},[s]);const d=BN.sanitize(n,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:K(Ot.sourceContent,__.markdown),children:[y.jsx(xa,{options:{overrides:{a:jN}},children:d}),u&&y.jsx(UN,{onClose:()=>f(!1)})]}),y.jsx(GN,{url:a,knowledgeBaseType:i})]})},qN=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,FN=()=>{const n=at();return y.jsxs("div",{className:Ot.loadingError,children:[y.jsx("h1",{children:n("source-infos.error.title")}),y.jsx("img",{src:qN,title:n("source-infos.error.title")}),y.jsx("p",{children:n("source-infos.error.info")})]})},VN=()=>y.jsx("div",{className:Ot.loadingSourceInfos,children:y.jsx("svg",{className:Ot.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})});function YN({sourceInfos:n,onClose:a,threshold:i=100}){const s=B.useRef(null),[u,f]=B.useState(0),[d,h]=B.useState(!1),m=B.useRef(null),g=B.useRef(null),b=B.useCallback(x=>{m.current=x,h(!0)},[]),_=B.useCallback(x=>{if(m.current!==null&&d){const k=x-m.current;k>0&&f(k)}},[d]),A=B.useCallback(()=>{h(!1),u>i&&a(),f(0),m.current=null},[u,i,a]),U=B.useCallback(x=>{const k=N=>b(N.touches[0].clientY),I=N=>_(N.touches[0].clientY),E=()=>A(),C=N=>{N.preventDefault(),b(N.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",H)},S=N=>_(N.clientY),H=()=>{A(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)};x.addEventListener("touchstart",k),x.addEventListener("touchmove",I),x.addEventListener("touchend",E),x.addEventListener("mousedown",C),g.current=()=>{x.removeEventListener("touchstart",k),x.removeEventListener("touchmove",I),x.removeEventListener("touchend",E),x.removeEventListener("mousedown",C),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)}},[b,_,A]);return B.useEffect(()=>{let x;return(()=>{s.current?(g.current?.(),U(s.current)):(x=new MutationObserver(()=>{s.current&&(g.current?.(),U(s.current),x?.disconnect())}),x.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{x?.disconnect(),g.current?.()}},[U,n]),{ref:s,dragOffsetY:u,isDragging:d}}const PN=n=>{const[a,i]=B.useState(!0);return B.useEffect(()=>{let s=null;return n?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!n),()=>{s&&clearTimeout(s)}},[n]),a},XN=()=>{const n=Na(),a=ht(m=>m.chat.sourceInfos),i=A_(),s=B.useRef(null),u=PN(a);B.useEffect(()=>{s.current&&a?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[a,i]);const f=B.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),n(Xx()))},[n,i]),{ref:d,dragOffsetY:h}=YN({onClose:f,sourceInfos:a});return a?y.jsx("dialog",{ref:s,className:K(Ot.sourceInfos,u?Ot.waitForLoading:a.type==="loading"?Ot.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(fN,{ref:d,tabIndex:-1,sourceInfos:a.type==="loaded"?a:void 0,onClose:f}),a.type==="loading"?y.jsx(VN,{}):a.type==="loading-error"?y.jsx(FN,{}):y.jsxs(y.Fragment,{children:[y.jsx(dN,{loading:!a.highlighted}),y.jsx(kN,{sourceInfos:a})]})]})}):null},ZN="_container_1aof3_1",QN="_body_1aof3_7",KN="_intro_1aof3_14",$N="_footer_1aof3_39",WN="_footnote_1aof3_43",JN="_containerWithFootnote_1aof3_58",e8="_startChatButton_1aof3_73",t8="_spinner_1aof3_88",n8="_formFields_1aof3_92",a8="_formField_1aof3_92",r8="_radio_1aof3_104",i8="_checkbox_1aof3_111",l8="_input_1aof3_119",s8="_inputLabel_1aof3_153",o8="_selectWrapper_1aof3_157",u8="_select_1aof3_157",c8="_selectLabel_1aof3_203",At={container:ZN,body:QN,intro:KN,footer:$N,footnote:WN,containerWithFootnote:JN,startChatButton:e8,spinner:t8,formFields:n8,formField:a8,radio:r8,checkbox:i8,input:l8,inputLabel:s8,selectWrapper:o8,select:u8,selectLabel:c8},f8=({name:n,label:a,defaultValue:i,required:s,onChange:u})=>{const f=d=>{u(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:K(At.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[y.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:s,onChange:f}),y.jsx("div",{children:a})]})},d8=({type:n,name:a,label:i,defaultValue:s,placeholder:u,required:f,multiple:d,min:h,max:m,pattern:g,onChange:b})=>{const _=A=>{b(A.target.value)};return y.jsxs("label",{className:K(At.input,"chat__startScreen__input"),htmlFor:a,children:[y.jsx("div",{className:K(At.inputLabel),children:i}),y.jsx("input",{type:n,id:a,name:a,defaultValue:s,placeholder:u,required:f,multiple:d,min:h,max:m,pattern:g,onChange:_})]})},h8=({name:n,value:a,label:i,defaultChecked:s,required:u,onChange:f})=>{const d=`${n}-${a}`,h=m=>{f(m.target.value)};return y.jsxs("label",{className:K(At.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:n,value:a,defaultChecked:s,required:u,onChange:h}),y.jsx("span",{className:K(At.label),children:i})]})},m8=({name:n,label:a,defaultValue:i,required:s,multiple:u,options:f,onChange:d})=>{const h=m=>{d(m.target.value)};return y.jsxs("label",{className:K(At.select,"chat__startScreen__select"),htmlFor:n,children:[y.jsx("div",{className:K(At.selectLabel),children:a}),y.jsx("div",{className:K(At.selectWrapper),children:y.jsx("select",{id:n,name:n,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(f||{}).map(([m,g])=>y.jsx("option",{value:m,selected:g===i,children:g}))})})]})},p8="start-screen.intro",g8="start-screen.start-chat",y8="start-screen.waiting-for-login",b8="start-screen.footnote",jn="start-screen.form",Cv=`${jn}.fields`,v8=()=>{const n=at(),a=Na(),i=sm(),s=ht(x=>x.startScreen.loginRequestToken),u=ht(x=>x.settings.requiresUserAuthentication);B.useEffect(()=>{let x;if(s){const E=window.screenX+(window.outerWidth-600)/2,C=window.screenY+(window.outerHeight-700)/2,S=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${E},top=${C},resizable=yes,scrollbars=yes`);x=setInterval(()=>{S?.closed&&(a(Fx()),clearInterval(x))},500)}return()=>{x&&clearInterval(x)}},[i,s,a]);const[f,d]=B.useState({}),h=()=>{const x=Object.entries(f).reduce((k,[I,E])=>({...k,[I]:E.value}),{});a(u?qx({loginRequestToken:lu(),formValues:x}):zx({formValues:x}))},m=n(p8),g=n(s?y8:g8),b=n(b8),_=B.useMemo(()=>n(Cv)?.split(";").map(x=>x.trim())??[],[n(Cv)]);B.useEffect(()=>{_.length&&Object.keys(f).length===0&&d(_.reduce((x,k)=>({...x,[k]:_8(k,n)}),{}))},[n,_,f]);const A=x=>{x.preventDefault(),h()},U=x=>k=>{d(I=>({...I,[x]:{...I[x],value:k}}))};return y.jsxs("form",{onSubmit:A,className:K(At.container,b&&At.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:K(At.body,"chat__startScreen__body"),children:[m&&y.jsx("div",{className:K(At.intro,"chat__startScreen__intro"),children:y.jsx(xa,{options:{overrides:{a:Rv}},children:m})}),y.jsx("div",{className:K(At.formFields,"chat__startScreen__fields"),children:Object.values(f).map(({type:x,name:k,label:I,placeholder:E,defaultValue:C,options:S,required:H,multiple:N,min:Z,max:X,pattern:te})=>y.jsx("div",{className:K(At.formField,"chat__startScreen__field"),children:(()=>{switch(x){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:I}),Object.entries(S||{}).map(([de,ye])=>y.jsx(h8,{name:k,value:de,label:ye,defaultChecked:de===C,required:H,onChange:U(k)},de))]});case"checkbox":return y.jsx(f8,{name:k,label:I,defaultValue:C,required:H,onChange:U(k)});case"select":return y.jsx(m8,{name:k,label:I,defaultValue:C,required:H,multiple:N,options:S,onChange:U(k)});default:return y.jsx(d8,{type:x,name:k,label:I,placeholder:E,defaultValue:C,required:H,multiple:N,min:Z,max:X,pattern:te,onChange:U(k)})}})()},k))})]}),y.jsxs("div",{className:K(At.footer,"chat__startScreen__footer"),children:[y.jsxs(mu,{type:"submit",className:At.startChatButton,disabled:!!s,children:[!!s&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:At.spinner,children:y.jsx("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"})}),y.jsx("div",{children:g})]}),b&&y.jsx("div",{className:At.footnote,children:y.jsx(xa,{options:{overrides:{a:Rv}},children:b})})]})]})},Rv=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),_8=(n,a)=>{const i=a(`${jn}.${n}.type`)||"text",s=a(`${jn}.${n}.required`)==="true",u=a(`${jn}.${n}.multiple`)==="true",f=a(`${jn}.${n}.placeholder`),d=a(`${jn}.${n}.label`)||"",h=a(`${jn}.${n}.defaultValue`),m=a(`${jn}.${n}.min`),g=a(`${jn}.${n}.max`),b=a(`${jn}.${n}.pattern`),_=S8(a(`${jn}.${n}.options`));return{name:n,label:d,placeholder:f,value:E8(i,h,_)||"",defaultValue:h,options:_,type:i,required:s,multiple:u,min:m,max:g,pattern:b}},E8=(n,a,i)=>a||n==="select"&&Object.keys(i)[0]||"",S8=(n="")=>n.split(";").map(a=>a.trim()).reduce((a,i)=>{const[s,u]=i.split(":").map(f=>f.trim());return{...a,[s]:u}},{}),T8=()=>{const n=vu();B.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},Bi={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"},A8=({clientName:n})=>{T8();const a=Na(),i=ht(b=>b.intl.messages),s=at(),u=ht(b=>b.settings.enableStartScreen),f=ht(b=>b.startScreen.startScreenStatus),[d,h]=B.useState(void 0);B.useEffect(()=>{const b=_u.parse(window.location.search);b.cssClassName&&h(b.cssClassName);const _=A=>{switch(A.data.type){case Bi.TRIGGER_ACTION:a(A.data.action);break;case Bi.TRIGGER_STORY:a(B1(A.data.story));break;case Bi.ON_CHAT_WINDOW_OPEN:a({type:"webclient.chatwindow.opened"});break;case Bi.ON_CHAT_WINDOW_CLOSE:a({type:"webclient.chatwindow.closed"});break;case Bi.CHAT_MESSAGE_FROM_GUEST:a(w1(A.data.text));break;case Bi.RESTART_CHAT:a(rs());break}};return a(Qx(n,b)),window.addEventListener("message",A=>_(A),!1),()=>window.removeEventListener("message",_)},[n,a]),B.useEffect(()=>{const b=s("page.title");b&&document&&(document.title=b)},[i,s]);const m=u===void 0,g=u===!1||f==="HIDDEN";return y.jsx("div",{className:K(bv.chatwindow,g&&bv.chatwindowWithAside,"chat__chatwindow",d),children:m?null:g?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(yv,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(w3,{clientName:n})}),y.jsx("aside",{children:y.jsx(XN,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(yv,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(v8,{})})]})})},O8=()=>{const n=sm(),a=A_(),i=ht(u=>u.intl.locale),s=ht(u=>u.intl.messages);return y.jsx(KA,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:K([WA.app,a?"chat__small":"chat__large"]),children:y.jsx(A8,{clientName:n})})})};var Zd,wv;function x8(){if(wv)return Zd;wv=1;var n=h_(),a=im(),i="Expected a function";function s(u,f,d){var h=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return a(d)&&(h="leading"in d?!!d.leading:h,m="trailing"in d?!!d.trailing:m),n(u,f,{leading:h,maxWait:f,trailing:m})}return Zd=s,Zd}var C8=x8();const R8=gu(C8);function w8(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function N8(n){return n}function M8(n,a){a=a||{};const i=a.delimiter||".",s=a.maxDepth,u=a.transformKey||N8,f={};function d(h,m,g){g=g||1,Object.keys(h).forEach(function(b){const _=h[b],A=a.safe&&Array.isArray(_),U=Object.prototype.toString.call(_),x=w8(_),k=U==="[object Object]"||U==="[object Array]",I=m?m+i+u(b):u(b);if(!A&&!x&&k&&Object.keys(_).length&&(!a.maxDepth||g<s))return d(_,I,g+1);f[I]=_})}return d(n),f}const N_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","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.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","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":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
113
|
+
|
|
114
|
+
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
115
|
+
- 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.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.restart-chat":"Chat neu starten","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},D8={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","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.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","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 chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
|
|
116
|
+
|
|
117
|
+
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
118
|
+
- Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.restart-chat":"Restart chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},L8={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Saisir un message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
|
|
119
|
+
|
|
120
|
+
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
121
|
+
- 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.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.restart-chat":"Redémarrer le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},B8={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","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.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","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 cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
|
|
122
|
+
|
|
123
|
+
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
124
|
+
- 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.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},U8=["de","en","fr","it"],M_={locale:"de",messages:N_},j8=(n,a)=>{if(U8.includes(n)){const i=H8(n),s=M8(a);return{...i,...s}}return a},H8=n=>{switch(n.toString()){case"en":return D8;case"fr":return L8;case"it":return B8;default:return N_}},I8=(n=z8,a)=>{switch(a.type){case $h:return Object.assign({},n,{connectionState:zr.CONNECTING});case Wh:return Object.assign({},n,{connectionState:zr.CONNECTED});case Jh:return Object.assign({},n,{connectionState:zr.DISCONNECTED});case em:return Object.assign({},n,{connectionState:zr.RECONNECTED});case tm:return Object.assign({},n,{sessionId:a.sessionId});case Ou:return Object.assign({},n,{sessionId:a.payload.sessionId,userId:a.payload.userId});case xu:return Object.assign({},n,{sessionId:void 0});default:return n}},z8={connectionState:zr.DISCONNECTED,sessionId:void 0,userId:void 0},G8=(n=Mv,a)=>{switch(a.type){case K1:return Mv;case Ou:return Ur({type:"webclient.chat.started"}),n;case xu:return Ur({type:"webclient.chat.ended"}),n;case Se.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Se.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Se.ActionTypes.MESSAGE_FROM_GUEST:case Se.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Nv(n,a.message);case Se.ActionTypes.MESSAGE_TO_GUEST:{Ur(a);const i=Object.assign({},a.message,{_id:a.meta.actionId}),s=n.messages.filter(u=>u._id===a.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:s?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Ih:{const i=a.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case Hh:return Ur(a.message),n;case Se.ActionTypes.EVENT_TO_GUEST:return Ur(a.event),n;case Se.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:a.payload.parameters.contentUrl});case Se.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Se.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:a.payload.locale});case M1:return Ur(a),n;case D1:return Ur(a),{...n,conversationRating:{...n.conversationRating,opener:void 0}};case Gh:{const i=new Se.TextMessage(a.transcription,new Se.GuestUser),s=Object.assign({},i,{_id:lu()});return Nv(n,s)}case Se.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(s=>s._id===a.payload.actionId?Object.assign({},s,a.payload.reaction?{reaction:{type:a.payload.reaction,category:a.payload.category,comment:a.payload.comment}}:{reaction:void 0}):s);return Object.assign({},n,{messages:i})}case kh:{const i={enabled:!0,rating:a.payload.rating};return Object.assign({},n,{conversationRating:i})}case Se.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:a.payload};return Object.assign({},n,{conversationRating:i})}case W1:{const i={...n.conversationRating,opener:a.payload.opener,...a.payload.defaultRating?{rating:{value:a.payload.defaultRating,feedback:n.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},n,{conversationRating:i})}case J1:{const i={...n.conversationRating,opener:void 0};return Object.assign({},n,{conversationRating:i})}case Fh:return{...n,sourceInfos:{type:"loading",chunkId:a.payload.chunkId}};case qh:{const{highlighted:i}=a.payload;return n.sourceInfos?.type==="loaded"&&i?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case N1:{const i=n.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:f,content:d,highlighted:h,url:m}=a.payload,g=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return g&&g!==s?n:i==="loading"||i==="loaded"&&h?{...n,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:f,content:d,highlighted:h,url:m}}:n}case Vh:return{...n,sourceInfos:void 0};case $1:return{...n,showTranscriptMailOverlay:!n.showTranscriptMailOverlay,conversationRating:{...n.conversationRating,opener:void 0}};default:return n}},Nv=(n,a)=>{const i=n.messages[n.messages.length-1],s=i?.text===a.text;return i&&i.sender.type===a.sender.type&&s?n:Object.assign({},n,{messages:n.messages.concat([a]),quickReplies:[]})},Ur=n=>{k8()?window.top?.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},k8=()=>typeof window<"u"&&window.self!==window.top,Mv={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},D_=Qh({name:"intl",initialState:M_,reducers:{updateIntl:(n,a)=>{n.locale=a.payload.language,n.messages=a.payload.messages}}}),{updateIntl:q8}=D_.actions,F8=D_.reducer,V8={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},L_=Qh({name:"settings",initialState:V8,reducers:{setSettings(n,a){n.version&&n.version!==a.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(n.version=a.payload.version,n.requiresUserAuthentication=a.payload.requiresUserAuthentication,n.enableStartScreen=a.payload.enableStartScreen,n.enableStandaloneView=a.payload.enableStandaloneView,n.enableTranscriptExportEmail=a.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=a.payload.enableTranscriptExportPdf,n.enableGeneralConditions=a.payload.enableGeneralConditions,n.enableSpeechSupport=a.payload.enableSpeechSupport,n.commands=a.payload.commands,n.menuItems=a.payload.menuItems||[])}}}),{setSettings:Y8}=L_.actions,P8=L_.reducer,X8=I1({settings:P8,chat:G8,startScreen:Vx,connection:I8,intl:F8}),Z8="bubble-chat",B_="state-last-saved-at",U_="state",Q8=n=>{try{if(!W8())return;const a=Dv(n,B_);if($8(a))return;{const i=Dv(n,U_);return i===null?void 0:JSON.parse(i)}}catch(a){console.error(a);return}},K8=(n,a)=>{try{const i=JSON.stringify(a);Lv(n,U_,i);const s=new Date().toISOString();Lv(n,B_,s)}catch(i){console.error(i)}},$8=n=>{if(n===null)return!1;const a=new Date(n);return a.setHours(a.getHours()+12),new Date>a},W8=()=>typeof localStorage<"u",Dv=(n,a)=>{const i=j_(n,a);return localStorage.getItem(i)},Lv=(n,a,i)=>{const s=j_(n,a);return localStorage.setItem(s,i)},j_=(n,a)=>`${Z8}-${n}-${a}`,Wn=Object.create(null);Wn.open="0";Wn.close="1";Wn.ping="2";Wn.pong="3";Wn.message="4";Wn.upgrade="5";Wn.noop="6";const tu=Object.create(null);Object.keys(Wn).forEach(n=>{tu[Wn[n]]=n});const Eh={type:"error",data:"parser error"},H_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",I_=typeof ArrayBuffer=="function",z_=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,om=({type:n,data:a},i,s)=>H_&&a instanceof Blob?i?s(a):Bv(a,s):I_&&(a instanceof ArrayBuffer||z_(a))?i?s(a):Bv(new Blob([a]),s):s(Wn[n]+(a||"")),Bv=(n,a)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];a("b"+(s||""))},i.readAsDataURL(n)};function Uv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Qd;function J8(n,a){if(H_&&n.data instanceof Blob)return n.data.arrayBuffer().then(Uv).then(a);if(I_&&(n.data instanceof ArrayBuffer||z_(n.data)))return a(Uv(n.data));om(n,!1,i=>{Qd||(Qd=new TextEncoder),a(Qd.encode(i))})}const jv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<jv.length;n++)Kl[jv.charCodeAt(n)]=n;const eM=n=>{let a=n.length*.75,i=n.length,s,u=0,f,d,h,m;n[n.length-1]==="="&&(a--,n[n.length-2]==="="&&a--);const g=new ArrayBuffer(a),b=new Uint8Array(g);for(s=0;s<i;s+=4)f=Kl[n.charCodeAt(s)],d=Kl[n.charCodeAt(s+1)],h=Kl[n.charCodeAt(s+2)],m=Kl[n.charCodeAt(s+3)],b[u++]=f<<2|d>>4,b[u++]=(d&15)<<4|h>>2,b[u++]=(h&3)<<6|m&63;return g},tM=typeof ArrayBuffer=="function",um=(n,a)=>{if(typeof n!="string")return{type:"message",data:G_(n,a)};const i=n.charAt(0);return i==="b"?{type:"message",data:nM(n.substring(1),a)}:tu[i]?n.length>1?{type:tu[i],data:n.substring(1)}:{type:tu[i]}:Eh},nM=(n,a)=>{if(tM){const i=eM(n);return G_(i,a)}else return{base64:!0,data:n}},G_=(n,a)=>{switch(a){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},k_="",aM=(n,a)=>{const i=n.length,s=new Array(i);let u=0;n.forEach((f,d)=>{om(f,!1,h=>{s[d]=h,++u===i&&a(s.join(k_))})})},rM=(n,a)=>{const i=n.split(k_),s=[];for(let u=0;u<i.length;u++){const f=um(i[u],a);if(s.push(f),f.type==="error")break}return s};function iM(){return new TransformStream({transform(n,a){J8(n,i=>{const s=i.length;let u;if(s<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,s);else if(s<65536){u=new Uint8Array(3);const f=new DataView(u.buffer);f.setUint8(0,126),f.setUint16(1,s)}else{u=new Uint8Array(9);const f=new DataView(u.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(u[0]|=128),a.enqueue(u),a.enqueue(i)})}})}let Kd;function Qo(n){return n.reduce((a,i)=>a+i.length,0)}function Ko(n,a){if(n[0].length===a)return n.shift();const i=new Uint8Array(a);let s=0;for(let u=0;u<a;u++)i[u]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),i}function lM(n,a){Kd||(Kd=new TextDecoder);const i=[];let s=0,u=-1,f=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(Qo(i)<1)break;const m=Ko(i,1);f=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if(Qo(i)<2)break;const m=Ko(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(Qo(i)<8)break;const m=Ko(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),b=g.getUint32(0);if(b>Math.pow(2,21)-1){h.enqueue(Eh);break}u=b*Math.pow(2,32)+g.getUint32(4),s=3}else{if(Qo(i)<u)break;const m=Ko(i,u);h.enqueue(um(f?m:Kd.decode(m),a)),s=0}if(u===0||u>n){h.enqueue(Eh);break}}}})}const q_=4;function _t(n){if(n)return sM(n)}function sM(n){for(var a in _t.prototype)n[a]=_t.prototype[a];return n}_t.prototype.on=_t.prototype.addEventListener=function(n,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(a),this};_t.prototype.once=function(n,a){function i(){this.off(n,i),a.apply(this,arguments)}return i.fn=a,this.on(n,i),this};_t.prototype.off=_t.prototype.removeListener=_t.prototype.removeAllListeners=_t.prototype.removeEventListener=function(n,a){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 s,u=0;u<i.length;u++)if(s=i[u],s===a||s.fn===a){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};_t.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var a=new Array(arguments.length-1),i=this._callbacks["$"+n],s=1;s<arguments.length;s++)a[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,a)}return this};_t.prototype.emitReserved=_t.prototype.emit;_t.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};_t.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Nu=typeof Promise=="function"&&typeof Promise.resolve=="function"?a=>Promise.resolve().then(a):(a,i)=>i(a,0),Tn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),oM="arraybuffer";function F_(n,...a){return a.reduce((i,s)=>(n.hasOwnProperty(s)&&(i[s]=n[s]),i),{})}const uM=Tn.setTimeout,cM=Tn.clearTimeout;function Mu(n,a){a.useNativeTimers?(n.setTimeoutFn=uM.bind(Tn),n.clearTimeoutFn=cM.bind(Tn)):(n.setTimeoutFn=Tn.setTimeout.bind(Tn),n.clearTimeoutFn=Tn.clearTimeout.bind(Tn))}const fM=1.33;function dM(n){return typeof n=="string"?hM(n):Math.ceil((n.byteLength||n.size)*fM)}function hM(n){let a=0,i=0;for(let s=0,u=n.length;s<u;s++)a=n.charCodeAt(s),a<128?i+=1:a<2048?i+=2:a<55296||a>=57344?i+=3:(s++,i+=4);return i}function V_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function mM(n){let a="";for(let i in n)n.hasOwnProperty(i)&&(a.length&&(a+="&"),a+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return a}function pM(n){let a={},i=n.split("&");for(let s=0,u=i.length;s<u;s++){let f=i[s].split("=");a[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return a}class gM extends Error{constructor(a,i,s){super(a),this.description=i,this.context=s,this.type="TransportError"}}class cm extends _t{constructor(a){super(),this.writable=!1,Mu(this,a),this.opts=a,this.query=a.query,this.socket=a.socket,this.supportsBinary=!a.forceBase64}onError(a,i,s){return super.emitReserved("error",new gM(a,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(a){this.readyState==="open"&&this.write(a)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(a){const i=um(a,this.socket.binaryType);this.onPacket(i)}onPacket(a){super.emitReserved("packet",a)}onClose(a){this.readyState="closed",super.emitReserved("close",a)}pause(a){}createUri(a,i={}){return a+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const a=this.opts.hostname;return a.indexOf(":")===-1?a:"["+a+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(a){const i=mM(a);return i.length?"?"+i:""}}class yM extends cm{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(a){this.readyState="pausing";const i=()=>{this.readyState="paused",a()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(a){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};rM(a,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const a=()=>{this.write([{type:"close"}])};this.readyState==="open"?a():this.once("open",a)}write(a){this.writable=!1,aM(a,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const a=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=V_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(a,i)}}let Y_=!1;try{Y_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const bM=Y_;function vM(){}class _M extends yM{constructor(a){if(super(a),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&a.hostname!==location.hostname||s!==a.port}}doWrite(a,i){const s=this.request({method:"POST",data:a});s.on("success",i),s.on("error",(u,f)=>{this.onError("xhr post error",u,f)})}doPoll(){const a=this.request();a.on("data",this.onData.bind(this)),a.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=a}}class Kn extends _t{constructor(a,i,s){super(),this.createRequest=a,Mu(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var a;const i=F_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(a=this._opts.cookieJar)===null||a===void 0||a.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Kn.requestsCount++,Kn.requests[this._index]=this)}_onError(a){this.emitReserved("error",a,this._xhr),this._cleanup(!0)}_cleanup(a){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=vM,a)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Kn.requests[this._index],this._xhr=null}}_onLoad(){const a=this._xhr.responseText;a!==null&&(this.emitReserved("data",a),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Kn.requestsCount=0;Kn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Hv);else if(typeof addEventListener=="function"){const n="onpagehide"in Tn?"pagehide":"unload";addEventListener(n,Hv,!1)}}function Hv(){for(let n in Kn.requests)Kn.requests.hasOwnProperty(n)&&Kn.requests[n].abort()}const EM=(function(){const n=P_({xdomain:!1});return n&&n.responseType!==null})();class SM extends _M{constructor(a){super(a);const i=a&&a.forceBase64;this.supportsBinary=EM&&!i}request(a={}){return Object.assign(a,{xd:this.xd},this.opts),new Kn(P_,this.uri(),a)}}function P_(n){const a=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!a||bM))return new XMLHttpRequest}catch{}if(!a)try{return new Tn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const X_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class TM extends cm{get name(){return"websocket"}doOpen(){const a=this.uri(),i=this.opts.protocols,s=X_?{}:F_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(a,i,s)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=a=>this.onClose({description:"websocket connection closed",context:a}),this.ws.onmessage=a=>this.onData(a.data),this.ws.onerror=a=>this.onError("websocket error",a)}write(a){this.writable=!1;for(let i=0;i<a.length;i++){const s=a[i],u=i===a.length-1;om(s,this.supportsBinary,f=>{try{this.doWrite(s,f)}catch{}u&&Nu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const a=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=V_()),this.supportsBinary||(i.b64=1),this.createUri(a,i)}}const $d=Tn.WebSocket||Tn.MozWebSocket;class AM extends TM{createSocket(a,i,s){return X_?new $d(a,i,s):i?new $d(a,i):new $d(a)}doWrite(a,i){this.ws.send(i)}}class OM extends cm{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(a){return this.emitReserved("error",a)}this._transport.closed.then(()=>{this.onClose()}).catch(a=>{this.onError("webtransport error",a)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(a=>{const i=lM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=a.readable.pipeThrough(i).getReader(),u=iM();u.readable.pipeTo(a.writable),this._writer=u.writable.getWriter();const f=()=>{s.read().then(({done:h,value:m})=>{h||(this.onPacket(m),f())}).catch(h=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(a){this.writable=!1;for(let i=0;i<a.length;i++){const s=a[i],u=i===a.length-1;this._writer.write(s).then(()=>{u&&Nu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var a;(a=this._transport)===null||a===void 0||a.close()}}const xM={websocket:AM,webtransport:OM,polling:SM},CM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,RM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Sh(n){if(n.length>8e3)throw"URI too long";const a=n,i=n.indexOf("["),s=n.indexOf("]");i!=-1&&s!=-1&&(n=n.substring(0,i)+n.substring(i,s).replace(/:/g,";")+n.substring(s,n.length));let u=CM.exec(n||""),f={},d=14;for(;d--;)f[RM[d]]=u[d]||"";return i!=-1&&s!=-1&&(f.source=a,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=wM(f,f.path),f.queryKey=NM(f,f.query),f}function wM(n,a){const i=/\/{2,9}/g,s=a.replace(i,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&s.splice(0,1),a.slice(-1)=="/"&&s.splice(s.length-1,1),s}function NM(n,a){const i={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,f){u&&(i[u]=f)}),i}const Th=typeof addEventListener=="function"&&typeof removeEventListener=="function",nu=[];Th&&addEventListener("offline",()=>{nu.forEach(n=>n())},!1);class sr extends _t{constructor(a,i){if(super(),this.binaryType=oM,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,a&&typeof a=="object"&&(i=a,a=null),a){const s=Sh(a);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=Sh(i.host).host);Mu(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(s=>{const u=s.prototype.name;this.transports.push(u),this._transportsByName[u]=s}),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=pM(this.opts.query)),Th&&(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"})},nu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(a){const i=Object.assign({},this.opts.query);i.EIO=q_,i.transport=a,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[a]);return new this._transportsByName[a](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const a=this.opts.rememberUpgrade&&sr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(a);i.open(),this.setTransport(i)}setTransport(a){this.transport&&this.transport.removeAllListeners(),this.transport=a,a.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",sr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",a),this.emitReserved("heartbeat"),a.type){case"open":this.onHandshake(JSON.parse(a.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=a.data,this._onError(i);break;case"message":this.emitReserved("data",a.data),this.emitReserved("message",a.data);break}}onHandshake(a){this.emitReserved("handshake",a),this.id=a.sid,this.transport.query.sid=a.sid,this._pingInterval=a.pingInterval,this._pingTimeout=a.pingTimeout,this._maxPayload=a.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const a=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+a,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},a),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const a=this._getWritablePackets();this.transport.send(a),this._prevBufferLen=a.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=dM(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const a=Date.now()>this._pingTimeoutTime;return a&&(this._pingTimeoutTime=0,Nu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),a}write(a,i,s){return this._sendPacket("message",a,i,s),this}send(a,i,s){return this._sendPacket("message",a,i,s),this}_sendPacket(a,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const f={type:a,data:i,options:s};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),u&&this.once("flush",u),this.flush()}close(){const a=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),a()},s=()=>{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?s():a()}):this.upgrading?s():a()),this}_onError(a){if(sr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",a),this._onClose("transport error",a)}_onClose(a,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(),Th&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=nu.indexOf(this._offlineEventListener);s!==-1&&nu.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",a,i),this.writeBuffer=[],this._prevBufferLen=0}}}sr.protocol=q_;class MM extends sr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let a=0;a<this._upgrades.length;a++)this._probe(this._upgrades[a])}_probe(a){let i=this.createTransport(a),s=!1;sr.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;sr.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const A=new Error("probe error");A.transport=i.name,this.emitReserved("upgradeError",A)}}))};function f(){s||(s=!0,b(),i.close(),i=null)}const d=_=>{const A=new Error("probe error: "+_);A.transport=i.name,f(),this.emitReserved("upgradeError",A)};function h(){d("transport closed")}function m(){d("socket closed")}function g(_){i&&_.name!==i.name&&f()}const b=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",h),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",d),i.once("close",h),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&a!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(a){this._upgrades=this._filterUpgrades(a.upgrades),super.onHandshake(a)}_filterUpgrades(a){const i=[];for(let s=0;s<a.length;s++)~this.transports.indexOf(a[s])&&i.push(a[s]);return i}}let DM=class extends MM{constructor(a,i={}){const s=typeof a=="object"?a:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>xM[u]).filter(u=>!!u)),super(a,s)}};function LM(n,a="",i){let s=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),s=Sh(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const f=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+f+":"+s.port+a,s.href=s.protocol+"://"+f+(i&&i.port===s.port?"":":"+s.port),s}const BM=typeof ArrayBuffer=="function",UM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Z_=Object.prototype.toString,jM=typeof Blob=="function"||typeof Blob<"u"&&Z_.call(Blob)==="[object BlobConstructor]",HM=typeof File=="function"||typeof File<"u"&&Z_.call(File)==="[object FileConstructor]";function fm(n){return BM&&(n instanceof ArrayBuffer||UM(n))||jM&&n instanceof Blob||HM&&n instanceof File}function au(n,a){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)if(au(n[i]))return!0;return!1}if(fm(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return au(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&au(n[i]))return!0;return!1}function IM(n){const a=[],i=n.data,s=n;return s.data=Ah(i,a),s.attachments=a.length,{packet:s,buffers:a}}function Ah(n,a){if(!n)return n;if(fm(n)){const i={_placeholder:!0,num:a.length};return a.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let s=0;s<n.length;s++)i[s]=Ah(n[s],a);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=Ah(n[s],a));return i}return n}function zM(n,a){return n.data=Oh(n.data,a),delete n.attachments,n}function Oh(n,a){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<a.length)return a[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=Oh(n[i],a);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Oh(n[i],a));return n}const GM=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],kM=5;var De;(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"})(De||(De={}));class qM{constructor(a){this.replacer=a}encode(a){return(a.type===De.EVENT||a.type===De.ACK)&&au(a)?this.encodeAsBinary({type:a.type===De.EVENT?De.BINARY_EVENT:De.BINARY_ACK,nsp:a.nsp,data:a.data,id:a.id}):[this.encodeAsString(a)]}encodeAsString(a){let i=""+a.type;return(a.type===De.BINARY_EVENT||a.type===De.BINARY_ACK)&&(i+=a.attachments+"-"),a.nsp&&a.nsp!=="/"&&(i+=a.nsp+","),a.id!=null&&(i+=a.id),a.data!=null&&(i+=JSON.stringify(a.data,this.replacer)),i}encodeAsBinary(a){const i=IM(a),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function Iv(n){return Object.prototype.toString.call(n)==="[object Object]"}class dm extends _t{constructor(a){super(),this.reviver=a}add(a){let i;if(typeof a=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(a);const s=i.type===De.BINARY_EVENT;s||i.type===De.BINARY_ACK?(i.type=s?De.EVENT:De.ACK,this.reconstructor=new FM(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(fm(a)||a.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(a),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: "+a)}decodeString(a){let i=0;const s={type:Number(a.charAt(0))};if(De[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===De.BINARY_EVENT||s.type===De.BINARY_ACK){const f=i+1;for(;a.charAt(++i)!=="-"&&i!=a.length;);const d=a.substring(f,i);if(d!=Number(d)||a.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(a.charAt(i+1)==="/"){const f=i+1;for(;++i&&!(a.charAt(i)===","||i===a.length););s.nsp=a.substring(f,i)}else s.nsp="/";const u=a.charAt(i+1);if(u!==""&&Number(u)==u){const f=i+1;for(;++i;){const d=a.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===a.length)break}s.id=Number(a.substring(f,i+1))}if(a.charAt(++i)){const f=this.tryParse(a.substr(i));if(dm.isPayloadValid(s.type,f))s.data=f;else throw new Error("invalid payload")}return s}tryParse(a){try{return JSON.parse(a,this.reviver)}catch{return!1}}static isPayloadValid(a,i){switch(a){case De.CONNECT:return Iv(i);case De.DISCONNECT:return i===void 0;case De.CONNECT_ERROR:return typeof i=="string"||Iv(i);case De.EVENT:case De.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&GM.indexOf(i[0])===-1);case De.ACK:case De.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class FM{constructor(a){this.packet=a,this.buffers=[],this.reconPack=a}takeBinaryData(a){if(this.buffers.push(a),this.buffers.length===this.reconPack.attachments){const i=zM(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const VM=Object.freeze(Object.defineProperty({__proto__:null,Decoder:dm,Encoder:qM,get PacketType(){return De},protocol:kM},Symbol.toStringTag,{value:"Module"}));function In(n,a,i){return n.on(a,i),function(){n.off(a,i)}}const YM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Q_ extends _t{constructor(a,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=a,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const a=this.io;this.subs=[In(a,"open",this.onopen.bind(this)),In(a,"packet",this.onpacket.bind(this)),In(a,"error",this.onerror.bind(this)),In(a,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...a){return a.unshift("message"),this.emit.apply(this,a),this}emit(a,...i){var s,u,f;if(YM.hasOwnProperty(a))throw new Error('"'+a.toString()+'" is a reserved event name');if(i.unshift(a),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:De.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const b=this.ids++,_=i.pop();this._registerAckCallback(b,_),d.id=b}const h=(u=(s=this.io.engine)===null||s===void 0?void 0:s.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&&!h||(m?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(a,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[a]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[a];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===a&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},u),d=(...h)=>{this.io.clearTimeoutFn(f),i.apply(this,h)};d.withError=!0,this.acks[a]=d}emitWithAck(a,...i){return new Promise((s,u)=>{const f=(d,h)=>d?u(d):s(h);f.withError=!0,i.push(f),this.emit(a,...i)})}_addToQueue(a){let i;typeof a[a.length-1]=="function"&&(i=a.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:a,flags:Object.assign({fromQueue:!0},this.flags)};a.push((u,...f)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...f)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(a=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!a||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(a){a.nsp=this.nsp,this.io._packet(a)}onopen(){typeof this.auth=="function"?this.auth(a=>{this._sendConnectPacket(a)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(a){this.packet({type:De.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},a):a})}onerror(a){this.connected||this.emitReserved("connect_error",a)}onclose(a,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",a,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(a=>{if(!this.sendBuffer.some(s=>String(s.id)===a)){const s=this.acks[a];delete this.acks[a],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(a){if(a.nsp===this.nsp)switch(a.type){case De.CONNECT:a.data&&a.data.sid?this.onconnect(a.data.sid,a.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case De.EVENT:case De.BINARY_EVENT:this.onevent(a);break;case De.ACK:case De.BINARY_ACK:this.onack(a);break;case De.DISCONNECT:this.ondisconnect();break;case De.CONNECT_ERROR:this.destroy();const s=new Error(a.data.message);s.data=a.data.data,this.emitReserved("connect_error",s);break}}onevent(a){const i=a.data||[];a.id!=null&&i.push(this.ack(a.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(a){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,a)}super.emit.apply(this,a),this._pid&&a.length&&typeof a[a.length-1]=="string"&&(this._lastOffset=a[a.length-1])}ack(a){const i=this;let s=!1;return function(...u){s||(s=!0,i.packet({type:De.ACK,id:a,data:u}))}}onack(a){const i=this.acks[a.id];typeof i=="function"&&(delete this.acks[a.id],i.withError&&a.data.unshift(null),i.apply(this,a.data))}onconnect(a,i){this.id=a,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(a=>this.emitEvent(a)),this.receiveBuffer=[],this.sendBuffer.forEach(a=>{this.notifyOutgoingListeners(a),this.packet(a)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(a=>a()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:De.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(a){return this.flags.compress=a,this}get volatile(){return this.flags.volatile=!0,this}timeout(a){return this.flags.timeout=a,this}onAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(a),this}prependAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(a),this}offAny(a){if(!this._anyListeners)return this;if(a){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(a===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(a),this}prependAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(a),this}offAnyOutgoing(a){if(!this._anyOutgoingListeners)return this;if(a){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(a===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(a){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,a.data)}}}function zi(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}zi.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),i=Math.floor(a*this.jitter*n);n=(Math.floor(a*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};zi.prototype.reset=function(){this.attempts=0};zi.prototype.setMin=function(n){this.ms=n};zi.prototype.setMax=function(n){this.max=n};zi.prototype.setJitter=function(n){this.jitter=n};class xh extends _t{constructor(a,i){var s;super(),this.nsps={},this.subs=[],a&&typeof a=="object"&&(i=a,a=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Mu(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((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new zi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=a;const u=i.parser||VM;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(a){return arguments.length?(this._reconnection=!!a,a||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(a){return a===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=a,this)}reconnectionDelay(a){var i;return a===void 0?this._reconnectionDelay:(this._reconnectionDelay=a,(i=this.backoff)===null||i===void 0||i.setMin(a),this)}randomizationFactor(a){var i;return a===void 0?this._randomizationFactor:(this._randomizationFactor=a,(i=this.backoff)===null||i===void 0||i.setJitter(a),this)}reconnectionDelayMax(a){var i;return a===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=a,(i=this.backoff)===null||i===void 0||i.setMax(a),this)}timeout(a){return arguments.length?(this._timeout=a,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(a){if(~this._readyState.indexOf("open"))return this;this.engine=new DM(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=In(i,"open",function(){s.onopen(),a&&a()}),f=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),a?a(h):this.maybeReconnectOnOpen()},d=In(i,"error",f);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{u(),f(new Error("timeout")),i.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(d),this}connect(a){return this.open(a)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const a=this.engine;this.subs.push(In(a,"ping",this.onping.bind(this)),In(a,"data",this.ondata.bind(this)),In(a,"error",this.onerror.bind(this)),In(a,"close",this.onclose.bind(this)),In(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(a){try{this.decoder.add(a)}catch(i){this.onclose("parse error",i)}}ondecoded(a){Nu(()=>{this.emitReserved("packet",a)},this.setTimeoutFn)}onerror(a){this.emitReserved("error",a)}socket(a,i){let s=this.nsps[a];return s?this._autoConnect&&!s.active&&s.connect():(s=new Q_(this,a,i),this.nsps[a]=s),s}_destroy(a){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(a){const i=this.encoder.encode(a);for(let s=0;s<i.length;s++)this.engine.write(i[s],a.options)}cleanup(){this.subs.forEach(a=>a()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(a,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",a,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const a=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{a.skipReconnect||(this.emitReserved("reconnect_attempt",a.backoff.attempts),!a.skipReconnect&&a.open(u=>{u?(a._reconnecting=!1,a.reconnect(),this.emitReserved("reconnect_error",u)):a.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const a=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",a)}}const Xl={};function ru(n,a){typeof n=="object"&&(a=n,n=void 0),a=a||{};const i=LM(n,a.path||"/socket.io"),s=i.source,u=i.id,f=i.path,d=Xl[u]&&f in Xl[u].nsps,h=a.forceNew||a["force new connection"]||a.multiplex===!1||d;let m;return h?m=new xh(s,a):(Xl[u]||(Xl[u]=new xh(s,a)),m=Xl[u]),i.query&&!a.query&&(a.query=i.queryKey),m.socket(i.path,a)}Object.assign(ru,{Manager:xh,Socket:Q_,io:ru,connect:ru});const PM=[Se.ActionTypes.MESSAGE_TO_GUEST,Se.ActionTypes.EVENT_TO_GUEST,Se.ActionTypes.TYPING_ON,Se.ActionTypes.TYPING_OFF,Se.ActionTypes.RESTART_CHAT_REQUEST,...Zx,...kO,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],XM=({dispatch:n,getState:a})=>i=>{let s=null;return u=>{const f=i(u);if(u.type===Kh){s?.disconnect(),n($x());const d=`/chat?${_u.stringify(u.querystrings)}`;s=ru(`/${u.clientName}${d}`),s.on("action",n),s.on("connect",()=>n(Wx())),s.on("disconnect",()=>n(Jx())),s.on("reconnect",()=>n(eC())),s.on("set-translations",(h,m)=>{n(q8({language:h,messages:j8(h,m)}))}),s.on("set-settings",h=>{n(Y8(h))}),s.on("enable-conversation-rating",h=>n(PO(h))),s.on("speech-transcription",h=>n(FO(h))),s.on("restore-client-state",h=>{n(Kx(h.sessionId)),n(ZO(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{n({type:M1,devices:h,initial:m})}),s.on("restart-chat",()=>{n(rs())}),s.on("login-success",h=>{n(Gx({loginToken:h.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===Ou)s?.emit("start-chat",u.payload);else if(u.type===xu)s?.emit("terminate-session",u.payload);else if(u.type===GO)s?.emit("get-started",JSON.stringify(u));else if(u.type===zh)s?.emit("audio-message",u.buffer);else if(u.type===Se.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===L1){const{connection:{sessionId:d}}=a();window.location.href=`/transcript-pdf/${d}`}else PM.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return f}},K_=Yh(),ZM={...Q8(K_),intl:M_},Ch=xx({middleware:n=>n().concat(XM),reducer:X8,preloadedState:ZM});Ch.subscribe(R8(()=>{const n=Ch.getState();K8(K_,{connection:n.connection,startScreen:n.startScreen})},1e3));const QM=document.getElementById("root"),KM=mS.createRoot(QM);KM.render(y.jsx(hT,{store:Ch,children:y.jsx(O8,{})}));
|
|
125
|
+
//# sourceMappingURL=index-DxcduRBk.js.map
|