@botfabrik/engine-webclient 4.58.3 → 4.58.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,111 +0,0 @@
1
- var Xv=Object.defineProperty;var Qv=(e,t,n)=>t in e?Xv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var W=(e,t,n)=>(Qv(e,typeof t!="symbol"?t+"":t,n),n);function Yv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ku(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ap={exports:{}},ws={},lp={exports:{}},B={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its 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 Ui=Symbol.for("react.element"),Kv=Symbol.for("react.portal"),Zv=Symbol.for("react.fragment"),Jv=Symbol.for("react.strict_mode"),e0=Symbol.for("react.profiler"),t0=Symbol.for("react.provider"),n0=Symbol.for("react.context"),r0=Symbol.for("react.forward_ref"),i0=Symbol.for("react.suspense"),o0=Symbol.for("react.memo"),s0=Symbol.for("react.lazy"),Sf=Symbol.iterator;function a0(e){return e===null||typeof e!="object"?null:(e=Sf&&e[Sf]||e["@@iterator"],typeof e=="function"?e:null)}var up={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cp=Object.assign,fp={};function Mr(e,t,n){this.props=e,this.context=t,this.refs=fp,this.updater=n||up}Mr.prototype.isReactComponent={};Mr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dp(){}dp.prototype=Mr.prototype;function Ou(e,t,n){this.props=e,this.context=t,this.refs=fp,this.updater=n||up}var Ru=Ou.prototype=new dp;Ru.constructor=Ou;cp(Ru,Mr.prototype);Ru.isPureReactComponent=!0;var wf=Array.isArray,hp=Object.prototype.hasOwnProperty,Nu={current:null},pp={key:!0,ref:!0,__self:!0,__source:!0};function mp(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)hp.call(t,r)&&!pp.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Ui,type:e,key:o,ref:s,props:i,_owner:Nu.current}}function l0(e,t){return{$$typeof:Ui,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Au(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ui}function u0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xf=/\/+/g;function ua(e,t){return typeof e=="object"&&e!==null&&e.key!=null?u0(""+e.key):t.toString(36)}function To(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ui:case Kv:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+ua(s,0):r,wf(i)?(n="",e!=null&&(n=e.replace(xf,"$&/")+"/"),To(i,t,n,"",function(u){return u})):i!=null&&(Au(i)&&(i=l0(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(xf,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",wf(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+ua(o,a);s+=To(o,t,n,l,i)}else if(l=a0(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+ua(o,a++),s+=To(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Qi(e,t,n){if(e==null)return e;var r=[],i=0;return To(e,r,"","",function(o){return t.call(n,o,i++)}),r}function c0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Me={current:null},Co={transition:null},f0={ReactCurrentDispatcher:Me,ReactCurrentBatchConfig:Co,ReactCurrentOwner:Nu};B.Children={map:Qi,forEach:function(e,t,n){Qi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Qi(e,function(){t++}),t},toArray:function(e){return Qi(e,function(t){return t})||[]},only:function(e){if(!Au(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=Mr;B.Fragment=Zv;B.Profiler=e0;B.PureComponent=Ou;B.StrictMode=Jv;B.Suspense=i0;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f0;B.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=cp({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Nu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)hp.call(t,l)&&!pp.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ui,type:e.type,key:i,ref:o,props:r,_owner:s}};B.createContext=function(e){return e={$$typeof:n0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:t0,_context:e},e.Consumer=e};B.createElement=mp;B.createFactory=function(e){var t=mp.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:r0,render:e}};B.isValidElement=Au;B.lazy=function(e){return{$$typeof:s0,_payload:{_status:-1,_result:e},_init:c0}};B.memo=function(e,t){return{$$typeof:o0,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=Co.transition;Co.transition={};try{e()}finally{Co.transition=t}};B.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};B.useCallback=function(e,t){return Me.current.useCallback(e,t)};B.useContext=function(e){return Me.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return Me.current.useDeferredValue(e)};B.useEffect=function(e,t){return Me.current.useEffect(e,t)};B.useId=function(){return Me.current.useId()};B.useImperativeHandle=function(e,t,n){return Me.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return Me.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return Me.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return Me.current.useMemo(e,t)};B.useReducer=function(e,t,n){return Me.current.useReducer(e,t,n)};B.useRef=function(e){return Me.current.useRef(e)};B.useState=function(e){return Me.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return Me.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return Me.current.useTransition()};B.version="18.2.0";lp.exports=B;var A=lp.exports;const St=ku(A),bf=Yv({__proto__:null,default:St},[A]);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its 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 d0=A,h0=Symbol.for("react.element"),p0=Symbol.for("react.fragment"),m0=Object.prototype.hasOwnProperty,g0=d0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y0={key:!0,ref:!0,__self:!0,__source:!0};function gp(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)m0.call(t,r)&&!y0.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:h0,type:e,key:o,ref:s,props:i,_owner:g0.current}}ws.Fragment=p0;ws.jsx=gp;ws.jsxs=gp;ap.exports=ws;var _=ap.exports,yp={exports:{}},Je={},vp={exports:{}},_p={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its 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
- */(function(e){function t(k,D){var M=k.length;k.push(D);e:for(;0<M;){var K=M-1>>>1,ae=k[K];if(0<i(ae,D))k[K]=D,k[M]=ae,M=K;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var D=k[0],M=k.pop();if(M!==D){k[0]=M;e:for(var K=0,ae=k.length,kt=ae>>>1;K<kt;){var Ot=2*(K+1)-1,Nn=k[Ot],ht=Ot+1,An=k[ht];if(0>i(Nn,M))ht<ae&&0>i(An,Nn)?(k[K]=An,k[ht]=M,K=ht):(k[K]=Nn,k[Ot]=M,K=Ot);else if(ht<ae&&0>i(An,M))k[K]=An,k[ht]=M,K=ht;else break e}}return D}function i(k,D){var M=k.sortIndex-D.sortIndex;return M!==0?M:k.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,m=null,g=3,f=!1,p=!1,y=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(k){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=k)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function S(k){if(y=!1,v(k),!p)if(n(l)!==null)p=!0,We(w);else{var D=n(u);D!==null&&Rn(S,D.startTime-k)}}function w(k,D){p=!1,y&&(y=!1,h(C),C=-1),f=!0;var M=g;try{for(v(D),m=n(l);m!==null&&(!(m.expirationTime>D)||k&&!re());){var K=m.callback;if(typeof K=="function"){m.callback=null,g=m.priorityLevel;var ae=K(m.expirationTime<=D);D=e.unstable_now(),typeof ae=="function"?m.callback=ae:m===n(l)&&r(l),v(D)}else r(l);m=n(l)}if(m!==null)var kt=!0;else{var Ot=n(u);Ot!==null&&Rn(S,Ot.startTime-D),kt=!1}return kt}finally{m=null,g=M,f=!1}}var x=!1,b=null,C=-1,F=5,P=-1;function re(){return!(e.unstable_now()-P<F)}function pe(){if(b!==null){var k=e.unstable_now();P=k;var D=!0;try{D=b(!0,k)}finally{D?Ee():(x=!1,b=null)}}else x=!1}var Ee;if(typeof d=="function")Ee=function(){d(pe)};else if(typeof MessageChannel<"u"){var On=new MessageChannel,Ve=On.port2;On.port1.onmessage=pe,Ee=function(){Ve.postMessage(null)}}else Ee=function(){E(pe,0)};function We(k){b=k,x||(x=!0,Ee())}function Rn(k,D){C=E(function(){k(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){p||f||(p=!0,We(w))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(g){case 1:case 2:case 3:var D=3;break;default:D=g}var M=g;g=D;try{return k()}finally{g=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,D){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var M=g;g=k;try{return D()}finally{g=M}},e.unstable_scheduleCallback=function(k,D,M){var K=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?K+M:K):M=K,k){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=M+ae,k={id:c++,callback:D,priorityLevel:k,startTime:M,expirationTime:ae,sortIndex:-1},M>K?(k.sortIndex=M,t(u,k),n(l)===null&&k===n(u)&&(y?(h(C),C=-1):y=!0,Rn(S,M-K))):(k.sortIndex=ae,t(l,k),p||f||(p=!0,We(w))),k},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(k){var D=g;return function(){var M=g;g=D;try{return k.apply(this,arguments)}finally{g=M}}}})(_p);vp.exports=_p;var v0=vp.exports;/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its 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 Ep=A,Ye=v0;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var Sp=new Set,yi={};function Zn(e,t){Tr(e,t),Tr(e+"Capture",t)}function Tr(e,t){for(yi[e]=t,e=0;e<t.length;e++)Sp.add(t[e])}var Qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nl=Object.prototype.hasOwnProperty,_0=/^[: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]*$/,Tf={},Cf={};function E0(e){return nl.call(Cf,e)?!0:nl.call(Tf,e)?!1:_0.test(e)?Cf[e]=!0:(Tf[e]=!0,!1)}function S0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function w0(e,t,n,r){if(t===null||typeof t>"u"||S0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fe(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ce[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pu=/[\-:]([a-z])/g;function Iu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Pu,Iu);Ce[t]=new Fe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Pu,Iu);Ce[t]=new Fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Pu,Iu);Ce[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Du(e,t,n,r){var i=Ce.hasOwnProperty(t)?Ce[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(w0(t,n,i,r)&&(n=null),r||i===null?E0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var en=Ep.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yi=Symbol.for("react.element"),ar=Symbol.for("react.portal"),lr=Symbol.for("react.fragment"),Mu=Symbol.for("react.strict_mode"),rl=Symbol.for("react.profiler"),wp=Symbol.for("react.provider"),xp=Symbol.for("react.context"),Fu=Symbol.for("react.forward_ref"),il=Symbol.for("react.suspense"),ol=Symbol.for("react.suspense_list"),Lu=Symbol.for("react.memo"),on=Symbol.for("react.lazy"),bp=Symbol.for("react.offscreen"),kf=Symbol.iterator;function Ur(e){return e===null||typeof e!="object"?null:(e=kf&&e[kf]||e["@@iterator"],typeof e=="function"?e:null)}var se=Object.assign,ca;function ti(e){if(ca===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ca=t&&t[1]||""}return`
34
- `+ca+e}var fa=!1;function da(e,t){if(!e||fa)return"";fa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
- `),o=r.stack.split(`
36
- `),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
37
- `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{fa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ti(e):""}function x0(e){switch(e.tag){case 5:return ti(e.type);case 16:return ti("Lazy");case 13:return ti("Suspense");case 19:return ti("SuspenseList");case 0:case 2:case 15:return e=da(e.type,!1),e;case 11:return e=da(e.type.render,!1),e;case 1:return e=da(e.type,!0),e;default:return""}}function sl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case lr:return"Fragment";case ar:return"Portal";case rl:return"Profiler";case Mu:return"StrictMode";case il:return"Suspense";case ol:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xp:return(e.displayName||"Context")+".Consumer";case wp:return(e._context.displayName||"Context")+".Provider";case Fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lu:return t=e.displayName||null,t!==null?t:sl(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return sl(e(t))}catch{}}return null}function b0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sl(t);case 8:return t===Mu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function En(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function T0(e){var t=Tp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ki(e){e._valueTracker||(e._valueTracker=T0(e))}function Cp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Tp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Go(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function al(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Of(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=En(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function kp(e,t){t=t.checked,t!=null&&Du(e,"checked",t,!1)}function ll(e,t){kp(e,t);var n=En(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ul(e,t.type,n):t.hasOwnProperty("defaultValue")&&ul(e,t.type,En(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ul(e,t,n){(t!=="number"||Go(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ni=Array.isArray;function _r(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+En(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function cl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Nf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(ni(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:En(n)}}function Op(e,t){var n=En(t.value),r=En(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Af(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Rp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Rp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zi,Np=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zi=Zi||document.createElement("div"),Zi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var li={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},C0=["Webkit","ms","Moz","O"];Object.keys(li).forEach(function(e){C0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),li[t]=li[e]})});function Ap(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||li.hasOwnProperty(e)&&li[e]?(""+t).trim():t+"px"}function Pp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ap(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var k0=se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dl(e,t){if(t){if(k0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function hl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 pl=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,Er=null,Sr=null;function Pf(e){if(e=$i(e)){if(typeof ml!="function")throw Error(T(280));var t=e.stateNode;t&&(t=ks(t),ml(e.stateNode,e.type,t))}}function Ip(e){Er?Sr?Sr.push(e):Sr=[e]:Er=e}function Dp(){if(Er){var e=Er,t=Sr;if(Sr=Er=null,Pf(e),t)for(e=0;e<t.length;e++)Pf(t[e])}}function Mp(e,t){return e(t)}function Fp(){}var ha=!1;function Lp(e,t,n){if(ha)return e(t,n);ha=!0;try{return Mp(e,t,n)}finally{ha=!1,(Er!==null||Sr!==null)&&(Fp(),Dp())}}function _i(e,t){var n=e.stateNode;if(n===null)return null;var r=ks(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var gl=!1;if(Qt)try{var zr={};Object.defineProperty(zr,"passive",{get:function(){gl=!0}}),window.addEventListener("test",zr,zr),window.removeEventListener("test",zr,zr)}catch{gl=!1}function O0(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ui=!1,Vo=null,Wo=!1,yl=null,R0={onError:function(e){ui=!0,Vo=e}};function N0(e,t,n,r,i,o,s,a,l){ui=!1,Vo=null,O0.apply(R0,arguments)}function A0(e,t,n,r,i,o,s,a,l){if(N0.apply(this,arguments),ui){if(ui){var u=Vo;ui=!1,Vo=null}else throw Error(T(198));Wo||(Wo=!0,yl=u)}}function Jn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Bp(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 If(e){if(Jn(e)!==e)throw Error(T(188))}function P0(e){var t=e.alternate;if(!t){if(t=Jn(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return If(i),e;if(o===r)return If(i),t;o=o.sibling}throw Error(T(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function jp(e){return e=P0(e),e!==null?Up(e):null}function Up(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Up(e);if(t!==null)return t;e=e.sibling}return null}var zp=Ye.unstable_scheduleCallback,Df=Ye.unstable_cancelCallback,I0=Ye.unstable_shouldYield,D0=Ye.unstable_requestPaint,ce=Ye.unstable_now,M0=Ye.unstable_getCurrentPriorityLevel,ju=Ye.unstable_ImmediatePriority,Hp=Ye.unstable_UserBlockingPriority,qo=Ye.unstable_NormalPriority,F0=Ye.unstable_LowPriority,$p=Ye.unstable_IdlePriority,xs=null,Ft=null;function L0(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(xs,e,void 0,(e.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:U0,B0=Math.log,j0=Math.LN2;function U0(e){return e>>>=0,e===0?32:31-(B0(e)/j0|0)|0}var Ji=64,eo=4194304;function ri(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=ri(a):(o&=s,o!==0&&(r=ri(o)))}else s=n&~i,s!==0?r=ri(s):o!==0&&(r=ri(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-wt(t),i=1<<n,r|=e[n],t&=~i;return r}function z0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function H0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-wt(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=z0(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function vl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Gp(){var e=Ji;return Ji<<=1,!(Ji&4194240)&&(Ji=64),e}function pa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function $0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-wt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Uu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var X=0;function Vp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Wp,zu,qp,Xp,Qp,_l=!1,to=[],fn=null,dn=null,hn=null,Ei=new Map,Si=new Map,an=[],G0="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 submit".split(" ");function Mf(e,t){switch(e){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":hn=null;break;case"pointerover":case"pointerout":Ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Si.delete(t.pointerId)}}function Hr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=$i(t),t!==null&&zu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function V0(e,t,n,r,i){switch(t){case"focusin":return fn=Hr(fn,e,t,n,r,i),!0;case"dragenter":return dn=Hr(dn,e,t,n,r,i),!0;case"mouseover":return hn=Hr(hn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ei.set(o,Hr(Ei.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Si.set(o,Hr(Si.get(o)||null,e,t,n,r,i)),!0}return!1}function Yp(e){var t=jn(e.target);if(t!==null){var n=Jn(t);if(n!==null){if(t=n.tag,t===13){if(t=Bp(n),t!==null){e.blockedOn=t,Qp(e.priority,function(){qp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ko(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=El(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);pl=r,n.target.dispatchEvent(r),pl=null}else return t=$i(n),t!==null&&zu(t),e.blockedOn=n,!1;t.shift()}return!0}function Ff(e,t,n){ko(e)&&n.delete(t)}function W0(){_l=!1,fn!==null&&ko(fn)&&(fn=null),dn!==null&&ko(dn)&&(dn=null),hn!==null&&ko(hn)&&(hn=null),Ei.forEach(Ff),Si.forEach(Ff)}function $r(e,t){e.blockedOn===t&&(e.blockedOn=null,_l||(_l=!0,Ye.unstable_scheduleCallback(Ye.unstable_NormalPriority,W0)))}function wi(e){function t(i){return $r(i,e)}if(0<to.length){$r(to[0],e);for(var n=1;n<to.length;n++){var r=to[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fn!==null&&$r(fn,e),dn!==null&&$r(dn,e),hn!==null&&$r(hn,e),Ei.forEach(t),Si.forEach(t),n=0;n<an.length;n++)r=an[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<an.length&&(n=an[0],n.blockedOn===null);)Yp(n),n.blockedOn===null&&an.shift()}var wr=en.ReactCurrentBatchConfig,Qo=!0;function q0(e,t,n,r){var i=X,o=wr.transition;wr.transition=null;try{X=1,Hu(e,t,n,r)}finally{X=i,wr.transition=o}}function X0(e,t,n,r){var i=X,o=wr.transition;wr.transition=null;try{X=4,Hu(e,t,n,r)}finally{X=i,wr.transition=o}}function Hu(e,t,n,r){if(Qo){var i=El(e,t,n,r);if(i===null)ba(e,t,r,Yo,n),Mf(e,r);else if(V0(i,e,t,n,r))r.stopPropagation();else if(Mf(e,r),t&4&&-1<G0.indexOf(e)){for(;i!==null;){var o=$i(i);if(o!==null&&Wp(o),o=El(e,t,n,r),o===null&&ba(e,t,r,Yo,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ba(e,t,r,null,n)}}var Yo=null;function El(e,t,n,r){if(Yo=null,e=Bu(r),e=jn(e),e!==null)if(t=Jn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Bp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yo=e,null}function Kp(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(M0()){case ju:return 1;case Hp:return 4;case qo:case F0:return 16;case $p:return 536870912;default:return 16}default:return 16}}var un=null,$u=null,Oo=null;function Zp(){if(Oo)return Oo;var e,t=$u,n=t.length,r,i="value"in un?un.value:un.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Oo=i.slice(e,1<r?1-r:void 0)}function Ro(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 no(){return!0}function Lf(){return!1}function et(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?no:Lf,this.isPropagationStopped=Lf,this}return se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=no)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=no)},persist:function(){},isPersistent:no}),t}var Fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gu=et(Fr),Hi=se({},Fr,{view:0,detail:0}),Q0=et(Hi),ma,ga,Gr,bs=se({},Hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vu,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!==Gr&&(Gr&&e.type==="mousemove"?(ma=e.screenX-Gr.screenX,ga=e.screenY-Gr.screenY):ga=ma=0,Gr=e),ma)},movementY:function(e){return"movementY"in e?e.movementY:ga}}),Bf=et(bs),Y0=se({},bs,{dataTransfer:0}),K0=et(Y0),Z0=se({},Hi,{relatedTarget:0}),ya=et(Z0),J0=se({},Fr,{animationName:0,elapsedTime:0,pseudoElement:0}),e_=et(J0),t_=se({},Fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n_=et(t_),r_=se({},Fr,{data:0}),jf=et(r_),i_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o_={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"},s_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=s_[e])?!!t[e]:!1}function Vu(){return a_}var l_=se({},Hi,{key:function(e){if(e.key){var t=i_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ro(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?o_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vu,charCode:function(e){return e.type==="keypress"?Ro(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ro(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),u_=et(l_),c_=se({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uf=et(c_),f_=se({},Hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vu}),d_=et(f_),h_=se({},Fr,{propertyName:0,elapsedTime:0,pseudoElement:0}),p_=et(h_),m_=se({},bs,{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}),g_=et(m_),y_=[9,13,27,32],Wu=Qt&&"CompositionEvent"in window,ci=null;Qt&&"documentMode"in document&&(ci=document.documentMode);var v_=Qt&&"TextEvent"in window&&!ci,Jp=Qt&&(!Wu||ci&&8<ci&&11>=ci),zf=" ",Hf=!1;function em(e,t){switch(e){case"keyup":return y_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ur=!1;function __(e,t){switch(e){case"compositionend":return tm(t);case"keypress":return t.which!==32?null:(Hf=!0,zf);case"textInput":return e=t.data,e===zf&&Hf?null:e;default:return null}}function E_(e,t){if(ur)return e==="compositionend"||!Wu&&em(e,t)?(e=Zp(),Oo=$u=un=null,ur=!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 Jp&&t.locale!=="ko"?null:t.data;default:return null}}var S_={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 $f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!S_[e.type]:t==="textarea"}function nm(e,t,n,r){Ip(r),t=Ko(t,"onChange"),0<t.length&&(n=new Gu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fi=null,xi=null;function w_(e){hm(e,0)}function Ts(e){var t=dr(e);if(Cp(t))return e}function x_(e,t){if(e==="change")return t}var rm=!1;if(Qt){var va;if(Qt){var _a="oninput"in document;if(!_a){var Gf=document.createElement("div");Gf.setAttribute("oninput","return;"),_a=typeof Gf.oninput=="function"}va=_a}else va=!1;rm=va&&(!document.documentMode||9<document.documentMode)}function Vf(){fi&&(fi.detachEvent("onpropertychange",im),xi=fi=null)}function im(e){if(e.propertyName==="value"&&Ts(xi)){var t=[];nm(t,xi,e,Bu(e)),Lp(w_,t)}}function b_(e,t,n){e==="focusin"?(Vf(),fi=t,xi=n,fi.attachEvent("onpropertychange",im)):e==="focusout"&&Vf()}function T_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(xi)}function C_(e,t){if(e==="click")return Ts(t)}function k_(e,t){if(e==="input"||e==="change")return Ts(t)}function O_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:O_;function bi(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!nl.call(t,i)||!Tt(e[i],t[i]))return!1}return!0}function Wf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qf(e,t){var n=Wf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wf(n)}}function om(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?om(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sm(){for(var e=window,t=Go();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Go(e.document)}return t}function qu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function R_(e){var t=sm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&om(n.ownerDocument.documentElement,n)){if(r!==null&&qu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=qf(n,o);var s=qf(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var N_=Qt&&"documentMode"in document&&11>=document.documentMode,cr=null,Sl=null,di=null,wl=!1;function Xf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wl||cr==null||cr!==Go(r)||(r=cr,"selectionStart"in r&&qu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),di&&bi(di,r)||(di=r,r=Ko(Sl,"onSelect"),0<r.length&&(t=new Gu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=cr)))}function ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:ro("Animation","AnimationEnd"),animationiteration:ro("Animation","AnimationIteration"),animationstart:ro("Animation","AnimationStart"),transitionend:ro("Transition","TransitionEnd")},Ea={},am={};Qt&&(am=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);function Cs(e){if(Ea[e])return Ea[e];if(!fr[e])return e;var t=fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in am)return Ea[e]=t[n];return e}var lm=Cs("animationend"),um=Cs("animationiteration"),cm=Cs("animationstart"),fm=Cs("transitionend"),dm=new Map,Qf="abort auxClick 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(" ");function xn(e,t){dm.set(e,t),Zn(t,[e])}for(var Sa=0;Sa<Qf.length;Sa++){var wa=Qf[Sa],A_=wa.toLowerCase(),P_=wa[0].toUpperCase()+wa.slice(1);xn(A_,"on"+P_)}xn(lm,"onAnimationEnd");xn(um,"onAnimationIteration");xn(cm,"onAnimationStart");xn("dblclick","onDoubleClick");xn("focusin","onFocus");xn("focusout","onBlur");xn(fm,"onTransitionEnd");Tr("onMouseEnter",["mouseout","mouseover"]);Tr("onMouseLeave",["mouseout","mouseover"]);Tr("onPointerEnter",["pointerout","pointerover"]);Tr("onPointerLeave",["pointerout","pointerover"]);Zn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ii="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(" "),I_=new Set("cancel close invalid load scroll toggle".split(" ").concat(ii));function Yf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,A0(r,t,void 0,e),e.currentTarget=null}function hm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;Yf(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;Yf(i,a,u),o=l}}}if(Wo)throw e=yl,Wo=!1,yl=null,e}function Z(e,t){var n=t[kl];n===void 0&&(n=t[kl]=new Set);var r=e+"__bubble";n.has(r)||(pm(t,e,2,!1),n.add(r))}function xa(e,t,n){var r=0;t&&(r|=4),pm(n,e,r,t)}var io="_reactListening"+Math.random().toString(36).slice(2);function Ti(e){if(!e[io]){e[io]=!0,Sp.forEach(function(n){n!=="selectionchange"&&(I_.has(n)||xa(n,!1,e),xa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[io]||(t[io]=!0,xa("selectionchange",!1,t))}}function pm(e,t,n,r){switch(Kp(t)){case 1:var i=q0;break;case 4:i=X0;break;default:i=Hu}n=i.bind(null,t,n,e),i=void 0,!gl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ba(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=jn(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}Lp(function(){var u=o,c=Bu(n),m=[];e:{var g=dm.get(e);if(g!==void 0){var f=Gu,p=e;switch(e){case"keypress":if(Ro(n)===0)break e;case"keydown":case"keyup":f=u_;break;case"focusin":p="focus",f=ya;break;case"focusout":p="blur",f=ya;break;case"beforeblur":case"afterblur":f=ya;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=K0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=d_;break;case lm:case um:case cm:f=e_;break;case fm:f=p_;break;case"scroll":f=Q0;break;case"wheel":f=g_;break;case"copy":case"cut":case"paste":f=n_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Uf}var y=(t&4)!==0,E=!y&&e==="scroll",h=y?g!==null?g+"Capture":null:g;y=[];for(var d=u,v;d!==null;){v=d;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,h!==null&&(S=_i(d,h),S!=null&&y.push(Ci(d,S,v)))),E)break;d=d.return}0<y.length&&(g=new f(g,p,null,n,c),m.push({event:g,listeners:y}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",g&&n!==pl&&(p=n.relatedTarget||n.fromElement)&&(jn(p)||p[Yt]))break e;if((f||g)&&(g=c.window===c?c:(g=c.ownerDocument)?g.defaultView||g.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=u,p=p?jn(p):null,p!==null&&(E=Jn(p),p!==E||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=u),f!==p)){if(y=Bf,S="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(y=Uf,S="onPointerLeave",h="onPointerEnter",d="pointer"),E=f==null?g:dr(f),v=p==null?g:dr(p),g=new y(S,d+"leave",f,n,c),g.target=E,g.relatedTarget=v,S=null,jn(c)===u&&(y=new y(h,d+"enter",p,n,c),y.target=v,y.relatedTarget=E,S=y),E=S,f&&p)t:{for(y=f,h=p,d=0,v=y;v;v=nr(v))d++;for(v=0,S=h;S;S=nr(S))v++;for(;0<d-v;)y=nr(y),d--;for(;0<v-d;)h=nr(h),v--;for(;d--;){if(y===h||h!==null&&y===h.alternate)break t;y=nr(y),h=nr(h)}y=null}else y=null;f!==null&&Kf(m,g,f,y,!1),p!==null&&E!==null&&Kf(m,E,p,y,!0)}}e:{if(g=u?dr(u):window,f=g.nodeName&&g.nodeName.toLowerCase(),f==="select"||f==="input"&&g.type==="file")var w=x_;else if($f(g))if(rm)w=k_;else{w=T_;var x=b_}else(f=g.nodeName)&&f.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(w=C_);if(w&&(w=w(e,u))){nm(m,w,n,c);break e}x&&x(e,g,u),e==="focusout"&&(x=g._wrapperState)&&x.controlled&&g.type==="number"&&ul(g,"number",g.value)}switch(x=u?dr(u):window,e){case"focusin":($f(x)||x.contentEditable==="true")&&(cr=x,Sl=u,di=null);break;case"focusout":di=Sl=cr=null;break;case"mousedown":wl=!0;break;case"contextmenu":case"mouseup":case"dragend":wl=!1,Xf(m,n,c);break;case"selectionchange":if(N_)break;case"keydown":case"keyup":Xf(m,n,c)}var b;if(Wu)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else ur?em(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Jp&&n.locale!=="ko"&&(ur||C!=="onCompositionStart"?C==="onCompositionEnd"&&ur&&(b=Zp()):(un=c,$u="value"in un?un.value:un.textContent,ur=!0)),x=Ko(u,C),0<x.length&&(C=new jf(C,e,null,n,c),m.push({event:C,listeners:x}),b?C.data=b:(b=tm(n),b!==null&&(C.data=b)))),(b=v_?__(e,n):E_(e,n))&&(u=Ko(u,"onBeforeInput"),0<u.length&&(c=new jf("onBeforeInput","beforeinput",null,n,c),m.push({event:c,listeners:u}),c.data=b))}hm(m,t)})}function Ci(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ko(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=_i(e,n),o!=null&&r.unshift(Ci(e,o,i)),o=_i(e,t),o!=null&&r.push(Ci(e,o,i))),e=e.return}return r}function nr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Kf(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=_i(n,o),l!=null&&s.unshift(Ci(n,l,a))):i||(l=_i(n,o),l!=null&&s.push(Ci(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var D_=/\r\n?/g,M_=/\u0000|\uFFFD/g;function Zf(e){return(typeof e=="string"?e:""+e).replace(D_,`
38
- `).replace(M_,"")}function oo(e,t,n){if(t=Zf(t),Zf(e)!==t&&n)throw Error(T(425))}function Zo(){}var xl=null,bl=null;function Tl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cl=typeof setTimeout=="function"?setTimeout:void 0,F_=typeof clearTimeout=="function"?clearTimeout:void 0,Jf=typeof Promise=="function"?Promise:void 0,L_=typeof queueMicrotask=="function"?queueMicrotask:typeof Jf<"u"?function(e){return Jf.resolve(null).then(e).catch(B_)}:Cl;function B_(e){setTimeout(function(){throw e})}function Ta(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),wi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);wi(t)}function pn(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==="$?")break;if(t==="/$")return null}}return e}function ed(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Lr=Math.random().toString(36).slice(2),Dt="__reactFiber$"+Lr,ki="__reactProps$"+Lr,Yt="__reactContainer$"+Lr,kl="__reactEvents$"+Lr,j_="__reactListeners$"+Lr,U_="__reactHandles$"+Lr;function jn(e){var t=e[Dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yt]||n[Dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ed(e);e!==null;){if(n=e[Dt])return n;e=ed(e)}return t}e=n,n=e.parentNode}return null}function $i(e){return e=e[Dt]||e[Yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function dr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function ks(e){return e[ki]||null}var Ol=[],hr=-1;function bn(e){return{current:e}}function ee(e){0>hr||(e.current=Ol[hr],Ol[hr]=null,hr--)}function Y(e,t){hr++,Ol[hr]=e.current,e.current=t}var Sn={},Ae=bn(Sn),He=bn(!1),Vn=Sn;function Cr(e,t){var n=e.type.contextTypes;if(!n)return Sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $e(e){return e=e.childContextTypes,e!=null}function Jo(){ee(He),ee(Ae)}function td(e,t,n){if(Ae.current!==Sn)throw Error(T(168));Y(Ae,t),Y(He,n)}function mm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,b0(e)||"Unknown",i));return se({},n,r)}function es(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sn,Vn=Ae.current,Y(Ae,e),Y(He,He.current),!0}function nd(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=mm(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,ee(He),ee(Ae),Y(Ae,e)):ee(He),Y(He,n)}var Gt=null,Os=!1,Ca=!1;function gm(e){Gt===null?Gt=[e]:Gt.push(e)}function z_(e){Os=!0,gm(e)}function Tn(){if(!Ca&&Gt!==null){Ca=!0;var e=0,t=X;try{var n=Gt;for(X=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Gt=null,Os=!1}catch(i){throw Gt!==null&&(Gt=Gt.slice(e+1)),zp(ju,Tn),i}finally{X=t,Ca=!1}}return null}var pr=[],mr=0,ts=null,ns=0,rt=[],it=0,Wn=null,Wt=1,qt="";function Dn(e,t){pr[mr++]=ns,pr[mr++]=ts,ts=e,ns=t}function ym(e,t,n){rt[it++]=Wt,rt[it++]=qt,rt[it++]=Wn,Wn=e;var r=Wt;e=qt;var i=32-wt(r)-1;r&=~(1<<i),n+=1;var o=32-wt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Wt=1<<32-wt(t)+i|n<<i|r,qt=o+e}else Wt=1<<o|n<<i|r,qt=e}function Xu(e){e.return!==null&&(Dn(e,1),ym(e,1,0))}function Qu(e){for(;e===ts;)ts=pr[--mr],pr[mr]=null,ns=pr[--mr],pr[mr]=null;for(;e===Wn;)Wn=rt[--it],rt[it]=null,qt=rt[--it],rt[it]=null,Wt=rt[--it],rt[it]=null}var Qe=null,Xe=null,ne=!1,_t=null;function vm(e,t){var n=st(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function rd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Qe=e,Xe=pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qe=e,Xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Wn!==null?{id:Wt,overflow:qt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=st(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Qe=e,Xe=null,!0):!1;default:return!1}}function Rl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Nl(e){if(ne){var t=Xe;if(t){var n=t;if(!rd(e,t)){if(Rl(e))throw Error(T(418));t=pn(n.nextSibling);var r=Qe;t&&rd(e,t)?vm(r,n):(e.flags=e.flags&-4097|2,ne=!1,Qe=e)}}else{if(Rl(e))throw Error(T(418));e.flags=e.flags&-4097|2,ne=!1,Qe=e}}}function id(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qe=e}function so(e){if(e!==Qe)return!1;if(!ne)return id(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Tl(e.type,e.memoizedProps)),t&&(t=Xe)){if(Rl(e))throw _m(),Error(T(418));for(;t;)vm(e,t),t=pn(t.nextSibling)}if(id(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xe=pn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xe=null}}else Xe=Qe?pn(e.stateNode.nextSibling):null;return!0}function _m(){for(var e=Xe;e;)e=pn(e.nextSibling)}function kr(){Xe=Qe=null,ne=!1}function Yu(e){_t===null?_t=[e]:_t.push(e)}var H_=en.ReactCurrentBatchConfig;function gt(e,t){if(e&&e.defaultProps){t=se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var rs=bn(null),is=null,gr=null,Ku=null;function Zu(){Ku=gr=is=null}function Ju(e){var t=rs.current;ee(rs),e._currentValue=t}function Al(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xr(e,t){is=e,Ku=gr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ze=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(Ku!==e)if(e={context:e,memoizedValue:t,next:null},gr===null){if(is===null)throw Error(T(308));gr=e,is.dependencies={lanes:0,firstContext:e}}else gr=gr.next=e;return t}var Un=null;function ec(e){Un===null?Un=[e]:Un.push(e)}function Em(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ec(t)):(n.next=i.next,i.next=n),t.interleaved=n,Kt(e,r)}function Kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var sn=!1;function tc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Kt(e,n)}return i=r.interleaved,i===null?(t.next=t,ec(r)):(t.next=i.next,i.next=t),r.interleaved=t,Kt(e,n)}function No(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uu(e,n)}}function od(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function os(e,t,n,r){var i=e.updateQueue;sn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var m=i.baseState;s=0,c=u=l=null,a=o;do{var g=a.lane,f=a.eventTime;if((r&g)===g){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,y=a;switch(g=t,f=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){m=p.call(f,m,g);break e}m=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,g=typeof p=="function"?p.call(f,m,g):p,g==null)break e;m=se({},m,g);break e;case 2:sn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[a]:g.push(a))}else f={eventTime:f,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,l=m):c=c.next=f,s|=g;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;g=a,a=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);if(c===null&&(l=m),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Xn|=s,e.lanes=s,e.memoizedState=m}}function sd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(T(191,i));i.call(r)}}}var wm=new Ep.Component().refs;function Pl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Rs={isMounted:function(e){return(e=e._reactInternals)?Jn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=De(),i=yn(e),o=Xt(r,i);o.payload=t,n!=null&&(o.callback=n),t=mn(e,o,i),t!==null&&(xt(t,e,i,r),No(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=De(),i=yn(e),o=Xt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=mn(e,o,i),t!==null&&(xt(t,e,i,r),No(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=De(),r=yn(e),i=Xt(n,r);i.tag=2,t!=null&&(i.callback=t),t=mn(e,i,r),t!==null&&(xt(t,e,r,n),No(t,e,r))}};function ad(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!bi(n,r)||!bi(i,o):!0}function xm(e,t,n){var r=!1,i=Sn,o=t.contextType;return typeof o=="object"&&o!==null?o=lt(o):(i=$e(t)?Vn:Ae.current,r=t.contextTypes,o=(r=r!=null)?Cr(e,i):Sn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Rs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ld(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Rs.enqueueReplaceState(t,t.state,null)}function Il(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=wm,tc(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=lt(o):(o=$e(t)?Vn:Ae.current,i.context=Cr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Pl(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Rs.enqueueReplaceState(i,i.state,null),os(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===wm&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function ao(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ud(e){var t=e._init;return t(e._payload)}function bm(e){function t(h,d){if(e){var v=h.deletions;v===null?(h.deletions=[d],h.flags|=16):v.push(d)}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function r(h,d){for(h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function i(h,d){return h=vn(h,d),h.index=0,h.sibling=null,h}function o(h,d,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<d?(h.flags|=2,d):v):(h.flags|=2,d)):(h.flags|=1048576,d)}function s(h){return e&&h.alternate===null&&(h.flags|=2),h}function a(h,d,v,S){return d===null||d.tag!==6?(d=Ia(v,h.mode,S),d.return=h,d):(d=i(d,v),d.return=h,d)}function l(h,d,v,S){var w=v.type;return w===lr?c(h,d,v.props.children,S,v.key):d!==null&&(d.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===on&&ud(w)===d.type)?(S=i(d,v.props),S.ref=Vr(h,d,v),S.return=h,S):(S=Fo(v.type,v.key,v.props,null,h.mode,S),S.ref=Vr(h,d,v),S.return=h,S)}function u(h,d,v,S){return d===null||d.tag!==4||d.stateNode.containerInfo!==v.containerInfo||d.stateNode.implementation!==v.implementation?(d=Da(v,h.mode,S),d.return=h,d):(d=i(d,v.children||[]),d.return=h,d)}function c(h,d,v,S,w){return d===null||d.tag!==7?(d=$n(v,h.mode,S,w),d.return=h,d):(d=i(d,v),d.return=h,d)}function m(h,d,v){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Ia(""+d,h.mode,v),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Yi:return v=Fo(d.type,d.key,d.props,null,h.mode,v),v.ref=Vr(h,null,d),v.return=h,v;case ar:return d=Da(d,h.mode,v),d.return=h,d;case on:var S=d._init;return m(h,S(d._payload),v)}if(ni(d)||Ur(d))return d=$n(d,h.mode,v,null),d.return=h,d;ao(h,d)}return null}function g(h,d,v,S){var w=d!==null?d.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return w!==null?null:a(h,d,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Yi:return v.key===w?l(h,d,v,S):null;case ar:return v.key===w?u(h,d,v,S):null;case on:return w=v._init,g(h,d,w(v._payload),S)}if(ni(v)||Ur(v))return w!==null?null:c(h,d,v,S,null);ao(h,v)}return null}function f(h,d,v,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(v)||null,a(d,h,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Yi:return h=h.get(S.key===null?v:S.key)||null,l(d,h,S,w);case ar:return h=h.get(S.key===null?v:S.key)||null,u(d,h,S,w);case on:var x=S._init;return f(h,d,v,x(S._payload),w)}if(ni(S)||Ur(S))return h=h.get(v)||null,c(d,h,S,w,null);ao(d,S)}return null}function p(h,d,v,S){for(var w=null,x=null,b=d,C=d=0,F=null;b!==null&&C<v.length;C++){b.index>C?(F=b,b=null):F=b.sibling;var P=g(h,b,v[C],S);if(P===null){b===null&&(b=F);break}e&&b&&P.alternate===null&&t(h,b),d=o(P,d,C),x===null?w=P:x.sibling=P,x=P,b=F}if(C===v.length)return n(h,b),ne&&Dn(h,C),w;if(b===null){for(;C<v.length;C++)b=m(h,v[C],S),b!==null&&(d=o(b,d,C),x===null?w=b:x.sibling=b,x=b);return ne&&Dn(h,C),w}for(b=r(h,b);C<v.length;C++)F=f(b,h,C,v[C],S),F!==null&&(e&&F.alternate!==null&&b.delete(F.key===null?C:F.key),d=o(F,d,C),x===null?w=F:x.sibling=F,x=F);return e&&b.forEach(function(re){return t(h,re)}),ne&&Dn(h,C),w}function y(h,d,v,S){var w=Ur(v);if(typeof w!="function")throw Error(T(150));if(v=w.call(v),v==null)throw Error(T(151));for(var x=w=null,b=d,C=d=0,F=null,P=v.next();b!==null&&!P.done;C++,P=v.next()){b.index>C?(F=b,b=null):F=b.sibling;var re=g(h,b,P.value,S);if(re===null){b===null&&(b=F);break}e&&b&&re.alternate===null&&t(h,b),d=o(re,d,C),x===null?w=re:x.sibling=re,x=re,b=F}if(P.done)return n(h,b),ne&&Dn(h,C),w;if(b===null){for(;!P.done;C++,P=v.next())P=m(h,P.value,S),P!==null&&(d=o(P,d,C),x===null?w=P:x.sibling=P,x=P);return ne&&Dn(h,C),w}for(b=r(h,b);!P.done;C++,P=v.next())P=f(b,h,C,P.value,S),P!==null&&(e&&P.alternate!==null&&b.delete(P.key===null?C:P.key),d=o(P,d,C),x===null?w=P:x.sibling=P,x=P);return e&&b.forEach(function(pe){return t(h,pe)}),ne&&Dn(h,C),w}function E(h,d,v,S){if(typeof v=="object"&&v!==null&&v.type===lr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Yi:e:{for(var w=v.key,x=d;x!==null;){if(x.key===w){if(w=v.type,w===lr){if(x.tag===7){n(h,x.sibling),d=i(x,v.props.children),d.return=h,h=d;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===on&&ud(w)===x.type){n(h,x.sibling),d=i(x,v.props),d.ref=Vr(h,x,v),d.return=h,h=d;break e}n(h,x);break}else t(h,x);x=x.sibling}v.type===lr?(d=$n(v.props.children,h.mode,S,v.key),d.return=h,h=d):(S=Fo(v.type,v.key,v.props,null,h.mode,S),S.ref=Vr(h,d,v),S.return=h,h=S)}return s(h);case ar:e:{for(x=v.key;d!==null;){if(d.key===x)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(h,d.sibling),d=i(d,v.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=Da(v,h.mode,S),d.return=h,h=d}return s(h);case on:return x=v._init,E(h,d,x(v._payload),S)}if(ni(v))return p(h,d,v,S);if(Ur(v))return y(h,d,v,S);ao(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(h,d.sibling),d=i(d,v),d.return=h,h=d):(n(h,d),d=Ia(v,h.mode,S),d.return=h,h=d),s(h)):n(h,d)}return E}var Or=bm(!0),Tm=bm(!1),Gi={},Lt=bn(Gi),Oi=bn(Gi),Ri=bn(Gi);function zn(e){if(e===Gi)throw Error(T(174));return e}function nc(e,t){switch(Y(Ri,t),Y(Oi,e),Y(Lt,Gi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fl(t,e)}ee(Lt),Y(Lt,t)}function Rr(){ee(Lt),ee(Oi),ee(Ri)}function Cm(e){zn(Ri.current);var t=zn(Lt.current),n=fl(t,e.type);t!==n&&(Y(Oi,e),Y(Lt,n))}function rc(e){Oi.current===e&&(ee(Lt),ee(Oi))}var ie=bn(0);function ss(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 ka=[];function ic(){for(var e=0;e<ka.length;e++)ka[e]._workInProgressVersionPrimary=null;ka.length=0}var Ao=en.ReactCurrentDispatcher,Oa=en.ReactCurrentBatchConfig,qn=0,oe=null,me=null,ye=null,as=!1,hi=!1,Ni=0,$_=0;function ke(){throw Error(T(321))}function oc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function sc(e,t,n,r,i,o){if(qn=o,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ao.current=e===null||e.memoizedState===null?q_:X_,e=n(r,i),hi){o=0;do{if(hi=!1,Ni=0,25<=o)throw Error(T(301));o+=1,ye=me=null,t.updateQueue=null,Ao.current=Q_,e=n(r,i)}while(hi)}if(Ao.current=ls,t=me!==null&&me.next!==null,qn=0,ye=me=oe=null,as=!1,t)throw Error(T(300));return e}function ac(){var e=Ni!==0;return Ni=0,e}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ye===null?oe.memoizedState=ye=e:ye=ye.next=e,ye}function ut(){if(me===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=me.next;var t=ye===null?oe.memoizedState:ye.next;if(t!==null)ye=t,me=e;else{if(e===null)throw Error(T(310));me=e,e={memoizedState:me.memoizedState,baseState:me.baseState,baseQueue:me.baseQueue,queue:me.queue,next:null},ye===null?oe.memoizedState=ye=e:ye=ye.next=e}return ye}function Ai(e,t){return typeof t=="function"?t(e):t}function Ra(e){var t=ut(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=me,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((qn&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var m={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=m,s=r):l=l.next=m,oe.lanes|=c,Xn|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Tt(r,t.memoizedState)||(ze=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,oe.lanes|=o,Xn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Na(e){var t=ut(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Tt(o,t.memoizedState)||(ze=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function km(){}function Om(e,t){var n=oe,r=ut(),i=t(),o=!Tt(r.memoizedState,i);if(o&&(r.memoizedState=i,ze=!0),r=r.queue,lc(Am.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ye!==null&&ye.memoizedState.tag&1){if(n.flags|=2048,Pi(9,Nm.bind(null,n,r,i,t),void 0,null),ve===null)throw Error(T(349));qn&30||Rm(n,t,i)}return i}function Rm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Nm(e,t,n,r){t.value=n,t.getSnapshot=r,Pm(t)&&Im(e)}function Am(e,t,n){return n(function(){Pm(t)&&Im(e)})}function Pm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function Im(e){var t=Kt(e,1);t!==null&&xt(t,e,1,-1)}function cd(e){var t=Nt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:e},t.queue=e,e=e.dispatch=W_.bind(null,oe,e),[t.memoizedState,e]}function Pi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Dm(){return ut().memoizedState}function Po(e,t,n,r){var i=Nt();oe.flags|=e,i.memoizedState=Pi(1|t,n,void 0,r===void 0?null:r)}function Ns(e,t,n,r){var i=ut();r=r===void 0?null:r;var o=void 0;if(me!==null){var s=me.memoizedState;if(o=s.destroy,r!==null&&oc(r,s.deps)){i.memoizedState=Pi(t,n,o,r);return}}oe.flags|=e,i.memoizedState=Pi(1|t,n,o,r)}function fd(e,t){return Po(8390656,8,e,t)}function lc(e,t){return Ns(2048,8,e,t)}function Mm(e,t){return Ns(4,2,e,t)}function Fm(e,t){return Ns(4,4,e,t)}function Lm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bm(e,t,n){return n=n!=null?n.concat([e]):null,Ns(4,4,Lm.bind(null,t,e),n)}function uc(){}function jm(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Um(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zm(e,t,n){return qn&21?(Tt(n,t)||(n=Gp(),oe.lanes|=n,Xn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ze=!0),e.memoizedState=n)}function G_(e,t){var n=X;X=n!==0&&4>n?n:4,e(!0);var r=Oa.transition;Oa.transition={};try{e(!1),t()}finally{X=n,Oa.transition=r}}function Hm(){return ut().memoizedState}function V_(e,t,n){var r=yn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$m(e))Gm(t,n);else if(n=Em(e,t,n,r),n!==null){var i=De();xt(n,e,r,i),Vm(n,t,r)}}function W_(e,t,n){var r=yn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($m(e))Gm(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Tt(a,s)){var l=t.interleaved;l===null?(i.next=i,ec(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Em(e,t,i,r),n!==null&&(i=De(),xt(n,e,r,i),Vm(n,t,r))}}function $m(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Gm(e,t){hi=as=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uu(e,n)}}var ls={readContext:lt,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},q_={readContext:lt,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:fd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Po(4194308,4,Lm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Po(4194308,4,e,t)},useInsertionEffect:function(e,t){return Po(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=V_.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:cd,useDebugValue:uc,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=cd(!1),t=e[0];return e=G_.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,i=Nt();if(ne){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ve===null)throw Error(T(349));qn&30||Rm(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fd(Am.bind(null,r,o,e),[e]),r.flags|=2048,Pi(9,Nm.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Nt(),t=ve.identifierPrefix;if(ne){var n=qt,r=Wt;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ni++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=$_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},X_={readContext:lt,useCallback:jm,useContext:lt,useEffect:lc,useImperativeHandle:Bm,useInsertionEffect:Mm,useLayoutEffect:Fm,useMemo:Um,useReducer:Ra,useRef:Dm,useState:function(){return Ra(Ai)},useDebugValue:uc,useDeferredValue:function(e){var t=ut();return zm(t,me.memoizedState,e)},useTransition:function(){var e=Ra(Ai)[0],t=ut().memoizedState;return[e,t]},useMutableSource:km,useSyncExternalStore:Om,useId:Hm,unstable_isNewReconciler:!1},Q_={readContext:lt,useCallback:jm,useContext:lt,useEffect:lc,useImperativeHandle:Bm,useInsertionEffect:Mm,useLayoutEffect:Fm,useMemo:Um,useReducer:Na,useRef:Dm,useState:function(){return Na(Ai)},useDebugValue:uc,useDeferredValue:function(e){var t=ut();return me===null?t.memoizedState=e:zm(t,me.memoizedState,e)},useTransition:function(){var e=Na(Ai)[0],t=ut().memoizedState;return[e,t]},useMutableSource:km,useSyncExternalStore:Om,useId:Hm,unstable_isNewReconciler:!1};function Nr(e,t){try{var n="",r=t;do n+=x0(r),r=r.return;while(r);var i=n}catch(o){i=`
39
- Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Aa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Dl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Y_=typeof WeakMap=="function"?WeakMap:Map;function Wm(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cs||(cs=!0,Gl=r),Dl(e,t)},n}function qm(e,t,n){n=Xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Dl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Dl(e,t),typeof r!="function"&&(gn===null?gn=new Set([this]):gn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function dd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Y_;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=c1.bind(null,e,t,n),t.then(e,e))}function hd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function pd(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xt(-1,1),t.tag=2,mn(n,t,1))),n.lanes|=1),e)}var K_=en.ReactCurrentOwner,ze=!1;function Ie(e,t,n,r){t.child=e===null?Tm(t,null,n,r):Or(t,e.child,n,r)}function md(e,t,n,r,i){n=n.render;var o=t.ref;return xr(t,i),r=sc(e,t,n,r,o,i),n=ac(),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Zt(e,t,i)):(ne&&n&&Xu(t),t.flags|=1,Ie(e,t,r,i),t.child)}function gd(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!yc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Xm(e,t,o,r,i)):(e=Fo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:bi,n(s,r)&&e.ref===t.ref)return Zt(e,t,i)}return t.flags|=1,e=vn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Xm(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(bi(o,r)&&e.ref===t.ref)if(ze=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ze=!0);else return t.lanes=e.lanes,Zt(e,t,i)}return Ml(e,t,n,r,i)}function Qm(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(vr,qe),qe|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(vr,qe),qe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Y(vr,qe),qe|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Y(vr,qe),qe|=r;return Ie(e,t,i,n),t.child}function Ym(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ml(e,t,n,r,i){var o=$e(n)?Vn:Ae.current;return o=Cr(t,o),xr(t,i),n=sc(e,t,n,r,o,i),r=ac(),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Zt(e,t,i)):(ne&&r&&Xu(t),t.flags|=1,Ie(e,t,n,i),t.child)}function yd(e,t,n,r,i){if($e(n)){var o=!0;es(t)}else o=!1;if(xr(t,i),t.stateNode===null)Io(e,t),xm(t,n,r),Il(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=lt(u):(u=$e(n)?Vn:Ae.current,u=Cr(t,u));var c=n.getDerivedStateFromProps,m=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&ld(t,s,r,u),sn=!1;var g=t.memoizedState;s.state=g,os(t,r,s,i),l=t.memoizedState,a!==r||g!==l||He.current||sn?(typeof c=="function"&&(Pl(t,n,c,r),l=t.memoizedState),(a=sn||ad(t,n,a,r,g,l,u))?(m||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Sm(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:gt(t.type,a),s.props=u,m=t.pendingProps,g=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=lt(l):(l=$e(n)?Vn:Ae.current,l=Cr(t,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==m||g!==l)&&ld(t,s,r,l),sn=!1,g=t.memoizedState,s.state=g,os(t,r,s,i);var p=t.memoizedState;a!==m||g!==p||He.current||sn?(typeof f=="function"&&(Pl(t,n,f,r),p=t.memoizedState),(u=sn||ad(t,n,u,r,g,p,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return Fl(e,t,n,r,o,i)}function Fl(e,t,n,r,i,o){Ym(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&nd(t,n,!1),Zt(e,t,o);r=t.stateNode,K_.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Or(t,e.child,null,o),t.child=Or(t,null,a,o)):Ie(e,t,a,o),t.memoizedState=r.state,i&&nd(t,n,!0),t.child}function Km(e){var t=e.stateNode;t.pendingContext?td(e,t.pendingContext,t.pendingContext!==t.context):t.context&&td(e,t.context,!1),nc(e,t.containerInfo)}function vd(e,t,n,r,i){return kr(),Yu(i),t.flags|=256,Ie(e,t,n,r),t.child}var Ll={dehydrated:null,treeContext:null,retryLane:0};function Bl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zm(e,t,n){var r=t.pendingProps,i=ie.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Y(ie,i&1),e===null)return Nl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Is(s,r,0,null),e=$n(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Bl(n),t.memoizedState=Ll,e):cc(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Z_(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=vn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=vn(a,o):(o=$n(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Bl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Ll,r}return o=e.child,e=o.sibling,r=vn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function cc(e,t){return t=Is({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function lo(e,t,n,r){return r!==null&&Yu(r),Or(t,e.child,null,n),e=cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Z_(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Aa(Error(T(422))),lo(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Is({mode:"visible",children:r.children},i,0,null),o=$n(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Or(t,e.child,null,s),t.child.memoizedState=Bl(s),t.memoizedState=Ll,o);if(!(t.mode&1))return lo(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(T(419)),r=Aa(o,r,void 0),lo(e,t,s,r)}if(a=(s&e.childLanes)!==0,ze||a){if(r=ve,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Kt(e,i),xt(r,e,i,-1))}return gc(),r=Aa(Error(T(421))),lo(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=f1.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Xe=pn(i.nextSibling),Qe=t,ne=!0,_t=null,e!==null&&(rt[it++]=Wt,rt[it++]=qt,rt[it++]=Wn,Wt=e.id,qt=e.overflow,Wn=t),t=cc(t,r.children),t.flags|=4096,t)}function _d(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Al(e.return,t,n)}function Pa(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Jm(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ie(e,t,r.children,n),r=ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_d(e,n,t);else if(e.tag===19)_d(e,n,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}r&=1}if(Y(ie,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ss(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Pa(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ss(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Pa(t,!0,n,null,o);break;case"together":Pa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Io(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function J_(e,t,n){switch(t.tag){case 3:Km(t),kr();break;case 5:Cm(t);break;case 1:$e(t.type)&&es(t);break;case 4:nc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Y(rs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Y(ie,ie.current&1),t.flags|=128,null):n&t.child.childLanes?Zm(e,t,n):(Y(ie,ie.current&1),e=Zt(e,t,n),e!==null?e.sibling:null);Y(ie,ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Jm(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(ie,ie.current),r)break;return null;case 22:case 23:return t.lanes=0,Qm(e,t,n)}return Zt(e,t,n)}var eg,jl,tg,ng;eg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};jl=function(){};tg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zn(Lt.current);var o=null;switch(n){case"input":i=al(e,i),r=al(e,r),o=[];break;case"select":i=se({},i,{value:void 0}),r=se({},r,{value:void 0}),o=[];break;case"textarea":i=cl(e,i),r=cl(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Zo)}dl(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(yi.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(yi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Z("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};ng=function(e,t,n,r){n!==r&&(t.flags|=4)};function Wr(e,t){if(!ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function e1(e,t,n){var r=t.pendingProps;switch(Qu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return $e(t.type)&&Jo(),Oe(t),null;case 3:return r=t.stateNode,Rr(),ee(He),ee(Ae),ic(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(so(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,_t!==null&&(ql(_t),_t=null))),jl(e,t),Oe(t),null;case 5:rc(t);var i=zn(Ri.current);if(n=t.type,e!==null&&t.stateNode!=null)tg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return Oe(t),null}if(e=zn(Lt.current),so(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Dt]=t,r[ki]=o,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(i=0;i<ii.length;i++)Z(ii[i],r);break;case"source":Z("error",r);break;case"img":case"image":case"link":Z("error",r),Z("load",r);break;case"details":Z("toggle",r);break;case"input":Of(r,o),Z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Z("invalid",r);break;case"textarea":Nf(r,o),Z("invalid",r)}dl(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&oo(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&oo(r.textContent,a,e),i=["children",""+a]):yi.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Z("scroll",r)}switch(n){case"input":Ki(r),Rf(r,o,!0);break;case"textarea":Ki(r),Af(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Zo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Rp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Dt]=t,e[ki]=r,eg(e,t,!1,!1),t.stateNode=e;e:{switch(s=hl(n,r),n){case"dialog":Z("cancel",e),Z("close",e),i=r;break;case"iframe":case"object":case"embed":Z("load",e),i=r;break;case"video":case"audio":for(i=0;i<ii.length;i++)Z(ii[i],e);i=r;break;case"source":Z("error",e),i=r;break;case"img":case"image":case"link":Z("error",e),Z("load",e),i=r;break;case"details":Z("toggle",e),i=r;break;case"input":Of(e,r),i=al(e,r),Z("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=se({},r,{value:void 0}),Z("invalid",e);break;case"textarea":Nf(e,r),i=cl(e,r),Z("invalid",e);break;default:i=r}dl(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Pp(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Np(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&vi(e,l):typeof l=="number"&&vi(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(yi.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Z("scroll",e):l!=null&&Du(e,o,l,s))}switch(n){case"input":Ki(e),Rf(e,r,!1);break;case"textarea":Ki(e),Af(e);break;case"option":r.value!=null&&e.setAttribute("value",""+En(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?_r(e,!!r.multiple,o,!1):r.defaultValue!=null&&_r(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Zo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Oe(t),null;case 6:if(e&&t.stateNode!=null)ng(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=zn(Ri.current),zn(Lt.current),so(t)){if(r=t.stateNode,n=t.memoizedProps,r[Dt]=t,(o=r.nodeValue!==n)&&(e=Qe,e!==null))switch(e.tag){case 3:oo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&oo(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Dt]=t,t.stateNode=r}return Oe(t),null;case 13:if(ee(ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&Xe!==null&&t.mode&1&&!(t.flags&128))_m(),kr(),t.flags|=98560,o=!1;else if(o=so(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(T(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(T(317));o[Dt]=t}else kr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oe(t),o=!1}else _t!==null&&(ql(_t),_t=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ie.current&1?ge===0&&(ge=3):gc())),t.updateQueue!==null&&(t.flags|=4),Oe(t),null);case 4:return Rr(),jl(e,t),e===null&&Ti(t.stateNode.containerInfo),Oe(t),null;case 10:return Ju(t.type._context),Oe(t),null;case 17:return $e(t.type)&&Jo(),Oe(t),null;case 19:if(ee(ie),o=t.memoizedState,o===null)return Oe(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Wr(o,!1);else{if(ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ss(e),s!==null){for(t.flags|=128,Wr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Y(ie,ie.current&1|2),t.child}e=e.sibling}o.tail!==null&&ce()>Ar&&(t.flags|=128,r=!0,Wr(o,!1),t.lanes=4194304)}else{if(!r)if(e=ss(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ne)return Oe(t),null}else 2*ce()-o.renderingStartTime>Ar&&n!==1073741824&&(t.flags|=128,r=!0,Wr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ce(),t.sibling=null,n=ie.current,Y(ie,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return mc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function t1(e,t){switch(Qu(t),t.tag){case 1:return $e(t.type)&&Jo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rr(),ee(He),ee(Ae),ic(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return rc(t),null;case 13:if(ee(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(ie),null;case 4:return Rr(),null;case 10:return Ju(t.type._context),null;case 22:case 23:return mc(),null;case 24:return null;default:return null}}var uo=!1,Ne=!1,n1=typeof WeakSet=="function"?WeakSet:Set,O=null;function yr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function Ul(e,t,n){try{n()}catch(r){ue(e,t,r)}}var Ed=!1;function r1(e,t){if(xl=Qo,e=sm(),qu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,m=e,g=null;t:for(;;){for(var f;m!==n||i!==0&&m.nodeType!==3||(a=s+i),m!==o||r!==0&&m.nodeType!==3||(l=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(f=m.firstChild)!==null;)g=m,m=f;for(;;){if(m===e)break t;if(g===n&&++u===i&&(a=s),g===o&&++c===r&&(l=s),(f=m.nextSibling)!==null)break;m=g,g=m.parentNode}m=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(bl={focusedElem:e,selectionRange:n},Qo=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,E=p.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:gt(t.type,y),E);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(S){ue(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return p=Ed,Ed=!1,p}function pi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ul(t,n,o)}i=i.next}while(i!==r)}}function As(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function zl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function rg(e){var t=e.alternate;t!==null&&(e.alternate=null,rg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dt],delete t[ki],delete t[kl],delete t[j_],delete t[U_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ig(e){return e.tag===5||e.tag===3||e.tag===4}function Sd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ig(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.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 Hl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zo));else if(r!==4&&(e=e.child,e!==null))for(Hl(e,t,n),e=e.sibling;e!==null;)Hl(e,t,n),e=e.sibling}function $l(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($l(e,t,n),e=e.sibling;e!==null;)$l(e,t,n),e=e.sibling}var xe=null,yt=!1;function tn(e,t,n){for(n=n.child;n!==null;)og(e,t,n),n=n.sibling}function og(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(xs,n)}catch{}switch(n.tag){case 5:Ne||yr(n,t);case 6:var r=xe,i=yt;xe=null,tn(e,t,n),xe=r,yt=i,xe!==null&&(yt?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(yt?(e=xe,n=n.stateNode,e.nodeType===8?Ta(e.parentNode,n):e.nodeType===1&&Ta(e,n),wi(e)):Ta(xe,n.stateNode));break;case 4:r=xe,i=yt,xe=n.stateNode.containerInfo,yt=!0,tn(e,t,n),xe=r,yt=i;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ul(n,t,s),i=i.next}while(i!==r)}tn(e,t,n);break;case 1:if(!Ne&&(yr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,tn(e,t,n),Ne=r):tn(e,t,n);break;default:tn(e,t,n)}}function wd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new n1),t.forEach(function(r){var i=d1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:xe=a.stateNode,yt=!1;break e;case 3:xe=a.stateNode.containerInfo,yt=!0;break e;case 4:xe=a.stateNode.containerInfo,yt=!0;break e}a=a.return}if(xe===null)throw Error(T(160));og(o,s,i),xe=null,yt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ue(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)sg(t,e),t=t.sibling}function sg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pt(t,e),Rt(e),r&4){try{pi(3,e,e.return),As(3,e)}catch(y){ue(e,e.return,y)}try{pi(5,e,e.return)}catch(y){ue(e,e.return,y)}}break;case 1:pt(t,e),Rt(e),r&512&&n!==null&&yr(n,n.return);break;case 5:if(pt(t,e),Rt(e),r&512&&n!==null&&yr(n,n.return),e.flags&32){var i=e.stateNode;try{vi(i,"")}catch(y){ue(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&kp(i,o),hl(a,s);var u=hl(a,o);for(s=0;s<l.length;s+=2){var c=l[s],m=l[s+1];c==="style"?Pp(i,m):c==="dangerouslySetInnerHTML"?Np(i,m):c==="children"?vi(i,m):Du(i,c,m,u)}switch(a){case"input":ll(i,o);break;case"textarea":Op(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?_r(i,!!o.multiple,f,!1):g!==!!o.multiple&&(o.defaultValue!=null?_r(i,!!o.multiple,o.defaultValue,!0):_r(i,!!o.multiple,o.multiple?[]:"",!1))}i[ki]=o}catch(y){ue(e,e.return,y)}}break;case 6:if(pt(t,e),Rt(e),r&4){if(e.stateNode===null)throw Error(T(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){ue(e,e.return,y)}}break;case 3:if(pt(t,e),Rt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{wi(t.containerInfo)}catch(y){ue(e,e.return,y)}break;case 4:pt(t,e),Rt(e);break;case 13:pt(t,e),Rt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(hc=ce())),r&4&&wd(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ne=(u=Ne)||c,pt(t,e),Ne=u):pt(t,e),Rt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(O=e,c=e.child;c!==null;){for(m=O=c;O!==null;){switch(g=O,f=g.child,g.tag){case 0:case 11:case 14:case 15:pi(4,g,g.return);break;case 1:yr(g,g.return);var p=g.stateNode;if(typeof p.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(y){ue(r,n,y)}}break;case 5:yr(g,g.return);break;case 22:if(g.memoizedState!==null){bd(m);continue}}f!==null?(f.return=g,O=f):bd(m)}c=c.sibling}e:for(c=null,m=e;;){if(m.tag===5){if(c===null){c=m;try{i=m.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=m.stateNode,l=m.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Ap("display",s))}catch(y){ue(e,e.return,y)}}}else if(m.tag===6){if(c===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(y){ue(e,e.return,y)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;c===m&&(c=null),m=m.return}c===m&&(c=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:pt(t,e),Rt(e),r&4&&wd(e);break;case 21:break;default:pt(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ig(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(vi(i,""),r.flags&=-33);var o=Sd(e);$l(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Sd(e);Hl(e,a,s);break;default:throw Error(T(161))}}catch(l){ue(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function i1(e,t,n){O=e,ag(e)}function ag(e,t,n){for(var r=(e.mode&1)!==0;O!==null;){var i=O,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||uo;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Ne;a=uo;var u=Ne;if(uo=s,(Ne=l)&&!u)for(O=i;O!==null;)s=O,l=s.child,s.tag===22&&s.memoizedState!==null?Td(i):l!==null?(l.return=s,O=l):Td(i);for(;o!==null;)O=o,ag(o),o=o.sibling;O=i,uo=a,Ne=u}xd(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,O=o):xd(e)}}function xd(e){for(;O!==null;){var t=O;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ne||As(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ne)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:gt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&sd(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}sd(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var m=c.dehydrated;m!==null&&wi(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Ne||t.flags&512&&zl(t)}catch(g){ue(t,t.return,g)}}if(t===e){O=null;break}if(n=t.sibling,n!==null){n.return=t.return,O=n;break}O=t.return}}function bd(e){for(;O!==null;){var t=O;if(t===e){O=null;break}var n=t.sibling;if(n!==null){n.return=t.return,O=n;break}O=t.return}}function Td(e){for(;O!==null;){var t=O;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{As(4,t)}catch(l){ue(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ue(t,i,l)}}var o=t.return;try{zl(t)}catch(l){ue(t,o,l)}break;case 5:var s=t.return;try{zl(t)}catch(l){ue(t,s,l)}}}catch(l){ue(t,t.return,l)}if(t===e){O=null;break}var a=t.sibling;if(a!==null){a.return=t.return,O=a;break}O=t.return}}var o1=Math.ceil,us=en.ReactCurrentDispatcher,fc=en.ReactCurrentOwner,at=en.ReactCurrentBatchConfig,q=0,ve=null,de=null,Te=0,qe=0,vr=bn(0),ge=0,Ii=null,Xn=0,Ps=0,dc=0,mi=null,je=null,hc=0,Ar=1/0,$t=null,cs=!1,Gl=null,gn=null,co=!1,cn=null,fs=0,gi=0,Vl=null,Do=-1,Mo=0;function De(){return q&6?ce():Do!==-1?Do:Do=ce()}function yn(e){return e.mode&1?q&2&&Te!==0?Te&-Te:H_.transition!==null?(Mo===0&&(Mo=Gp()),Mo):(e=X,e!==0||(e=window.event,e=e===void 0?16:Kp(e.type)),e):1}function xt(e,t,n,r){if(50<gi)throw gi=0,Vl=null,Error(T(185));zi(e,n,r),(!(q&2)||e!==ve)&&(e===ve&&(!(q&2)&&(Ps|=n),ge===4&&ln(e,Te)),Ge(e,r),n===1&&q===0&&!(t.mode&1)&&(Ar=ce()+500,Os&&Tn()))}function Ge(e,t){var n=e.callbackNode;H0(e,t);var r=Xo(e,e===ve?Te:0);if(r===0)n!==null&&Df(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Df(n),t===1)e.tag===0?z_(Cd.bind(null,e)):gm(Cd.bind(null,e)),L_(function(){!(q&6)&&Tn()}),n=null;else{switch(Vp(r)){case 1:n=ju;break;case 4:n=Hp;break;case 16:n=qo;break;case 536870912:n=$p;break;default:n=qo}n=mg(n,lg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function lg(e,t){if(Do=-1,Mo=0,q&6)throw Error(T(327));var n=e.callbackNode;if(br()&&e.callbackNode!==n)return null;var r=Xo(e,e===ve?Te:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ds(e,r);else{t=r;var i=q;q|=2;var o=cg();(ve!==e||Te!==t)&&($t=null,Ar=ce()+500,Hn(e,t));do try{l1();break}catch(a){ug(e,a)}while(!0);Zu(),us.current=o,q=i,de!==null?t=0:(ve=null,Te=0,t=ge)}if(t!==0){if(t===2&&(i=vl(e),i!==0&&(r=i,t=Wl(e,i))),t===1)throw n=Ii,Hn(e,0),ln(e,r),Ge(e,ce()),n;if(t===6)ln(e,r);else{if(i=e.current.alternate,!(r&30)&&!s1(i)&&(t=ds(e,r),t===2&&(o=vl(e),o!==0&&(r=o,t=Wl(e,o))),t===1))throw n=Ii,Hn(e,0),ln(e,r),Ge(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:Mn(e,je,$t);break;case 3:if(ln(e,r),(r&130023424)===r&&(t=hc+500-ce(),10<t)){if(Xo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){De(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Cl(Mn.bind(null,e,je,$t),t);break}Mn(e,je,$t);break;case 4:if(ln(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-wt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o1(r/1960))-r,10<r){e.timeoutHandle=Cl(Mn.bind(null,e,je,$t),r);break}Mn(e,je,$t);break;case 5:Mn(e,je,$t);break;default:throw Error(T(329))}}}return Ge(e,ce()),e.callbackNode===n?lg.bind(null,e):null}function Wl(e,t){var n=mi;return e.current.memoizedState.isDehydrated&&(Hn(e,t).flags|=256),e=ds(e,t),e!==2&&(t=je,je=n,t!==null&&ql(t)),e}function ql(e){je===null?je=e:je.push.apply(je,e)}function s1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Tt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 ln(e,t){for(t&=~dc,t&=~Ps,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),r=1<<n;e[n]=-1,t&=~r}}function Cd(e){if(q&6)throw Error(T(327));br();var t=Xo(e,0);if(!(t&1))return Ge(e,ce()),null;var n=ds(e,t);if(e.tag!==0&&n===2){var r=vl(e);r!==0&&(t=r,n=Wl(e,r))}if(n===1)throw n=Ii,Hn(e,0),ln(e,t),Ge(e,ce()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Mn(e,je,$t),Ge(e,ce()),null}function pc(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(Ar=ce()+500,Os&&Tn())}}function Qn(e){cn!==null&&cn.tag===0&&!(q&6)&&br();var t=q;q|=1;var n=at.transition,r=X;try{if(at.transition=null,X=1,e)return e()}finally{X=r,at.transition=n,q=t,!(q&6)&&Tn()}}function mc(){qe=vr.current,ee(vr)}function Hn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,F_(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(Qu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Jo();break;case 3:Rr(),ee(He),ee(Ae),ic();break;case 5:rc(r);break;case 4:Rr();break;case 13:ee(ie);break;case 19:ee(ie);break;case 10:Ju(r.type._context);break;case 22:case 23:mc()}n=n.return}if(ve=e,de=e=vn(e.current,null),Te=qe=t,ge=0,Ii=null,dc=Ps=Xn=0,je=mi=null,Un!==null){for(t=0;t<Un.length;t++)if(n=Un[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Un=null}return e}function ug(e,t){do{var n=de;try{if(Zu(),Ao.current=ls,as){for(var r=oe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}as=!1}if(qn=0,ye=me=oe=null,hi=!1,Ni=0,fc.current=null,n===null||n.return===null){ge=1,Ii=t,de=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Te,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,m=c.tag;if(!(c.mode&1)&&(m===0||m===11||m===15)){var g=c.alternate;g?(c.updateQueue=g.updateQueue,c.memoizedState=g.memoizedState,c.lanes=g.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=hd(s);if(f!==null){f.flags&=-257,pd(f,s,a,o,t),f.mode&1&&dd(o,u,t),t=f,l=u;var p=t.updateQueue;if(p===null){var y=new Set;y.add(l),t.updateQueue=y}else p.add(l);break e}else{if(!(t&1)){dd(o,u,t),gc();break e}l=Error(T(426))}}else if(ne&&a.mode&1){var E=hd(s);if(E!==null){!(E.flags&65536)&&(E.flags|=256),pd(E,s,a,o,t),Yu(Nr(l,a));break e}}o=l=Nr(l,a),ge!==4&&(ge=2),mi===null?mi=[o]:mi.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var h=Wm(o,l,t);od(o,h);break e;case 1:a=l;var d=o.type,v=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(gn===null||!gn.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=qm(o,a,t);od(o,S);break e}}o=o.return}while(o!==null)}dg(n)}catch(w){t=w,de===n&&n!==null&&(de=n=n.return);continue}break}while(!0)}function cg(){var e=us.current;return us.current=ls,e===null?ls:e}function gc(){(ge===0||ge===3||ge===2)&&(ge=4),ve===null||!(Xn&268435455)&&!(Ps&268435455)||ln(ve,Te)}function ds(e,t){var n=q;q|=2;var r=cg();(ve!==e||Te!==t)&&($t=null,Hn(e,t));do try{a1();break}catch(i){ug(e,i)}while(!0);if(Zu(),q=n,us.current=r,de!==null)throw Error(T(261));return ve=null,Te=0,ge}function a1(){for(;de!==null;)fg(de)}function l1(){for(;de!==null&&!I0();)fg(de)}function fg(e){var t=pg(e.alternate,e,qe);e.memoizedProps=e.pendingProps,t===null?dg(e):de=t,fc.current=null}function dg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=t1(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ge=6,de=null;return}}else if(n=e1(n,t,qe),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);ge===0&&(ge=5)}function Mn(e,t,n){var r=X,i=at.transition;try{at.transition=null,X=1,u1(e,t,n,r)}finally{at.transition=i,X=r}return null}function u1(e,t,n,r){do br();while(cn!==null);if(q&6)throw Error(T(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if($0(e,o),e===ve&&(de=ve=null,Te=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||co||(co=!0,mg(qo,function(){return br(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=at.transition,at.transition=null;var s=X;X=1;var a=q;q|=4,fc.current=null,r1(e,n),sg(n,e),R_(bl),Qo=!!xl,bl=xl=null,e.current=n,i1(n),D0(),q=a,X=s,at.transition=o}else e.current=n;if(co&&(co=!1,cn=e,fs=i),o=e.pendingLanes,o===0&&(gn=null),L0(n.stateNode),Ge(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(cs)throw cs=!1,e=Gl,Gl=null,e;return fs&1&&e.tag!==0&&br(),o=e.pendingLanes,o&1?e===Vl?gi++:(gi=0,Vl=e):gi=0,Tn(),null}function br(){if(cn!==null){var e=Vp(fs),t=at.transition,n=X;try{if(at.transition=null,X=16>e?16:e,cn===null)var r=!1;else{if(e=cn,cn=null,fs=0,q&6)throw Error(T(331));var i=q;for(q|=4,O=e.current;O!==null;){var o=O,s=o.child;if(O.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(O=u;O!==null;){var c=O;switch(c.tag){case 0:case 11:case 15:pi(8,c,o)}var m=c.child;if(m!==null)m.return=c,O=m;else for(;O!==null;){c=O;var g=c.sibling,f=c.return;if(rg(c),c===u){O=null;break}if(g!==null){g.return=f,O=g;break}O=f}}}var p=o.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var E=y.sibling;y.sibling=null,y=E}while(y!==null)}}O=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,O=s;else e:for(;O!==null;){if(o=O,o.flags&2048)switch(o.tag){case 0:case 11:case 15:pi(9,o,o.return)}var h=o.sibling;if(h!==null){h.return=o.return,O=h;break e}O=o.return}}var d=e.current;for(O=d;O!==null;){s=O;var v=s.child;if(s.subtreeFlags&2064&&v!==null)v.return=s,O=v;else e:for(s=d;O!==null;){if(a=O,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:As(9,a)}}catch(w){ue(a,a.return,w)}if(a===s){O=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,O=S;break e}O=a.return}}if(q=i,Tn(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(xs,e)}catch{}r=!0}return r}finally{X=n,at.transition=t}}return!1}function kd(e,t,n){t=Nr(n,t),t=Wm(e,t,1),e=mn(e,t,1),t=De(),e!==null&&(zi(e,1,t),Ge(e,t))}function ue(e,t,n){if(e.tag===3)kd(e,e,n);else for(;t!==null;){if(t.tag===3){kd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gn===null||!gn.has(r))){e=Nr(n,e),e=qm(t,e,1),t=mn(t,e,1),e=De(),t!==null&&(zi(t,1,e),Ge(t,e));break}}t=t.return}}function c1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=De(),e.pingedLanes|=e.suspendedLanes&n,ve===e&&(Te&n)===n&&(ge===4||ge===3&&(Te&130023424)===Te&&500>ce()-hc?Hn(e,0):dc|=n),Ge(e,t)}function hg(e,t){t===0&&(e.mode&1?(t=eo,eo<<=1,!(eo&130023424)&&(eo=4194304)):t=1);var n=De();e=Kt(e,t),e!==null&&(zi(e,t,n),Ge(e,n))}function f1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hg(e,n)}function d1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),hg(e,n)}var pg;pg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||He.current)ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ze=!1,J_(e,t,n);ze=!!(e.flags&131072)}else ze=!1,ne&&t.flags&1048576&&ym(t,ns,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Io(e,t),e=t.pendingProps;var i=Cr(t,Ae.current);xr(t,n),i=sc(null,t,r,e,i,n);var o=ac();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)?(o=!0,es(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,tc(t),i.updater=Rs,t.stateNode=i,i._reactInternals=t,Il(t,r,e,n),t=Fl(null,t,r,!0,o,n)):(t.tag=0,ne&&o&&Xu(t),Ie(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Io(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=p1(r),e=gt(r,e),i){case 0:t=Ml(null,t,r,e,n);break e;case 1:t=yd(null,t,r,e,n);break e;case 11:t=md(null,t,r,e,n);break e;case 14:t=gd(null,t,r,gt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),Ml(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),yd(e,t,r,i,n);case 3:e:{if(Km(t),e===null)throw Error(T(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Sm(e,t),os(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Nr(Error(T(423)),t),t=vd(e,t,r,n,i);break e}else if(r!==i){i=Nr(Error(T(424)),t),t=vd(e,t,r,n,i);break e}else for(Xe=pn(t.stateNode.containerInfo.firstChild),Qe=t,ne=!0,_t=null,n=Tm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(kr(),r===i){t=Zt(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return Cm(t),e===null&&Nl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Tl(r,i)?s=null:o!==null&&Tl(r,o)&&(t.flags|=32),Ym(e,t),Ie(e,t,s,n),t.child;case 6:return e===null&&Nl(t),null;case 13:return Zm(e,t,n);case 4:return nc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Or(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),md(e,t,r,i,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Y(rs,r._currentValue),r._currentValue=s,o!==null)if(Tt(o.value,s)){if(o.children===i.children&&!He.current){t=Zt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Xt(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Al(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(T(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Al(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ie(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,xr(t,n),i=lt(i),r=r(i),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,i=gt(r,t.pendingProps),i=gt(r.type,i),gd(e,t,r,i,n);case 15:return Xm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),Io(e,t),t.tag=1,$e(r)?(e=!0,es(t)):e=!1,xr(t,n),xm(t,r,i),Il(t,r,i,n),Fl(null,t,r,!0,e,n);case 19:return Jm(e,t,n);case 22:return Qm(e,t,n)}throw Error(T(156,t.tag))};function mg(e,t){return zp(e,t)}function h1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,r){return new h1(e,t,n,r)}function yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p1(e){if(typeof e=="function")return yc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fu)return 11;if(e===Lu)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fo(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")yc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case lr:return $n(n.children,i,o,t);case Mu:s=8,i|=8;break;case rl:return e=st(12,n,t,i|2),e.elementType=rl,e.lanes=o,e;case il:return e=st(13,n,t,i),e.elementType=il,e.lanes=o,e;case ol:return e=st(19,n,t,i),e.elementType=ol,e.lanes=o,e;case bp:return Is(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wp:s=10;break e;case xp:s=9;break e;case Fu:s=11;break e;case Lu:s=14;break e;case on:s=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=st(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $n(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Is(e,t,n,r){return e=st(22,e,r,t),e.elementType=bp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ia(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Da(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m1(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pa(0),this.expirationTimes=pa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function vc(e,t,n,r,i,o,s,a,l){return e=new m1(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=st(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},tc(o),e}function g1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ar,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function gg(e){if(!e)return Sn;e=e._reactInternals;e:{if(Jn(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($e(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if($e(n))return mm(e,n,t)}return t}function yg(e,t,n,r,i,o,s,a,l){return e=vc(n,r,!0,e,i,o,s,a,l),e.context=gg(null),n=e.current,r=De(),i=yn(n),o=Xt(r,i),o.callback=t??null,mn(n,o,i),e.current.lanes=i,zi(e,i,r),Ge(e,r),e}function Ds(e,t,n,r){var i=t.current,o=De(),s=yn(i);return n=gg(n),t.context===null?t.context=n:t.pendingContext=n,t=Xt(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mn(i,t,s),e!==null&&(xt(e,i,s,o),No(e,i,s)),s}function hs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Od(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _c(e,t){Od(e,t),(e=e.alternate)&&Od(e,t)}function y1(){return null}var vg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ec(e){this._internalRoot=e}Ms.prototype.render=Ec.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Ds(e,t,null,null)};Ms.prototype.unmount=Ec.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qn(function(){Ds(null,e,null,null)}),t[Yt]=null}};function Ms(e){this._internalRoot=e}Ms.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<an.length&&t!==0&&t<an[n].priority;n++);an.splice(n,0,e),n===0&&Yp(e)}};function Sc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Rd(){}function v1(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=hs(s);o.call(u)}}var s=yg(t,r,e,0,null,!1,!1,"",Rd);return e._reactRootContainer=s,e[Yt]=s.current,Ti(e.nodeType===8?e.parentNode:e),Qn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=hs(l);a.call(u)}}var l=vc(e,0,!1,null,null,!1,!1,"",Rd);return e._reactRootContainer=l,e[Yt]=l.current,Ti(e.nodeType===8?e.parentNode:e),Qn(function(){Ds(t,l,n,r)}),l}function Ls(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=hs(s);a.call(l)}}Ds(t,s,e,i)}else s=v1(n,t,e,i,r);return hs(s)}Wp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ri(t.pendingLanes);n!==0&&(Uu(t,n|1),Ge(t,ce()),!(q&6)&&(Ar=ce()+500,Tn()))}break;case 13:Qn(function(){var r=Kt(e,1);if(r!==null){var i=De();xt(r,e,1,i)}}),_c(e,1)}};zu=function(e){if(e.tag===13){var t=Kt(e,134217728);if(t!==null){var n=De();xt(t,e,134217728,n)}_c(e,134217728)}};qp=function(e){if(e.tag===13){var t=yn(e),n=Kt(e,t);if(n!==null){var r=De();xt(n,e,t,r)}_c(e,t)}};Xp=function(){return X};Qp=function(e,t){var n=X;try{return X=e,t()}finally{X=n}};ml=function(e,t,n){switch(t){case"input":if(ll(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ks(r);if(!i)throw Error(T(90));Cp(r),ll(r,i)}}}break;case"textarea":Op(e,n);break;case"select":t=n.value,t!=null&&_r(e,!!n.multiple,t,!1)}};Mp=pc;Fp=Qn;var _1={usingClientEntryPoint:!1,Events:[$i,dr,ks,Ip,Dp,pc]},qr={findFiberByHostInstance:jn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},E1={bundleType:qr.bundleType,version:qr.version,rendererPackageName:qr.rendererPackageName,rendererConfig:qr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:en.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=jp(e),e===null?null:e.stateNode},findFiberByHostInstance:qr.findFiberByHostInstance||y1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fo.isDisabled&&fo.supportsFiber)try{xs=fo.inject(E1),Ft=fo}catch{}}Je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_1;Je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sc(t))throw Error(T(200));return g1(e,t,null,n)};Je.createRoot=function(e,t){if(!Sc(e))throw Error(T(299));var n=!1,r="",i=vg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=vc(e,1,!1,null,null,n,!1,r,i),e[Yt]=t.current,Ti(e.nodeType===8?e.parentNode:e),new Ec(t)};Je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=jp(t),e=e===null?null:e.stateNode,e};Je.flushSync=function(e){return Qn(e)};Je.hydrate=function(e,t,n){if(!Fs(t))throw Error(T(200));return Ls(null,e,t,!0,n)};Je.hydrateRoot=function(e,t,n){if(!Sc(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=vg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=yg(t,null,e,1,n??null,i,!1,o,s),e[Yt]=t.current,Ti(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ms(t)};Je.render=function(e,t,n){if(!Fs(t))throw Error(T(200));return Ls(null,e,t,!1,n)};Je.unmountComponentAtNode=function(e){if(!Fs(e))throw Error(T(40));return e._reactRootContainer?(Qn(function(){Ls(null,null,e,!1,function(){e._reactRootContainer=null,e[Yt]=null})}),!0):!1};Je.unstable_batchedUpdates=pc;Je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fs(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Ls(e,t,n,!1,r)};Je.version="18.2.0-next-9e3b772b8-20220608";function _g(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_g)}catch(e){console.error(e)}}_g(),yp.exports=Je;var S1=yp.exports,Eg,Nd=S1;Eg=Nd.createRoot,Nd.hydrateRoot;var Sg={exports:{}},wg={};/**
41
- * @license React
42
- * use-sync-external-store-with-selector.production.min.js
43
- *
44
- * Copyright (c) Facebook, Inc. and its affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var Vi=A;function w1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var x1=typeof Object.is=="function"?Object.is:w1,b1=Vi.useSyncExternalStore,T1=Vi.useRef,C1=Vi.useEffect,k1=Vi.useMemo,O1=Vi.useDebugValue;wg.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=T1(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=k1(function(){function l(f){if(!u){if(u=!0,c=f,f=r(f),i!==void 0&&s.hasValue){var p=s.value;if(i(p,f))return m=p}return m=f}if(p=m,x1(c,f))return p;var y=r(f);return i!==void 0&&i(p,y)?p:(c=f,m=y)}var u=!1,c,m,g=n===void 0?null:n;return[function(){return l(t())},g===null?void 0:function(){return l(g())}]},[t,n,r,i]);var a=b1(e,o[0],o[1]);return C1(function(){s.hasValue=!0,s.value=a},[a]),O1(a),a};Sg.exports=wg;var R1=Sg.exports,z="default"in bf?St:bf,Ad=Symbol.for("react-redux-context"),Pd=typeof globalThis<"u"?globalThis:{};function N1(){if(!z.createContext)return{};const e=Pd[Ad]??(Pd[Ad]=new Map);let t=e.get(z.createContext);return t||(t=z.createContext(null),e.set(z.createContext,t)),t}var Di=N1(),xg=()=>{throw new Error("uSES not initialized!")};function bg(e=Di){return function(){return z.useContext(e)}}var A1=bg(),Tg=xg,P1=e=>{Tg=e},I1=(e,t)=>e===t;function D1(e=Di){const t=e===Di?A1:bg(e);return function(r,i={}){const{equalityFn:o=I1,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:m}=t();z.useRef(!0);const g=z.useCallback({[r.name](p){return r(p)}}[r.name],[r,c,s.stabilityCheck]),f=Tg(l.addNestedSub,a.getState,u||a.getState,g,o);return z.useDebugValue(f),f}}var M1=D1(),F1=Symbol.for("react.element"),L1=Symbol.for("react.portal"),B1=Symbol.for("react.fragment"),j1=Symbol.for("react.strict_mode"),U1=Symbol.for("react.profiler"),z1=Symbol.for("react.provider"),H1=Symbol.for("react.context"),$1=Symbol.for("react.server_context"),Cg=Symbol.for("react.forward_ref"),G1=Symbol.for("react.suspense"),V1=Symbol.for("react.suspense_list"),wc=Symbol.for("react.memo"),W1=Symbol.for("react.lazy"),q1=Cg,X1=wc;function Q1(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case F1:{const n=e.type;switch(n){case B1:case U1:case j1:case G1:case V1:return n;default:{const r=n&&n.$$typeof;switch(r){case $1:case H1:case Cg:case W1:case wc:case z1:return r;default:return t}}}}case L1:return t}}}function Y1(e){return Q1(e)===wc}function K1(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a=!1,l,u,c,m,g;function f(d,v){return l=d,u=v,c=e(l,u),m=t(r,u),g=n(c,m,u),a=!0,g}function p(){return c=e(l,u),t.dependsOnOwnProps&&(m=t(r,u)),g=n(c,m,u),g}function y(){return e.dependsOnOwnProps&&(c=e(l,u)),t.dependsOnOwnProps&&(m=t(r,u)),g=n(c,m,u),g}function E(){const d=e(l,u),v=!s(d,c);return c=d,v&&(g=n(c,m,u)),g}function h(d,v){const S=!o(v,u),w=!i(d,l,v,u);return l=d,u=v,S&&w?p():S?y():w?E():g}return function(v,S){return a?h(v,S):f(v,S)}}function Z1(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),s=n(e,i),a=r(e,i);return K1(o,s,a,e,i)}function J1(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function Xl(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Id(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function kg(e,t){return function(r,{displayName:i}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=Id(e);let u=o(a,l);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=Id(u),u=o(a,l)),u},o}}function xc(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function eE(e){return e&&typeof e=="object"?Xl(t=>J1(e,t)):e?typeof e=="function"?kg(e):xc(e,"mapDispatchToProps"):Xl(t=>({dispatch:t}))}function tE(e){return e?typeof e=="function"?kg(e):xc(e,"mapStateToProps"):Xl(()=>({}))}function nE(e,t,n){return{...n,...e,...t}}function rE(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(l,u,c){const m=e(l,u,c);return o?i(m,s)||(s=m):(o=!0,s=m),s}}}function iE(e){return e?typeof e=="function"?rE(e):xc(e,"mergeProps"):()=>nE}function oE(e){e()}function sE(){let e=null,t=null;return{clear(){e=null,t=null},notify(){oE(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){let n=[],r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Dd={notify(){},get:()=>[]};function Og(e,t){let n,r=Dd,i=0,o=!1;function s(y){c();const E=r.subscribe(y);let h=!1;return()=>{h||(h=!0,E(),m())}}function a(){r.notify()}function l(){p.onStateChange&&p.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=sE())}function m(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Dd)}function g(){o||(o=!0,c())}function f(){o&&(o=!1,m())}const p={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:g,tryUnsubscribe:f,getListeners:()=>r};return p}var aE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ps=aE?z.useLayoutEffect:z.useEffect;function Md(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Ma(e,t){if(Md(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Md(e[n[i]],t[n[i]]))return!1;return!0}var lE={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uE={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fE={[q1]:cE,[X1]:Rg};function Fd(e){return Y1(e)?Rg:fE[e.$$typeof]||lE}var dE=Object.defineProperty,hE=Object.getOwnPropertyNames,Ld=Object.getOwnPropertySymbols,pE=Object.getOwnPropertyDescriptor,mE=Object.getPrototypeOf,Bd=Object.prototype;function Ql(e,t){if(typeof t!="string"){if(Bd){const o=mE(t);o&&o!==Bd&&Ql(e,o)}let n=hE(t);Ld&&(n=n.concat(Ld(t)));const r=Fd(e),i=Fd(t);for(let o=0;o<n.length;++o){const s=n[o];if(!uE[s]&&!(i&&i[s])&&!(r&&r[s])){const a=pE(t,s);try{dE(e,s,a)}catch{}}}}return e}var Ng=xg,gE=e=>{Ng=e},yE=[null,null];function vE(e,t,n){ps(()=>e(...t),n)}function _E(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function EE(e,t,n,r,i,o,s,a,l,u,c){if(!e)return()=>{};let m=!1,g=null;const f=()=>{if(m||!a.current)return;const y=t.getState();let E,h;try{E=r(y,i.current)}catch(d){h=d,g=d}h||(g=null),E===o.current?s.current||u():(o.current=E,l.current=E,s.current=!0,c())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(m=!0,n.tryUnsubscribe(),n.onStateChange=null,g)throw g}}function SE(e,t){return e===t}function wE(e,t,n,{pure:r,areStatesEqual:i=SE,areOwnPropsEqual:o=Ma,areStatePropsEqual:s=Ma,areMergedPropsEqual:a=Ma,forwardRef:l=!1,context:u=Di}={}){const c=u,m=tE(e),g=eE(t),f=iE(n),p=!!e;return E=>{const h=E.displayName||E.name||"Component",d=`Connect(${h})`,v={shouldHandleStateChanges:p,displayName:d,wrappedComponentName:h,WrappedComponent:E,initMapStateToProps:m,initMapDispatchToProps:g,initMergeProps:f,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function S(b){const[C,F,P]=z.useMemo(()=>{const{reactReduxForwardedRef:nt,...jr}=b;return[b.context,nt,jr]},[b]),re=z.useMemo(()=>{let nt=c;return C!=null&&C.Consumer,nt},[C,c]),pe=z.useContext(re),Ee=!!b.store&&!!b.store.getState&&!!b.store.dispatch,On=!!pe&&!!pe.store,Ve=Ee?b.store:pe.store,We=On?pe.getServerState:Ve.getState,Rn=z.useMemo(()=>Z1(Ve.dispatch,v),[Ve]),[k,D]=z.useMemo(()=>{if(!p)return yE;const nt=Og(Ve,Ee?void 0:pe.subscription),jr=nt.notifyNestedSubs.bind(nt);return[nt,jr]},[Ve,Ee,pe]),M=z.useMemo(()=>Ee?pe:{...pe,subscription:k},[Ee,pe,k]),K=z.useRef(),ae=z.useRef(P),kt=z.useRef(),Ot=z.useRef(!1);z.useRef(!1);const Nn=z.useRef(!1),ht=z.useRef();ps(()=>(Nn.current=!0,()=>{Nn.current=!1}),[]);const An=z.useMemo(()=>()=>kt.current&&P===ae.current?kt.current:Rn(Ve.getState(),P),[Ve,P]),qv=z.useMemo(()=>jr=>k?EE(p,Ve,k,Rn,ae,K,Ot,Nn,kt,D,jr):()=>{},[k]);vE(_E,[ae,K,Ot,P,kt,D]);let Xi;try{Xi=Ng(qv,An,We?()=>Rn(We(),P):An)}catch(nt){throw ht.current&&(nt.message+=`
49
- The error may be correlated with this previous error:
50
- ${ht.current.stack}
51
-
52
- `),nt}ps(()=>{ht.current=void 0,kt.current=void 0,K.current=Xi});const la=z.useMemo(()=>z.createElement(E,{...Xi,ref:F}),[F,E,Xi]);return z.useMemo(()=>p?z.createElement(re.Provider,{value:M},la):la,[re,la,M])}const x=z.memo(S);if(x.WrappedComponent=E,x.displayName=S.displayName=d,l){const C=z.forwardRef(function(P,re){return z.createElement(x,{...P,reactReduxForwardedRef:re})});return C.displayName=d,C.WrappedComponent=E,Ql(C,E)}return Ql(x,E)}}var xE=wE;function bE({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const s=z.useMemo(()=>{const u=Og(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),a=z.useMemo(()=>e.getState(),[e]);ps(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||Di;return z.createElement(l.Provider,{value:s},n)}var TE=bE;P1(R1.useSyncExternalStoreWithSelector);gE(A.useSyncExternalStore);var Yl=function(e,t){return Yl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Yl(e,t)};function ft(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Yl(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var N=function(){return N=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},N.apply(this,arguments)};function Bs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function It(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Ag={exports:{}},Q={};/** @license React v16.13.1
53
- * react-is.production.min.js
54
- *
55
- * Copyright (c) Facebook, Inc. and its affiliates.
56
- *
57
- * This source code is licensed under the MIT license found in the
58
- * LICENSE file in the root directory of this source tree.
59
- */var _e=typeof Symbol=="function"&&Symbol.for,bc=_e?Symbol.for("react.element"):60103,Tc=_e?Symbol.for("react.portal"):60106,js=_e?Symbol.for("react.fragment"):60107,Us=_e?Symbol.for("react.strict_mode"):60108,zs=_e?Symbol.for("react.profiler"):60114,Hs=_e?Symbol.for("react.provider"):60109,$s=_e?Symbol.for("react.context"):60110,Cc=_e?Symbol.for("react.async_mode"):60111,Gs=_e?Symbol.for("react.concurrent_mode"):60111,Vs=_e?Symbol.for("react.forward_ref"):60112,Ws=_e?Symbol.for("react.suspense"):60113,CE=_e?Symbol.for("react.suspense_list"):60120,qs=_e?Symbol.for("react.memo"):60115,Xs=_e?Symbol.for("react.lazy"):60116,kE=_e?Symbol.for("react.block"):60121,OE=_e?Symbol.for("react.fundamental"):60117,RE=_e?Symbol.for("react.responder"):60118,NE=_e?Symbol.for("react.scope"):60119;function tt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case bc:switch(e=e.type,e){case Cc:case Gs:case js:case zs:case Us:case Ws:return e;default:switch(e=e&&e.$$typeof,e){case $s:case Vs:case Xs:case qs:case Hs:return e;default:return t}}case Tc:return t}}}function Pg(e){return tt(e)===Gs}Q.AsyncMode=Cc;Q.ConcurrentMode=Gs;Q.ContextConsumer=$s;Q.ContextProvider=Hs;Q.Element=bc;Q.ForwardRef=Vs;Q.Fragment=js;Q.Lazy=Xs;Q.Memo=qs;Q.Portal=Tc;Q.Profiler=zs;Q.StrictMode=Us;Q.Suspense=Ws;Q.isAsyncMode=function(e){return Pg(e)||tt(e)===Cc};Q.isConcurrentMode=Pg;Q.isContextConsumer=function(e){return tt(e)===$s};Q.isContextProvider=function(e){return tt(e)===Hs};Q.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===bc};Q.isForwardRef=function(e){return tt(e)===Vs};Q.isFragment=function(e){return tt(e)===js};Q.isLazy=function(e){return tt(e)===Xs};Q.isMemo=function(e){return tt(e)===qs};Q.isPortal=function(e){return tt(e)===Tc};Q.isProfiler=function(e){return tt(e)===zs};Q.isStrictMode=function(e){return tt(e)===Us};Q.isSuspense=function(e){return tt(e)===Ws};Q.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===js||e===Gs||e===zs||e===Us||e===Ws||e===CE||typeof e=="object"&&e!==null&&(e.$$typeof===Xs||e.$$typeof===qs||e.$$typeof===Hs||e.$$typeof===$s||e.$$typeof===Vs||e.$$typeof===OE||e.$$typeof===RE||e.$$typeof===NE||e.$$typeof===kE)};Q.typeOf=tt;Ag.exports=Q;var AE=Ag.exports,Ig=AE,PE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},IE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Dg={};Dg[Ig.ForwardRef]=PE;Dg[Ig.Memo]=IE;function Mg(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var j;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(j||(j={}));var J;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(J||(J={}));var Pr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Pr||(Pr={}));function jd(e){return e.type===J.literal}function DE(e){return e.type===J.argument}function Fg(e){return e.type===J.number}function Lg(e){return e.type===J.date}function Bg(e){return e.type===J.time}function jg(e){return e.type===J.select}function Ug(e){return e.type===J.plural}function ME(e){return e.type===J.pound}function zg(e){return e.type===J.tag}function Hg(e){return!!(e&&typeof e=="object"&&e.type===Pr.number)}function Kl(e){return!!(e&&typeof e=="object"&&e.type===Pr.dateTime)}var $g=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,FE=/(?:[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 LE(e){var t={};return e.replace(FE,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===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":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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""}),t}var BE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function jE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(BE).filter(function(g){return g.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var m=c[u];if(m.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function UE(e){return e.replace(/^(.*?)-/,"")}var Ud=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Gg=/^(@+)?(\+|#+)?[rs]?$/g,zE=/(\*)(0+)|(#+)(0+)|(0+)/g,Vg=/^(0+)$/;function zd(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Gg,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Wg(e){switch(e){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 HE(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Vg.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Hd(e){var t={},n=Wg(e);return n||t}function $E(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=UE(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=N(N(N({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return N(N({},l),Hd(u))},{}));continue;case"engineering":t=N(N(N({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return N(N({},l),Hd(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(zE,function(l,u,c,m,g,f){if(u)t.minimumIntegerDigits=c.length;else{if(m&&g)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Vg.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ud.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ud,function(l,u,c,m,g,f){return c==="*"?t.minimumFractionDigits=u.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:g&&f?(t.minimumFractionDigits=g.length,t.maximumFractionDigits=g.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=N(N({},t),zd(o)));continue}if(Gg.test(i.stem)){t=N(N({},t),zd(i.stem));continue}var s=Wg(i.stem);s&&(t=N(N({},t),s));var a=HE(i.stem);a&&(t=N(N({},t),a))}return t}var ho={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 GE(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=VE(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function VE(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=ho[r||""]||ho[n||""]||ho["".concat(n,"-001")]||ho["001"];return i[0]}var Fa,WE=new RegExp("^".concat($g.source,"*")),qE=new RegExp("".concat($g.source,"*$"));function $(e,t){return{start:e,end:t}}var XE=!!String.prototype.startsWith&&"_a".startsWith("a",1),QE=!!String.fromCodePoint,YE=!!Object.fromEntries,KE=!!String.prototype.codePointAt,ZE=!!String.prototype.trimStart,JE=!!String.prototype.trimEnd,eS=!!Number.isSafeInteger,tS=eS?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Zl=!0;try{var nS=Xg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Zl=((Fa=nS.exec("a"))===null||Fa===void 0?void 0:Fa[0])==="a"}catch{Zl=!1}var $d=XE?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Jl=QE?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Gd=YE?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},qg=KE?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},rS=ZE?function(t){return t.trimStart()}:function(t){return t.replace(WE,"")},iS=JE?function(t){return t.trimEnd()}:function(t){return t.replace(qE,"")};function Xg(e,t){return new RegExp(e,t)}var eu;if(Zl){var Vd=Xg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");eu=function(t,n){var r;Vd.lastIndex=n;var i=Vd.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else eu=function(t,n){for(var r=[];;){var i=qg(t,n);if(i===void 0||Qg(i)||lS(i))break;r.push(i),n+=i>=65536?2:1}return Jl.apply(void 0,r)};var oS=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:J.pound,location:$(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(j.UNMATCHED_CLOSING_TAG,$(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&tu(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:J.literal,value:"<".concat(i,"/>"),location:$(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!tu(this.char()))return this.error(j.INVALID_TAG,$(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(j.UNMATCHED_CLOSING_TAG,$(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:J.tag,value:i,children:s,location:$(r,this.clonePosition())},err:null}:this.error(j.INVALID_TAG,$(a,this.clonePosition())))}else return this.error(j.UNCLOSED_TAG,$(r,this.clonePosition()))}else return this.error(j.INVALID_TAG,$(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&aS(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=$(r,this.clonePosition());return{val:{type:J.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!sS(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){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(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Jl.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Jl(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(j.EMPTY_ARGUMENT,$(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(j.MALFORMED_ARGUMENT,$(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:J.argument,value:i,location:$(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(j.MALFORMED_ARGUMENT,$(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=eu(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=$(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(j.EXPECT_ARGUMENT_TYPE,$(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var g=iS(m.val);if(g.length===0)return this.error(j.EXPECT_ARGUMENT_STYLE,$(this.clonePosition(),this.clonePosition()));var f=$(c,this.clonePosition());u={style:g,styleLocation:f}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var y=$(i,this.clonePosition());if(u&&$d(u==null?void 0:u.style,"::",0)){var E=rS(u.style.slice(2));if(a==="number"){var m=this.parseNumberSkeletonFromString(E,u.styleLocation);return m.err?m:{val:{type:J.number,value:r,location:y,style:m.val},err:null}}else{if(E.length===0)return this.error(j.EXPECT_DATE_TIME_SKELETON,y);var h=E;this.locale&&(h=GE(E,this.locale));var g={type:Pr.dateTime,pattern:h,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?LE(h):{}},d=a==="date"?J.date:J.time;return{val:{type:d,value:r,location:y,style:g},err:null}}}return{val:{type:a==="number"?J.number:a==="date"?J.date:J.time,value:r,location:y,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(j.EXPECT_SELECT_ARGUMENT_OPTIONS,$(v,N({},v)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),w=0;if(a!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(j.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(j.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,j.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),S=this.parseIdentifierIfPossible(),w=m.val}var x=this.tryParsePluralOrSelectOptions(t,a,n,S);if(x.err)return x;var p=this.tryParseArgumentClose(i);if(p.err)return p;var b=$(i,this.clonePosition());return a==="select"?{val:{type:J.select,value:r,options:Gd(x.val),location:b},err:null}:{val:{type:J.plural,value:r,options:Gd(x.val),offset:w,pluralType:a==="plural"?"cardinal":"ordinal",location:b},err:null}}default:return this.error(j.INVALID_ARGUMENT_TYPE,$(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,$(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(j.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=jE(t)}catch{return this.error(j.INVALID_NUMBER_SKELETON,n)}return{val:{type:Pr.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?$E(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var m=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(j.EXPECT_PLURAL_ARGUMENT_SELECTOR,j.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;c=$(m,this.clonePosition()),u=this.message.slice(m.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?j.DUPLICATE_SELECT_ARGUMENT_SELECTOR:j.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?j.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:j.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,$(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,r);if(p.err)return p;var y=this.tryParseArgumentClose(f);if(y.err)return y;a.push([u,{value:p.val,location:$(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(n==="select"?j.EXPECT_SELECT_ARGUMENT_SELECTOR:j.EXPECT_PLURAL_ARGUMENT_SELECTOR,$(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(j.MISSING_OTHER_CLAUSE,$(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=$(i,this.clonePosition());return o?(s*=r,tS(s)?{val:s,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=qg(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if($d(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Qg(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function tu(e){return e>=97&&e<=122||e>=65&&e<=90}function sS(e){return tu(e)||e===47}function aS(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Qg(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function lS(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function nu(e){e.forEach(function(t){if(delete t.location,jg(t)||Ug(t))for(var n in t.options)delete t.options[n].location,nu(t.options[n].value);else Fg(t)&&Hg(t.style)||(Lg(t)||Bg(t))&&Kl(t.style)?delete t.style.location:zg(t)&&nu(t.children)})}function uS(e,t){t===void 0&&(t={}),t=N({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new oS(e,t).parse();if(n.err){var r=SyntaxError(j[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||nu(n.val),n.val}function At(e,t){var n=t&&t.cache?t.cache:mS,r=t&&t.serializer?t.serializer:pS,i=t&&t.strategy?t.strategy:fS;return i(e,{cache:n,serializer:r})}function cS(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Yg(e,t,n,r){var i=cS(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function Kg(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function kc(e,t,n,r,i){return n.bind(t,e,r,i)}function fS(e,t){var n=e.length===1?Yg:Kg;return kc(e,this,n,t.cache.create(),t.serializer)}function dS(e,t){return kc(e,this,Kg,t.cache.create(),t.serializer)}function hS(e,t){return kc(e,this,Yg,t.cache.create(),t.serializer)}var pS=function(){return JSON.stringify(arguments)};function Oc(){this.cache=Object.create(null)}Oc.prototype.get=function(e){return this.cache[e]};Oc.prototype.set=function(e,t){this.cache[e]=t};var mS={create:function(){return new Oc}},Pt={variadic:dS,monadic:hS},jt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(jt||(jt={}));var Cn=function(e){ft(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Wd=function(e){ft(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),jt.INVALID_VALUE,o)||this}return t}(Cn),gS=function(e){ft(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),jt.INVALID_VALUE,i)||this}return t}(Cn),yS=function(e){ft(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),jt.MISSING_VALUE,r)||this}return t}(Cn),Pe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Pe||(Pe={}));function vS(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Pe.literal||n.type!==Pe.literal?t.push(n):r.value+=n.value,t},[])}function Zg(e){return typeof e=="function"}function Lo(e,t,n,r,i,o,s){if(e.length===1&&jd(e[0]))return[{type:Pe.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(jd(c)){a.push({type:Pe.literal,value:c.value});continue}if(ME(c)){typeof o=="number"&&a.push({type:Pe.literal,value:n.getNumberFormat(t).format(o)});continue}var m=c.value;if(!(i&&m in i))throw new yS(m,s);var g=i[m];if(DE(c)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),a.push({type:typeof g=="string"?Pe.literal:Pe.object,value:g});continue}if(Lg(c)){var f=typeof c.style=="string"?r.date[c.style]:Kl(c.style)?c.style.parsedOptions:void 0;a.push({type:Pe.literal,value:n.getDateTimeFormat(t,f).format(g)});continue}if(Bg(c)){var f=typeof c.style=="string"?r.time[c.style]:Kl(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:Pe.literal,value:n.getDateTimeFormat(t,f).format(g)});continue}if(Fg(c)){var f=typeof c.style=="string"?r.number[c.style]:Hg(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(g=g*(f.scale||1)),a.push({type:Pe.literal,value:n.getNumberFormat(t,f).format(g)});continue}if(zg(c)){var p=c.children,y=c.value,E=i[y];if(!Zg(E))throw new gS(y,"function",s);var h=Lo(p,t,n,r,i,o),d=E(h.map(function(w){return w.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(w){return{type:typeof w=="string"?Pe.literal:Pe.object,value:w}}))}if(jg(c)){var v=c.options[g]||c.options.other;if(!v)throw new Wd(c.value,g,Object.keys(c.options),s);a.push.apply(a,Lo(v.value,t,n,r,i));continue}if(Ug(c)){var v=c.options["=".concat(g)];if(!v){if(!Intl.PluralRules)throw new Cn(`Intl.PluralRules is not available in this environment.
60
- Try polyfilling it using "@formatjs/intl-pluralrules"
61
- `,jt.MISSING_INTL_API,s);var S=n.getPluralRules(t,{type:c.pluralType}).select(g-(c.offset||0));v=c.options[S]||c.options.other}if(!v)throw new Wd(c.value,g,Object.keys(c.options),s);a.push.apply(a,Lo(v.value,t,n,r,i,g-(c.offset||0)));continue}}return vS(a)}function _S(e,t){return t?N(N(N({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=N(N({},e[r]),t[r]||{}),n},{})):e}function ES(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=_S(e[r],t[r]),n},N({},e)):e}function La(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function SS(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:At(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,It([void 0],n,!1)))},{cache:La(e.number),strategy:Pt.variadic}),getDateTimeFormat:At(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,It([void 0],n,!1)))},{cache:La(e.dateTime),strategy:Pt.variadic}),getPluralRules:At(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,It([void 0],n,!1)))},{cache:La(e.pluralRules),strategy:Pt.variadic})}}var Jg=function(){function e(t,n,r,i){var o=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(m,g){return!m.length||g.type!==Pe.literal||typeof m[m.length-1]!="string"?m.push(g.value):m[m.length-1]+=g.value,m},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Lo(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Bs(s,["formatters"]);this.ast=e.__parse(t,N(N({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ES(e.formats,r),this.formatters=i&&i.formatters||SS(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=uS,e.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"}}},e}(),Yn;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Yn||(Yn={}));var Wi=function(e){ft(t,e);function t(n,r,i){var o=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
62
- `).concat(s?`
63
- `.concat(s.message,`
64
- `).concat(s.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),wS=function(e){ft(t,e);function t(n,r){return e.call(this,Yn.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Wi),xS=function(e){ft(t,e);function t(n,r){return e.call(this,Yn.INVALID_CONFIG,n,r)||this}return t}(Wi),qd=function(e){ft(t,e);function t(n,r){return e.call(this,Yn.MISSING_DATA,n,r)||this}return t}(Wi),dt=function(e){ft(t,e);function t(n,r,i){var o=e.call(this,Yn.FORMAT_ERROR,"".concat(n,`
65
- Locale: `).concat(r,`
66
- `),i)||this;return o.locale=r,o}return t}(Wi),Ba=function(e){ft(t,e);function t(n,r,i,o){var s=e.call(this,"".concat(n,`
67
- MessageID: `).concat(i==null?void 0:i.id,`
68
- Default Message: `).concat(i==null?void 0:i.defaultMessage,`
69
- Description: `).concat(i==null?void 0:i.description,`
70
- `),r,o)||this;return s.descriptor=i,s.locale=r,s}return t}(dt),bS=function(e){ft(t,e);function t(n,r){var i=e.call(this,Yn.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(o){var s;return(s=o.value)!==null&&s!==void 0?s:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(Wi);function er(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var TS=function(e){},CS=function(e){},ey={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:TS,onWarn:CS};function ty(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Pn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function kS(e){e===void 0&&(e=ty());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=At(function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((a=Intl.DateTimeFormat).bind.apply(a,It([void 0],l,!1)))},{cache:Pn(e.dateTime),strategy:Pt.variadic}),o=At(function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((a=Intl.NumberFormat).bind.apply(a,It([void 0],l,!1)))},{cache:Pn(e.number),strategy:Pt.variadic}),s=At(function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((a=Intl.PluralRules).bind.apply(a,It([void 0],l,!1)))},{cache:Pn(e.pluralRules),strategy:Pt.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:At(function(a,l,u,c){return new Jg(a,l,u,N({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:s}},c||{}))},{cache:Pn(e.message),strategy:Pt.variadic}),getRelativeTimeFormat:At(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(t.bind.apply(t,It([void 0],a,!1)))},{cache:Pn(e.relativeTime),strategy:Pt.variadic}),getPluralRules:s,getListFormat:At(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(n.bind.apply(n,It([void 0],a,!1)))},{cache:Pn(e.list),strategy:Pt.variadic}),getDisplayNames:At(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(r.bind.apply(r,It([void 0],a,!1)))},{cache:Pn(e.displayNames),strategy:Pt.variadic})}}function Rc(e,t,n,r){var i=e&&e[t],o;if(i&&(o=i[n]),o)return o;r(new wS("No ".concat(t," format named: ").concat(n)))}function po(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=N({timeZone:t},e[r]),n},{})}function Xd(e,t){var n=Object.keys(N(N({},e),t));return n.reduce(function(r,i){return r[i]=N(N({},e[i]||{}),t[i]||{}),r},{})}function Qd(e,t){if(!t)return e;var n=Jg.formats;return N(N(N({},n),e),{date:Xd(po(n.date,t),po(e.date||{},t)),time:Xd(po(n.time,t),po(e.time||{},t))})}var ru=function(e,t,n,r,i){var o=e.locale,s=e.formats,a=e.messages,l=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,m=e.onError,g=e.timeZone,f=e.defaultRichTextElements;n===void 0&&(n={id:""});var p=n.id,y=n.defaultMessage;Mg(!!p,"[@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.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var E=String(p),h=a&&Object.prototype.hasOwnProperty.call(a,E)&&a[E];if(Array.isArray(h)&&h.length===1&&h[0].type===J.literal)return h[0].value;if(!r&&h&&typeof h=="string"&&!f)return h.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=N(N({},f),r||{}),s=Qd(s,g),u=Qd(u,g),!h){if(c===!1&&h==="")return h;if((!y||o&&o.toLowerCase()!==l.toLowerCase())&&m(new bS(n,o)),y)try{var d=t.getMessageFormat(y,l,u,i);return d.format(r)}catch(v){return m(new Ba('Error formatting default message for: "'.concat(E,'", rendering default message verbatim'),o,n,v)),typeof y=="string"?y:E}return E}try{var d=t.getMessageFormat(h,o,s,N({formatters:t},i||{}));return d.format(r)}catch(v){m(new Ba('Error formatting message: "'.concat(E,'", using ').concat(y?"default message":"id"," as fallback."),o,n,v))}if(y)try{var d=t.getMessageFormat(y,l,u,i);return d.format(r)}catch(v){m(new Ba('Error formatting the default message for: "'.concat(E,'", rendering message verbatim'),o,n,v))}return typeof h=="string"?h:typeof y=="string"?y:E},ny=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Qs(e,t,n,r){var i=e.locale,o=e.formats,s=e.onError,a=e.timeZone;r===void 0&&(r={});var l=r.format,u=N(N({},a&&{timeZone:a}),l&&Rc(o,t,l,s)),c=er(r,ny,u);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=N(N({},c),{hour:"numeric",minute:"numeric"})),n(i,c)}function OS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return Qs(e,"date",t,s).format(a)}catch(l){e.onError(new dt("Error formatting date.",e.locale,l))}return String(a)}function RS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return Qs(e,"time",t,s).format(a)}catch(l){e.onError(new dt("Error formatting time.",e.locale,l))}return String(a)}function NS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=n[2],a=s===void 0?{}:s,l=e.timeZone,u=e.locale,c=e.onError,m=er(a,ny,l?{timeZone:l}:{});try{return t(u,m).formatRange(i,o)}catch(g){c(new dt("Error formatting date time range.",e.locale,g))}return String(i)}function AS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return Qs(e,"date",t,s).formatToParts(a)}catch(l){e.onError(new dt("Error formatting date.",e.locale,l))}return[]}function PS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return Qs(e,"time",t,s).formatToParts(a)}catch(l){e.onError(new dt("Error formatting time.",e.locale,l))}return[]}var IS=["style","type","fallback","languageDisplay"];function DS(e,t,n,r){var i=e.locale,o=e.onError,s=Intl.DisplayNames;s||o(new Cn(`Intl.DisplayNames is not available in this environment.
71
- Try polyfilling it using "@formatjs/intl-displaynames"
72
- `,jt.MISSING_INTL_API));var a=er(r,IS);try{return t(i,a).of(n)}catch(l){o(new dt("Error formatting display name.",i,l))}}var MS=["type","style"],Yd=Date.now();function FS(e){return"".concat(Yd,"_").concat(e,"_").concat(Yd)}function LS(e,t,n,r){r===void 0&&(r={});var i=ry(e,t,n,r).reduce(function(o,s){var a=s.value;return typeof a!="string"?o.push(a):typeof o[o.length-1]=="string"?o[o.length-1]+=a:o.push(a),o},[]);return i.length===1?i[0]:i.length===0?"":i}function ry(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||o(new Cn(`Intl.ListFormat is not available in this environment.
73
- Try polyfilling it using "@formatjs/intl-listformat"
74
- `,jt.MISSING_INTL_API));var a=er(r,MS);try{var l={},u=n.map(function(c,m){if(typeof c=="object"){var g=FS(m);return l[g]=c,g}return String(c)});return t(i,a).formatToParts(u).map(function(c){return c.type==="literal"?c:N(N({},c),{value:l[c.value]||c.value})})}catch(c){o(new dt("Error formatting list.",i,c))}return n}var BS=["type"];function jS(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new Cn(`Intl.PluralRules is not available in this environment.
75
- Try polyfilling it using "@formatjs/intl-pluralrules"
76
- `,jt.MISSING_INTL_API));var s=er(r,BS);try{return t(i,s).select(n)}catch(a){o(new dt("Error formatting plural.",i,a))}return"other"}var US=["numeric","style"];function zS(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&Rc(i,"relative",s,o)||{},l=er(n,US,a);return t(r,l)}function HS(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Cn(`Intl.RelativeTimeFormat is not available in this environment.
77
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
78
- `,jt.MISSING_INTL_API));try{return zS(e,t,i).format(n,r)}catch(s){e.onError(new dt("Error formatting relative time.",e.locale,s))}return String(n)}var $S=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function iy(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=s&&Rc(i,"number",s,o)||{},l=er(n,$S,a);return t(r,l)}function GS(e,t,n,r){r===void 0&&(r={});try{return iy(e,t,r).format(n)}catch(i){e.onError(new dt("Error formatting number.",e.locale,i))}return String(n)}function VS(e,t,n,r){r===void 0&&(r={});try{return iy(e,t,r).formatToParts(n)}catch(i){e.onError(new dt("Error formatting number.",e.locale,i))}return[]}function WS(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function qS(e){e.onWarn&&e.defaultRichTextElements&&WS(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
79
- Please consider using "@formatjs/cli" to pre-compile your messages for performance.
80
- For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function XS(e,t){var n=kS(t),r=N(N({},ey),e),i=r.locale,o=r.defaultLocale,s=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new qd('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new qd('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new xS('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),qS(r),N(N({},r),{formatters:n,formatNumber:GS.bind(null,r,n.getNumberFormat),formatNumberToParts:VS.bind(null,r,n.getNumberFormat),formatRelativeTime:HS.bind(null,r,n.getRelativeTimeFormat),formatDate:OS.bind(null,r,n.getDateTimeFormat),formatDateToParts:AS.bind(null,r,n.getDateTimeFormat),formatTime:RS.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:NS.bind(null,r,n.getDateTimeFormat),formatTimeToParts:PS.bind(null,r,n.getDateTimeFormat),formatPlural:jS.bind(null,r,n.getPluralRules),formatMessage:ru.bind(null,r,n),$t:ru.bind(null,r,n),formatList:LS.bind(null,r,n.getListFormat),formatListToParts:ry.bind(null,r,n.getListFormat),formatDisplayName:DS.bind(null,r,n.getDisplayNames)})}function oy(e){Mg(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var sy=N(N({},ey),{textComponent:A.Fragment});function QS(e){return function(t){return e(A.Children.toArray(t))}}function YS(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var s=n[o];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var Nc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=A.createContext(null)):A.createContext(null);Nc.Consumer;var KS=Nc.Provider,ZS=KS,JS=Nc;function Ys(){var e=A.useContext(JS);return oy(e),e}var iu;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(iu||(iu={}));var ou;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(ou||(ou={}));function ay(e){var t=function(n){var r=Ys(),i=n.value,o=n.children,s=Bs(n,["value","children"]),a=typeof i=="string"?new Date(i||0):i,l=e==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return o(l)};return t.displayName=ou[e],t}function qi(e){var t=function(n){var r=Ys(),i=n.value,o=n.children,s=Bs(n,["value","children"]),a=r[e](i,s);if(typeof o=="function")return o(a);var l=r.textComponent||A.Fragment;return A.createElement(l,null,a)};return t.displayName=iu[e],t}function ja(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function ly(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=Zg(r)?QS(r):r,t},{})}var Kd=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var s=ly(r),a=ru.apply(void 0,It([e,t,n,s],i,!1));return Array.isArray(a)?A.Children.toArray(a):a},Zd=function(e,t){var n=e.defaultRichTextElements,r=Bs(e,["defaultRichTextElements"]),i=ly(n),o=XS(N(N(N({},sy),r),{defaultRichTextElements:i}),t),s={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return N(N({},o),{formatMessage:Kd.bind(null,s,o.formatters),$t:Kd.bind(null,s,o.formatters)})},ew=function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=ty(),n.state={cache:n.cache,intl:Zd(ja(n.props),n.cache),prevConfig:ja(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var i=r.prevConfig,o=r.cache,s=ja(n);return YS(i,s)?null:{intl:Zd(s,o),prevConfig:s}},t.prototype.render=function(){return oy(this.state.intl),A.createElement(ZS,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=sy,t}(A.PureComponent);const tw=ew;qi("formatDate");qi("formatTime");qi("formatNumber");qi("formatList");qi("formatDisplayName");ay("formatDate");ay("formatTime");const nw="_chatPage_9ezu4_10",rw={chatPage:nw};var G={},uy={},I={};Object.defineProperty(I,"__esModule",{value:!0});I.CONVERSATION_RATING_FROM_GUEST=I.PROBLEM_REPORT_FROM_GUEST=I.TRANSCRIPT_MAIL_REQUEST=I.INBOX_CONNECT_REQUEST=I.EVENT_TO_GUEST=I.NLU_REQUEST_EVENT=I.EXPERTS_DISCONNECTED=I.EXPERTS_DISCONNECT_REQUEST=I.EXPERTS_CONNECTED=I.EXPERTS_CONNECT_REQUEST=I.MESSAGE_TO_GUEST=I.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=I.MESSAGE_FROM_GUEST=I.GUEST_FEEDBACK_RESPONSE=I.GUEST_DISCONNECTED=I.GUEST_CONNECTED=I.TYPING_OFF=I.TYPING_ON=void 0;I.TYPING_ON="core.typing.on";I.TYPING_OFF="core.typing.off";I.GUEST_CONNECTED="core.guest.connected";I.GUEST_DISCONNECTED="core.guest.disconnected";I.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response";I.MESSAGE_FROM_GUEST="core.message.from.guest";I.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest";I.MESSAGE_TO_GUEST="core.message.to.guest";I.EXPERTS_CONNECT_REQUEST="core.experts.connect.request";I.EXPERTS_CONNECTED="core.experts.connected";I.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request";I.EXPERTS_DISCONNECTED="core.experts.disconnected";I.NLU_REQUEST_EVENT="core.nlu.request.event";I.EVENT_TO_GUEST="core.event.to.guest";I.INBOX_CONNECT_REQUEST="core.inbox.connect.request";I.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request";I.PROBLEM_REPORT_FROM_GUEST="core.problem.report.from.guest";I.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest";var cy={};Object.defineProperty(cy,"__esModule",{value:!0});var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});const iw=I,ow=(e,t)=>({type:iw.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:e,intent:t}});Ac.default=ow;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});const sw=I,aw=e=>({type:sw.GUEST_CONNECTED,payload:{sessionId:e}});Pc.default=aw;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});const lw=I,uw=e=>({type:lw.GUEST_DISCONNECTED,payload:{sessionId:e}});Ic.default=uw;var Dc={},te={};Object.defineProperty(te,"__esModule",{value:!0});te.getStringRepresentationFromMessage=te.MessageTypeEnum=te.AudioMessage=te.FileMessage=te.ImageMessage=te.VideoMessage=te.MarkdownMessage=te.DetailMessage=te.TextMessage=te.Message=void 0;let kn=class{constructor(t,n){W(this,"type");W(this,"sender");W(this,"quickReplies");this.type=t,this.sender=n,this.quickReplies=[]}addQuickReply(t,n){this.quickReplies.push({label:t,payload:n})}};te.Message=kn;let cw=class extends kn{constructor(n,r){super(Re.TEXT,r);W(this,"text");this.text=n}};te.TextMessage=cw;let fw=class extends kn{constructor(n,r){super(Re.DETAIL,r);W(this,"title");W(this,"subtitle");W(this,"text");W(this,"imageUrl");W(this,"itemUrl");W(this,"buttons");this.title=n,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(n){this.imageUrl=n}setItemUrl(n){this.itemUrl=n}setSubtitle(n){this.subtitle=n}setText(n){this.text=n}addButton(n){this.buttons.push(n)}};te.DetailMessage=fw;let dw=class extends kn{constructor(n,r,i){super(Re.MARKDOWN,i);W(this,"markdown");W(this,"excerpt");W(this,"className");this.markdown=n,this.excerpt=r,this.className=""}setClassName(n){this.className=n}};te.MarkdownMessage=dw;class hw extends kn{constructor(n,r){super(Re.VIDEO,r);W(this,"url");this.url=n}}te.VideoMessage=hw;class pw extends kn{constructor(n,r){super(Re.IMAGE,r);W(this,"url");this.url=n}}te.ImageMessage=pw;class mw extends kn{constructor(n,r){super(Re.FILE,r);W(this,"url");this.url=n}}te.FileMessage=mw;class gw extends kn{constructor(n,r){super(Re.AUDIO,r);W(this,"url");this.url=n}}te.AudioMessage=gw;var Re;(function(e){e.TEXT="TEXT",e.DETAIL="DETAIL",e.MARKDOWN="MARKDOWN",e.VIDEO="VIDEO",e.IMAGE="IMAGE",e.FILE="FILE",e.AUDIO="AUDIO"})(Re||(te.MessageTypeEnum=Re={}));const yw=e=>{switch(e.type){case Re.TEXT:return e.text;case Re.DETAIL:const n=e;return`${n.title} // ${n.subtitle}`;case Re.MARKDOWN:return e.excerpt;case Re.VIDEO:return`Video Url: ${e.url}`;case Re.IMAGE:return`Image Url: ${e.url}`;case Re.FILE:return`File Url: ${e.url}`;case Re.AUDIO:return`Audio Url: ${e.url}`;default:throw new Error("Unknown message type "+e.type)}};te.getStringRepresentationFromMessage=yw;var Ue={};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.UserType=Ue.PersonUser=Ue.GuestUser=Ue.BotUser=Ue.User=void 0;class Ks{constructor(t,n,r,i){W(this,"type");W(this,"id");W(this,"name");W(this,"avatar");this.type=t,this.id=n,this.name=r,this.avatar=i}}Ue.User=Ks;class vw extends Ks{constructor(){super(Mi.BOT,null,"Chatbot","bot.svg")}}Ue.BotUser=vw;class _w extends Ks{constructor(){super(Mi.GUEST,null,"Guest","visitor.svg")}}Ue.GuestUser=_w;class Ew extends Ks{constructor(t,n,r){super(Mi.PERSON,t,n,r)}}Ue.PersonUser=Ew;var Mi;(function(e){e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON"})(Mi||(Ue.UserType=Mi={}));Object.defineProperty(Dc,"__esModule",{value:!0});const Sw=te,ww=Ue,xw=I,bw=e=>{const t=new Sw.TextMessage(e,new ww.GuestUser);return{type:xw.MESSAGE_FROM_GUEST,message:t}};Dc.default=bw;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});const Tw=te,Cw=Ue,kw=I,Ow=(e,t={})=>{const n=new Tw.TextMessage(e,new Cw.GuestUser);return{type:kw.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:n,payload:t}};Mc.default=Ow;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});const Rw=I,Nw=(e,t)=>({type:Rw.PROBLEM_REPORT_FROM_GUEST,payload:{actionId:e,problem:t}});Fc.default=Nw;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});const Aw=I,Pw=e=>({type:Aw.NLU_REQUEST_EVENT,event:e});Lc.default=Pw;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});const Iw=I,Dw=e=>({type:Iw.MESSAGE_TO_GUEST,message:e});Bc.default=Dw;(function(e){var t=le&&le.__createBinding||(Object.create?function(p,y,E,h){h===void 0&&(h=E);var d=Object.getOwnPropertyDescriptor(y,E);(!d||("get"in d?!y.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return y[E]}}),Object.defineProperty(p,h,d)}:function(p,y,E,h){h===void 0&&(h=E),p[h]=y[E]}),n=le&&le.__setModuleDefault||(Object.create?function(p,y){Object.defineProperty(p,"default",{enumerable:!0,value:y})}:function(p,y){p.default=y}),r=le&&le.__importStar||function(p){if(p&&p.__esModule)return p;var y={};if(p!=null)for(var E in p)E!=="default"&&Object.prototype.hasOwnProperty.call(p,E)&&t(y,p,E);return n(y,p),y},i=le&&le.__exportStar||function(p,y){for(var E in p)E!=="default"&&!Object.prototype.hasOwnProperty.call(y,E)&&t(y,p,E)},o=le&&le.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.reportProblemFromGuest=e.feedbackFromGuestResponse=e.requestNLUEvent=e.receiveTextMessageWithoutAnalysisFromGuest=e.receiveTextMessageFromGuest=e.sendMessageToGuest=e.guestDisconnected=e.guestConnected=e.ActionTypes=void 0,e.ActionTypes=r(I),i(cy,e);const s=o(Ac);e.feedbackFromGuestResponse=s.default;const a=o(Pc);e.guestConnected=a.default;const l=o(Ic);e.guestDisconnected=l.default;const u=o(Dc);e.receiveTextMessageFromGuest=u.default;const c=o(Mc);e.receiveTextMessageWithoutAnalysisFromGuest=c.default;const m=o(Fc);e.reportProblemFromGuest=m.default;const g=o(Lc);e.requestNLUEvent=g.default;const f=o(Bc);e.sendMessageToGuest=f.default})(uy);var fy={},dy={};Object.defineProperty(dy,"__esModule",{value:!0});var Mt={};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.ButtonTypeEnum=Mt.PostbackButton=Mt.UrlButton=Mt.Button=void 0;class jc{constructor(t,n){W(this,"title");W(this,"type");this.title=t,this.type=n}}Mt.Button=jc;class Mw extends jc{constructor(n,r){super(n,ms.WEB_URL);W(this,"url");this.url=r}}Mt.UrlButton=Mw;class Fw extends jc{constructor(n,r){super(n,ms.POSTBACK);W(this,"payload");this.payload=r}}Mt.PostbackButton=Fw;var ms;(function(e){e.WEB_URL="web_url",e.POSTBACK="postback"})(ms||(Mt.ButtonTypeEnum=ms={}));var hy={};Object.defineProperty(hy,"__esModule",{value:!0});var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.SatisfactionEnum=void 0;var Jd;(function(e){e.GOOD="GOOD",e.BAD="BAD"})(Jd||(Zs.SatisfactionEnum=Jd={}));(function(e){var t=le&&le.__createBinding||(Object.create?function(r,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,s,a)}:function(r,i,o,s){s===void 0&&(s=o),r[s]=i[o]}),n=le&&le.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(dy,e),n(Mt,e),n(hy,e),n(Zs,e),n(te,e),n(Ue,e)})(fy);(function(e){var t=le&&le.__createBinding||(Object.create?function(r,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,s,a)}:function(r,i,o,s){s===void 0&&(s=o),r[s]=i[o]}),n=le&&le.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(uy,e),n(fy,e)})(G);var py={exports:{}};/*!
81
- Copyright (c) 2018 Jed Watson.
82
- Licensed under the MIT License (MIT), see
83
- http://jedwatson.github.io/classnames
84
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var s=typeof o;if(s==="string"||s==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&r.push(a)}}else if(s==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(py);var Lw=py.exports;const R=ku(Lw),my="%[a-f0-9]{2}",eh=new RegExp("("+my+")|([^%]+?)","gi"),th=new RegExp("("+my+")+","gi");function su(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],su(n),su(r))}function Bw(e){try{return decodeURIComponent(e)}catch{let t=e.match(eh)||[];for(let n=1;n<t.length;n++)e=su(t,n).join(""),t=e.match(eh)||[];return e}}function jw(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=th.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const i=Bw(n[0]);i!==n[0]&&(t[n[0]]=i)}n=th.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const i of r)e=e.replace(new RegExp(i,"g"),t[i]);return e}function Uw(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return jw(e)}}function gy(e,t){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||t==="")return[];const n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}function zw(e,t){const n={};if(Array.isArray(t))for(const r of t){const i=Object.getOwnPropertyDescriptor(e,r);i!=null&&i.enumerable&&Object.defineProperty(n,r,i)}else for(const r of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){const o=e[r];t(r,o,e)&&Object.defineProperty(n,r,i)}}return n}const Hw=e=>e==null,$w=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),au=Symbol("encodeFragmentIdentifier");function Gw(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[fe(t,e),"[",i,"]"].join("")]:[...n,[fe(t,e),"[",fe(i,e),"]=",fe(r,e)].join("")]};case"bracket":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[fe(t,e),"[]"].join("")]:[...n,[fe(t,e),"[]=",fe(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[fe(t,e),":list="].join("")]:[...n,[fe(t,e),":list=",fe(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[fe(n,e),t,fe(i,e)].join("")]:[[r,fe(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,fe(t,e)]:[...n,[fe(t,e),"=",fe(r,e)].join("")]}}function Vw(e){let t;switch(e.arrayFormat){case"index":return(n,r,i)=>{if(t=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!t){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][t[1]]=r};case"bracket":return(n,r,i)=>{if(t=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(t=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const o=typeof r=="string"&&r.includes(e.arrayFormatSeparator),s=typeof r=="string"&&!o&&Vt(r,e).includes(e.arrayFormatSeparator);r=s?Vt(r,e):r;const a=o||s?r.split(e.arrayFormatSeparator).map(l=>Vt(l,e)):r===null?r:Vt(r,e);i[n]=a};case"bracket-separator":return(n,r,i)=>{const o=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!o){i[n]=r&&Vt(r,e);return}const s=r===null?[]:r.split(e.arrayFormatSeparator).map(a=>Vt(a,e));if(i[n]===void 0){i[n]=s;return}i[n]=[...i[n],...s]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function yy(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function fe(e,t){return t.encode?t.strict?$w(e):encodeURIComponent(e):e}function Vt(e,t){return t.decode?Uw(e):e}function vy(e){return Array.isArray(e)?e.sort():typeof e=="object"?vy(Object.keys(e)).sort((t,n)=>Number(t)-Number(n)).map(t=>e[t]):e}function _y(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function Ww(e){let t="";const n=e.indexOf("#");return n!==-1&&(t=e.slice(n)),t}function nh(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function Uc(e){e=_y(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function zc(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t},yy(t.arrayFormatSeparator);const n=Vw(t),r=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return r;for(const i of e.split("&")){if(i==="")continue;const o=t.decode?i.replace(/\+/g," "):i;let[s,a]=gy(o,"=");s===void 0&&(s=o),a=a===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:Vt(a,t),n(Vt(s,t),a,r)}for(const[i,o]of Object.entries(r))if(typeof o=="object"&&o!==null)for(const[s,a]of Object.entries(o))o[s]=nh(a,t);else r[i]=nh(o,t);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((i,o)=>{const s=r[o];return s&&typeof s=="object"&&!Array.isArray(s)?i[o]=vy(s):i[o]=s,i},Object.create(null))}function Ey(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},yy(t.arrayFormatSeparator);const n=s=>t.skipNull&&Hw(e[s])||t.skipEmptyString&&e[s]==="",r=Gw(t),i={};for(const[s,a]of Object.entries(e))n(s)||(i[s]=a);const o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const a=e[s];return a===void 0?"":a===null?fe(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?fe(s,t)+"[]":a.reduce(r(s),[]).join("&"):fe(s,t)+"="+fe(a,t)}).filter(s=>s.length>0).join("&")}function Sy(e,t){var i;t={decode:!0,...t};let[n,r]=gy(e,"#");return n===void 0&&(n=e),{url:((i=n==null?void 0:n.split("?"))==null?void 0:i[0])??"",query:zc(Uc(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:Vt(r,t)}:{}}}function wy(e,t){t={encode:!0,strict:!0,[au]:!0,...t};const n=_y(e.url).split("?")[0]||"",r=Uc(e.url),i={...zc(r,{sort:!1}),...e.query};let o=Ey(i,t);o&&(o=`?${o}`);let s=Ww(e.url);if(e.fragmentIdentifier){const a=new URL(n);a.hash=e.fragmentIdentifier,s=t[au]?a.hash:`#${e.fragmentIdentifier}`}return`${n}${o}${s}`}function xy(e,t,n){n={parseFragmentIdentifier:!0,[au]:!1,...n};const{url:r,query:i,fragmentIdentifier:o}=Sy(e,n);return wy({url:r,query:zw(i,t),fragmentIdentifier:o},n)}function qw(e,t,n){const r=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return xy(e,r,n)}const lu=Object.freeze(Object.defineProperty({__proto__:null,exclude:qw,extract:Uc,parse:zc,parseUrl:Sy,pick:xy,stringify:Ey,stringifyUrl:wy},Symbol.toStringTag,{value:"Module"})),by=e=>t=>(e.payload.type!==G.ActionTypes.MESSAGE_FROM_GUEST&&t(G.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),t(e.payload)),Xw=e=>(t,n)=>{const{quickReplies:r}=n().chat,i=r.find(o=>e.toLocaleLowerCase().indexOf(o.label.toLocaleLowerCase())>-1);return t(i?by({...i,label:e}):G.receiveTextMessageFromGuest(e))},Hc="MESSAGE_TO_PARENT_PAGE",$c="RESTORE_PREVIOUS_CHAT_MESSAGES",Gc="AUDIO_MESSAGE_FROM_USER",Vc="ENABLE_SPEECH_SUPPORT",Wc="ENABLE_BOT_REPLIES_VOTING_SUPPORT",qc="ENABLE_TRANSCRIPT_EXPORT",Qw="EXPORT_TRANSCRIPT",Xc="RECEIVE_SPEECH_TRANSCRIPTION",Qc="SHOW_GENERAL_CONDITIONS",Yc="ENABLE_CONVERSATION_RATING",Yw="webclient.get.started",Ty="webclient.expand.window",Cy="webclient.transcript.pdf.download",Kw=[Hc,$c,Gc,Vc,Wc,qc,Qw,Xc,Qc,Yc],Zw=e=>({type:Gc,buffer:e}),Jw=()=>({type:Vc}),ex=()=>({type:Wc}),tx=e=>({type:Xc,transcription:e}),nx=e=>({type:qc,methods:e}),rx=e=>({type:G.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),ix=()=>({type:Qc}),ox=()=>({type:Cy}),sx=({rating:e})=>({type:Yc,payload:{rating:e}}),ax=(e,t)=>({type:G.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:t}}),lx=e=>G.requestNLUEvent(e),ux=e=>({type:$c,messages:e}),cx=e=>{switch(e.type){case G.ButtonTypeEnum.WEB_URL:return ky(e.url);case G.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},fx=e=>ky(e),ky=e=>({type:Hc,message:{type:"webclient.change.url",url:e}});/*! js-cookie v3.0.5 | MIT */function mo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var dx={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function uu(e,t){function n(i,o,s){if(!(typeof document>"u")){s=mo({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(s[c]=e.read(u,c),i===c)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",mo({},o,{expires:-1}))},withAttributes:function(i){return uu(this.converter,mo({},this.attributes,i))},withConverter:function(i){return uu(mo({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var rh=uu(dx,{path:"/"});let go;const hx=new Uint8Array(16);function px(){if(!go&&(go=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!go))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return go(hx)}const Se=[];for(let e=0;e<256;++e)Se.push((e+256).toString(16).slice(1));function mx(e,t=0){return Se[e[t+0]]+Se[e[t+1]]+Se[e[t+2]]+Se[e[t+3]]+"-"+Se[e[t+4]]+Se[e[t+5]]+"-"+Se[e[t+6]]+Se[e[t+7]]+"-"+Se[e[t+8]]+Se[e[t+9]]+"-"+Se[e[t+10]]+Se[e[t+11]]+Se[e[t+12]]+Se[e[t+13]]+Se[e[t+14]]+Se[e[t+15]]}const gx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ih={randomUUID:gx};function cu(e,t,n){if(ih.randomUUID&&!t&&!e)return ih.randomUUID();e=e||{};const r=e.random||(e.rng||px)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return mx(r)}const Js="CONNECT",Kc="CONNECTING",Zc="CONNECTED",Jc="DISCONNECTED",ef="RECONNECTED",tf="RESTORE_SESSION_ID",Oy="RESTART",yx=[Js,Kc,Zc,Jc,ef,tf],Ry=(e,t)=>(n,r)=>{const i=lu.parse(t),o=r().connection;let s=o.sessionId;s===void 0&&(s=cu());let a=o.userId;if(a===void 0){const l=rh.get("bf-webclient-userId");a=l||cu(),rh.set("bf-webclient-userId",a)}return i.sessionId=s,i.userId=a,n(vx(s,a,e,lu.stringify(i)))},vx=(e,t,n,r)=>({type:Js,sessionId:e,userId:t,clientName:n,querystrings:r}),_x=e=>({type:tf,sessionId:e}),Ex=()=>({type:Kc}),Sx=()=>({type:Zc}),wx=()=>({type:Jc}),xx=()=>({type:ef}),bx=(e,t)=>n=>(n(Tx()),n(Ry(e,t))),Tx=()=>({type:Oy});var Ln=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(Ln||{}),Ny=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(Ny||{});const Cx="_chatwindow_1xq7n_1",kx="_chatcontent_1xq7n_12",oh={chatwindow:Cx,chatcontent:kx},Ox="_messageContainer_1wdci_1",Rx="_messages_1wdci_10",sh={messageContainer:Ox,messages:Rx};function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bn.apply(this,arguments)}const Nx=["children","options"],ah=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","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((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),lh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Ax=["style","script"],Px=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Ix=/mailto:/i,Dx=/\n{2,}$/,Ay=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,Mx=/^ *> ?/gm,Fx=/^ {2,}\n/,Lx=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Py=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Iy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Bx=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,jx=/^(?:\n *)*\n/,Ux=/\r\n?/g,zx=/^\[\^([^\]]+)](:.*)\n/,Hx=/^\[\^([^\]]+)]/,$x=/\f/g,Gx=/^\s*?\[(x|\s)\]/,Dy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,My=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Fy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,fu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,Vx=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Ly=/^<!--[\s\S]*?(?:-->)/,Wx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,du=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,qx=/^\{.*\}$/,Xx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Qx=/^<([^ >]+@[^ >]+)>/,Yx=/^<([^ >]+:\/[^ >]+)>/,Kx=/-([a-z])?/gi,By=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,Zx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Jx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,eb=/^\[([^\]]*)\] ?\[([^\]]*)\]/,tb=/(\[|\])/g,nb=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,rb=/\t/g,ib=/^ *\| */,ob=/(^ *\||\| *$)/g,sb=/ *$/,ab=/^ *:-+: *$/,lb=/^ *:-+ *$/,ub=/^ *-+: *$/,cb=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,fb=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,db=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,hb=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,pb=/^\\([^0-9A-Za-z\s])/,mb=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,gb=/^\n+/,yb=/^([ \t]*)/,vb=/\\([^\\])/g,uh=/ *\n+$/,_b=/(?:^|\n)( *)$/,nf="(?:\\d+\\.)",rf="(?:[*+-])";function jy(e){return"( *)("+(e===1?nf:rf)+") +"}const Uy=jy(1),zy=jy(2);function Hy(e){return new RegExp("^"+(e===1?Uy:zy))}const Eb=Hy(1),Sb=Hy(2);function $y(e){return new RegExp("^"+(e===1?Uy:zy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?nf:rf)+" )[^\\n]*)*(\\n|$)","gm")}const Gy=$y(1),Vy=$y(2);function Wy(e){const t=e===1?nf:rf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const qy=Wy(1),Xy=Wy(2);function ch(e,t){const n=t===1,r=n?qy:Xy,i=n?Gy:Vy,o=n?Eb:Sb;return{t(s,a,l){const u=_b.exec(l);return u&&(a.o||!a._&&!a.u)?r.exec(s=u[1]+s):null},i:U.HIGH,l(s,a,l){const u=n?+s[2]:void 0,c=s[0].replace(Dx,`
85
- `).match(i);let m=!1;return{p:c.map(function(g,f){const p=o.exec(g)[0].length,y=new RegExp("^ {1,"+p+"}","gm"),E=g.replace(y,"").replace(o,""),h=f===c.length-1,d=E.indexOf(`
86
-
87
- `)!==-1||h&&m;m=d;const v=l._,S=l.o;let w;l.o=!0,d?(l._=!1,w=E.replace(uh,`
88
-
89
- `)):(l._=!0,w=E.replace(uh,""));const x=a(w,l);return l._=v,l.o=S,x}),m:n,g:u}},h:(s,a,l)=>e(s.m?"ol":"ul",{key:l.k,start:s.g},s.p.map(function(u,c){return e("li",{key:c},a(u,l))}))}}const wb=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,xb=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Qy=[Ay,Py,Iy,Dy,Fy,My,Ly,By,Gy,qy,Vy,Xy],bb=[...Qy,/^[^\n]+(?: \n|\n{2,})/,fu,du];function Tb(e){return e.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 Cb(e){return ub.test(e)?"right":ab.test(e)?"center":lb.test(e)?"left":null}function fh(e,t,n){const r=n.$;n.$=!0;const i=t(e.trim(),n);n.$=r;let o=[[]];return i.forEach(function(s,a){s.type==="tableSeparator"?a!==0&&a!==i.length-1&&o.push([]):(s.type!=="text"||i[a+1]!=null&&i[a+1].type!=="tableSeparator"||(s.v=s.v.replace(sb,"")),o[o.length-1].push(s))}),o}function kb(e,t,n){n._=!0;const r=fh(e[1],t,n),i=e[2].replace(ob,"").split("|").map(Cb),o=function(s,a,l){return s.trim().split(`
90
- `).map(function(u){return fh(u,a,l)})}(e[3],t,n);return n._=!1,{S:i,A:o,L:r,type:"table"}}function dh(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function nn(e){return function(t,n){return n._?e.exec(t):null}}function rn(e){return function(t,n){return n._||n.u?e.exec(t):null}}function Ht(e){return function(t,n){return n._||n.u?null:e.exec(t)}}function Xr(e){return function(t){return e.exec(t)}}function Ob(e,t,n){if(t._||t.u||n&&!n.endsWith(`
91
- `))return null;let r="";e.split(`
92
- `).every(o=>!Qy.some(s=>s.test(o))&&(r+=o+`
93
- `,o.trim()));const i=r.trimEnd();return i==""?null:[r,i]}function rr(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function hh(e){return e.replace(vb,"$1")}function Bo(e,t,n){const r=n._||!1,i=n.u||!1;n._=!0,n.u=!0;const o=e(t,n);return n._=r,n.u=i,o}function Rb(e,t,n){const r=n._||!1,i=n.u||!1;n._=!1,n.u=!0;const o=e(t,n);return n._=r,n.u=i,o}function Nb(e,t,n){return n._=!1,e(t,n)}const Ua=(e,t,n)=>({v:Bo(t,e[1],n)});function za(){return{}}function Ha(){return null}function Ab(...e){return e.filter(Boolean).join(" ")}function $a(e,t,n){let r=e;const i=t.split(".");for(;i.length&&(r=r[i[0]],r!==void 0);)i.shift();return r||n}var U;function Pb(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||Tb,t.namedCodesToUnicode=t.namedCodesToUnicode?Bn({},lh,t.namedCodesToUnicode):lh;const n=t.createElement||A.createElement;function r(f,p,...y){const E=$a(t.overrides,`${f}.props`,{});return n(function(h,d){const v=$a(d,h);return v?typeof v=="function"||typeof v=="object"&&"render"in v?v:$a(d,`${h}.component`,h):h}(f,t.overrides),Bn({},p,E,{className:Ab(p==null?void 0:p.className,E.className)||void 0}),...y)}function i(f){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=nb.test(f)===!1);const y=c(u(p?f:`${f.trimEnd().replace(gb,"")}
94
-
95
- `,{_:p}));for(;typeof y[y.length-1]=="string"&&!y[y.length-1].trim();)y.pop();if(t.wrapper===null)return y;const E=t.wrapper||(p?"span":"div");let h;if(y.length>1||t.forceWrapper)h=y;else{if(y.length===1)return h=y[0],typeof h=="string"?r("span",{key:"outer"},h):h;h=null}return A.createElement(E,{key:"outer"},h)}function o(f){const p=f.match(Px);return p?p.reduce(function(y,E,h){const d=E.indexOf("=");if(d!==-1){const v=function(b){return b.indexOf("-")!==-1&&b.match(Wx)===null&&(b=b.replace(Kx,function(C,F){return F.toUpperCase()})),b}(E.slice(0,d)).trim(),S=function(b){const C=b[0];return(C==='"'||C==="'")&&b.length>=2&&b[b.length-1]===C?b.slice(1,-1):b}(E.slice(d+1).trim()),w=ah[v]||v,x=y[w]=function(b,C){return b==="style"?C.split(/;\s?/).reduce(function(F,P){const re=P.slice(0,P.indexOf(":"));return F[re.replace(/(-[a-z])/g,pe=>pe[1].toUpperCase())]=P.slice(re.length+1).trim(),F},{}):b==="href"?rr(C):(C.match(qx)&&(C=C.slice(1,C.length-1)),C==="true"||C!=="false"&&C)}(v,S);typeof x=="string"&&(fu.test(x)||du.test(x))&&(y[w]=A.cloneElement(i(x.trim()),{key:h}))}else E!=="style"&&(y[ah[E]||E]=!0);return y},{}):null}const s=[],a={},l={blockQuote:{t:Ht(Ay),i:U.HIGH,l:(f,p,y)=>({v:p(f[0].replace(Mx,""),y)}),h:(f,p,y)=>r("blockquote",{key:y.k},p(f.v,y))},breakLine:{t:Xr(Fx),i:U.HIGH,l:za,h:(f,p,y)=>r("br",{key:y.k})},breakThematic:{t:Ht(Lx),i:U.HIGH,l:za,h:(f,p,y)=>r("hr",{key:y.k})},codeBlock:{t:Ht(Iy),i:U.MAX,l:f=>({v:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(f,p,y)=>r("pre",{key:y.k},r("code",Bn({},f.O,{className:f.M?`lang-${f.M}`:""}),f.v))},codeFenced:{t:Ht(Py),i:U.MAX,l:f=>({O:o(f[3]||""),v:f[4],M:f[2]||void 0,type:"codeBlock"})},codeInline:{t:rn(Bx),i:U.LOW,l:f=>({v:f[2]}),h:(f,p,y)=>r("code",{key:y.k},f.v)},footnote:{t:Ht(zx),i:U.MAX,l:f=>(s.push({I:f[2],j:f[1]}),{}),h:Ha},footnoteReference:{t:nn(Hx),i:U.HIGH,l:f=>({v:f[1],B:`#${t.slugify(f[1])}`}),h:(f,p,y)=>r("a",{key:y.k,href:rr(f.B)},r("sup",{key:y.k},f.v))},gfmTask:{t:nn(Gx),i:U.HIGH,l:f=>({R:f[1].toLowerCase()==="x"}),h:(f,p,y)=>r("input",{checked:f.R,key:y.k,readOnly:!0,type:"checkbox"})},heading:{t:Ht(t.enforceAtxHeadings?My:Dy),i:U.HIGH,l:(f,p,y)=>({v:Bo(p,f[2],y),T:t.slugify(f[2]),C:f[1].length}),h:(f,p,y)=>r(`h${f.C}`,{id:f.T,key:y.k},p(f.v,y))},headingSetext:{t:Ht(Fy),i:U.MAX,l:(f,p,y)=>({v:Bo(p,f[1],y),C:f[2]==="="?1:2,type:"heading"})},htmlComment:{t:Xr(Ly),i:U.HIGH,l:()=>({}),h:Ha},image:{t:rn(xb),i:U.HIGH,l:f=>({D:f[1],B:hh(f[2]),F:f[3]}),h:(f,p,y)=>r("img",{key:y.k,alt:f.D||void 0,title:f.F||void 0,src:rr(f.B)})},link:{t:nn(wb),i:U.LOW,l:(f,p,y)=>({v:Rb(p,f[1],y),B:hh(f[2]),F:f[3]}),h:(f,p,y)=>r("a",{key:y.k,href:rr(f.B),title:f.F},p(f.v,y))},linkAngleBraceStyleDetector:{t:nn(Yx),i:U.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],type:"link"})},linkBareUrlDetector:{t:(f,p)=>p.N?null:nn(Xx)(f,p),i:U.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],F:void 0,type:"link"})},linkMailtoDetector:{t:nn(Qx),i:U.MAX,l(f){let p=f[1],y=f[1];return Ix.test(y)||(y="mailto:"+y),{v:[{v:p.replace("mailto:",""),type:"text"}],B:y,type:"link"}}},orderedList:ch(r,1),unorderedList:ch(r,2),newlineCoalescer:{t:Ht(jx),i:U.LOW,l:za,h:()=>`
96
- `},paragraph:{t:Ob,i:U.LOW,l:Ua,h:(f,p,y)=>r("p",{key:y.k},p(f.v,y))},ref:{t:nn(Zx),i:U.MAX,l:f=>(a[f[1]]={B:f[2],F:f[4]},{}),h:Ha},refImage:{t:rn(Jx),i:U.MAX,l:f=>({D:f[1]||void 0,P:f[2]}),h:(f,p,y)=>r("img",{key:y.k,alt:f.D,src:rr(a[f.P].B),title:a[f.P].F})},refLink:{t:nn(eb),i:U.MAX,l:(f,p,y)=>({v:p(f[1],y),Z:p(f[0].replace(tb,"\\$1"),y),P:f[2]}),h:(f,p,y)=>a[f.P]?r("a",{key:y.k,href:rr(a[f.P].B),title:a[f.P].F},p(f.v,y)):r("span",{key:y.k},p(f.Z,y))},table:{t:Ht(By),i:U.HIGH,l:kb,h:(f,p,y)=>r("table",{key:y.k},r("thead",null,r("tr",null,f.L.map(function(E,h){return r("th",{key:h,style:dh(f,h)},p(E,y))}))),r("tbody",null,f.A.map(function(E,h){return r("tr",{key:h},E.map(function(d,v){return r("td",{key:v,style:dh(f,v)},p(d,y))}))})))},tableSeparator:{t:function(f,p){return p.$?(p._=!0,ib.exec(f)):null},i:U.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Xr(mb),i:U.MIN,l:f=>({v:f[0].replace(Vx,(p,y)=>t.namedCodesToUnicode[y]?t.namedCodesToUnicode[y]:p)}),h:f=>f.v},textBolded:{t:rn(cb),i:U.MED,l:(f,p,y)=>({v:p(f[2],y)}),h:(f,p,y)=>r("strong",{key:y.k},p(f.v,y))},textEmphasized:{t:rn(fb),i:U.LOW,l:(f,p,y)=>({v:p(f[2],y)}),h:(f,p,y)=>r("em",{key:y.k},p(f.v,y))},textEscaped:{t:rn(pb),i:U.HIGH,l:f=>({v:f[1],type:"text"})},textMarked:{t:rn(db),i:U.LOW,l:Ua,h:(f,p,y)=>r("mark",{key:y.k},p(f.v,y))},textStrikethroughed:{t:rn(hb),i:U.LOW,l:Ua,h:(f,p,y)=>r("del",{key:y.k},p(f.v,y))}};t.disableParsingRawHTML!==!0&&(l.htmlBlock={t:Xr(fu),i:U.HIGH,l(f,p,y){const[,E]=f[3].match(yb),h=new RegExp(`^${E}`,"gm"),d=f[3].replace(h,""),v=(S=d,bb.some(C=>C.test(S))?Nb:Bo);var S;const w=f[1].toLowerCase(),x=Ax.indexOf(w)!==-1;y.N=y.N||w==="a";const b=x?f[3]:v(p,d,y);return y.N=!1,{O:o(f[2]),v:b,G:x,H:x?w:f[1]}},h:(f,p,y)=>r(f.H,Bn({key:y.k},f.O),f.G?f.v:p(f.v,y))},l.htmlSelfClosing={t:Xr(du),i:U.HIGH,l:f=>({O:o(f[2]||""),H:f[1]}),h:(f,p,y)=>r(f.H,Bn({},f.O,{key:y.k}))});const u=function(f){let p=Object.keys(f);function y(E,h){let d=[],v="";for(;E;){let S=0;for(;S<p.length;){const w=p[S],x=f[w],b=x.t(E,h,v);if(b){const C=b[0];E=E.substring(C.length);const F=x.l(b,y,h);F.type==null&&(F.type=w),d.push(F),v=C;break}S++}}return d}return p.sort(function(E,h){let d=f[E].i,v=f[h].i;return d!==v?d-v:E<h?-1:1}),function(E,h){return y(function(d){return d.replace(Ux,`
97
- `).replace($x,"").replace(rb," ")}(E),h)}}(l),c=(m=function(f){return function(p,y,E){return f[p.type].h(p,y,E)}}(l),function f(p,y={}){if(Array.isArray(p)){const E=y.k,h=[];let d=!1;for(let v=0;v<p.length;v++){y.k=v;const S=f(p[v],y),w=typeof S=="string";w&&d?h[h.length-1]+=S:S!==null&&h.push(S),d=w}return y.k=E,h}return m(p,f,y)});var m;const g=i(e);return s.length?r("div",null,g,r("footer",{key:"footer"},s.map(function(f){return r("div",{id:t.slugify(f.j),key:f.j},f.j,c(u(f.I,{_:!0})))}))):g}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(U||(U={}));const Gn=e=>{let{children:t,options:n}=e,r=function(i,o){if(i==null)return{};var s,a,l={},u=Object.keys(i);for(a=0;a<u.length;a++)o.indexOf(s=u[a])>=0||(l[s]=i[s]);return l}(e,Nx);return A.cloneElement(Pb(t,n),r)};var Yy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ph=St.createContext&&St.createContext(Yy),_n=function(){return _n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_n.apply(this,arguments)},Ib=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ky(e){return e&&e.map(function(t,n){return St.createElement(t.tag,_n({key:n},t.attr),Ky(t.child))})}function Zy(e){return function(t){return St.createElement(Db,_n({attr:_n({},e.attr)},t),Ky(e.child))}}function Db(e){var t=function(n){var r=e.attr,i=e.size,o=e.title,s=Ib(e,["attr","size","title"]),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),St.createElement("svg",_n({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:_n(_n({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&St.createElement("title",null,o),e.children)};return ph!==void 0?St.createElement(ph.Consumer,null,function(n){return t(n)}):t(Yy)}function Mb(e){return Zy({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"}}]})(e)}function Fb(e){return Zy({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"}}]})(e)}const zt=()=>{const e=Ys();return n=>{const r=e.formatMessage({id:n});return r===n?void 0:r}},Lb="_generalConditionsContainer_1ijeb_1",Bb="_generalConditions_1ijeb_1",jb="_generalConditionsHeader_1ijeb_15",Ub="_generalConditionsBody_1ijeb_25",zb="_generalConditionsAccept_1ijeb_33",Qr={generalConditionsContainer:Lb,generalConditions:Bb,generalConditionsHeader:jb,generalConditionsBody:Ub,generalConditionsAccept:zb},Hb="general-conditions.header",$b="general-conditions.body",mh="general-conditions.accept-conditions-note",Gb=()=>{const e=zt(),[t,n]=A.useState(!1),r=()=>n(!t),i=a=>{a.key==="ArrowDown"||a.key==="ArrowRight"?n(!0):a.key==="ArrowUp"||a.key==="ArrowLeft"||a.key==="Escape"?n(!1):(a.key==="Enter"||a.key==="Space"||a.key===" ")&&r()},o=e(Hb),s=e(mh);return _.jsxs("div",{className:R(Qr.generalConditionsContainer,"chat__generalConditions"),children:[!!(o!=null&&o.length)&&_.jsxs("div",{className:Qr.generalConditions,children:[_.jsxs("div",{role:"button",onClick:r,onKeyDown:i,tabIndex:0,className:R(Qr.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":t?"true":"false","aria-pressed":t?"true":"false",children:[_.jsx(Gn,{children:o}),t?_.jsx(Fb,{}):_.jsx(Mb,{})]}),_.jsx("div",{className:R(Qr.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:t&&_.jsx(Gn,{children:e($b)||""})})]}),!!(s!=null&&s.length)&&_.jsx("div",{className:R(Qr.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:_.jsx(Gn,{children:e(mh)||""})})]})},Vb="_message_xtsrt_5",Wb="_messageBot_xtsrt_11",qb="_messageBotLast_xtsrt_15",Xb="_avatar_xtsrt_15",Qb="_messageBotFirst_xtsrt_19",Yb="_messageBotAnimated_xtsrt_32",Kb="_fadeInLeft_xtsrt_1",Zb="_messageGuest_xtsrt_43",Jb="_messageGuestFirst_xtsrt_49",eT="_messageGuestLast_xtsrt_55",tT="_botAvatar_xtsrt_69",nT="_agentAvatar_xtsrt_73",rT="_bubble_xtsrt_77",iT="_bubbleContent_xtsrt_83",oT="_bubbleLeft_xtsrt_168",sT="_leftText_xtsrt_177",aT="_bubbleRight_xtsrt_184",lT="_rightText_xtsrt_192",L={message:Vb,messageBot:Wb,messageBotLast:qb,avatar:Xb,messageBotFirst:Qb,messageBotAnimated:Yb,fadeInLeft:Kb,messageGuest:Zb,messageGuestFirst:Jb,messageGuestLast:eT,botAvatar:tT,agentAvatar:nT,bubble:rT,bubbleContent:iT,bubbleLeft:oT,leftText:sT,bubbleRight:aT,rightText:lT},uT="_problemReport_39r57_1",cT="_problemReportIcon_39r57_7",fT="_problemReportIconActive_39r57_13",dT="_problemReportIconInactive_39r57_21",Yr={problemReport:uT,problemReportIcon:cT,problemReportIconActive:fT,problemReportIconInactive:dT},hT=({reported:e,onReport:t})=>{const n=zt(),r=o=>()=>t(o),i=o=>s=>{s.key==="Enter"&&t(o)};return _.jsx("div",{className:Yr.problemReport,children:e?_.jsx("div",{role:"button",onClick:r(null),onKeyDown:i(null),tabIndex:0,className:R(Yr.problemReportIcon,"chat__problemReportIcon","chat_problemReportIcon",Yr.problemReportIconActive,"chat__problemReportIcon-active","chat_problemReportIcon-active"),children:_.jsx("img",{src:"problem-report-active.svg",title:n("problem-report.action.unmark"),alt:"Report"})}):_.jsx("div",{role:"button",onClick:r("unspecified"),onKeyDown:i("unspecified"),tabIndex:0,className:R(Yr.problemReportIcon,"chat_problemReportIcon",Yr.problemReportIconInactive,"chat_problemReportIcon-inactive"),children:_.jsx("img",{src:"problem-report-inactive.svg",title:n("problem-report.action.mark"),alt:"Report"})})})},Jy=A.forwardRef(({message:e,problemReportingEnabled:t,isAnimated:n,isFirstMessageBySender:r,isLastMessageBySender:i,children:o,onProblemReport:s},a)=>{var c;const l=zt(),u=e.sender.type===G.UserType.BOT;return _.jsxs("li",{ref:a,className:R(L.message,L.messageBot,r&&L.messageBotFirst,i&&L.messageBotLast,"chat__bubbleContainer",n&&L.messageBotAnimated,n&&"chat__bubbleContainer--animated",u?"chat__botBubbleContainer":"chat__agentBubbleContainer",r&&"chat__bubbleContainer--first",i&&"chat__bubbleContainer--last"),children:[_.jsx("img",{className:R(L.avatar,u?L.botAvatar:L.agentAvatar,"chat__avatar",u?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:u?"Bot":"Agent",referrerPolicy:"no-referrer"}),_.jsx("div",{className:R(L.bubble,L.bubbleLeft,"chat__bubble",u?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":l(u?"bot-bubble.label":"agent-bubble.label"),children:_.jsx("div",{className:R(L.leftText),children:o})}),t&&s&&_.jsx(hT,{reported:!!((c=e.problemReport)!=null&&c.length),onReport:s})]})}),pT="_button_12dnl_48",mT="_buttonDefault_12dnl_60",gT="_buttonPrimary_12dnl_74",Be={button:pT,buttonDefault:mT,buttonPrimary:gT},yT="_title_1mhh2_1",vT="_subtitle_1mhh2_6",_T="_buttons_1mhh2_11",ET="_button_1mhh2_11",ST="_imageContainer_1mhh2_33",wT="_image_1mhh2_33",xT="_video_container_1mhh2_44",bT="_video_1mhh2_44",TT="_only_1mhh2_54",Le={title:yT,subtitle:vT,buttons:_T,button:ET,imageContainer:ST,image:wT,video_container:xT,video:bT,only:TT},CT=({buttons:e,onButtonClick:t})=>_.jsx("div",{className:R(Le.buttons,"chat__bubbleButtons"),children:e.map((n,r)=>_.jsx("button",{className:R(Le.button,Be.button,"chat__bubbleButton"),onClick:()=>t(n),children:n.title},r))});var ev={},of={},sf={};Object.defineProperty(sf,"__esModule",{value:!0});var kT=A,OT=RT(kT);function RT(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}sf.default=function(e,t,n){return OT.createElement("a",{href:e,key:n},t)};var af={};Object.defineProperty(af,"__esModule",{value:!0});af.default=function(e){return e};var lf={},Ga,gh;function NT(){return gh||(gh=1,Ga=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Ga}var Va,yh;function AT(){return yh||(yh=1,Va=/[\0-\x1F\x7F-\x9F]/),Va}var Wa,vh;function PT(){return vh||(vh=1,Wa=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Wa}var qa,_h;function IT(){return _h||(_h=1,qa=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),qa}var Xa,Eh;function DT(){return Eh||(Eh=1,Xa=function(e){var t={};t.src_Any=NT().source,t.src_Cc=AT().source,t.src_Z=PT().source,t.src_P=IT().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Xa}function hu(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function ea(e){return Object.prototype.toString.call(e)}function MT(e){return ea(e)==="[object String]"}function FT(e){return ea(e)==="[object Object]"}function LT(e){return ea(e)==="[object RegExp]"}function Sh(e){return ea(e)==="[object Function]"}function BT(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var tv={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function jT(e){return Object.keys(e||{}).reduce(function(t,n){return t||tv.hasOwnProperty(n)},!1)}var UT={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},zT="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",HT="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function $T(e){e.__index__=-1,e.__text_cache__=""}function GT(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function wh(){return function(e,t){t.normalize(e)}}function gs(e){var t=e.re=DT()(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(zT),n.push(t.src_xn),t.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];e.__compiled__={};function o(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){var l=e.__schemas__[a];if(l!==null){var u={validate:null,link:null};if(e.__compiled__[a]=u,FT(l)){LT(l.validate)?u.validate=GT(l.validate):Sh(l.validate)?u.validate=l.validate:o(a,l),Sh(l.normalize)?u.normalize=l.normalize:l.normalize?o(a,l):u.normalize=wh();return}if(MT(l)){i.push(a);return}o(a,l)}}),i.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:wh()};var s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(BT).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),$T(e)}function VT(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function xh(e,t){var n=new VT(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function ct(e,t){if(!(this instanceof ct))return new ct(e,t);t||jT(e)&&(t=e,e={}),this.__opts__=hu({},tv,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=hu({},UT,e),this.__compiled__={},this.__tlds__=HT,this.__tlds_replaced__=!1,this.re={},gs(this)}ct.prototype.add=function(t,n){return this.__schemas__[t]=n,gs(this),this};ct.prototype.set=function(t){return this.__opts__=hu(this.__opts__,t),this};ct.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,r,i,o,s,a,l,u,c;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=t.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=t.indexOf("@"),c>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};ct.prototype.pretest=function(t){return this.re.pretest.test(t)};ct.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};ct.prototype.match=function(t){var n=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(xh(this,n)),n=this.__last_index__);for(var i=n?t.slice(n):t;this.test(i);)r.push(xh(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};ct.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),gs(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,gs(this),this)};ct.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};ct.prototype.onCompile=function(){};var WT=ct;const qT=["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"];Object.defineProperty(lf,"__esModule",{value:!0});var XT=WT,QT=nv(XT),YT=qT,KT=nv(YT);function nv(e){return e&&e.__esModule?e:{default:e}}var rv=new QT.default;rv.tlds(KT.default);lf.default=function(e){return rv.match(e)};var uf={};Object.defineProperty(uf,"__esModule",{value:!0});uf.default=function(e){return e};Object.defineProperty(of,"__esModule",{value:!0});var ZT=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),JT=A,Kr=l2(JT),e2=sf,t2=ta(e2),n2=af,r2=ta(n2),i2=lf,o2=ta(i2),s2=uf,a2=ta(s2);function ta(e){return e&&e.__esModule?e:{default:e}}function l2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function u2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function f2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var iv=function(e){f2(t,e);function t(){return u2(this,t),c2(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ZT(t,[{key:"parseString",value:function(r){var i=this;if(r==="")return r;var o=this.props.matchDecorator(r);if(!o)return r;var s=[],a=0;return o.forEach(function(l,u){l.index>a&&s.push(r.substring(a,l.index));var c=i.props.hrefDecorator(l.url),m=i.props.textDecorator(l.text),g=i.props.componentDecorator(c,m,u);s.push(g),a=l.lastIndex}),r.length>a&&s.push(r.substring(a)),s.length===1?s[0]:s}},{key:"parse",value:function(r){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof r=="string"?this.parseString(r):Kr.isValidElement(r)&&r.type!=="a"&&r.type!=="button"?Kr.cloneElement(r,{key:o},this.parse(r.props.children)):Array.isArray(r)?r.map(function(s,a){return i.parse(s,a)}):r}},{key:"render",value:function(){return Kr.createElement(Kr.Fragment,null,this.parse(this.props.children))}}]),t}(Kr.Component);iv.defaultProps={componentDecorator:t2.default,hrefDecorator:r2.default,matchDecorator:o2.default,textDecorator:a2.default};of.default=iv;Object.defineProperty(ev,"__esModule",{value:!0});var d2=of,h2=p2(d2);function p2(e){return e&&e.__esModule?e:{default:e}}var m2=ev.default=h2.default;const g2="_text_1k7aq_1",y2={text:g2},ov=({text:e,onLinkClick:t})=>{const n=i=>o=>(o.preventDefault(),i&&t(i),!1),r=(i,o,s)=>_.jsx("a",{onClick:n(i),role:"button",children:o},s);return _.jsx("div",{children:e.split(`
98
- `).map((i,o)=>_.jsxs("span",{className:y2.text,children:[_.jsx(m2,{componentDecorator:r,children:i}),_.jsx("br",{})]},o))})},v2=({subtitle:e,onLinkClick:t})=>e?_.jsx("div",{className:Le.subtitle,children:_.jsx(ov,{text:e,onLinkClick:t})}):null,bh="newtab#",sv=({markdown:e,onLinkClick:t})=>{const n=i=>o=>(o.preventDefault(),i&&t(i),!1),r=({title:i,href:o,children:s})=>o.indexOf(bh)===0?_.jsx("a",{href:o.slice(bh.length),title:i,target:"_blank",rel:"noopener noreferrer",children:s}):_.jsx("a",{onClick:n(o),title:i,children:s});return _.jsx(Gn,{options:{overrides:{a:r}},children:e})},_2=({text:e,onLinkClick:t})=>e?_.jsx("div",{children:_.jsx(sv,{markdown:e,onLinkClick:t})}):null,E2=({title:e})=>e?_.jsx("h1",{className:Le.title,children:e}):null,S2=({title:e,text:t,subtitle:n,buttons:r,onButtonClick:i,onLinkClick:o})=>(e==null?void 0:e.length)||(t==null?void 0:t.length)||(n==null?void 0:n.length)||(r==null?void 0:r.length)?_.jsxs("div",{className:R(L.bubbleContent),children:[_.jsx(E2,{title:e}),_.jsx(_2,{text:t,onLinkClick:o}),_.jsx(v2,{subtitle:n,onLinkClick:o}),_.jsx(CT,{buttons:r,onButtonClick:i})]}):null,w2=({alt:e,imageUrl:t,itemUrl:n,hasBody:r})=>t?n?n.indexOf("youtube.com")>-1?_.jsx("div",{className:Le.video_container,children:_.jsx("iframe",{className:R(Le.video,{[Le.only]:!r}),title:"Youtube",width:"100%",src:n+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):_.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:_.jsx("div",{className:Le.imageContainer,children:_.jsx("img",{className:R(Le.image,{[Le.only]:!r}),src:t,alt:e})})}):_.jsx("div",{className:Le.imageContainer,children:_.jsx("img",{className:R(Le.image,{[Le.only]:!r}),src:t,alt:e})}):null,x2=({title:e,text:t,subtitle:n,imageUrl:r,itemUrl:i,buttons:o,onButtonClick:s,onLinkClick:a})=>{const l=!!(e!=null&&e.length)||!!(t!=null&&t.length)||!!(n!=null&&n.length)||!!(o!=null&&o.length);return _.jsxs("div",{className:R(Le.detailMessage),children:[_.jsx(w2,{hasBody:l,imageUrl:r,itemUrl:i,alt:e||n}),l&&_.jsx(S2,{title:e,text:t,subtitle:n,buttons:o,onLinkClick:a,onButtonClick:s})]})},b2=A.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:t,children:n},r)=>{const i=zt();return _.jsx("li",{ref:r,className:R(L.message,L.messageGuest,e&&L.messageGuestFirst,t&&L.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",t&&"chat__bubbleContainer--last"),children:_.jsx("div",{className:R(L.bubble,L.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":i("guest-bubble.label"),children:_.jsx("div",{className:R(L.rightText),children:n})})})}),T2=({markdown:e,className:t,onLinkClick:n})=>_.jsx("div",{className:R(L.bubbleContent,t),children:_.jsx(sv,{markdown:e,onLinkClick:n})}),C2=({text:e,onLinkClick:t})=>_.jsx("div",{className:L.bubbleContent,children:_.jsx(ov,{text:e,onLinkClick:t})}),k2=A.forwardRef(({message:e,problemReportingEnabled:t,isFirstMessageBySender:n,isLastMessageBySender:r,onProblemReport:i,onButtonClick:o,onLinkClick:s},a)=>{const l=O2(e,o,s);switch(e.sender.type){case G.UserType.GUEST:return _.jsx(b2,{ref:a,isFirstMessageBySender:n,isLastMessageBySender:r,children:l});default:const u=c=>i(e._id,c);return _.jsx(Jy,{ref:a,message:e,problemReportingEnabled:t,isAnimated:!1,isFirstMessageBySender:n,isLastMessageBySender:r,onProblemReport:u,children:l})}}),O2=(e,t,n)=>{switch(e.type){case G.MessageTypeEnum.TEXT:const r=e;return _.jsx(C2,{text:r.text,onLinkClick:n});case G.MessageTypeEnum.DETAIL:const i=e;return _.jsx(x2,{title:i.title,text:i.text,subtitle:i.subtitle,imageUrl:i.imageUrl,itemUrl:i.itemUrl,buttons:i.buttons,onButtonClick:t,onLinkClick:n});case G.MessageTypeEnum.MARKDOWN:const o=e;return _.jsx(T2,{markdown:o.markdown,className:o.className,onLinkClick:n})}},R2=(e,t)=>e.message._id===t.message._id&&e.message.problemReport===t.message.problemReport&&e.problemReportingEnabled===t.problemReportingEnabled&&e.isFirstMessageBySender===t.isFirstMessageBySender&&e.isLastMessageBySender===t.isLastMessageBySender,N2=St.memo(k2,R2),A2="_ticontainer_wftg7_1",P2="_tiblock_wftg7_5",I2="_tidot_wftg7_12",D2="_mercuryTypingAnimation_wftg7_1",Zr={ticontainer:A2,tiblock:P2,tidot:I2,mercuryTypingAnimation:D2},M2=({isTyping:e=!1})=>_.jsx("div",{className:Zr.ticontainer,children:_.jsx("div",{className:Zr.tiblock,children:e?_.jsxs(_.Fragment,{children:[_.jsx("div",{className:R(Zr.tidot,"chat__typingIndicator")}),_.jsx("div",{className:R(Zr.tidot,"chat__typingIndicator")}),_.jsx("div",{className:R(Zr.tidot,"chat__typingIndicator")})]}):null})}),F2=Object.assign({_id:"typing-indicator"},new G.TextMessage("",new G.BotUser)),L2=({messages:e,isBotTyping:t,showGeneralConditions:n,problemReportingEnabled:r,onProblemReport:i,onButtonClick:o,onLinkClick:s})=>{const a=A.useRef(!0),l=A.useRef(null),u=A.useRef(null),c=A.useRef(null);A.useLayoutEffect(()=>{if(e.length&&l.current){if(u.current){const f=u.current.offsetTop;l.current.scrollTop=f}else if(c.current){const f=c.current.offsetTop;l.current.scrollTop=f}a.current&&(a.current=!1)}},[e,u.current,c.current,a]);let m;const g=e.length;return _.jsxs("div",{ref:l,className:R(sh.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&a.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[n&&_.jsx(Gb,{}),_.jsxs("ul",{className:sh.messages,children:[e.map((f,p)=>{const y=B2(f,m),E=j2(f,p,e,t);m=f.sender.type;const h=p+1===g;return _.jsx(N2,{ref:h?c:null,message:f,problemReportingEnabled:r,isFirstMessageBySender:y,isLastMessageBySender:E,onButtonClick:o,onLinkClick:s,onProblemReport:i},h&&!t?"last":f._id)}),t&&_.jsx(Jy,{ref:u,message:F2,problemReportingEnabled:!1,isAnimated:!0,isFirstMessageBySender:m!==G.UserType.BOT,isLastMessageBySender:!0,children:_.jsx(M2,{isTyping:!0})},"last")]})]})},B2=(e,t)=>!t||t!==e.sender.type,j2=(e,t,n,r)=>{var a;const i=e.sender.type,o=n.length;return t+1===o?!(i===G.UserType.BOT&&r):i!==((a=n.at(t+1))==null?void 0:a.sender.type)},U2="_container_t5oqt_1",z2={container:U2},H2=({title:e,href:t,children:n})=>_.jsx("a",{href:t,title:e,target:"_blank",rel:"noopener noreferrer",children:n}),$2=()=>{const t=zt()("powered-by");return t&&t.length?_.jsx("div",{className:R(z2.container,"chat__poweredBy"),children:_.jsx(Gn,{options:{overrides:{a:H2}},children:t})}):null},G2="_container_rami7_1",V2="_containerOpen_rami7_40",W2="_containerClose_rami7_44",q2="_formContainer_rami7_48",X2="_emailInput_rami7_53",Q2="_description_rami7_82",Y2="_actions_rami7_87",K2="_validationError_rami7_97",Z2="_submitted_rami7_104",mt={container:G2,containerOpen:V2,"slide-in":"_slide-in_rami7_1",containerClose:W2,"slide-out":"_slide-out_rami7_1",formContainer:q2,emailInput:X2,description:Q2,actions:Y2,validationError:K2,submitted:Z2},J2=({visible:e,methods:t,onEmailExport:n,onPdfExport:r,onClose:i})=>{const o=zt(),[s,a]=A.useState(void 0),[l,u]=A.useState(!1),[c,m]=A.useState(!1),[g,f]=A.useState(void 0),p=A.useRef(null);A.useEffect(()=>{var d;e?((d=p.current)==null||d.focus(),u(!1),m(!1),a(e)):s===!0&&a(!1)},[e,s]);const y=d=>{d.preventDefault(),g&&g.length>0&&(n(g),u(!0),setTimeout(i,3*1e3))},E=d=>{const v=d.target.value.trim(),S=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(v);f(S?v:"")},h=()=>{m(!0),r(),setTimeout(i,3*1e3)};return _.jsxs("div",{className:R(mt.container,{[mt.containerOpen]:s===!0,[mt.containerClose]:s===!1}),children:[t.pdf&&_.jsxs(_.Fragment,{children:[_.jsx("h2",{children:o("export-transcript.pdf.title")}),_.jsx(Gn,{className:mt.description,children:o("export-transcript.pdf.description")||""}),_.jsxs("div",{className:mt.actions,children:[_.jsx("button",{type:"button",className:R(Be.button,Be.buttonDefault),onClick:i,children:o("export-transcript.pdf.cancel")}),_.jsx("button",{className:R(Be.button,Be.buttonPrimary),onClick:h,disabled:c,children:o("export-transcript.pdf.download")})]})]}),t.email&&_.jsxs(_.Fragment,{children:[_.jsx("h2",{children:o("export-transcript.email.title")}),_.jsx(Gn,{className:mt.description,children:o("export-transcript.email.description")||""}),_.jsxs("form",{onSubmit:y,className:mt.formContainer,children:[_.jsxs("div",{children:[_.jsx("input",{disabled:l,ref:p,type:"email",placeholder:o("export-transcript.email.placeholder"),className:mt.emailInput,onChange:E}),(g==null?void 0:g.length)===0?_.jsx("div",{className:mt.validationError,children:o("export-transcript.email.invalid")}):null]}),_.jsxs("div",{className:mt.actions,children:[_.jsx("button",{type:"button",className:R(Be.button,Be.buttonDefault),onClick:i,children:o("export-transcript.email.cancel")}),_.jsx("button",{type:"submit",disabled:l||g===void 0||g.length===0,className:R(Be.button,Be.buttonPrimary),children:o("export-transcript.email.send")})]})]}),l&&_.jsx("div",{className:mt.submitted,children:o("export-transcript.email.success")})]})]})},eC="_inputContainer_1px77_1",tC={inputContainer:eC},nC="_blockUserInput_rv0dg_1",rC={blockUserInput:nC,"append-animate":"_append-animate_rv0dg_1"},iC=({visible:e})=>{const t=zt();return e?_.jsx("div",{className:R(rC.blockUserInput,"chat__blockUserInput"),children:t("block-user-input.title")}):null},oC="_callToActionContainer_10512_1",sC="_callToActionTitle_10512_24",aC="_rateOverlay_10512_31",lC="_body_10512_60",uC="_rateOverlayOpen_10512_84",cC="_rateOverlayClose_10512_88",fC="_footer_10512_92",dC="_actions_10512_107",hC="_bubbles_10512_119",pC="_rateFeedbackBotBubble_10512_146",mC="_rateFeedbackGuestBubble_10512_152",gC="_avatar_10512_158",yC="_fadeInLeft_10512_1",vC="_bubble_10512_119",_C="_appear_10512_1",EC="_botBubble_10512_184",SC="_guestBubble_10512_194",wC="_rateText_10512_210",xC="_stars_10512_215",bC="_starsSmall_10512_228",TC="_starsLarge_10512_232",CC="_star_10512_215",kC="_starReadonly_10512_249",OC="_starIcon_10512_257",RC="_starsDescriptionContainer_10512_275",NC="_starsDescription_10512_275",be={callToActionContainer:oC,"append-animate":"_append-animate_10512_1",callToActionTitle:sC,rateOverlay:aC,body:lC,rateOverlayOpen:uC,"slide-in":"_slide-in_10512_1",rateOverlayClose:cC,"slide-out":"_slide-out_10512_1",footer:fC,actions:dC,bubbles:hC,rateFeedbackBotBubble:pC,rateFeedbackGuestBubble:mC,avatar:gC,fadeInLeft:yC,bubble:vC,appear:_C,botBubble:EC,guestBubble:SC,rateText:wC,stars:xC,starsSmall:bC,starsLarge:TC,star:CC,starReadonly:kC,starIcon:OC,starsDescriptionContainer:RC,starsDescription:NC},AC=({value:e,index:t,count:n,readonly:r,onHover:i,onClick:o})=>{const s=a=>{o&&a.key==="Enter"&&o()};return _.jsx("li",{className:R(be.star,{[be.starReadonly]:r},"chat__conversationRating__star"),children:_.jsx("div",{role:"radio","aria-checked":e>t?"true":"false","aria-posinset":t+1,"aria-setsize":n,tabIndex:0,onMouseOver:i,onKeyDown:s,onClick:o,children:_.jsx("span",{role:"img","aria-label":"Star",className:R(be.starIcon),children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},Th=5,av=({value:e,size:t,readonly:n=!1,onChange:r})=>{const[i,o]=A.useState(void 0),s=()=>{o(void 0)},a=u=>()=>{if(!n){const c=u+1;o(c)}},l=u=>()=>{r&&!n&&(r(u===0&&e===1?0:u+1),o(void 0))};return _.jsx("ul",{tabIndex:0,role:"radiogroup",className:R(be.stars,{[be.starsSmall]:t==="small",[be.starsLarge]:t==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:t==="small",chat__conversationRating__stars__large:t==="large"}),onMouseOut:s,children:Array(Th).fill(0).map((u,c)=>_.jsx(AC,{value:i===void 0?e:i,index:c,count:Th,readonly:n,onHover:a(c),onClick:l(c)},c))})},PC=({visible:e,onRate:t})=>{const n=zt();return e?_.jsxs("div",{className:R(be.callToActionContainer,"chat__conversationRating__callToAction"),children:[_.jsx("div",{className:R(be.callToActionTitle,"chat__conversationRating__callToAction__title"),children:n("conversation-rating.call-to-action.title")}),_.jsx(av,{value:0,size:"small",onChange:t})]}):null},Ch=({isFirstMessageBySender:e,isLastMessageBySender:t,children:n})=>_.jsxs("div",{className:R(L.message,L.messageBot,e&&L.messageBotFirst,t&&L.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",t&&"chat__bubbleContainer--last"),children:[_.jsx("img",{className:R(L.avatar,L.botAvatar),src:"bot.svg",alt:"Bot"}),_.jsx("div",{className:R(L.bubble,L.bubbleLeft,"chat__bubble","chat__botBubble"),children:_.jsx("div",{className:R(L.leftText,L.bubbleContent),children:n})})]}),IC=({children:e})=>_.jsx("div",{className:R(L.message,L.messageGuest,L.messageGuestFirst,L.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:_.jsx("div",{className:R(L.bubble,L.bubbleRight,"chat__bubble","chat__guestBubble"),children:_.jsx("div",{className:R(L.rightText,L.bubbleContent),children:e})})}),DC=({visible:e,rating:t,onRate:n,onClose:r})=>{const i=zt(),[o,s]=A.useState(t),[a,l]=A.useState(void 0),[u,c]=A.useState(void 0),[m,g]=A.useState({submitted:!1,feedback:""}),[f,p]=A.useState(!1),y=A.useRef(null);A.useEffect(()=>{e?(g({submitted:!1,feedback:""}),c(e)):u===!0&&c(!1)},[e,u]),A.useEffect(()=>{s(t)},[t]),A.useEffect(()=>{const h=i(`conversation-rating.overlay.bot-message.rate-feedback.value-${o}`);l(h!=null&&h.length?h:void 0)},[o,i]),A.useEffect(()=>{m.submitted?setTimeout(()=>p(!0),m.feedback.length?500:0):p(!1)},[m]);const E=h=>{var v,S;h.preventDefault();const d=((S=(v=y.current)==null?void 0:v.value)==null?void 0:S.trim())||"";n(o,d),g({submitted:!0,feedback:d})};return _.jsx("div",{className:R(be.rateOverlay,"chat__conversationRating__overlay",{[be.rateOverlayOpen]:u===!0,[be.rateOverlayClose]:u===!1}),children:_.jsxs("form",{onSubmit:E,children:[_.jsxs("div",{className:R(be.body,"chat__conversationRating__overlay__body"),children:[_.jsxs("div",{children:[_.jsx("h2",{children:i("conversation-rating.overlay.title")}),_.jsxs("div",{className:R(be.starsDescriptionContainer),children:[_.jsx(av,{value:o,size:"large",readonly:m.submitted,onChange:s}),_.jsxs("div",{className:R(be.starsDescription),children:[_.jsx("div",{children:i("conversation-rating.overlay.star.very-bad")}),_.jsx("div",{children:i("conversation-rating.overlay.star.very-good")})]})]})]}),_.jsx("div",{className:R(be.bubbles),children:e&&a&&_.jsxs(_.Fragment,{children:[_.jsx(Ch,{isFirstMessageBySender:!0,isLastMessageBySender:!f||!!m.feedback.length,children:_.jsx("div",{children:a})}),!!m.feedback.length&&_.jsx(IC,{children:m.feedback}),f&&_.jsx(Ch,{isFirstMessageBySender:!!m.feedback.length,isLastMessageBySender:!0,children:_.jsx("div",{children:i("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),_.jsxs("div",{className:R(be.footer,"chat__conversationRating__overlay__footer"),children:[!m.submitted&&_.jsx("input",{ref:y,placeholder:i("conversation-rating.overlay.guest-feedback.input-placeholder")}),_.jsx("div",{className:R(be.actions,"chat__conversationRating__overlay__footer__actions"),children:m.submitted?_.jsx("button",{type:"button",className:R(Be.button,Be.buttonPrimary),onClick:r,children:i("conversation-rating.overlay.action.close")}):_.jsx("button",{type:"submit",className:R(Be.button,Be.buttonPrimary),children:i("conversation-rating.overlay.action.submit")})})]})]})})},MC=({conversationRating:{enabled:e,rating:t},numberOfMessagesFromGuest:n,onRate:r})=>{const[i,o]=A.useState(0),[s,a]=A.useState(!1),l=m=>{o(m),a(!0)},u=()=>a(!1),c=!t&&n>=1;return e?_.jsxs(_.Fragment,{children:[_.jsx(PC,{visible:c,onRate:l}),_.jsx(DC,{visible:s,rating:i,onRate:r,onClose:u})]}):null},FC="_inputWrapper_1j8su_5",LC="_messageInputWrapper_1j8su_14",BC="_messageInput_1j8su_14",jC="_buttons_1j8su_37",UC="_button_1j8su_37",ir={inputWrapper:FC,messageInputWrapper:LC,messageInput:BC,buttons:jC,button:UC},zC="_audioRecorder_12g22_5",HC="_recordButton_12g22_10",$C="_submitButton_12g22_37",GC="_cancelButton_12g22_64",VC="_recorderIcon_12g22_91",WC="_pulse_12g22_1",qC="_spinning_12g22_113",XC="_spin_12g22_113",In={audioRecorder:zC,recordButton:HC,submitButton:$C,cancelButton:GC,recorderIcon:VC,pulse:WC,spinning:qC,spin:XC},kh=2048,ys=16e3;class QC extends St.Component{constructor(n){super(n);W(this,"audioInput",null);W(this,"volume",null);W(this,"leftchannel",[]);W(this,"recorder",null);W(this,"recordingLength",0);W(this,"sampleRate",null);W(this,"mediaStream",null);this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(n){this.mediaStream=n,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(n)}initRecording(n){var r=window.AudioContext||window.webkitAudioContext,i=new r;this.sampleRate=i.sampleRate,this.volume=i.createGain(),this.audioInput=i.createMediaStreamSource(n),this.audioInput.connect(this.volume),this.recorder=i.createScriptProcessor(kh,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(i.destination)}processRecordingInput(n){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const r=n.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(r)),this.recordingLength+=kh}}handleClickSubmitAudio(){const n=KC(this.leftchannel,this.recordingLength),r=ZC(n,this.sampleRate||0),i=YC(r);this.props.onAudioRecorded(i),this.handleClickStopAudio()}handleClickStopAudio(){var n,r,i,o;this.setState({recordingState:"none"}),(n=this.audioInput)==null||n.disconnect(),(r=this.volume)==null||r.disconnect(),(i=this.recorder)==null||i.disconnect(),this.mediaStream&&((o=this.mediaStream)==null||o.getAudioTracks().forEach(s=>{s.stop()}))}render(){return _.jsxs("div",{className:In.audioRecorder,children:[this.state.recordingState==="none"&&_.jsx("button",{className:R(In.recordButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&_.jsxs("svg",{className:In.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&_.jsxs("div",{className:In.audioRecorder,children:[_.jsx("button",{className:R(In.cancelButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),_.jsx("div",{className:In.recorderIcon}),_.jsx("button",{className:R(In.submitButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),_.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const YC=e=>{const t=new ArrayBuffer(44+e.length*2),n=new DataView(t);yo(n,0,"RIFF"),n.setUint32(4,44+e.length*2,!0),yo(n,8,"WAVE"),yo(n,12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,ys,!0),n.setUint32(28,ys*4,!0),n.setUint16(32,4,!0),n.setUint16(34,16,!0),yo(n,36,"data"),n.setUint32(40,e.length*2,!0);const r=e.length;let i=44;const o=1;for(var s=0;s<r;s++)n.setInt16(i,e[s]*(32767*o),!0),i+=2;return new Blob([n],{type:"audio/wav"})},yo=(e,t,n)=>{for(var r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))},KC=(e,t)=>{const n=new Float32Array(t);let r=0;const i=e.length;for(var o=0;o<i;o++){const s=e[o];n.set(s,r),r+=s.length}return n},ZC=(e,t)=>{if(ys===t)return e;const n=t/ys,r=Math.round(e.length/n),i=new Float32Array(r);let o=0,s=0;for(;o<i.length;){let l=Math.round((o+1)*n),u=0,c=0;for(var a=s;a<l&&a<e.length;a++)u+=e[a],c++;i[o]=u/c,o++,s=l}return i},JC=({speechSupport:e,transcriptExportEnabled:t,disabled:n,onTextInput:r,onAudioRecorded:i,onOpenTranscriptExportModal:o})=>{const s=zt(),[a,l]=A.useState(!1),u=A.useRef(null),c=()=>{const p=u.current;p&&p.value.trim().length>=1&&r(p.value.trim())&&(p.value="",p.style.height="",l(!1),p.focus())},m=p=>{p.preventDefault(),c()},g=p=>{const y=p.target.value.trim();l(y.length>0),p.target.style.height="";const{scrollHeight:E}=p.target;p.target.style.height=`${E>150?150:E}px`},f=p=>{p.code==="Enter"&&!p.shiftKey&&(p.repeat||c(),p.preventDefault())};return _.jsxs("form",{className:R(ir.inputWrapper,"chat__textInput"),onSubmit:m,children:[_.jsx("div",{className:ir.messageInputWrapper,children:_.jsx("textarea",{ref:u,className:ir.messageInput,tabIndex:0,placeholder:s("message-input-label"),onChange:g,onKeyDown:f})}),_.jsxs("div",{className:R(ir.buttons,"chat__buttons"),children:[!a&&t&&_.jsx("button",{type:"button",className:R(ir.button,"chat__button"),"aria-label":s("message-input.actions.export-transcript.label"),tabIndex:0,onClick:o,children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.jsx("path",{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"})})}),a||!e||navigator.mediaDevices===void 0?_.jsx("button",{className:R(ir.button,"chat__button"),type:"submit","aria-label":s("message-input.actions.submit.label"),tabIndex:0,disabled:n,children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):e&&navigator.mediaDevices!==void 0&&_.jsx(QC,{translate:s,onAudioRecorded:i})]})]})},ek="_quickReplies_11l22_1",tk="_quickReply_11l22_9",Oh={quickReplies:ek,quickReply:tk},nk=({quickReplies:e,onQuickReplyClick:t})=>e.length?_.jsx("div",{className:R(Oh.quickReplies,"chat__quickReplies"),children:e.map(n=>_.jsx("button",{tabIndex:0,className:R(Oh.quickReply,Be.button,"chat__button","chat__quickReply"),onClick:()=>t(n),children:n.label},n.label))}):null,Rh=5e3,rk=1e3,ik=({isBotTyping:e,quickReplies:t,speechSupport:n,transcriptExportEnabled:r,conversationRating:i,numberOfMessagesFromGuest:o,onTextInput:s,onRate:a,onQuickReplyClick:l,onAudioRecorded:u,onOpenTranscriptExportModal:c})=>{const[m,g]=A.useState(!1),f=A.useRef(),p=A.useRef(0);A.useEffect(()=>{if(m&&!e){const E=f.current?Date.now()-f.current:0;E>Rh?g(!1):setTimeout(()=>{g(!1)},Rh-E)}},[m,e]),A.useEffect(()=>{m&&(f.current=Date.now())},[m]);const y=E=>{const h=Date.now()-p.current<rk;return e||h?(g(!0),!1):(s(E),p.current=Date.now(),!0)};return _.jsxs("div",{className:R(tC.inputContainer),children:[_.jsx(nk,{quickReplies:t,onQuickReplyClick:l}),_.jsx(iC,{visible:m}),!m&&_.jsx(MC,{conversationRating:i,numberOfMessagesFromGuest:o,onRate:a}),_.jsx(JC,{onTextInput:y,onAudioRecorded:u,speechSupport:n,onOpenTranscriptExportModal:c,transcriptExportEnabled:r,disabled:m})]})},or={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"},ok=({clientName:e,messages:t,quickReplies:n,isBotTyping:r,speechSupport:i,problemReportingEnabled:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l,onConnect:u,onRestartChat:c,onNluEvent:m,onMessageFromUser:g,onRate:f,onQuickReplyClick:p,onButtonClick:y,onLinkClick:E,onAudioRecorded:h,onActionFromUser:d,onTranscriptExport:v,onPdfExport:S,onProblemReport:w})=>{const x=Ys(),[b,C]=A.useState(!1),[F,P]=A.useState(void 0);A.useEffect(()=>{window.document.documentElement.lang=x.locale},[x.locale]),A.useEffect(()=>{const Ee=window.location.search,On=lu.parse(Ee);On.cssClassName&&P(On.cssClassName);const Ve=We=>{switch(We.data.type){case or.TRIGGER_ACTION:d(We.data.action);break;case or.TRIGGER_STORY:m(We.data.story);break;case or.ON_CHAT_WINDOW_OPEN:d({type:"webclient.chatwindow.opened"});break;case or.ON_CHAT_WINDOW_CLOSE:d({type:"webclient.chatwindow.closed"});break;case or.CHAT_MESSAGE_FROM_GUEST:g(We.data.text);break;case or.RESTART_CHAT:c(e,Ee);break}};return u(e,Ee),window.addEventListener("message",We=>Ve(We),!1),()=>window.removeEventListener("message",Ve)},[e,u,c,d,g,m]);const re=s.email||s.pdf,pe=t.filter(Ee=>Ee.sender.type===Ny.GUEST).length;return _.jsxs("div",{className:R(oh.chatwindow,"chat__chatwindow",F),children:[_.jsxs("div",{className:oh.chatcontent,children:[_.jsx(L2,{messages:t,isBotTyping:r,showGeneralConditions:l,problemReportingEnabled:o,onButtonClick:y,onLinkClick:E,onProblemReport:w}),_.jsx(ik,{isBotTyping:r,quickReplies:r?[]:n,numberOfMessagesFromGuest:pe,speechSupport:i,transcriptExportEnabled:re,conversationRating:b?{enabled:!1}:a,onRate:f,onQuickReplyClick:p,onTextInput:g,onAudioRecorded:h,onOpenTranscriptExportModal:()=>C(!b)}),_.jsx($2,{})]}),re&&_.jsx(J2,{methods:s,visible:b,onEmailExport:v,onPdfExport:S,onClose:()=>C(!1)})]})},sk=e=>{const{messages:t,quickReplies:n,isBotTyping:r,speechSupport:i,problemReportingEnabled:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l}=e.chat;return{messages:t,quickReplies:n,isBotTyping:r,speechSupport:i,problemReportingEnabled:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l}},ak=e=>({onConnect:(t,n)=>e(Ry(t,n)),onRestartChat:(t,n)=>e(bx(t,n)),onMessageFromUser:t=>e(Xw(t)),onRate:(t,n)=>e(ax(t,n)),onAudioRecorded:t=>e(Zw(t)),onActionFromUser:t=>e(t),onQuickReplyClick:t=>e(by(t)),onNluEvent:t=>e(lx(t)),onButtonClick:t=>e(cx(t)),onLinkClick:t=>e(fx(t)),onTranscriptExport:t=>e(rx(t)),onPdfExport:()=>e(ox()),onProblemReport:(t,n)=>e(G.reportProblemFromGuest(t,n))}),lk=xE(sk,ak)(ok),lv=()=>uk(window.location.pathname),uk=e=>{const t=e.split("/"),n=e.endsWith("/");return t[t.length-(n?2:1)]},Nh=M1,ck=()=>{const e=lv(),t=Nh(r=>r.intl.locale),n=Nh(r=>r.intl.messages);return _.jsx(tw,{locale:t,messages:n,children:_.jsx("div",{className:rw.chatPage,children:_.jsx(lk,{clientName:e})})})};function we(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var fk=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ah=fk,Qa=()=>Math.random().toString(36).substring(7).split("").join("."),dk={INIT:`@@redux/INIT${Qa()}`,REPLACE:`@@redux/REPLACE${Qa()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Qa()}`},vs=dk;function cf(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function uv(e,t,n){if(typeof e!="function")throw new Error(we(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(we(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(we(1));return n(uv)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function u(){s===o&&(s=new Map,o.forEach((E,h)=>{s.set(h,E)}))}function c(){if(l)throw new Error(we(3));return i}function m(E){if(typeof E!="function")throw new Error(we(4));if(l)throw new Error(we(5));let h=!0;u();const d=a++;return s.set(d,E),function(){if(h){if(l)throw new Error(we(6));h=!1,u(),s.delete(d),o=null}}}function g(E){if(!cf(E))throw new Error(we(7));if(typeof E.type>"u")throw new Error(we(8));if(typeof E.type!="string")throw new Error(we(17));if(l)throw new Error(we(9));try{l=!0,i=r(i,E)}finally{l=!1}return(o=s).forEach(d=>{d()}),E}function f(E){if(typeof E!="function")throw new Error(we(10));r=E,g({type:vs.REPLACE})}function p(){const E=m;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(we(11));function d(){const S=h;S.next&&S.next(c())}return d(),{unsubscribe:E(d)}},[Ah](){return this}}}return g({type:vs.INIT}),{dispatch:g,subscribe:m,getState:c,replaceReducer:f,[Ah]:p}}function hk(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:vs.INIT})>"u")throw new Error(we(12));if(typeof n(void 0,{type:vs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(we(13))})}function cv(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{hk(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const u={};for(let c=0;c<r.length;c++){const m=r[c],g=n[m],f=s[m],p=g(f,a);if(typeof p>"u")throw a&&a.type,new Error(we(14));u[m]=p,l=l||p!==f}return l=l||r.length!==Object.keys(s).length,l?u:s}}function _s(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function pk(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(we(15))};const s={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},a=e.map(l=>l(s));return o=_s(...a)(i.dispatch),{...i,dispatch:o}}}function mk(e){return cf(e)&&"type"in e&&typeof e.type=="string"}var fv=Symbol.for("immer-nothing"),Ph=Symbol.for("immer-draftable"),Ke=Symbol.for("immer-state");function Et(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ir=Object.getPrototypeOf;function wn(e){return!!e&&!!e[Ke]}function Jt(e){var t;return e?dv(e)||Array.isArray(e)||!!e[Ph]||!!((t=e.constructor)!=null&&t[Ph])||ra(e)||ia(e):!1}var gk=Object.prototype.constructor.toString();function dv(e){if(!e||typeof e!="object")return!1;const t=Ir(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===gk}function Fi(e,t){na(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function na(e){const t=e[Ke];return t?t.type_:Array.isArray(e)?1:ra(e)?2:ia(e)?3:0}function pu(e,t){return na(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function hv(e,t,n){const r=na(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function yk(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ra(e){return e instanceof Map}function ia(e){return e instanceof Set}function Fn(e){return e.copy_||e.base_}function mu(e,t){if(ra(e))return new Map(e);if(ia(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&dv(e))return Ir(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ke];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Ir(e),n)}function ff(e,t=!1){return oa(e)||wn(e)||!Jt(e)||(na(e)>1&&(e.set=e.add=e.clear=e.delete=vk),Object.freeze(e),t&&Fi(e,(n,r)=>ff(r,!0))),e}function vk(){Et(2)}function oa(e){return Object.isFrozen(e)}var _k={};function Kn(e){const t=_k[e];return t||Et(0,e),t}var Li;function pv(){return Li}function Ek(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ih(e,t){t&&(Kn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function gu(e){yu(e),e.drafts_.forEach(Sk),e.drafts_=null}function yu(e){e===Li&&(Li=e.parent_)}function Dh(e){return Li=Ek(Li,e)}function Sk(e){const t=e[Ke];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Mh(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ke].modified_&&(gu(t),Et(4)),Jt(e)&&(e=Es(t,e),t.parent_||Ss(t,e)),t.patches_&&Kn("Patches").generateReplacementPatches_(n[Ke].base_,e,t.patches_,t.inversePatches_)):e=Es(t,n,[]),gu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fv?e:void 0}function Es(e,t,n){if(oa(t))return t;const r=t[Ke];if(!r)return Fi(t,(i,o)=>Fh(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ss(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Fi(o,(a,l)=>Fh(e,r,i,a,l,n,s)),Ss(e,i,!1),n&&e.patches_&&Kn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Fh(e,t,n,r,i,o,s){if(wn(i)){const a=o&&t&&t.type_!==3&&!pu(t.assigned_,r)?o.concat(r):void 0,l=Es(e,i,a);if(hv(n,r,l),wn(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Jt(i)&&!oa(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Es(e,i),(!t||!t.scope_.parent_)&&Ss(e,i)}}function Ss(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ff(t,n)}function wk(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:pv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=df;n&&(i=[r],o=Bi);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var df={get(e,t){if(t===Ke)return e;const n=Fn(e);if(!pu(n,t))return xk(e,n,t);const r=n[t];return e.finalized_||!Jt(r)?r:r===Ya(e.base_,t)?(Ka(e),e.copy_[t]=_u(r,e)):r},has(e,t){return t in Fn(e)},ownKeys(e){return Reflect.ownKeys(Fn(e))},set(e,t,n){const r=mv(Fn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Ya(Fn(e),t),o=i==null?void 0:i[Ke];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(yk(n,i)&&(n!==void 0||pu(e.base_,t)))return!0;Ka(e),vu(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Ya(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ka(e),vu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Fn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Et(11)},getPrototypeOf(e){return Ir(e.base_)},setPrototypeOf(){Et(12)}},Bi={};Fi(df,(e,t)=>{Bi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Bi.deleteProperty=function(e,t){return Bi.set.call(this,e,t,void 0)};Bi.set=function(e,t,n){return df.set.call(this,e[0],t,n,e[0])};function Ya(e,t){const n=e[Ke];return(n?Fn(n):e)[t]}function xk(e,t,n){var i;const r=mv(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function mv(e,t){if(!(t in e))return;let n=Ir(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ir(n)}}function vu(e){e.modified_||(e.modified_=!0,e.parent_&&vu(e.parent_))}function Ka(e){e.copy_||(e.copy_=mu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var bk=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...u){return s.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&Et(6),r!==void 0&&typeof r!="function"&&Et(7);let i;if(Jt(t)){const o=Dh(this),s=_u(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?gu(o):yu(o)}return Ih(o,r),Mh(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===fv&&(i=void 0),this.autoFreeze_&&ff(i,!0),r){const o=[],s=[];Kn("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else Et(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Jt(e)||Et(8),wn(e)&&(e=gv(e));const t=Dh(this),n=_u(e,void 0);return n[Ke].isManual_=!0,yu(t),n}finishDraft(e,t){const n=e&&e[Ke];(!n||!n.isManual_)&&Et(9);const{scope_:r}=n;return Ih(r,t),Mh(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Kn("Patches").applyPatches_;return wn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function _u(e,t){const n=ra(e)?Kn("MapSet").proxyMap_(e,t):ia(e)?Kn("MapSet").proxySet_(e,t):wk(e,t);return(t?t.scope_:pv()).drafts_.push(n),n}function gv(e){return wn(e)||Et(10,e),yv(e)}function yv(e){if(!Jt(e)||oa(e))return e;const t=e[Ke];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=mu(e,t.scope_.immer_.useStrictShallowCopy_)}else n=mu(e,!0);return Fi(n,(r,i)=>{hv(n,r,yv(i))}),t&&(t.finalized_=!1),n}var Ze=new bk,vv=Ze.produce;Ze.produceWithPatches.bind(Ze);Ze.setAutoFreeze.bind(Ze);Ze.setUseStrictShallowCopy.bind(Ze);Ze.applyPatches.bind(Ze);Ze.createDraft.bind(Ze);Ze.finishDraft.bind(Ze);function Tk(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Ck(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Lh=e=>Array.isArray(e)?e:[e];function kk(e){const t=Array.isArray(e[0])?e[0]:e;return Ck(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ok(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Rk=class{constructor(e){this.value=e}deref(){return this.value}},Nk=typeof WeakRef<"u"?WeakRef:Rk,Ak=0,Bh=1;function vo(){return{s:Ak,v:void 0,o:null,p:null}}function _v(e,t={}){let n=vo();const{resultEqualityCheck:r}=t;let i,o=0;function s(){let a=n;const{length:l}=arguments;for(let m=0,g=l;m<g;m++){const f=arguments[m];if(typeof f=="function"||typeof f=="object"&&f!==null){let p=a.o;p===null&&(a.o=p=new WeakMap);const y=p.get(f);y===void 0?(a=vo(),p.set(f,a)):a=y}else{let p=a.p;p===null&&(a.p=p=new Map);const y=p.get(f);y===void 0?(a=vo(),p.set(f,a)):a=y}}const u=a;let c;if(a.s===Bh?c=a.v:(c=e.apply(null,arguments),o++),u.s=Bh,r){const m=(i==null?void 0:i.deref())??i;m!=null&&r(m,c)&&(c=m,o!==0&&o--),i=typeof c=="object"&&c!==null||typeof c=="function"?new Nk(c):c}return u.v=c,c}return s.clearCache=()=>{n=vo(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function Pk(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e;return(...i)=>{let o=0,s=0,a,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),Tk(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:m,memoizeOptions:g=[],argsMemoize:f=_v,argsMemoizeOptions:p=[],devModeChecks:y={}}=c,E=Lh(g),h=Lh(p),d=kk(i),v=m(function(){return o++,u.apply(null,arguments)},...E),S=f(function(){s++;const x=Ok(d,arguments);return a=v.apply(null,x),a},...h);return Object.assign(S,{resultFunc:u,memoizedResultFunc:v,dependencies:d,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:m,argsMemoize:f})}}function Ev(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Ik=Ev(),Dk=Ev,Mk=(...e)=>{const t=Pk(...e);return(...n)=>{const r=t(...n),i=(o,...s)=>r(wn(o)?gv(o):o,...s);return Object.assign(i,r),i}};Mk(_v);var Fk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_s:_s.apply(null,arguments)};function ji(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(bt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>mk(r)&&r.type===e,n}var Sv=class oi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,oi.prototype)}static get[Symbol.species](){return oi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new oi(...t[0].concat(this)):new oi(...t.concat(this))}};function jh(e){return Jt(e)?vv(e,()=>{}):e}function Uh(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(bt(10));const r=n.insert(t,e);return e.set(t,r),r}function Lk(e){return typeof e=="boolean"}var Bk=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new Sv;return n&&(Lk(n)?s.push(Ik):s.push(Dk(n.extraArgument))),s},jk="RTK_autoBatch",wv=e=>t=>{setTimeout(t,e)},Uk=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:wv(10),zk=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Uk:e.type==="callback"?e.queueNotification:wv(e.timeout),u=()=>{s=!1,o&&(o=!1,a.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const m=()=>i&&c(),g=r.subscribe(m);return a.add(c),()=>{g(),a.delete(c)}},dispatch(c){var m;try{return i=!((m=c==null?void 0:c.meta)!=null&&m[jk]),o=!i,o&&(s||(s=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},Hk=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Sv(e);return r&&i.push(zk(typeof r=="object"?r:void 0)),i},$k=!0;function Gk(e){const t=Bk(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(cf(n))a=cv(n);else throw new Error(bt(1));let l;typeof r=="function"?l=r(t):l=t();let u=_s;i&&(u=Fk({trace:!$k,...typeof i=="object"&&i}));const c=pk(...l),m=Hk(c);let g=typeof s=="function"?s(m):m();const f=u(...g);return uv(a,o,f)}function xv(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(bt(28));if(a in t)throw new Error(bt(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Vk(e){return typeof e=="function"}function Wk(e,t){let[n,r,i]=xv(t),o;if(Vk(e))o=()=>jh(e());else{const a=jh(e);o=()=>a}function s(a=o(),l){let u=[n[l.type],...r.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,m)=>{if(m)if(wn(c)){const f=m(c,l);return f===void 0?c:f}else{if(Jt(c))return vv(c,g=>m(g,l));{const g=m(c,l);if(g===void 0){if(c===null)return c;throw new Error(bt(9))}return g}}return c},a)}return s.getInitialState=o,s}var qk=Symbol.for("rtk-slice-createasyncthunk");function Xk(e,t){return`${e}/${t}`}function Qk({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[qk];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(bt(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(Zk()):i.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(E,h){const d=typeof E=="string"?E:E.type;if(!d)throw new Error(bt(12));if(d in u.sliceCaseReducersByType)throw new Error(bt(13));return u.sliceCaseReducersByType[d]=h,c},addMatcher(E,h){return u.sliceMatchers.push({matcher:E,reducer:h}),c},exposeAction(E,h){return u.actionCreators[E]=h,c},exposeCaseReducer(E,h){return u.sliceCaseReducersByName[E]=h,c}};l.forEach(E=>{const h=a[E],d={reducerName:E,type:Xk(o,E),createNotation:typeof i.reducers=="function"};eO(h)?nO(d,h,c,t):Jk(d,h,c)});function m(){const[E={},h=[],d=void 0]=typeof i.extraReducers=="function"?xv(i.extraReducers):[i.extraReducers],v={...E,...u.sliceCaseReducersByType};return Wk(i.initialState,S=>{for(let w in v)S.addCase(w,v[w]);for(let w of u.sliceMatchers)S.addMatcher(w.matcher,w.reducer);for(let w of h)S.addMatcher(w.matcher,w.reducer);d&&S.addDefaultCase(d)})}const g=E=>E,f=new WeakMap;let p;const y={name:o,reducerPath:s,reducer(E,h){return p||(p=m()),p(E,h)},actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState(){return p||(p=m()),p.getInitialState()},getSelectors(E=g){const h=Uh(f,this,{insert:()=>new WeakMap});return Uh(h,E,{insert:()=>{const d={};for(const[v,S]of Object.entries(i.selectors??{}))d[v]=Yk(this,S,E,this!==y);return d}})},selectSlice(E){let h=E[this.reducerPath];return typeof h>"u"&&this!==y&&(h=this.getInitialState()),h},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(E,{reducerPath:h,...d}={}){const v=h??this.reducerPath;return E.inject({reducerPath:v,reducer:this.reducer},d),{...this,reducerPath:v}}};return y}}function Yk(e,t,n,r){function i(o,...s){let a=n.call(e,o);return typeof a>"u"&&r&&(a=e.getInitialState()),t(a,...s)}return i.unwrapped=t,i}var Kk=Qk();function Zk(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Jk({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!tO(r))throw new Error(bt(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?ji(e,s):ji(e))}function eO(e){return e._reducerDefinitionType==="asyncThunk"}function tO(e){return e._reducerDefinitionType==="reducerWithPrepare"}function nO({type:e,reducerName:t},n,r,i){if(!i)throw new Error(bt(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:u,options:c}=n,m=i(e,o,c);r.exposeAction(t,m),s&&r.addCase(m.fulfilled,s),a&&r.addCase(m.pending,a),l&&r.addCase(m.rejected,l),u&&r.addMatcher(m.settled,u),r.exposeCaseReducer(t,{fulfilled:s||_o,pending:a||_o,rejected:l||_o,settled:u||_o})}function _o(){}var hf="listenerMiddleware";ji(`${hf}/add`);ji(`${hf}/removeAll`);ji(`${hf}/remove`);function bt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function rO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pf=rO,iO=typeof le=="object"&&le&&le.Object===Object&&le,oO=iO,sO=oO,aO=typeof self=="object"&&self&&self.Object===Object&&self,lO=sO||aO||Function("return this")(),bv=lO,uO=bv,cO=function(){return uO.Date.now()},fO=cO,dO=/\s/;function hO(e){for(var t=e.length;t--&&dO.test(e.charAt(t)););return t}var pO=hO,mO=pO,gO=/^\s+/;function yO(e){return e&&e.slice(0,mO(e)+1).replace(gO,"")}var vO=yO,_O=bv,EO=_O.Symbol,Tv=EO,zh=Tv,Cv=Object.prototype,SO=Cv.hasOwnProperty,wO=Cv.toString,Jr=zh?zh.toStringTag:void 0;function xO(e){var t=SO.call(e,Jr),n=e[Jr];try{e[Jr]=void 0;var r=!0}catch{}var i=wO.call(e);return r&&(t?e[Jr]=n:delete e[Jr]),i}var bO=xO,TO=Object.prototype,CO=TO.toString;function kO(e){return CO.call(e)}var OO=kO,Hh=Tv,RO=bO,NO=OO,AO="[object Null]",PO="[object Undefined]",$h=Hh?Hh.toStringTag:void 0;function IO(e){return e==null?e===void 0?PO:AO:$h&&$h in Object(e)?RO(e):NO(e)}var DO=IO;function MO(e){return e!=null&&typeof e=="object"}var FO=MO,LO=DO,BO=FO,jO="[object Symbol]";function UO(e){return typeof e=="symbol"||BO(e)&&LO(e)==jO}var zO=UO,HO=vO,Gh=pf,$O=zO,Vh=NaN,GO=/^[-+]0x[0-9a-f]+$/i,VO=/^0b[01]+$/i,WO=/^0o[0-7]+$/i,qO=parseInt;function XO(e){if(typeof e=="number")return e;if($O(e))return Vh;if(Gh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Gh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=HO(e);var n=VO.test(e);return n||WO.test(e)?qO(e.slice(2),n?2:8):GO.test(e)?Vh:+e}var QO=XO,YO=pf,Za=fO,Wh=QO,KO="Expected a function",ZO=Math.max,JO=Math.min;function eR(e,t,n){var r,i,o,s,a,l,u=0,c=!1,m=!1,g=!0;if(typeof e!="function")throw new TypeError(KO);t=Wh(t)||0,YO(n)&&(c=!!n.leading,m="maxWait"in n,o=m?ZO(Wh(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g);function f(x){var b=r,C=i;return r=i=void 0,u=x,s=e.apply(C,b),s}function p(x){return u=x,a=setTimeout(h,t),c?f(x):s}function y(x){var b=x-l,C=x-u,F=t-b;return m?JO(F,o-C):F}function E(x){var b=x-l,C=x-u;return l===void 0||b>=t||b<0||m&&C>=o}function h(){var x=Za();if(E(x))return d(x);a=setTimeout(h,y(x))}function d(x){return a=void 0,g&&r?f(x):(r=i=void 0,s)}function v(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function S(){return a===void 0?s:d(Za())}function w(){var x=Za(),b=E(x);if(r=arguments,i=this,l=x,b){if(a===void 0)return p(l);if(m)return clearTimeout(a),a=setTimeout(h,t),f(l)}return a===void 0&&(a=setTimeout(h,t)),s}return w.cancel=v,w.flush=S,w}var tR=eR,nR=tR,rR=pf,iR="Expected a function";function oR(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(iR);return rR(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),nR(e,t,{leading:r,maxWait:t,trailing:i})}var sR=oR;const aR=ku(sR);function tr(e,t){var n,r;if(typeof t=="function")r=t(e),r!==void 0&&(e=r);else if(Array.isArray(t))for(n=0;n<t.length;n++)r=t[n](e),r!==void 0&&(e=r);return e}function lR(e,t){return e[0]==="-"&&Array.isArray(t)&&/^-\d+$/.test(e)?t.length+parseInt(e,10):e}function uR(e){return/^\d+$/.test(e)}function jo(e){return Object.prototype.toString.call(e)==="[object Object]"}function si(e){return Object(e)===e}function Uo(e){return Object.keys(e).length===0}var cR=["__proto__","prototype","constructor"],fR=function(e){return cR.indexOf(e)===-1};function sa(e,t){e.indexOf("[")>=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var n=e.split(t),r=n.filter(fR);if(r.length!==n.length)throw Error("Refusing to update blacklisted property "+e);return n}var qh=Object.prototype.hasOwnProperty;function V(e,t,n,r){if(!(this instanceof V))return new V(e,t,n,r);typeof t>"u"&&(t=!1),typeof n>"u"&&(n=!0),typeof r>"u"&&(r=!0),this.separator=e||".",this.override=t,this.useArray=n,this.useBrackets=r,this.keepArray=!1,this.cleanup=[]}var Dr=new V(".",!1,!0,!0);function Ct(e){return function(){return Dr[e].apply(Dr,arguments)}}V.prototype._fill=function(e,t,n,r){var i=e.shift();if(e.length>0){if(t[i]=t[i]||(this.useArray&&uR(e[0])?[]:{}),!si(t[i]))if(this.override)t[i]={};else{if(!(si(n)&&Uo(n)))throw new Error("Trying to redefine `"+i+"` which is a "+typeof t[i]);return}this._fill(e,t[i],n,r)}else{if(!this.override&&si(t[i])&&!Uo(t[i])){if(!(si(n)&&Uo(n)))throw new Error("Trying to redefine non-empty obj['"+i+"']");return}t[i]=tr(n,r)}};V.prototype.object=function(e,t){var n=this;return Object.keys(e).forEach(function(r){var i=t===void 0?null:t[r],o=sa(r,n.separator).join(n.separator);o.indexOf(n.separator)!==-1?(n._fill(o.split(n.separator),e,e[r],i),delete e[r]):e[r]=tr(e[r],i)}),e};V.prototype.str=function(e,t,n,r){var i=sa(e,this.separator).join(this.separator);return e.indexOf(this.separator)!==-1?this._fill(i.split(this.separator),n,t,r):n[e]=tr(t,r),n};V.prototype.pick=function(e,t,n,r){var i,o,s,a,l;for(o=sa(e,this.separator),i=0;i<o.length;i++)if(a=lR(o[i],t),t&&typeof t=="object"&&a in t){if(i===o.length-1)return n?(s=t[a],r&&Array.isArray(t)?t.splice(a,1):delete t[a],Array.isArray(t)&&(l=o.slice(0,-1).join("."),this.cleanup.indexOf(l)===-1&&this.cleanup.push(l)),s):t[a];t=t[a]}else return;return n&&Array.isArray(t)&&(t=t.filter(function(u){return u!==void 0})),t};V.prototype.delete=function(e,t){return this.remove(e,t,!0)};V.prototype.remove=function(e,t,n){var r;if(this.cleanup=[],Array.isArray(e)){for(r=0;r<e.length;r++)this.pick(e[r],t,!0,n);return n||this._cleanup(t),t}else return this.pick(e,t,!0,n)};V.prototype._cleanup=function(e){var t,n,r,i;if(this.cleanup.length){for(n=0;n<this.cleanup.length;n++)r=this.cleanup[n].split("."),i=r.splice(0,-1).join("."),t=i?this.pick(i,e):e,t=t[r[0]].filter(function(o){return o!==void 0}),this.set(this.cleanup[n],t,e);this.cleanup=[]}};V.prototype.del=V.prototype.remove;V.prototype.move=function(e,t,n,r,i){return typeof r=="function"||Array.isArray(r)?this.set(t,tr(this.pick(e,n,!0),r),n,i):(i=r,this.set(t,this.pick(e,n,!0),n,i)),n};V.prototype.transfer=function(e,t,n,r,i,o){return typeof i=="function"||Array.isArray(i)?this.set(t,tr(this.pick(e,n,!0),i),r,o):(o=i,this.set(t,this.pick(e,n,!0),r,o)),r};V.prototype.copy=function(e,t,n,r,i,o){return typeof i=="function"||Array.isArray(i)?this.set(t,tr(JSON.parse(JSON.stringify(this.pick(e,n,!1))),i),r,o):(o=i,this.set(t,this.pick(e,n,!1),r,o)),r};V.prototype.set=function(e,t,n,r){var i,o,s,a;if(typeof t>"u")return n;for(s=sa(e,this.separator),i=0;i<s.length;i++){if(a=s[i],i===s.length-1)if(r&&jo(t)&&jo(n[a]))for(o in t)qh.call(t,o)&&(n[a][o]=t[o]);else if(r&&Array.isArray(n[a])&&Array.isArray(t))for(var l=0;l<t.length;l++)n[s[i]].push(t[l]);else n[a]=t;else(!qh.call(n,a)||!jo(n[a])&&!Array.isArray(n[a]))&&(/^\d+$/.test(s[i+1])?n[a]=[]:n[a]={});n=n[a]}return n};V.prototype.transform=function(e,t,n){return t=t||{},n=n||{},Object.keys(e).forEach((function(r){this.set(e[r],this.pick(r,t),n)}).bind(this)),n};V.prototype.dot=function(e,t,n){t=t||{},n=n||[];var r=Array.isArray(e);return Object.keys(e).forEach((function(i){var o=r&&this.useBrackets?"["+i+"]":i;if(si(e[i])&&(jo(e[i])&&!Uo(e[i])||Array.isArray(e[i])&&!this.keepArray&&e[i].length!==0))if(r&&this.useBrackets){var s=n[n.length-1]||"";return this.dot(e[i],t,n.slice(0,-1).concat(s+o))}else return this.dot(e[i],t,n.concat(o));else r&&this.useBrackets?t[n.join(this.separator).concat("["+i+"]")]=e[i]:t[n.concat(o).join(this.separator)]=e[i]}).bind(this)),t};V.pick=Ct("pick");V.move=Ct("move");V.transfer=Ct("transfer");V.transform=Ct("transform");V.copy=Ct("copy");V.object=Ct("object");V.str=Ct("str");V.set=Ct("set");V.delete=Ct("delete");V.del=V.remove=Ct("remove");V.dot=Ct("dot");["override","overwrite"].forEach(function(e){Object.defineProperty(V,e,{get:function(){return Dr.override},set:function(t){Dr.override=!!t}})});["useArray","keepArray","useBrackets"].forEach(function(e){Object.defineProperty(V,e,{get:function(){return Dr[e]},set:function(t){Dr[e]=t}})});V._process=tr;var dR=V;const kv={"message-input-label":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation per E-Mail erhalten","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","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","export-transcript.pdf.title":"Konversation als PDF erhalten","export-transcript.pdf.description":"Laden Sie die Konversation als PDF herunter.","export-transcript.pdf.cancel":"Abbrechen","export-transcript.pdf.download":"Herunterladen","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
99
-
100
- - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
101
- - 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.","problem-report.action.mark":"Als fehlerhaft markieren","problem-report.action.unmark":"Markierung entfernen","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.close":"Zurück zum Chat"},hR={"message-input-label":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Receive conversation by email","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","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive Conversation","export-transcript.email.description":"Enter your email address to receive the chat history.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"Your email address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"I have sent the chat history to your email address.","export-transcript.pdf.title":"Get conversation as PDF","export-transcript.pdf.description":"Download this conversation as PDF.","export-transcript.pdf.cancel":"Cancel","export-transcript.pdf.download":"Download","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
102
-
103
- - The chat history is stored in the EU area and can only be viewed by authorized personnel.
104
- - 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.","problem-report.action.mark":"Mark as incorrect","problem-report.action.unmark":"Remove marker","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.close":"Close"},pR={"message-input-label":"Message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Recevoir la conversation par courrier électronique","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","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir conversation","export-transcript.email.description":"Entrez votre adresse électronique pour recevoir l'historique du chat.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"Votre adresse électronique","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"J'ai envoyé l'historique du chat à votre adresse électronique.","export-transcript.pdf.title":"Recevoir la conversation en PDF","export-transcript.pdf.description":"Téléchargez la conversation en format PDF.","export-transcript.pdf.cancel":"Annuler","export-transcript.pdf.download":"Télécharger","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
105
-
106
- - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
107
- - 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.","problem-report.action.mark":"Marquer comme incorrect","problem-report.action.unmark":"Retirer le marqueur","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.close":"Fermer"},mR={"message-input-label":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Ricevere la conversazione via e-mail","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","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la conversazione","export-transcript.email.description":"Inserisci il tuo indirizzo e-mail per ricevere la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"Il tuo indirizzo e-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"Ho inviato la cronologia della chat al vostro indirizzo e-mail.","export-transcript.pdf.title":"Ricevi la conversazione come PDF","export-transcript.pdf.description":"Scarica questa conversazione in PDF.","export-transcript.pdf.cancel":"Annulla","export-transcript.pdf.download":"Scaricare","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
108
-
109
- - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
110
- - 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.","problem-report.action.mark":"Segna come errato","problem-report.action.unmark":"Rimuovere il marcatore","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere"},gR=["de","en","fr","it"],Ov={locale:"de",messages:kv},yR=(e,t)=>{if(gR.includes(e)){const n=vR(e),r=dR.dot(t);return{...n,...r}}return t},vR=e=>{switch(e.toString()){case"en":return hR;case"fr":return pR;case"it":return mR;default:return kv}},_R=(e=ER,t)=>{switch(t.type){case Js:return Object.assign({},e,{sessionId:t.sessionId,userId:t.userId});case Kc:return Object.assign({},e,{connectionState:Ln.CONNECTING});case Zc:return Object.assign({},e,{connectionState:Ln.CONNECTED});case Jc:return Object.assign({},e,{connectionState:Ln.DISCONNECTED});case ef:return Object.assign({},e,{connectionState:Ln.RECONNECTED});case tf:return Object.assign({},e,{sessionId:t.sessionId});case Oy:return Object.assign({},e,{connectionState:Ln.DISCONNECTED,sessionId:void 0});default:return e}},ER={connectionState:Ln.DISCONNECTED,sessionId:void 0,userId:void 0},SR=(e=Ja,t)=>{switch(t.type){case G.ActionTypes.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case G.ActionTypes.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case G.ActionTypes.MESSAGE_FROM_GUEST:case G.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Xh(e,t.message);case G.ActionTypes.MESSAGE_TO_GUEST:Eo(t);const n=Object.assign({},t.message,{_id:t.meta.actionId}),r=e.messages.filter(u=>u._id===t.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:r?e.messages:e.messages.concat([n]),quickReplies:n.quickReplies?n.quickReplies:[]});case $c:const i=t.messages;if(i.length>0){const u=i[i.length-1];return Object.assign({},Ja,{messages:i,quickReplies:u.quickReplies?u.quickReplies:[]})}else return Ja;case Hc:return Eo(t.message),e;case G.ActionTypes.EVENT_TO_GUEST:return Eo(t.event),e;case Ty:return Eo(t),e;case Vc:return Object.assign({},e,{speechSupport:!0});case Wc:return Object.assign({},e,{problemReportingEnabled:!0});case Xc:const o=new G.TextMessage(t.transcription,new G.GuestUser),s=Object.assign({},o,{_id:cu()});return Xh(e,s);case qc:return Object.assign({},e,{transcriptExportEnabled:t.methods});case Qc:return Object.assign({},e,{showGeneralConditions:!0});case G.ActionTypes.PROBLEM_REPORT_FROM_GUEST:const a=e.messages.map(u=>u._id===t.payload.actionId?Object.assign({},u,{problemReport:t.payload.problem}):u);return Object.assign({},e,{messages:a});case Yc:const l={enabled:!0,rating:t.payload.rating};return Object.assign({},e,{conversationRating:l});case G.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const u={...e.conversationRating,rating:t.payload};return Object.assign({},e,{conversationRating:u})}default:return e}},Xh=(e,t)=>{const n=e.messages[e.messages.length-1],r=(n==null?void 0:n.text)===t.text;return n&&n.sender.type===t.sender.type&&r?e:Object.assign({},e,{messages:e.messages.concat([t]),quickReplies:[]})},Eo=e=>{var t;wR()?(t=window.top)==null||t.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},wR=()=>typeof window<"u"&&window.self!==window.top,Ja={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,problemReportingEnabled:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1}},Rv=Kk({name:"intl",initialState:Ov,reducers:{updateIntl:(e,t)=>{e.locale=t.payload.language,e.messages=t.payload.messages}}}),{updateIntl:xR}=Rv.actions,bR=Rv.reducer,TR=cv({chat:SR,connection:_R,intl:bR}),Nv="bf-webclient-state-last-saved-at",Av="bf-webclient-state",CR=e=>{try{if(!RR())return;const t=Qh(e,Nv);if(OR(t))return;{const n=Qh(e,Av);return n===null?void 0:JSON.parse(n)}}catch(t){console.error(t);return}},kR=(e,t)=>{try{const n=JSON.stringify(t);Yh(e,Av,n);let r=new Date().toISOString();Yh(e,Nv,r)}catch(n){console.error(n)}},OR=e=>{if(e===null)return!1;let t=new Date(e);return t.setHours(t.getHours()+12),new Date>t},RR=()=>typeof localStorage<"u",Qh=(e,t)=>localStorage.getItem(`${e}_${t}`),Yh=(e,t,n)=>localStorage.setItem(`${e}_${t}`,n),Ut=Object.create(null);Ut.open="0";Ut.close="1";Ut.ping="2";Ut.pong="3";Ut.message="4";Ut.upgrade="5";Ut.noop="6";const zo=Object.create(null);Object.keys(Ut).forEach(e=>{zo[Ut[e]]=e});const Eu={type:"error",data:"parser error"},Pv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Iv=typeof ArrayBuffer=="function",Dv=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,mf=({type:e,data:t},n,r)=>Pv&&t instanceof Blob?n?r(t):Kh(t,r):Iv&&(t instanceof ArrayBuffer||Dv(t))?n?r(t):Kh(new Blob([t]),r):r(Ut[e]+(t||"")),Kh=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Zh(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let el;function NR(e,t){if(Pv&&e.data instanceof Blob)return e.data.arrayBuffer().then(Zh).then(t);if(Iv&&(e.data instanceof ArrayBuffer||Dv(e.data)))return t(Zh(e.data));mf(e,!1,n=>{el||(el=new TextEncoder),t(el.encode(n))})}const Jh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ai=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Jh.length;e++)ai[Jh.charCodeAt(e)]=e;const AR=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)o=ai[e.charCodeAt(r)],s=ai[e.charCodeAt(r+1)],a=ai[e.charCodeAt(r+2)],l=ai[e.charCodeAt(r+3)],c[i++]=o<<2|s>>4,c[i++]=(s&15)<<4|a>>2,c[i++]=(a&3)<<6|l&63;return u},PR=typeof ArrayBuffer=="function",gf=(e,t)=>{if(typeof e!="string")return{type:"message",data:Mv(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:IR(e.substring(1),t)}:zo[n]?e.length>1?{type:zo[n],data:e.substring(1)}:{type:zo[n]}:Eu},IR=(e,t)=>{if(PR){const n=AR(e);return Mv(n,t)}else return{base64:!0,data:e}},Mv=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Fv="",DR=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{mf(o,!1,a=>{r[s]=a,++i===n&&t(r.join(Fv))})})},MR=(e,t)=>{const n=e.split(Fv),r=[];for(let i=0;i<n.length;i++){const o=gf(n[i],t);if(r.push(o),o.type==="error")break}return r};function FR(){return new TransformStream({transform(e,t){NR(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let tl;function So(e){return e.reduce((t,n)=>t+n.length,0)}function wo(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function LR(e,t){tl||(tl=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(r===0){if(So(n)<1)break;const l=wo(n,1);o=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(So(n)<2)break;const l=wo(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(So(n)<8)break;const l=wo(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),c=u.getUint32(0);if(c>Math.pow(2,21)-1){a.enqueue(Eu);break}i=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(So(n)<i)break;const l=wo(n,i);a.enqueue(gf(o?l:tl.decode(l),t)),r=0}if(i===0||i>e){a.enqueue(Eu);break}}}})}const Lv=4;function he(e){if(e)return BR(e)}function BR(e){for(var t in he.prototype)e[t]=he.prototype[t];return e}he.prototype.on=he.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};he.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};he.prototype.off=he.prototype.removeListener=he.prototype.removeAllListeners=he.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};he.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};he.prototype.emitReserved=he.prototype.emit;he.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};he.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ot=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function Bv(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const jR=ot.setTimeout,UR=ot.clearTimeout;function aa(e,t){t.useNativeTimers?(e.setTimeoutFn=jR.bind(ot),e.clearTimeoutFn=UR.bind(ot)):(e.setTimeoutFn=ot.setTimeout.bind(ot),e.clearTimeoutFn=ot.clearTimeout.bind(ot))}const zR=1.33;function HR(e){return typeof e=="string"?$R(e):Math.ceil((e.byteLength||e.size)*zR)}function $R(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function GR(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function VR(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class WR extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class yf extends he{constructor(t){super(),this.writable=!1,aa(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new WR(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=gf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=GR(t);return n.length?"?"+n:""}}const jv="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Su=64,qR={};let ep=0,xo=0,tp;function np(e){let t="";do t=jv[e%Su]+t,e=Math.floor(e/Su);while(e>0);return t}function Uv(){const e=np(+new Date);return e!==tp?(ep=0,tp=e):e+"."+np(ep++)}for(;xo<Su;xo++)qR[jv[xo]]=xo;let zv=!1;try{zv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const XR=zv;function Hv(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||XR))return new XMLHttpRequest}catch{}if(!t)try{return new ot[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function QR(){}const YR=function(){return new Hv({xdomain:!1}).responseType!=null}();class KR extends yf{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port}const n=t&&t.forceBase64;this.supportsBinary=YR&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};MR(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,DR(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Uv()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Bt(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Bt extends he{constructor(t,n){super(),aa(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=Bv(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new Hv(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Bt.requestsCount++,Bt.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=QR,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Bt.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Bt.requestsCount=0;Bt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",rp);else if(typeof addEventListener=="function"){const e="onpagehide"in ot?"pagehide":"unload";addEventListener(e,rp,!1)}}function rp(){for(let e in Bt.requests)Bt.requests.hasOwnProperty(e)&&Bt.requests[e].abort()}const vf=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),bo=ot.WebSocket||ot.MozWebSocket,ip=!0,ZR="arraybuffer",op=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class JR extends yf{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=op?{}:Bv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=ip&&!op?n?new bo(t,n):new bo(t):new bo(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;mf(r,this.supportsBinary,o=>{const s={};try{ip&&this.ws.send(o)}catch{}i&&vf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Uv()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!bo}}class eN extends yf{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=LR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=FR();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this.writer.write(r).then(()=>{i&&vf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const tN={websocket:JR,webtransport:eN,polling:KR},nN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function wu(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=nN.exec(e||""),o={},s=14;for(;s--;)o[rN[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=iN(o,o.path),o.queryKey=oN(o,o.query),o}function iN(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function oN(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let $v=class sr extends he{constructor(t,n={}){super(),this.binaryType=ZR,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=wu(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=wu(n.host).host),aa(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=VR(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(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"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Lv,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new tN[t](r)}open(){let t;if(this.opts.rememberUpgrade&&sr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;sr.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",m=>{if(!r)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;sr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const g=new Error("probe error");g.transport=n.name,this.emitReserved("upgradeError",g)}}))};function o(){r||(r=!0,c(),n.close(),n=null)}const s=m=>{const g=new Error("probe error: "+m);g.transport=n.name,o(),this.emitReserved("upgradeError",g)};function a(){s("transport closed")}function l(){s("socket closed")}function u(m){n&&m.name!==n.name&&o()}const c=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",sr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),this.resetPingTimeout(),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),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 t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=HR(i)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){sr.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;r<i;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};$v.protocol=Lv;function sN(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=wu(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const aN=typeof ArrayBuffer=="function",lN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Gv=Object.prototype.toString,uN=typeof Blob=="function"||typeof Blob<"u"&&Gv.call(Blob)==="[object BlobConstructor]",cN=typeof File=="function"||typeof File<"u"&&Gv.call(File)==="[object FileConstructor]";function _f(e){return aN&&(e instanceof ArrayBuffer||lN(e))||uN&&e instanceof Blob||cN&&e instanceof File}function Ho(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Ho(e[n]))return!0;return!1}if(_f(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ho(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Ho(e[n]))return!0;return!1}function fN(e){const t=[],n=e.data,r=e;return r.data=xu(n,t),r.attachments=t.length,{packet:r,buffers:t}}function xu(e,t){if(!e)return e;if(_f(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=xu(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=xu(e[r],t));return n}return e}function dN(e,t){return e.data=bu(e.data,t),delete e.attachments,e}function bu(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=bu(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=bu(e[n],t));return e}const hN=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],pN=5;var H;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(H||(H={}));class mN{constructor(t){this.replacer=t}encode(t){return(t.type===H.EVENT||t.type===H.ACK)&&Ho(t)?this.encodeAsBinary({type:t.type===H.EVENT?H.BINARY_EVENT:H.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===H.BINARY_EVENT||t.type===H.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=fN(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function sp(e){return Object.prototype.toString.call(e)==="[object Object]"}class Ef extends he{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===H.BINARY_EVENT;r||n.type===H.BINARY_ACK?(n.type=r?H.EVENT:H.ACK,this.reconstructor=new gN(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(_f(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(H[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===H.BINARY_EVENT||r.type===H.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(Ef.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case H.CONNECT:return sp(n);case H.DISCONNECT:return n===void 0;case H.CONNECT_ERROR:return typeof n=="string"||sp(n);case H.EVENT:case H.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&hN.indexOf(n[0])===-1);case H.ACK:case H.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class gN{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=dN(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const yN=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ef,Encoder:mN,get PacketType(){return H},protocol:pN},Symbol.toStringTag,{value:"Module"}));function vt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const vN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Vv extends he{constructor(t,n,r){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=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[vt(t,"open",this.onopen.bind(this)),vt(t,"packet",this.onpacket.bind(this)),vt(t,"error",this.onerror.bind(this)),vt(t,"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(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(vN.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:H.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,a=n.pop();this._registerAckCallback(s,a),r.id=s}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,a)=>r?s?o(s):i(a):i(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:H.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case H.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 H.EVENT:case H.BINARY_EVENT:this.onevent(t);break;case H.ACK:case H.BINARY_ACK:this.onack(t);break;case H.DISCONNECT:this.ondisconnect();break;case H.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:H.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:H.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Br(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Br.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Br.prototype.reset=function(){this.attempts=0};Br.prototype.setMin=function(e){this.ms=e};Br.prototype.setMax=function(e){this.max=e};Br.prototype.setJitter=function(e){this.jitter=e};class Tu extends he{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,aa(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Br({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||yN;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new $v(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=vt(n,"open",function(){r.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=vt(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(vt(t,"ping",this.onping.bind(this)),vt(t,"data",this.ondata.bind(this)),vt(t,"error",this.onerror.bind(this)),vt(t,"close",this.onclose.bind(this)),vt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){vf(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Vv(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ei={};function $o(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=sN(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=ei[i]&&o in ei[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Tu(r,t):(ei[i]||(ei[i]=new Tu(r,t)),l=ei[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign($o,{Manager:Tu,Socket:Vv,io:$o,connect:$o});const _N=[G.ActionTypes.MESSAGE_TO_GUEST,G.ActionTypes.EVENT_TO_GUEST,G.ActionTypes.TYPING_ON,G.ActionTypes.TYPING_OFF,...yx,...Kw,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],EN=({dispatch:e,getState:t})=>n=>{let r=null;return i=>{let o=n(i);if(i.type===Js)r!=null&&r.disconnect(),e(Ex()),r=$o(`/${i.clientName}/chat?${i.querystrings}`),r.on("action",e),r.on("connect",()=>e(Sx())),r.on("disconnect",()=>e(wx())),r.on("reconnect",()=>e(xx())),r.on("set-translations",(s,a)=>{e(xR({language:s,messages:yR(s,a)}))}),r.on("enable-speech-support",()=>e(Jw())),r.on("enable-problem-reporting",()=>e(ex())),r.on("enable-transcript-export",s=>e(nx(s))),r.on("enable-conversation-rating",s=>e(sx(s))),r.on("speech-transcription",s=>e(tx(s))),r.on("restore-client-state",s=>{e(_x(s.sessionId)),e(ux(s.messages))}),r.on("expand-window",({devices:s})=>e({type:Ty,devices:s})),r.on("show-general-conditions",()=>e(ix()));else if(i.type===Yw)r==null||r.emit("get-started",JSON.stringify(i));else if(i.type===Gc)r==null||r.emit("audio-message",i.buffer);else if(i.type===G.ActionTypes.CONVERSATION_RATING_FROM_GUEST)r==null||r.emit("conversation-rating",i.payload);else if(i.type===Cy){const{connection:{sessionId:s}}=t();window.location.href=`/transcript-pdf/${s}`}else _N.indexOf(i.type)===-1&&i.meta===void 0&&r&&r.emit("action",JSON.stringify(i));return o}},Wv=lv(),SN={...CR(Wv),intl:Ov},Cu=Gk({middleware:e=>e().concat(EN),reducer:TR,preloadedState:SN});Cu.subscribe(aR(()=>{const e=Cu.getState();kR(Wv,{connection:e.connection})},1e3));const wN=document.getElementById("root"),xN=Eg(wN);xN.render(_.jsx(TE,{store:Cu,children:_.jsx(ck,{})}));
111
- //# sourceMappingURL=index-s8J47tJq.js.map